fluent-plugin-twitter.gemspec in fluent-plugin-twitter-0.5.3 vs fluent-plugin-twitter.gemspec in fluent-plugin-twitter-0.5.4

- old
+ new

@@ -1,11 +1,11 @@ # -*- encoding: utf-8 -*- $:.push File.expand_path("../lib", __FILE__) Gem::Specification.new do |s| s.name = "fluent-plugin-twitter" - s.version = "0.5.3" + s.version = "0.5.4" s.authors = ["Kentaro Yoshida"] s.email = ["y.ken.studio@gmail.com"] s.homepage = "https://github.com/y-ken/fluent-plugin-twitter" s.summary = %q{Fluentd Input/Output plugin to collect/process tweets with Twitter Streaming API.} s.license = "Apache-2.0" @@ -16,10 +16,16 @@ s.require_paths = ["lib"] s.add_development_dependency "rake" s.add_development_dependency "test-unit", ">= 3.1.0" s.add_development_dependency "appraisal" - s.add_runtime_dependency "fluentd", ">= 0.10.46" + + # Since Fluentd v0.14 requires ruby 2.1 or later. + if defined?(RUBY_VERSION) && RUBY_VERSION < "2.1" + s.add_runtime_dependency "fluentd", "< 0.14" + else + s.add_runtime_dependency "fluentd", ">= 0.10.46" + end s.add_runtime_dependency "twitter", ">= 5.0.0" s.add_runtime_dependency "tweetstream", ">= 2.6.1" s.add_runtime_dependency "string-scrub", ">= 0.0.3" if RUBY_VERSION.to_f < 2.1 end