china_aqi.gemspec in china_aqi-0.0.4 vs china_aqi.gemspec in china_aqi-0.0.5
- old
+ new
@@ -1,26 +1,30 @@
-# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'china_aqi/version'
Gem::Specification.new do |spec|
- spec.name = "china_aqi"
+ spec.name = 'china_aqi'
spec.version = ChinaAqi::VERSION
- spec.authors = ["Xuhao"]
- spec.email = ["xuhao@rubyfans.com"]
- spec.description = %q{China AQI API from PM25.in}
- spec.summary = %q{China AQI API from PM25.in}
- spec.homepage = "https://github.com/Xuhao/china_aqi"
- spec.license = "MIT"
+ spec.authors = ['Xuhao']
+ spec.email = ['xuhao@rubyfans.com']
+ spec.description = 'China AQI API from PM25.in'
+ spec.summary = 'China AQI API from PM25.in'
+ spec.homepage = 'https://github.com/Xuhao/china_aqi'
+ spec.license = 'MIT'
- spec.files = `git ls-files`.split($/)
+ spec.files = `git ls-files`.split($RS)
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
- spec.require_paths = ["lib"]
+ spec.require_paths = ['lib']
- spec.add_development_dependency "bundler", "~> 1.3"
- spec.add_development_dependency "rake"
- spec.add_development_dependency "rspec"
- spec.add_dependency 'activesupport'
+ spec.required_ruby_version = '>= 1.9.3'
+
+ spec.add_development_dependency 'bundler', '~> 1.3'
+ spec.add_development_dependency 'rake'
+ if RUBY_VERSION < '2.2.2'
+ spec.add_dependency 'activesupport', '~> 4.0'
+ else
+ spec.add_dependency 'activesupport'
+ end
spec.add_dependency 'httparty'
end