Repository navigation
Allow new rack v2 for Rails 5 apps - #51
javierjulio wants to merge 1 commit into
Conversation
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.
|
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? |
|
This library was tied to the rails library at one point, possibly this On Mon, Aug 1, 2016 at 4:07 PM, Javier Julio notifications@github.com
J. Paul Daigle |
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`.
|
This is resolved by my other PR #53 that's already been merged. |
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.