Mongoid 6 & 7 and rails 5.1, 5.2 & 6.0 upgrade#77
Mongoid 6 & 7 and rails 5.1, 5.2 & 6.0 upgrade#77ritxi wants to merge 15 commits intothetron:masterfrom
Conversation
| @@ -1,5 +1,6 @@ | |||
| require "simplecov" | |||
There was a problem hiding this comment.
Missing magic comment # frozen_string_literal: true.
| it { expect(document.sharing_id).to match(/[a-z]{4}/) } | ||
| end | ||
|
|
||
| context "should raise exception for duplicated token" do |
There was a problem hiding this comment.
Block has too many lines. [26/25]
…ers array instead
# Conflicts: # mongoid_token.gemspec
| @@ -1,5 +1,6 @@ | |||
| require "simplecov" | |||
There was a problem hiding this comment.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
| end | ||
| options | ||
| end | ||
| private |
There was a problem hiding this comment.
Layout/EmptyLinesAroundAccessModifier: Keep a blank line before and after private.
| def initialize(options = {}) | ||
| @options = merge_defaults validate_options(options) | ||
| end | ||
| module Mongoid |
There was a problem hiding this comment.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
| @@ -0,0 +1,5 @@ | |||
| module Mongoid | |||
There was a problem hiding this comment.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
| end | ||
|
|
||
| describe "#is_duplicate_token_error?" do | ||
| describe "#duplicate_token_error?" do |
There was a problem hiding this comment.
Metrics/BlockLength: Block has too many lines. [32/25]
| gem 'database_cleaner' | ||
| gem 'mongoid-rspec', '1.5.1' | ||
| gem "rspec" | ||
| gem "database_cleaner" |
There was a problem hiding this comment.
Bundler/OrderedGems: Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem database_cleaner should appear before rspec.
Add rails 5.1 Add rails 5.1 to travisci
2cdf762 to
4377440
Compare
| it { expect(document.sharing_id).to match(/[a-z]{4}/) } | ||
| end | ||
|
|
||
| context "should raise exception for duplicated token" do |
There was a problem hiding this comment.
Metrics/BlockLength: Block has too many lines. [30/25]
|
@ritxi I'm using your master branch and I'm getting a zeitwerk error. |
|
What version of zeitwerk you use, may be newer versions have problems. Do
you have more details to try to reproduce the error?
El dc., 28 d’oct. 2020, 22:05, Jarrett Lusso <notifications@github.com> va
escriure:
… @ritxi <https://github.com/ritxi> I'm using your master branch and I'm
getting a zeitwerk error. NameError: uninitialized constant MongoidToken
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABDQ3GLMI67NJPGZK7EKBTSNCBSJANCNFSM4DVAE73Q>
.
|
|
@ritxi I'm using zeitwerk (2.4.0) and rails (6.0.3.4). I can reproduce the error by just running the |
|
Not sure this is the best way to fix it, but this got the gem to load properly. I doubt this is the cleanest solution. jclusso@f1048a4 |
Uh oh!
There was an error while loading. Please reload this page.