google-api-client 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/Gemfile +28 -0
- data/Gemfile.lock +61 -0
- data/README.md +3 -0
- data/Rakefile +1 -1
- data/lib/google/api_client.rb +93 -40
- data/lib/google/api_client/batch.rb +296 -0
- data/lib/google/api_client/client_secrets.rb +2 -2
- data/lib/google/api_client/discovery/api.rb +15 -0
- data/lib/google/api_client/discovery/method.rb +40 -16
- data/lib/google/api_client/errors.rb +4 -0
- data/lib/google/api_client/reference.rb +12 -2
- data/lib/google/api_client/result.rb +1 -1
- data/lib/google/api_client/service_account.rb +134 -0
- data/lib/google/api_client/version.rb +1 -1
- data/spec/fixtures/files/sample.txt +33 -0
- data/spec/google/api_client/batch_spec.rb +237 -0
- data/spec/google/api_client/discovery_spec.rb +189 -1
- data/spec/google/api_client/media_spec.rb +136 -0
- data/spec/google/api_client/result_spec.rb +150 -0
- data/spec/google/api_client/service_account_spec.rb +58 -0
- data/spec/google/api_client_spec.rb +30 -0
- data/tasks/gem.rake +3 -3
- data/tasks/spec.rake +3 -3
- data/tasks/wiki.rake +1 -1
- metadata +122 -117
- data/tasks/rdoc.rake +0 -30
data/tasks/rdoc.rake
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
begin
|
3
|
-
# We prefer to use the RDoc gem over the site version.
|
4
|
-
gem 'rdoc'
|
5
|
-
rescue Gem::LoadError
|
6
|
-
end unless defined?(RDoc)
|
7
|
-
|
8
|
-
require 'rdoc/task'
|
9
|
-
require 'rake/clean'
|
10
|
-
|
11
|
-
CLOBBER.include('doc', 'ri')
|
12
|
-
CLOBBER.uniq!
|
13
|
-
|
14
|
-
namespace :doc do
|
15
|
-
desc 'Generate RDoc documentation'
|
16
|
-
RDoc::Task.new do |rdoc|
|
17
|
-
rdoc.rdoc_dir = 'doc'
|
18
|
-
rdoc.title = "#{PKG_NAME}-#{PKG_VERSION} Documentation"
|
19
|
-
rdoc.options << '--line-numbers' << 'cattr_accessor=object' <<
|
20
|
-
'--charset' << 'utf-8'
|
21
|
-
rdoc.template = "#{ENV['template']}.rb" if ENV['template']
|
22
|
-
rdoc.rdoc_files.include('README.md', 'CHANGELOG.md', 'LICENSE')
|
23
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
24
|
-
end
|
25
|
-
|
26
|
-
desc 'Generate ri locally for testing'
|
27
|
-
task :ri do
|
28
|
-
sh 'rdoc --ri -o ri .'
|
29
|
-
end
|
30
|
-
end
|