td-logger.gemspec in td-logger-0.3.25 vs td-logger.gemspec in td-logger-0.3.26

- old
+ new

@@ -28,13 +28,18 @@ gem.files = `git ls-files`.split("\n") gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } gem.require_paths = ['lib'] - gem.add_dependency "msgpack", [">= 0.4.4", "!= 0.5.0", "!= 0.5.1", "!= 0.5.2", "!= 0.5.3", "< 0.8.0"] + gem.add_dependency "msgpack", ">= 0.5.6", "< 2.0" gem.add_dependency "td-client", "~> 0.8.66" - gem.add_dependency "fluent-logger", "~> 0.5.0" + gem.add_dependency "fluent-logger", ">= 0.5.0", "< 2.0" gem.add_development_dependency 'rake', '>= 0.9.2' gem.add_development_dependency 'rspec', '~> 3.0' gem.add_development_dependency 'coveralls' - gem.add_development_dependency 'rack' + ruby_version = Gem::Version.new(RUBY_VERSION) + if ruby_version >= Gem::Version.new('2.2.2') + gem.add_development_dependency 'rack' + else + gem.add_development_dependency 'rack', '~> 1.0' + end end