Skip to content

lock activesupport to ~> 5.1.6#1425

Merged
namusyaka merged 1 commit into
masterfrom
fix-broken-tests
May 5, 2018
Merged

lock activesupport to ~> 5.1.6#1425
namusyaka merged 1 commit into
masterfrom
fix-broken-tests

Conversation

@namusyaka

Copy link
Copy Markdown
Member

@namusyaka

Copy link
Copy Markdown
Member Author

@iguchi1124 could you take a look at this PR?

Comment thread Gemfile
gem 'bluecloth'
gem 'rdiscount'
gem 'RedCloth'
gem "activesupport", "~> 5.1.6"

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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