-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
lock activesupport to ~> 5.1.6 #1425
Conversation
Updates: #1423 Ref: rails/rails#14643
@iguchi1124 could you take a look at this PR? |
@@ -34,6 +34,7 @@ if RUBY_ENGINE == "ruby" | |||
gem 'bluecloth' | |||
gem 'rdiscount' | |||
gem 'RedCloth' | |||
gem "activesupport", "~> 5.1.6" |
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.
Sorry, I can't make sense why is this needed.
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.
activesupport-5.2 breaks a test added by you, because the behavior of HashWithIndifferentAccess#slice
has been modified.
See: https://travis-ci.org/sinatra/sinatra/builds/372333244
We can also delete the test instead of this patch.
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.
Ah, I got it.
IndifferentHash#slice
test should be skipped on ruby 2.4 and before versions with this line https://github.com/sinatra/sinatra/blob/master/test/indifferent_hash_test.rb#L173
But rabl
gem using active_support
which is includes Hash#slice
core extention method, because of that, These test are not skipped.
Then, in ruby 2.5 tests passing because it references ruby core Hash#slice
method.
I think that maybe removing active_support
dependency is best, but the changes looks good for me.
Looks like it has just stayed since sinatra#1425 We do get activesupport as an implicit dependency from rabl
Looks like it has just stayed since #1425 We do get activesupport as an implicit dependency from rabl
see #1405 (comment)
Updates: #1423
Ref: rails/rails#14643