bunny-mock.gemspec in bunny-mock-1.3.0 vs bunny-mock.gemspec in bunny-mock-1.4.0

- old
+ new

@@ -12,12 +12,19 @@ s.email = [Base64.decode64('YW5kcmV3cmVtcGVAZ21haWwuY29t\n')] s.summary = 'Mocking for the popular Bunny client for RabbitMQ' 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 1.7.0 is known to work with JRuby, 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 'amq-protocol', '<= 1.9.2' + 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' s.add_development_dependency 'yard' s.add_development_dependency 'rspec', '~> 3.4.0'