Updated dependency list and added gemspec.
This commit is contained in:
parent
0c6551cf13
commit
90338cb267
|
@ -5,6 +5,8 @@
|
||||||
* added OAuth 2 support to the command line tool
|
* added OAuth 2 support to the command line tool
|
||||||
* renamed some switches in the command line tool
|
* renamed some switches in the command line tool
|
||||||
* added additional configuration capabilities
|
* added additional configuration capabilities
|
||||||
|
* fixed a few deprecation warnings from dependencies
|
||||||
|
* added gemspec to source control
|
||||||
|
|
||||||
== 0.2.0
|
== 0.2.0
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,62 @@
|
||||||
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
|
Gem::Specification.new do |s|
|
||||||
|
s.name = "google-api-client"
|
||||||
|
s.version = "0.3.0"
|
||||||
|
|
||||||
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||||
|
s.authors = ["Bob Aman"]
|
||||||
|
s.date = "2011-11-16"
|
||||||
|
s.description = "The Google API Ruby Client makes it trivial to discover and access supported\nAPIs.\n"
|
||||||
|
s.email = "bobaman@google.com"
|
||||||
|
s.executables = ["google-api"]
|
||||||
|
s.extra_rdoc_files = ["README.md"]
|
||||||
|
s.files = ["lib/google", "lib/google/api_client", "lib/google/api_client/discovery", "lib/google/api_client/discovery/api.rb", "lib/google/api_client/discovery/method.rb", "lib/google/api_client/discovery/resource.rb", "lib/google/api_client/discovery.rb", "lib/google/api_client/environment.rb", "lib/google/api_client/errors.rb", "lib/google/api_client/parser.rb", "lib/google/api_client/parsers", "lib/google/api_client/parsers/json", "lib/google/api_client/parsers/json/error_parser.rb", "lib/google/api_client/parsers/json/pagination.rb", "lib/google/api_client/parsers/json_parser.rb", "lib/google/api_client/reference.rb", "lib/google/api_client/result.rb", "lib/google/api_client/version.rb", "lib/google/api_client.rb", "lib/google/inflection.rb", "spec/google", "spec/google/api_client", "spec/google/api_client/discovery_spec.rb", "spec/google/api_client/parsers", "spec/google/api_client/parsers/json_parser_spec.rb", "spec/google/api_client_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/clobber.rake", "tasks/gem.rake", "tasks/git.rake", "tasks/metrics.rake", "tasks/rdoc.rake", "tasks/spec.rake", "tasks/wiki.rake", "tasks/yard.rake", "CHANGELOG", "LICENSE", "Rakefile", "README.md", "bin/google-api"]
|
||||||
|
s.homepage = "http://code.google.com/p/google-api-ruby-client/"
|
||||||
|
s.rdoc_options = ["--main", "README.md"]
|
||||||
|
s.require_paths = ["lib"]
|
||||||
|
s.rubygems_version = "1.8.11"
|
||||||
|
s.summary = "Package Summary"
|
||||||
|
|
||||||
|
if s.respond_to? :specification_version then
|
||||||
|
s.specification_version = 3
|
||||||
|
|
||||||
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
||||||
|
s.add_runtime_dependency(%q<signet>, ["~> 0.2.2"])
|
||||||
|
s.add_runtime_dependency(%q<addressable>, ["~> 2.2.2"])
|
||||||
|
s.add_runtime_dependency(%q<httpadapter>, ["~> 1.0.0"])
|
||||||
|
s.add_runtime_dependency(%q<json>, [">= 1.4.6"])
|
||||||
|
s.add_runtime_dependency(%q<extlib>, [">= 0.9.15"])
|
||||||
|
s.add_runtime_dependency(%q<launchy>, [">= 2.0.0"])
|
||||||
|
s.add_development_dependency(%q<sinatra>, [">= 1.2.0"])
|
||||||
|
s.add_development_dependency(%q<rake>, [">= 0.9.0"])
|
||||||
|
s.add_development_dependency(%q<rspec>, ["~> 1.2.9"])
|
||||||
|
s.add_development_dependency(%q<rcov>, [">= 0.9.9"])
|
||||||
|
s.add_development_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
||||||
|
else
|
||||||
|
s.add_dependency(%q<signet>, ["~> 0.2.2"])
|
||||||
|
s.add_dependency(%q<addressable>, ["~> 2.2.2"])
|
||||||
|
s.add_dependency(%q<httpadapter>, ["~> 1.0.0"])
|
||||||
|
s.add_dependency(%q<json>, [">= 1.4.6"])
|
||||||
|
s.add_dependency(%q<extlib>, [">= 0.9.15"])
|
||||||
|
s.add_dependency(%q<launchy>, [">= 2.0.0"])
|
||||||
|
s.add_dependency(%q<sinatra>, [">= 1.2.0"])
|
||||||
|
s.add_dependency(%q<rake>, [">= 0.9.0"])
|
||||||
|
s.add_dependency(%q<rspec>, ["~> 1.2.9"])
|
||||||
|
s.add_dependency(%q<rcov>, [">= 0.9.9"])
|
||||||
|
s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
||||||
|
end
|
||||||
|
else
|
||||||
|
s.add_dependency(%q<signet>, ["~> 0.2.2"])
|
||||||
|
s.add_dependency(%q<addressable>, ["~> 2.2.2"])
|
||||||
|
s.add_dependency(%q<httpadapter>, ["~> 1.0.0"])
|
||||||
|
s.add_dependency(%q<json>, [">= 1.4.6"])
|
||||||
|
s.add_dependency(%q<extlib>, [">= 0.9.15"])
|
||||||
|
s.add_dependency(%q<launchy>, [">= 2.0.0"])
|
||||||
|
s.add_dependency(%q<sinatra>, [">= 1.2.0"])
|
||||||
|
s.add_dependency(%q<rake>, [">= 0.9.0"])
|
||||||
|
s.add_dependency(%q<rspec>, ["~> 1.2.9"])
|
||||||
|
s.add_dependency(%q<rcov>, [">= 0.9.9"])
|
||||||
|
s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
||||||
|
end
|
||||||
|
end
|
|
@ -28,12 +28,12 @@ namespace :gem do
|
||||||
s.add_runtime_dependency('extlib', '>= 0.9.15')
|
s.add_runtime_dependency('extlib', '>= 0.9.15')
|
||||||
|
|
||||||
# Dependencies used in the CLI
|
# Dependencies used in the CLI
|
||||||
s.add_runtime_dependency('launchy', '>= 0.3.2')
|
s.add_runtime_dependency('launchy', '>= 2.0.0')
|
||||||
|
|
||||||
# Dependencies used in the examples
|
# Dependencies used in the examples
|
||||||
s.add_development_dependency('sinatra', '>= 1.2.0')
|
s.add_development_dependency('sinatra', '>= 1.2.0')
|
||||||
|
|
||||||
s.add_development_dependency('rake', '>= 0.7.3')
|
s.add_development_dependency('rake', '>= 0.9.0')
|
||||||
s.add_development_dependency('rspec', '~> 1.2.9')
|
s.add_development_dependency('rspec', '~> 1.2.9')
|
||||||
s.add_development_dependency('rcov', '>= 0.9.9')
|
s.add_development_dependency('rcov', '>= 0.9.9')
|
||||||
s.add_development_dependency('diff-lcs', '>= 1.1.2')
|
s.add_development_dependency('diff-lcs', '>= 1.1.2')
|
||||||
|
@ -54,6 +54,21 @@ namespace :gem do
|
||||||
puts GEM_SPEC.to_ruby
|
puts GEM_SPEC.to_ruby
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "Generates .gemspec file"
|
||||||
|
task :gemspec do
|
||||||
|
spec_string = GEM_SPEC.to_ruby
|
||||||
|
|
||||||
|
begin
|
||||||
|
Thread.new { eval("$SAFE = 3\n#{spec_string}", binding) }.join
|
||||||
|
rescue
|
||||||
|
abort "unsafe gemspec: #{$!}"
|
||||||
|
else
|
||||||
|
File.open("#{GEM_SPEC.name}.gemspec", 'w') do |file|
|
||||||
|
file.write spec_string
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
desc 'Install the gem'
|
desc 'Install the gem'
|
||||||
task :install => ['clobber', 'gem:package'] do
|
task :install => ['clobber', 'gem:package'] do
|
||||||
sh "#{SUDO} gem install --local pkg/#{GEM_SPEC.full_name}"
|
sh "#{SUDO} gem install --local pkg/#{GEM_SPEC.full_name}"
|
||||||
|
|
Loading…
Reference in New Issue