Skip to content

Commit

Permalink
Merge pull request #546 from bugsnag/tobyhs/specify_redis_version_for…
Browse files Browse the repository at this point in the history
…_ruby_lt_2.3

Specify redis gem version for Ruby 2.2
  • Loading branch information
tobyhs committed Jun 11, 2019
2 parents 6aed918 + ed7c3bb commit 2cd0138
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
source "https://rubygems.org"

ruby_version = Gem::Version.new(RUBY_VERSION)

group :test, optional: true do
gem 'rake', RUBY_VERSION <= '1.9.3' ? '~> 11.3.0' : '~> 12.3.0'
gem 'rspec'
gem 'rspec-mocks'
gem 'rdoc', '~> 5.1.0'
gem 'pry'
gem 'addressable', '~> 2.3.8'
gem 'delayed_job' if RUBY_VERSION >= '2.2.2'
gem 'i18n', RUBY_VERSION <= '2.3.0' ? '1.4.0': '>1.4.0' if RUBY_VERSION >= '2.2.2'
gem 'webmock', RUBY_VERSION <= '1.9.3' ? '2.3.2': '>2.3.2'
gem 'hashdiff', RUBY_VERSION <= '1.9.3' ? '0.3.8': '>0.3.8'
gem 'rake', ruby_version <= Gem::Version.new('1.9.3') ? '~> 11.3.0' : '~> 12.3.0'
gem 'rspec'
gem 'rspec-mocks'
gem 'rdoc', '~> 5.1.0'
gem 'pry'
gem 'addressable', '~> 2.3.8'
gem 'delayed_job' if ruby_version >= Gem::Version.new('2.2.2')
gem 'i18n', ruby_version <= Gem::Version.new('2.3.0') ? '1.4.0': '>1.4.0' if ruby_version >= Gem::Version.new('2.2.2')
gem 'webmock', ruby_version <= Gem::Version.new('1.9.3') ? '2.3.2': '>2.3.2'
gem 'hashdiff', ruby_version <= Gem::Version.new('1.9.3') ? '0.3.8': '>0.3.8'
end

group :coverage, optional: true do
Expand All @@ -24,14 +26,16 @@ end

group :sidekiq, optional: true do
gem 'sidekiq', '~> 5.0.4'
# redis 4.1.2 dropped support for Ruby 2.2
gem 'redis', ruby_version < Gem::Version.new('2.3.0') ? '4.1.1' : '>= 4.1.2'
end

group :doc, optional: true do
gem 'hanna-nouveau'
end

group :maze, optional: true do
gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner' if RUBY_VERSION >= '2.0.0'
gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner' if ruby_version >= Gem::Version.new('2.0.0')
end

gemspec

0 comments on commit 2cd0138

Please sign in to comment.