Skip to content

Commit

Permalink
Modified Bunny dependency versions to allow support for Bunny 1.7.0 o…
Browse files Browse the repository at this point in the history
…n JRuby and for Bunny 1.7 or later on all other platforms. (#19)
  • Loading branch information
TimothyMDean authored and arempe93 committed May 19, 2016
1 parent 2f87036 commit 3a30396
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Gemfile
@@ -1,5 +1,3 @@
source 'https://rubygems.org'

gem 'bunny', '>= 2.0'

gemspec
10 changes: 8 additions & 2 deletions bunny-mock.gemspec
Expand Up @@ -14,9 +14,15 @@ Gem::Specification.new do |s|
s.description = 'Easy to use mocking for testing the Bunny client for RabbitMQ'
s.license = 'MIT'

s.required_ruby_version = Gem::Requirement.new '>= 2.0'
s.required_ruby_version = Gem::Requirement.new '>= 1.9'

s.add_dependency 'bunny', '~> 2.0'
# Bunny is known to work with JRuby 1.7.0, but unsupported after that.
# Other Ruby platforms are expected to work on any 1.7.x version or later.
if RUBY_PLATFORM == 'java'
s.add_dependency 'bunny', '1.7.0'
else
s.add_dependency 'bunny', '>= 1.7'
end

s.add_development_dependency 'rake', '~> 10.5.0'
s.add_development_dependency 'rubocop'
Expand Down

0 comments on commit 3a30396

Please sign in to comment.