Skip to content
This repository was archived by the owner on Nov 18, 2026. It is now read-only.

Allow new rack v2 for Rails 5 apps - #51

Closed
javierjulio wants to merge 1 commit into
bitpay:masterfrom
javierjulio:patch-1
Closed

javierjulio wants to merge 1 commit into
bitpay:masterfrom
javierjulio:patch-1

Conversation

@javierjulio

Copy link
Copy Markdown
Contributor

Rails 5 now requires Rack 2 which in turn requires Ruby 2.2.2 and up. This update still allows Rack 1 on older Ruby versions that aren't compatible with Rack 2 but then support upgrading.

Rails 5 now requires Rack 2 which in turn requires Ruby 2.2.2 and up. This update still allows Rack 1 on older Ruby versions that aren't compatible with Rack 2 but then support upgrading.
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 91.096% when pulling 1da5ba6 on javierjulio:patch-1 into 0ec4bb1 on bitpay:master.

@javierjulio

Copy link
Copy Markdown
Contributor Author

After discussing with one of my coworkers he asked why rack is even used? I searched for it and while its defined as a dependency it doesn't seem to be used in code anywhere. Is it used for something important? Could the dependency possibly be removed?

@philosodad

Copy link
Copy Markdown
Contributor

This library was tied to the rails library at one point, possibly this
dependency is just left over.

On Mon, Aug 1, 2016 at 4:07 PM, Javier Julio notifications@github.com
wrote:

After discussing with one of my coworkers he asked why rack is even used?
I searched for it and while its defined as a dependency it doesn't seem to
be used in code anywhere. Is it used for something important? Could the
dependency possibly be removed?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#51 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIQybMM36aK5gvN57_IjhgojYvvH4uVks5qblISgaJpZM4JZw_g
.

J. Paul Daigle

javierjulio added a commit to javierjulio/ruby-client that referenced this pull request Aug 4, 2016
Rack isn't used at all so no need to specify. Based on [this comment](bitpay#51 (comment)) this seems to be carried over from a Rails app so is safe to remove. This will also allow this gem to be used in Rails 5 apps which now require Rack v2.

No need to specify json dependency since this gem requires Ruby 2.0+ and I've [seen this change made elsewhere](sidekiq/sidekiq#2743) to clean up dependencies and also support other platforms (Windows). The json library is being required in `lib/bitpay/client.rb`.
@javierjulio

Copy link
Copy Markdown
Contributor Author

This is resolved by my other PR #53 that's already been merged.

@javierjulio
javierjulio deleted the patch-1 branch August 22, 2016 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants