Skip to content
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

Merged
merged 1 commit into from
May 5, 2018
Merged

lock activesupport to ~> 5.1.6 #1425

merged 1 commit into from
May 5, 2018

Conversation

namusyaka
Copy link
Member

@namusyaka
Copy link
Member Author

@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"
Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Contributor

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.

@namusyaka namusyaka merged commit 5149dc9 into master May 5, 2018
@namusyaka namusyaka deleted the fix-broken-tests branch May 5, 2018 07:05
dentarg added a commit to dentarg/sinatra that referenced this pull request Sep 22, 2023
Looks like it has just stayed since sinatra#1425

We do get activesupport as an implicit dependency from rabl
dentarg added a commit that referenced this pull request Sep 24, 2023
Looks like it has just stayed since #1425

We do get activesupport as an implicit dependency from rabl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants