Skip to content

Allow Hashie version 4.0.x - #977

Merged
suprnova32 merged 12 commits into
omniauth:masterfrom
BobbyMcWho:hashie-4
Nov 15, 2019
Merged

suprnova32 merged 12 commits into
omniauth:masterfrom
BobbyMcWho:hashie-4

Conversation

@BobbyMcWho

@BobbyMcWho BobbyMcWho commented Nov 11, 2019 •

Copy link
Copy Markdown
Member

https://github.com/intridea/hashie/releases/tag/v4.0.0

We released the 4.0.0 release as a major semver change due to multiple non-destructive hash methods being changed to return Mash subclasses instead of plain ol' Ruby hashes. This shouldn't affect the majority of projects, but versioning changes allow projects to choose whether to upgrade or not.

The other included changes were the result of some yak-shaving I had to do to get CI passing again since it's been failing for 4 months :(

closes #976

For some reason coveralls has decided that various changes in the
gemspec and Gemfile have decreased code coverage by .1%, so let's
go overboard and add a bunch of coverage for the builder.
The settings tests were causing tests in other files to fail
depending on the order they were run in. We'll reset the config
values after each expectation.
Now that rack is locked to > 1.6.2, we don't need all of this custom
logic in the builder initializer. Using a memoizer we can remove the
initial @options set.
Comment thread lib/omniauth/builder.rb
Comment on lines -3 to -21
def initialize(app, &block)
@options = nil
if rack14? || rack2?
super
else
@app = app
super(&block)
@ins << @app
end
end

def rack14?
Rack.release.start_with?('1.') && (Rack.release.split('.')[1].to_i >= 4)
end

def rack2?
Rack.release.start_with? '2.'
end

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.

Now that we've locked rack above 1.6, we don't need any of this anymore.

Comment thread .travis.yml
Comment on lines +3 to +6
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem install bundler -v '1.17.3'
install:
- bundle _1.17.3_ install --jobs=3 --retry=3

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.

bundler 2 doesn't work on ruby < 2.3

@suprnova32

Copy link
Copy Markdown
Member

Thanks for the work on this PR @BobbyMcWho and thank you for getting CI to be green again.

Sorry for the delay in reviews :(

@suprnova32
suprnova32 merged commit 68b40cb into omniauth:master Nov 15, 2019
@dblock

dblock commented Nov 17, 2019 •

Copy link
Copy Markdown
Contributor

I think this should not have a maximum version of Hashie at this point declared here. There are no known issues with Hashie 5 yet that would prevent any version of omniauth from working with it, so there's no need to restrict.

#979

BobbyMcWho added a commit to BobbyMcWho/hashie that referenced this pull request Nov 17, 2019
Until omniauth releases the changes merged from
omniauth/omniauth#977 , we must point at
master branch.
michaelherold pushed a commit to hashie/hashie that referenced this pull request Nov 17, 2019
* Update github urls to hashie/hashie

* Point omniauth in integration tests at master.

Until omniauth releases the changes merged from
omniauth/omniauth#977 , we must point at
master branch.

* revert incorrect change of gem email

Co-Authored-By: Michael Herold <[email protected]>

* Reference open issue for release
@BobbyMcWho
BobbyMcWho deleted the hashie-4 branch August 5, 2020 03:37
michaelzedwards added a commit to michaelzedwards/hashie that referenced this pull request Feb 11, 2022
* Update github urls to hashie/hashie

* Point omniauth in integration tests at master.

Until omniauth releases the changes merged from
omniauth/omniauth#977 , we must point at
master branch.

* revert incorrect change of gem email

Co-Authored-By: Michael Herold <[email protected]>

* Reference open issue for release
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.

Update dependencies to support use of hashie 4.0.0?

3 participants