google-api-client 0.4.7 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +11 -0
- data/Gemfile +6 -1
- data/Gemfile.lock +80 -0
- data/README.md +152 -45
- data/Rakefile +2 -2
- data/bin/google-api +2 -9
- data/lib/compat/multi_json.rb +2 -3
- data/lib/google/api_client.rb +87 -278
- data/lib/google/api_client/auth/jwt_asserter.rb +139 -0
- data/lib/google/api_client/auth/pkcs12.rb +48 -0
- data/lib/google/api_client/batch.rb +164 -136
- data/lib/google/api_client/client_secrets.rb +45 -1
- data/lib/google/api_client/discovery/api.rb +7 -8
- data/lib/google/api_client/discovery/method.rb +20 -27
- data/lib/google/api_client/discovery/resource.rb +16 -10
- data/lib/google/api_client/discovery/schema.rb +2 -0
- data/lib/google/api_client/media.rb +76 -64
- data/lib/google/api_client/reference.rb +7 -285
- data/lib/google/api_client/request.rb +336 -0
- data/lib/google/api_client/result.rb +147 -55
- data/lib/google/api_client/service_account.rb +2 -120
- data/lib/google/api_client/version.rb +2 -3
- data/spec/google/api_client/batch_spec.rb +9 -10
- data/spec/google/api_client/discovery_spec.rb +184 -114
- data/spec/google/api_client/media_spec.rb +27 -39
- data/spec/google/api_client/result_spec.rb +30 -11
- data/spec/google/api_client/service_account_spec.rb +38 -6
- data/spec/google/api_client_spec.rb +48 -32
- data/spec/spec_helper.rb +46 -0
- data/tasks/gem.rake +1 -0
- metadata +36 -70
data/tasks/gem.rake
CHANGED
@@ -31,6 +31,7 @@ namespace :gem do
|
|
31
31
|
s.add_runtime_dependency('faraday', '~> 0.8.1')
|
32
32
|
s.add_runtime_dependency('multi_json', '>= 1.0.0')
|
33
33
|
s.add_runtime_dependency('extlib', '>= 0.9.15')
|
34
|
+
s.add_runtime_dependency('jwt', '>= 0.1.5')
|
34
35
|
|
35
36
|
# Dependencies used in the CLI
|
36
37
|
s.add_runtime_dependency('launchy', '>= 2.1.1')
|
metadata
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Bob Aman
|
9
|
+
- Steve Bazyl
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
13
|
+
date: 2012-10-30 00:00:00.000000000Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: signet
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirement: &70253195775940 !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
20
|
- - ! '>='
|
@@ -21,15 +22,10 @@ dependencies:
|
|
21
22
|
version: 0.4.1
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0.4.1
|
25
|
+
version_requirements: *70253195775940
|
30
26
|
- !ruby/object:Gem::Dependency
|
31
27
|
name: addressable
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
28
|
+
requirement: &70253195774000 !ruby/object:Gem::Requirement
|
33
29
|
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
@@ -37,15 +33,10 @@ dependencies:
|
|
37
33
|
version: 2.3.2
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 2.3.2
|
36
|
+
version_requirements: *70253195774000
|
46
37
|
- !ruby/object:Gem::Dependency
|
47
38
|
name: uuidtools
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirement: &70253195765900 !ruby/object:Gem::Requirement
|
49
40
|
none: false
|
50
41
|
requirements:
|
51
42
|
- - ! '>='
|
@@ -53,15 +44,10 @@ dependencies:
|
|
53
44
|
version: 2.1.0
|
54
45
|
type: :runtime
|
55
46
|
prerelease: false
|
56
|
-
version_requirements:
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 2.1.0
|
47
|
+
version_requirements: *70253195765900
|
62
48
|
- !ruby/object:Gem::Dependency
|
63
49
|
name: autoparse
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirement: &70253195764740 !ruby/object:Gem::Requirement
|
65
51
|
none: false
|
66
52
|
requirements:
|
67
53
|
- - ! '>='
|
@@ -69,15 +55,10 @@ dependencies:
|
|
69
55
|
version: 0.3.2
|
70
56
|
type: :runtime
|
71
57
|
prerelease: false
|
72
|
-
version_requirements:
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 0.3.2
|
58
|
+
version_requirements: *70253195764740
|
78
59
|
- !ruby/object:Gem::Dependency
|
79
60
|
name: faraday
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
61
|
+
requirement: &70253195763760 !ruby/object:Gem::Requirement
|
81
62
|
none: false
|
82
63
|
requirements:
|
83
64
|
- - ~>
|
@@ -85,15 +66,10 @@ dependencies:
|
|
85
66
|
version: 0.8.1
|
86
67
|
type: :runtime
|
87
68
|
prerelease: false
|
88
|
-
version_requirements:
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ~>
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: 0.8.1
|
69
|
+
version_requirements: *70253195763760
|
94
70
|
- !ruby/object:Gem::Dependency
|
95
71
|
name: multi_json
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirement: &70253195762140 !ruby/object:Gem::Requirement
|
97
73
|
none: false
|
98
74
|
requirements:
|
99
75
|
- - ! '>='
|
@@ -101,15 +77,10 @@ dependencies:
|
|
101
77
|
version: 1.0.0
|
102
78
|
type: :runtime
|
103
79
|
prerelease: false
|
104
|
-
version_requirements:
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 1.0.0
|
80
|
+
version_requirements: *70253195762140
|
110
81
|
- !ruby/object:Gem::Dependency
|
111
82
|
name: extlib
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
83
|
+
requirement: &70253195760160 !ruby/object:Gem::Requirement
|
113
84
|
none: false
|
114
85
|
requirements:
|
115
86
|
- - ! '>='
|
@@ -117,15 +88,21 @@ dependencies:
|
|
117
88
|
version: 0.9.15
|
118
89
|
type: :runtime
|
119
90
|
prerelease: false
|
120
|
-
version_requirements:
|
91
|
+
version_requirements: *70253195760160
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: jwt
|
94
|
+
requirement: &70253195750640 !ruby/object:Gem::Requirement
|
121
95
|
none: false
|
122
96
|
requirements:
|
123
97
|
- - ! '>='
|
124
98
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.
|
99
|
+
version: 0.1.5
|
100
|
+
type: :runtime
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *70253195750640
|
126
103
|
- !ruby/object:Gem::Dependency
|
127
104
|
name: launchy
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
105
|
+
requirement: &70253195745420 !ruby/object:Gem::Requirement
|
129
106
|
none: false
|
130
107
|
requirements:
|
131
108
|
- - ! '>='
|
@@ -133,15 +110,10 @@ dependencies:
|
|
133
110
|
version: 2.1.1
|
134
111
|
type: :runtime
|
135
112
|
prerelease: false
|
136
|
-
version_requirements:
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- - ! '>='
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: 2.1.1
|
113
|
+
version_requirements: *70253195745420
|
142
114
|
- !ruby/object:Gem::Dependency
|
143
115
|
name: rake
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirement: &70253195733560 !ruby/object:Gem::Requirement
|
145
117
|
none: false
|
146
118
|
requirements:
|
147
119
|
- - ! '>='
|
@@ -149,15 +121,10 @@ dependencies:
|
|
149
121
|
version: 0.9.0
|
150
122
|
type: :development
|
151
123
|
prerelease: false
|
152
|
-
version_requirements:
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - ! '>='
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: 0.9.0
|
124
|
+
version_requirements: *70253195733560
|
158
125
|
- !ruby/object:Gem::Dependency
|
159
126
|
name: rspec
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
127
|
+
requirement: &70253195725940 !ruby/object:Gem::Requirement
|
161
128
|
none: false
|
162
129
|
requirements:
|
163
130
|
- - ! '>='
|
@@ -165,19 +132,14 @@ dependencies:
|
|
165
132
|
version: 2.11.0
|
166
133
|
type: :development
|
167
134
|
prerelease: false
|
168
|
-
version_requirements:
|
169
|
-
none: false
|
170
|
-
requirements:
|
171
|
-
- - ! '>='
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: 2.11.0
|
135
|
+
version_requirements: *70253195725940
|
174
136
|
description: ! 'The Google API Ruby Client makes it trivial to discover and access
|
175
137
|
supported
|
176
138
|
|
177
139
|
APIs.
|
178
140
|
|
179
141
|
'
|
180
|
-
email:
|
142
|
+
email: sbazyl@google.com
|
181
143
|
executables:
|
182
144
|
- google-api
|
183
145
|
extensions: []
|
@@ -185,6 +147,8 @@ extra_rdoc_files:
|
|
185
147
|
- README.md
|
186
148
|
files:
|
187
149
|
- lib/compat/multi_json.rb
|
150
|
+
- lib/google/api_client/auth/jwt_asserter.rb
|
151
|
+
- lib/google/api_client/auth/pkcs12.rb
|
188
152
|
- lib/google/api_client/batch.rb
|
189
153
|
- lib/google/api_client/client_secrets.rb
|
190
154
|
- lib/google/api_client/discovery/api.rb
|
@@ -197,6 +161,7 @@ files:
|
|
197
161
|
- lib/google/api_client/errors.rb
|
198
162
|
- lib/google/api_client/media.rb
|
199
163
|
- lib/google/api_client/reference.rb
|
164
|
+
- lib/google/api_client/request.rb
|
200
165
|
- lib/google/api_client/result.rb
|
201
166
|
- lib/google/api_client/service_account.rb
|
202
167
|
- lib/google/api_client/version.rb
|
@@ -218,6 +183,7 @@ files:
|
|
218
183
|
- tasks/yard.rake
|
219
184
|
- CHANGELOG.md
|
220
185
|
- Gemfile
|
186
|
+
- Gemfile.lock
|
221
187
|
- LICENSE
|
222
188
|
- Rakefile
|
223
189
|
- README.md
|
@@ -244,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
210
|
version: '0'
|
245
211
|
requirements: []
|
246
212
|
rubyforge_project:
|
247
|
-
rubygems_version: 1.8.
|
213
|
+
rubygems_version: 1.8.10
|
248
214
|
signing_key:
|
249
215
|
specification_version: 3
|
250
216
|
summary: Package Summary
|