-
Notifications
You must be signed in to change notification settings - Fork 91
Mongoid 6 & 7 and rails 5.1, 5.2 & 6.0 upgrade #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@@ -1,5 +1,6 @@ | |||
require "simplecov" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
end | ||
options | ||
end | ||
private |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
@@ -0,0 +1,5 @@ | |||
module Mongoid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
end | ||
end | ||
|
||
describe "#is_duplicate_token_error?" do | ||
describe "#duplicate_token_error?" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.