google-api-client 0.6.4 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +14 -0
- data/Gemfile +13 -3
- data/README.md +133 -97
- data/Rakefile +1 -1
- data/lib/cacerts.pem +2183 -0
- data/lib/google/api_client/auth/compute_service_account.rb +28 -0
- data/lib/google/api_client/auth/file_storage.rb +87 -0
- data/lib/google/api_client/auth/installed_app.rb +8 -1
- data/lib/google/api_client/auth/jwt_asserter.rb +0 -11
- data/lib/google/api_client/client_secrets.rb +1 -1
- data/lib/google/api_client/discovery/method.rb +1 -0
- data/lib/google/api_client/errors.rb +11 -0
- data/lib/google/api_client/gzip.rb +28 -0
- data/lib/google/api_client/media.rb +80 -5
- data/lib/google/api_client/request.rb +15 -9
- data/lib/google/api_client/service/batch.rb +103 -0
- data/lib/google/api_client/service/request.rb +144 -0
- data/lib/google/api_client/service/resource.rb +40 -0
- data/lib/google/api_client/service/result.rb +162 -0
- data/lib/google/api_client/service/simple_file_store.rb +151 -0
- data/lib/google/api_client/service/stub_generator.rb +59 -0
- data/lib/google/api_client/service.rb +233 -0
- data/lib/google/api_client/service_account.rb +1 -0
- data/lib/google/api_client/version.rb +4 -3
- data/lib/google/api_client.rb +81 -42
- data/spec/google/api_client/batch_spec.rb +4 -4
- data/spec/google/api_client/discovery_spec.rb +60 -102
- data/spec/google/api_client/gzip_spec.rb +86 -0
- data/spec/google/api_client/media_spec.rb +49 -1
- data/spec/google/api_client/request_spec.rb +30 -0
- data/spec/google/api_client/result_spec.rb +3 -4
- data/spec/google/api_client/service_account_spec.rb +21 -0
- data/spec/google/api_client/service_spec.rb +586 -0
- data/spec/google/api_client/simple_file_store_spec.rb +137 -0
- data/spec/google/api_client_spec.rb +101 -3
- data/spec/spec_helper.rb +3 -0
- data/tasks/gem.rake +3 -4
- metadata +95 -50
- data/bin/google-api +0 -391
- /data/{CONTRIB.md → CONTRIBUTING.md} +0 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# encoding:utf-8
|
|
2
|
+
|
|
3
|
+
# Copyright 2013 Google Inc.
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
require 'spec_helper'
|
|
18
|
+
|
|
19
|
+
require 'google/api_client/service/simple_file_store'
|
|
20
|
+
|
|
21
|
+
describe Google::APIClient::Service::SimpleFileStore do
|
|
22
|
+
|
|
23
|
+
FILE_NAME = 'test.cache'
|
|
24
|
+
|
|
25
|
+
before(:all) do
|
|
26
|
+
File.delete(FILE_NAME) if File.exists?(FILE_NAME)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'with no cache file' do
|
|
30
|
+
before(:each) do
|
|
31
|
+
File.delete(FILE_NAME) if File.exists?(FILE_NAME)
|
|
32
|
+
@cache = Google::APIClient::Service::SimpleFileStore.new(FILE_NAME)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
it 'should return nil when asked if a key exists' do
|
|
36
|
+
@cache.exist?('invalid').should be_nil
|
|
37
|
+
File.exists?(FILE_NAME).should be_false
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
it 'should return nil when asked to read a key' do
|
|
41
|
+
@cache.read('invalid').should be_nil
|
|
42
|
+
File.exists?(FILE_NAME).should be_false
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
it 'should return nil when asked to fetch a key' do
|
|
46
|
+
@cache.fetch('invalid').should be_nil
|
|
47
|
+
File.exists?(FILE_NAME).should be_false
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
it 'should create a cache file when asked to fetch a key with a default' do
|
|
51
|
+
@cache.fetch('new_key') do
|
|
52
|
+
'value'
|
|
53
|
+
end.should == 'value'
|
|
54
|
+
File.exists?(FILE_NAME).should be_true
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
it 'should create a cache file when asked to write a key' do
|
|
58
|
+
@cache.write('new_key', 'value')
|
|
59
|
+
File.exists?(FILE_NAME).should be_true
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
it 'should return nil when asked to delete a key' do
|
|
63
|
+
@cache.delete('invalid').should be_nil
|
|
64
|
+
File.exists?(FILE_NAME).should be_false
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
describe 'with an existing cache' do
|
|
69
|
+
before(:each) do
|
|
70
|
+
File.delete(FILE_NAME) if File.exists?(FILE_NAME)
|
|
71
|
+
@cache = Google::APIClient::Service::SimpleFileStore.new(FILE_NAME)
|
|
72
|
+
@cache.write('existing_key', 'existing_value')
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
it 'should return true when asked if an existing key exists' do
|
|
76
|
+
@cache.exist?('existing_key').should be_true
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
it 'should return false when asked if a nonexistent key exists' do
|
|
80
|
+
@cache.exist?('invalid').should be_false
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
it 'should return the value for an existing key when asked to read it' do
|
|
84
|
+
@cache.read('existing_key').should == 'existing_value'
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
it 'should return nil for a nonexistent key when asked to read it' do
|
|
88
|
+
@cache.read('invalid').should be_nil
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
it 'should return the value for an existing key when asked to read it' do
|
|
92
|
+
@cache.read('existing_key').should == 'existing_value'
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
it 'should return nil for a nonexistent key when asked to fetch it' do
|
|
96
|
+
@cache.fetch('invalid').should be_nil
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
it 'should return and save the default value for a nonexistent key when asked to fetch it with a default' do
|
|
100
|
+
@cache.fetch('new_key') do
|
|
101
|
+
'value'
|
|
102
|
+
end.should == 'value'
|
|
103
|
+
@cache.read('new_key').should == 'value'
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
it 'should remove an existing value and return true when asked to delete it' do
|
|
107
|
+
@cache.delete('existing_key').should be_true
|
|
108
|
+
@cache.read('existing_key').should be_nil
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
it 'should return false when asked to delete a nonexistent key' do
|
|
112
|
+
@cache.delete('invalid').should be_false
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
it 'should convert keys to strings when storing them' do
|
|
116
|
+
@cache.write(:symbol_key, 'value')
|
|
117
|
+
@cache.read('symbol_key').should == 'value'
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
it 'should convert keys to strings when reading them' do
|
|
121
|
+
@cache.read(:existing_key).should == 'existing_value'
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
it 'should convert keys to strings when fetching them' do
|
|
125
|
+
@cache.fetch(:existing_key).should == 'existing_value'
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
it 'should convert keys to strings when deleting them' do
|
|
129
|
+
@cache.delete(:existing_key).should be_true
|
|
130
|
+
@cache.read('existing_key').should be_nil
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
after(:all) do
|
|
135
|
+
File.delete(FILE_NAME) if File.exists?(FILE_NAME)
|
|
136
|
+
end
|
|
137
|
+
end
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
require 'spec_helper'
|
|
16
16
|
|
|
17
17
|
require 'faraday'
|
|
18
|
-
require 'faraday/utils'
|
|
19
18
|
require 'signet/oauth_1/client'
|
|
20
19
|
require 'google/api_client'
|
|
21
20
|
require 'google/api_client/version'
|
|
@@ -36,7 +35,7 @@ shared_examples_for 'configurable user agent' do
|
|
|
36
35
|
it 'should not allow the user agent to be used with bogus values' do
|
|
37
36
|
(lambda do
|
|
38
37
|
client.user_agent = 42
|
|
39
|
-
client.execute(:uri=>'
|
|
38
|
+
client.execute(:uri=>'https://www.google.com/')
|
|
40
39
|
end).should raise_error(TypeError)
|
|
41
40
|
end
|
|
42
41
|
|
|
@@ -51,7 +50,7 @@ shared_examples_for 'configurable user agent' do
|
|
|
51
50
|
[200, {}, ['']]
|
|
52
51
|
end
|
|
53
52
|
end
|
|
54
|
-
client.execute(:uri=>'
|
|
53
|
+
client.execute(:uri=>'https://www.google.com/', :connection => conn)
|
|
55
54
|
conn.verify
|
|
56
55
|
end
|
|
57
56
|
end
|
|
@@ -115,6 +114,7 @@ describe Google::APIClient do
|
|
|
115
114
|
@connection = stub_connection do |stub|
|
|
116
115
|
stub.post('/prediction/v1.2/training?data=12345') do |env|
|
|
117
116
|
env[:request_headers]['Authorization'].should == 'Bearer 12345'
|
|
117
|
+
[200, {}, '{}']
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
end
|
|
@@ -143,6 +143,21 @@ describe Google::APIClient do
|
|
|
143
143
|
)
|
|
144
144
|
end
|
|
145
145
|
|
|
146
|
+
it 'should accept options with batch/request style execute' do
|
|
147
|
+
client.authorization.access_token = "abcdef"
|
|
148
|
+
new_auth = Signet::OAuth2::Client.new(:access_token => '12345')
|
|
149
|
+
request = client.generate_request(
|
|
150
|
+
:api_method => @prediction.training.insert,
|
|
151
|
+
:parameters => {'data' => '12345'}
|
|
152
|
+
)
|
|
153
|
+
client.execute(
|
|
154
|
+
request,
|
|
155
|
+
:authorization => new_auth,
|
|
156
|
+
:connection => @connection
|
|
157
|
+
)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
|
|
146
161
|
it 'should accept options in array style execute' do
|
|
147
162
|
client.authorization.access_token = "abcdef"
|
|
148
163
|
new_auth = Signet::OAuth2::Client.new(:access_token => '12345')
|
|
@@ -152,4 +167,87 @@ describe Google::APIClient do
|
|
|
152
167
|
)
|
|
153
168
|
end
|
|
154
169
|
end
|
|
170
|
+
|
|
171
|
+
describe 'when retiries enabled' do
|
|
172
|
+
before do
|
|
173
|
+
client.retries = 2
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
after do
|
|
177
|
+
@connection.verify
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
it 'should follow redirects' do
|
|
181
|
+
client.authorization = nil
|
|
182
|
+
@connection = stub_connection do |stub|
|
|
183
|
+
stub.get('/foo') do |env|
|
|
184
|
+
[302, {'location' => 'https://www.google.com/bar'}, '{}']
|
|
185
|
+
end
|
|
186
|
+
stub.get('/bar') do |env|
|
|
187
|
+
[200, {}, '{}']
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
client.execute(
|
|
192
|
+
:uri => 'https://www.gogole.com/foo',
|
|
193
|
+
:connection => @connection
|
|
194
|
+
)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
it 'should refresh tokens on 401 tokens' do
|
|
198
|
+
client.authorization.access_token = '12345'
|
|
199
|
+
expect(client.authorization).to receive(:fetch_access_token!)
|
|
200
|
+
|
|
201
|
+
@connection = stub_connection do |stub|
|
|
202
|
+
stub.get('/foo') do |env|
|
|
203
|
+
[401, {}, '{}']
|
|
204
|
+
end
|
|
205
|
+
stub.get('/foo') do |env|
|
|
206
|
+
[200, {}, '{}']
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
client.execute(
|
|
211
|
+
:uri => 'https://www.gogole.com/foo',
|
|
212
|
+
:connection => @connection
|
|
213
|
+
)
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
it 'should retry on 500 errors' do
|
|
217
|
+
client.authorization = nil
|
|
218
|
+
|
|
219
|
+
@connection = stub_connection do |stub|
|
|
220
|
+
stub.get('/foo') do |env|
|
|
221
|
+
[500, {}, '{}']
|
|
222
|
+
end
|
|
223
|
+
stub.get('/foo') do |env|
|
|
224
|
+
[200, {}, '{}']
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
client.execute(
|
|
229
|
+
:uri => 'https://www.gogole.com/foo',
|
|
230
|
+
:connection => @connection
|
|
231
|
+
).status.should == 200
|
|
232
|
+
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
it 'should fail after max retries' do
|
|
236
|
+
client.authorization = nil
|
|
237
|
+
count = 0
|
|
238
|
+
@connection = stub_connection do |stub|
|
|
239
|
+
stub.get('/foo') do |env|
|
|
240
|
+
count += 1
|
|
241
|
+
[500, {}, '{}']
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
client.execute(
|
|
246
|
+
:uri => 'https://www.gogole.com/foo',
|
|
247
|
+
:connection => @connection
|
|
248
|
+
).status.should == 500
|
|
249
|
+
count.should == 3
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
end
|
|
155
253
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -4,6 +4,8 @@ $LOAD_PATH.uniq!
|
|
|
4
4
|
require 'rspec'
|
|
5
5
|
require 'faraday'
|
|
6
6
|
|
|
7
|
+
Faraday::Adapter.load_middleware(:test)
|
|
8
|
+
|
|
7
9
|
module Faraday
|
|
8
10
|
class Connection
|
|
9
11
|
def verify
|
|
@@ -22,6 +24,7 @@ module ConnectionHelpers
|
|
|
22
24
|
block.call(stub)
|
|
23
25
|
end
|
|
24
26
|
connection = Faraday.new do |builder|
|
|
27
|
+
builder.options.params_encoder = Faraday::FlatParamsEncoder
|
|
25
28
|
builder.adapter(:test, stubs)
|
|
26
29
|
end
|
|
27
30
|
end
|
data/tasks/gem.rake
CHANGED
|
@@ -16,19 +16,18 @@ namespace :gem do
|
|
|
16
16
|
s.email = PKG_AUTHOR_EMAIL
|
|
17
17
|
s.summary = PKG_SUMMARY
|
|
18
18
|
s.description = PKG_DESCRIPTION
|
|
19
|
-
|
|
19
|
+
s.license = 'Apache 2.0'
|
|
20
20
|
s.files = PKG_FILES.to_a
|
|
21
|
-
s.executables << 'google-api'
|
|
22
21
|
|
|
23
22
|
s.extra_rdoc_files = %w( README.md )
|
|
24
23
|
s.rdoc_options.concat ['--main', 'README.md']
|
|
25
24
|
|
|
26
25
|
# Dependencies used in the main library
|
|
27
|
-
s.add_runtime_dependency('signet', '
|
|
26
|
+
s.add_runtime_dependency('signet', '>= 0.5.0')
|
|
28
27
|
s.add_runtime_dependency('addressable', '>= 2.3.2')
|
|
29
28
|
s.add_runtime_dependency('uuidtools', '>= 2.1.0')
|
|
30
29
|
s.add_runtime_dependency('autoparse', '>= 0.3.3')
|
|
31
|
-
s.add_runtime_dependency('faraday', '
|
|
30
|
+
s.add_runtime_dependency('faraday', '>= 0.9.0')
|
|
32
31
|
s.add_runtime_dependency('multi_json', '>= 1.0.0')
|
|
33
32
|
s.add_runtime_dependency('extlib', '>= 0.9.15')
|
|
34
33
|
s.add_runtime_dependency('jwt', '>= 0.1.5')
|
metadata
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.7.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Bob Aman
|
|
@@ -10,129 +9,162 @@ authors:
|
|
|
10
9
|
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain: []
|
|
13
|
-
date:
|
|
12
|
+
date: 2014-01-22 00:00:00.000000000 Z
|
|
14
13
|
dependencies:
|
|
15
14
|
- !ruby/object:Gem::Dependency
|
|
16
15
|
name: signet
|
|
17
|
-
requirement:
|
|
18
|
-
none: false
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
19
17
|
requirements:
|
|
20
|
-
- -
|
|
18
|
+
- - ! '>='
|
|
21
19
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 0.
|
|
20
|
+
version: 0.5.0
|
|
23
21
|
type: :runtime
|
|
24
22
|
prerelease: false
|
|
25
|
-
version_requirements:
|
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
24
|
+
requirements:
|
|
25
|
+
- - ! '>='
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: 0.5.0
|
|
26
28
|
- !ruby/object:Gem::Dependency
|
|
27
29
|
name: addressable
|
|
28
|
-
requirement:
|
|
29
|
-
none: false
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
31
|
requirements:
|
|
31
32
|
- - ! '>='
|
|
32
33
|
- !ruby/object:Gem::Version
|
|
33
34
|
version: 2.3.2
|
|
34
35
|
type: :runtime
|
|
35
36
|
prerelease: false
|
|
36
|
-
version_requirements:
|
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - ! '>='
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: 2.3.2
|
|
37
42
|
- !ruby/object:Gem::Dependency
|
|
38
43
|
name: uuidtools
|
|
39
|
-
requirement:
|
|
40
|
-
none: false
|
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
|
41
45
|
requirements:
|
|
42
46
|
- - ! '>='
|
|
43
47
|
- !ruby/object:Gem::Version
|
|
44
48
|
version: 2.1.0
|
|
45
49
|
type: :runtime
|
|
46
50
|
prerelease: false
|
|
47
|
-
version_requirements:
|
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - ! '>='
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: 2.1.0
|
|
48
56
|
- !ruby/object:Gem::Dependency
|
|
49
57
|
name: autoparse
|
|
50
|
-
requirement:
|
|
51
|
-
none: false
|
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
|
52
59
|
requirements:
|
|
53
60
|
- - ! '>='
|
|
54
61
|
- !ruby/object:Gem::Version
|
|
55
62
|
version: 0.3.3
|
|
56
63
|
type: :runtime
|
|
57
64
|
prerelease: false
|
|
58
|
-
version_requirements:
|
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - ! '>='
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: 0.3.3
|
|
59
70
|
- !ruby/object:Gem::Dependency
|
|
60
71
|
name: faraday
|
|
61
|
-
requirement:
|
|
62
|
-
none: false
|
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
|
63
73
|
requirements:
|
|
64
|
-
- -
|
|
74
|
+
- - ! '>='
|
|
65
75
|
- !ruby/object:Gem::Version
|
|
66
|
-
version: 0.
|
|
76
|
+
version: 0.9.0
|
|
67
77
|
type: :runtime
|
|
68
78
|
prerelease: false
|
|
69
|
-
version_requirements:
|
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
80
|
+
requirements:
|
|
81
|
+
- - ! '>='
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
version: 0.9.0
|
|
70
84
|
- !ruby/object:Gem::Dependency
|
|
71
85
|
name: multi_json
|
|
72
|
-
requirement:
|
|
73
|
-
none: false
|
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
|
74
87
|
requirements:
|
|
75
88
|
- - ! '>='
|
|
76
89
|
- !ruby/object:Gem::Version
|
|
77
90
|
version: 1.0.0
|
|
78
91
|
type: :runtime
|
|
79
92
|
prerelease: false
|
|
80
|
-
version_requirements:
|
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
94
|
+
requirements:
|
|
95
|
+
- - ! '>='
|
|
96
|
+
- !ruby/object:Gem::Version
|
|
97
|
+
version: 1.0.0
|
|
81
98
|
- !ruby/object:Gem::Dependency
|
|
82
99
|
name: extlib
|
|
83
|
-
requirement:
|
|
84
|
-
none: false
|
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
|
85
101
|
requirements:
|
|
86
102
|
- - ! '>='
|
|
87
103
|
- !ruby/object:Gem::Version
|
|
88
104
|
version: 0.9.15
|
|
89
105
|
type: :runtime
|
|
90
106
|
prerelease: false
|
|
91
|
-
version_requirements:
|
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
108
|
+
requirements:
|
|
109
|
+
- - ! '>='
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: 0.9.15
|
|
92
112
|
- !ruby/object:Gem::Dependency
|
|
93
113
|
name: jwt
|
|
94
|
-
requirement:
|
|
95
|
-
none: false
|
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
|
96
115
|
requirements:
|
|
97
116
|
- - ! '>='
|
|
98
117
|
- !ruby/object:Gem::Version
|
|
99
118
|
version: 0.1.5
|
|
100
119
|
type: :runtime
|
|
101
120
|
prerelease: false
|
|
102
|
-
version_requirements:
|
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
+
requirements:
|
|
123
|
+
- - ! '>='
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: 0.1.5
|
|
103
126
|
- !ruby/object:Gem::Dependency
|
|
104
127
|
name: launchy
|
|
105
|
-
requirement:
|
|
106
|
-
none: false
|
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
|
107
129
|
requirements:
|
|
108
130
|
- - ! '>='
|
|
109
131
|
- !ruby/object:Gem::Version
|
|
110
132
|
version: 2.1.1
|
|
111
133
|
type: :runtime
|
|
112
134
|
prerelease: false
|
|
113
|
-
version_requirements:
|
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
136
|
+
requirements:
|
|
137
|
+
- - ! '>='
|
|
138
|
+
- !ruby/object:Gem::Version
|
|
139
|
+
version: 2.1.1
|
|
114
140
|
- !ruby/object:Gem::Dependency
|
|
115
141
|
name: rake
|
|
116
|
-
requirement:
|
|
117
|
-
none: false
|
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
|
118
143
|
requirements:
|
|
119
144
|
- - ! '>='
|
|
120
145
|
- !ruby/object:Gem::Version
|
|
121
146
|
version: 0.9.0
|
|
122
147
|
type: :development
|
|
123
148
|
prerelease: false
|
|
124
|
-
version_requirements:
|
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
150
|
+
requirements:
|
|
151
|
+
- - ! '>='
|
|
152
|
+
- !ruby/object:Gem::Version
|
|
153
|
+
version: 0.9.0
|
|
125
154
|
- !ruby/object:Gem::Dependency
|
|
126
155
|
name: rspec
|
|
127
|
-
requirement:
|
|
128
|
-
none: false
|
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
|
129
157
|
requirements:
|
|
130
158
|
- - ! '>='
|
|
131
159
|
- !ruby/object:Gem::Version
|
|
132
160
|
version: 2.11.0
|
|
133
161
|
type: :development
|
|
134
162
|
prerelease: false
|
|
135
|
-
version_requirements:
|
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
164
|
+
requirements:
|
|
165
|
+
- - ! '>='
|
|
166
|
+
- !ruby/object:Gem::Version
|
|
167
|
+
version: 2.11.0
|
|
136
168
|
description: ! 'The Google API Ruby Client makes it trivial to discover and access
|
|
137
169
|
supported
|
|
138
170
|
|
|
@@ -140,14 +172,16 @@ description: ! 'The Google API Ruby Client makes it trivial to discover and acce
|
|
|
140
172
|
|
|
141
173
|
'
|
|
142
174
|
email: sbazyl@google.com
|
|
143
|
-
executables:
|
|
144
|
-
- google-api
|
|
175
|
+
executables: []
|
|
145
176
|
extensions: []
|
|
146
177
|
extra_rdoc_files:
|
|
147
178
|
- README.md
|
|
148
179
|
files:
|
|
180
|
+
- lib/cacerts.pem
|
|
149
181
|
- lib/compat/multi_json.rb
|
|
150
182
|
- lib/google/api_client.rb
|
|
183
|
+
- lib/google/api_client/auth/compute_service_account.rb
|
|
184
|
+
- lib/google/api_client/auth/file_storage.rb
|
|
151
185
|
- lib/google/api_client/auth/installed_app.rb
|
|
152
186
|
- lib/google/api_client/auth/jwt_asserter.rb
|
|
153
187
|
- lib/google/api_client/auth/key_utils.rb
|
|
@@ -162,12 +196,20 @@ files:
|
|
|
162
196
|
- lib/google/api_client/discovery/schema.rb
|
|
163
197
|
- lib/google/api_client/environment.rb
|
|
164
198
|
- lib/google/api_client/errors.rb
|
|
199
|
+
- lib/google/api_client/gzip.rb
|
|
165
200
|
- lib/google/api_client/logging.rb
|
|
166
201
|
- lib/google/api_client/media.rb
|
|
167
202
|
- lib/google/api_client/railtie.rb
|
|
168
203
|
- lib/google/api_client/reference.rb
|
|
169
204
|
- lib/google/api_client/request.rb
|
|
170
205
|
- lib/google/api_client/result.rb
|
|
206
|
+
- lib/google/api_client/service.rb
|
|
207
|
+
- lib/google/api_client/service/batch.rb
|
|
208
|
+
- lib/google/api_client/service/request.rb
|
|
209
|
+
- lib/google/api_client/service/resource.rb
|
|
210
|
+
- lib/google/api_client/service/result.rb
|
|
211
|
+
- lib/google/api_client/service/simple_file_store.rb
|
|
212
|
+
- lib/google/api_client/service/stub_generator.rb
|
|
171
213
|
- lib/google/api_client/service_account.rb
|
|
172
214
|
- lib/google/api_client/version.rb
|
|
173
215
|
- lib/google/inflection.rb
|
|
@@ -176,9 +218,13 @@ files:
|
|
|
176
218
|
- spec/fixtures/files/secret.pem
|
|
177
219
|
- spec/google/api_client/batch_spec.rb
|
|
178
220
|
- spec/google/api_client/discovery_spec.rb
|
|
221
|
+
- spec/google/api_client/gzip_spec.rb
|
|
179
222
|
- spec/google/api_client/media_spec.rb
|
|
223
|
+
- spec/google/api_client/request_spec.rb
|
|
180
224
|
- spec/google/api_client/result_spec.rb
|
|
181
225
|
- spec/google/api_client/service_account_spec.rb
|
|
226
|
+
- spec/google/api_client/service_spec.rb
|
|
227
|
+
- spec/google/api_client/simple_file_store_spec.rb
|
|
182
228
|
- spec/google/api_client_spec.rb
|
|
183
229
|
- spec/spec_helper.rb
|
|
184
230
|
- tasks/gem.rake
|
|
@@ -188,14 +234,15 @@ files:
|
|
|
188
234
|
- tasks/wiki.rake
|
|
189
235
|
- tasks/yard.rake
|
|
190
236
|
- CHANGELOG.md
|
|
191
|
-
-
|
|
237
|
+
- CONTRIBUTING.md
|
|
192
238
|
- Gemfile
|
|
193
239
|
- LICENSE
|
|
194
240
|
- README.md
|
|
195
241
|
- Rakefile
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
242
|
+
homepage: https://github.com/google/google-api-ruby-client
|
|
243
|
+
licenses:
|
|
244
|
+
- Apache 2.0
|
|
245
|
+
metadata: {}
|
|
199
246
|
post_install_message:
|
|
200
247
|
rdoc_options:
|
|
201
248
|
- --main
|
|
@@ -203,21 +250,19 @@ rdoc_options:
|
|
|
203
250
|
require_paths:
|
|
204
251
|
- lib
|
|
205
252
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
206
|
-
none: false
|
|
207
253
|
requirements:
|
|
208
254
|
- - ! '>='
|
|
209
255
|
- !ruby/object:Gem::Version
|
|
210
256
|
version: '0'
|
|
211
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
|
-
none: false
|
|
213
258
|
requirements:
|
|
214
259
|
- - ! '>='
|
|
215
260
|
- !ruby/object:Gem::Version
|
|
216
261
|
version: '0'
|
|
217
262
|
requirements: []
|
|
218
263
|
rubyforge_project:
|
|
219
|
-
rubygems_version:
|
|
264
|
+
rubygems_version: 2.0.7
|
|
220
265
|
signing_key:
|
|
221
|
-
specification_version:
|
|
266
|
+
specification_version: 4
|
|
222
267
|
summary: Package Summary
|
|
223
268
|
test_files: []
|