omniauth-gplus.gemspec in omniauth-gplus-2.0.0.beta1 vs omniauth-gplus.gemspec in omniauth-gplus-2.0.0.beta2

- old
+ new

@@ -1,34 +1,36 @@ -lib = File.expand_path('../lib', __FILE__) -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +# -*- encoding: utf-8 -*- +$LOAD_PATH.push File.expand_path('../lib', __FILE__) require 'omniauth/gplus/version' -Gem::Specification.new do |spec| - spec.name = "omniauth-gplus" - spec.version = OmniAuth::GPlus::VERSION - spec.authors = ["Kurtis Rainbolt-Greene", "Sam Dunne"] - spec.email = ["me@kurtisrainboltgreene.name", "sam@sam-dunne.com"] - spec.summary = %q{A Google+ OAuth2 solution for Omniauth} - spec.description = spec.summary - spec.homepage = "http://samdunne.github.com/omniauth-gplus" - spec.license = "MIT" +Gem::Specification.new do |s| + s.name = 'omniauth-gplus' + s.version = OmniAuth::GPlus::VERSION + s.authors = %w(Sam Dunne Kurtis Rainbolt-Greene ) + s.email = %w(sam@sam-dunne.com me@kurtisrainboltgreene.name) + s.summary = 'A Google+ OAuth2 solution for Omniauth' + s.description = s.summary + s.homepage = 'http://samdunne.github.com/omniauth-gplus' + s.license = 'MIT' - spec.files = `git ls-files`.split($/) - 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"] + s.files = `git ls-files`.split("\n") + s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + s.executables = `git ls-files -- bin/*`.split("\n").collect { |f| File.basename(f) } + s.require_paths = ['lib'] - spec.add_runtime_dependency "omniauth-oauth2", '~> 1.1' - spec.add_development_dependency "bundler" - spec.add_development_dependency "rake" - spec.add_development_dependency "mocha" - spec.add_development_dependency 'yard' - spec.add_development_dependency 'kramdown' - spec.add_development_dependency 'pry' - spec.add_development_dependency 'coveralls' + s.add_runtime_dependency 'omniauth-oauth2', '~> 1.1' + s.add_development_dependency 'bundler' + s.add_development_dependency 'rake' + s.add_development_dependency 'mocha' + s.add_development_dependency 'yard' + s.add_development_dependency 'kramdown' + s.add_development_dependency 'pry' + s.add_development_dependency 'coveralls' + s.add_development_dependency 'rubocop' + if RUBY_PLATFORM == 'rbx' - spec.add_development_dependency 'racc' - spec.add_development_dependency 'rubinius-coverage', github: 'rubinius/rubinius-coverage' - spec.add_development_dependency 'rubysl' + s.add_development_dependency 'racc' + s.add_development_dependency 'rubinius-coverage', :github => 'rubinius/rubinius-coverage' + s.add_development_dependency 'rubysl' end end