google-api-client 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ # 0.4.6
2
+
3
+ * Backwards compatibility for MultiJson
4
+
1
5
  # 0.4.5
2
6
 
3
7
  * Updated Launchy dependency
@@ -0,0 +1,17 @@
1
+ gem 'multi_json', '>= 1.0.0'
2
+ require 'multi_json'
3
+
4
+ unless MultiJson.respond_to?(:load)
5
+ module MultiJson
6
+ class <<self
7
+ alias :load :decode
8
+ end
9
+ end
10
+ end
11
+ unless MultiJson.respond_to?(:dump)
12
+ module MultiJson
13
+ class <<self
14
+ alias :dump :encode
15
+ end
16
+ end
17
+ end
@@ -17,6 +17,7 @@ gem 'faraday', '~> 0.8.1'
17
17
  require 'faraday'
18
18
  require 'faraday/utils'
19
19
  require 'multi_json'
20
+ require 'compat/multi_json'
20
21
  require 'stringio'
21
22
 
22
23
  require 'google/api_client/version'
@@ -14,6 +14,7 @@
14
14
 
15
15
 
16
16
  require 'multi_json'
17
+ require 'compat/multi_json'
17
18
 
18
19
 
19
20
  module Google
@@ -15,6 +15,7 @@
15
15
 
16
16
  require 'time'
17
17
  require 'multi_json'
18
+ require 'compat/multi_json'
18
19
  require 'base64'
19
20
  require 'autoparse'
20
21
  require 'addressable/uri'
@@ -17,6 +17,7 @@ gem 'faraday', '~> 0.8.1'
17
17
  require 'faraday'
18
18
  require 'faraday/utils'
19
19
  require 'multi_json'
20
+ require 'compat/multi_json'
20
21
  require 'addressable/uri'
21
22
  require 'stringio'
22
23
  require 'google/api_client/discovery'
@@ -63,7 +64,7 @@ module Google
63
64
  self.headers = options[:headers] || {}
64
65
  if options[:media]
65
66
  self.media = options[:media]
66
- upload_type = parameters['uploadType'] || parameters['upload_type']
67
+ upload_type = self.parameters.find { |(k, _)| ['uploadType', 'upload_type'].include?(k) }.last
67
68
  case upload_type
68
69
  when "media"
69
70
  if options[:body] || options[:body_object]
@@ -22,7 +22,7 @@ if !defined?(::Google::APIClient::VERSION)
22
22
  module VERSION
23
23
  MAJOR = 0
24
24
  MINOR = 4
25
- TINY = 5
25
+ TINY = 6
26
26
 
27
27
  STRING = [MAJOR, MINOR, TINY].join('.')
28
28
  end
@@ -21,6 +21,7 @@ gem 'faraday', '~> 0.8.1'
21
21
  require 'faraday'
22
22
  require 'faraday/utils'
23
23
  require 'multi_json'
24
+ require 'compat/multi_json'
24
25
 
25
26
  gem 'signet', '~> 0.4.0'
26
27
  require 'signet/oauth_1/client'
metadata CHANGED
@@ -1,194 +1,140 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
- version: !ruby/object:Gem::Version
4
- hash: 5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.6
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 5
10
- version: 0.4.5
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Bob Aman
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-07-31 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-09-14 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: signet
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70246409434540 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 13
29
- segments:
30
- - 0
31
- - 4
32
- - 1
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 0.4.1
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: addressable
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70246409434540
25
+ - !ruby/object:Gem::Dependency
26
+ name: addressable
27
+ requirement: &70246409433420 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 7
45
- segments:
46
- - 2
47
- - 3
48
- - 2
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
49
32
  version: 2.3.2
50
33
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: uuidtools
54
34
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70246409433420
36
+ - !ruby/object:Gem::Dependency
37
+ name: uuidtools
38
+ requirement: &70246409432480 !ruby/object:Gem::Requirement
56
39
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 11
61
- segments:
62
- - 2
63
- - 1
64
- - 0
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
65
43
  version: 2.1.0
66
44
  type: :runtime
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: autoparse
70
45
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70246409432480
47
+ - !ruby/object:Gem::Dependency
48
+ name: autoparse
49
+ requirement: &70246409428540 !ruby/object:Gem::Requirement
72
50
  none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 23
77
- segments:
78
- - 0
79
- - 3
80
- - 2
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
81
54
  version: 0.3.2
82
55
  type: :runtime
83
- version_requirements: *id004
84
- - !ruby/object:Gem::Dependency
85
- name: faraday
86
56
  prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *70246409428540
58
+ - !ruby/object:Gem::Dependency
59
+ name: faraday
60
+ requirement: &70246409427660 !ruby/object:Gem::Requirement
88
61
  none: false
89
- requirements:
62
+ requirements:
90
63
  - - ~>
91
- - !ruby/object:Gem::Version
92
- hash: 61
93
- segments:
94
- - 0
95
- - 8
96
- - 1
64
+ - !ruby/object:Gem::Version
97
65
  version: 0.8.1
98
66
  type: :runtime
99
- version_requirements: *id005
100
- - !ruby/object:Gem::Dependency
101
- name: multi_json
102
67
  prerelease: false
103
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *70246409427660
69
+ - !ruby/object:Gem::Dependency
70
+ name: multi_json
71
+ requirement: &70246409412260 !ruby/object:Gem::Requirement
104
72
  none: false
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- hash: 23
109
- segments:
110
- - 1
111
- - 0
112
- - 0
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
113
76
  version: 1.0.0
114
77
  type: :runtime
115
- version_requirements: *id006
116
- - !ruby/object:Gem::Dependency
117
- name: extlib
118
78
  prerelease: false
119
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *70246409412260
80
+ - !ruby/object:Gem::Dependency
81
+ name: extlib
82
+ requirement: &70246409411440 !ruby/object:Gem::Requirement
120
83
  none: false
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- hash: 37
125
- segments:
126
- - 0
127
- - 9
128
- - 15
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
129
87
  version: 0.9.15
130
88
  type: :runtime
131
- version_requirements: *id007
132
- - !ruby/object:Gem::Dependency
133
- name: launchy
134
89
  prerelease: false
135
- requirement: &id008 !ruby/object:Gem::Requirement
90
+ version_requirements: *70246409411440
91
+ - !ruby/object:Gem::Dependency
92
+ name: launchy
93
+ requirement: &70246409410540 !ruby/object:Gem::Requirement
136
94
  none: false
137
- requirements:
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- hash: 9
141
- segments:
142
- - 2
143
- - 1
144
- - 1
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
145
98
  version: 2.1.1
146
99
  type: :runtime
147
- version_requirements: *id008
148
- - !ruby/object:Gem::Dependency
149
- name: rake
150
100
  prerelease: false
151
- requirement: &id009 !ruby/object:Gem::Requirement
101
+ version_requirements: *70246409410540
102
+ - !ruby/object:Gem::Dependency
103
+ name: rake
104
+ requirement: &70246409409820 !ruby/object:Gem::Requirement
152
105
  none: false
153
- requirements:
154
- - - ">="
155
- - !ruby/object:Gem::Version
156
- hash: 59
157
- segments:
158
- - 0
159
- - 9
160
- - 0
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
161
109
  version: 0.9.0
162
110
  type: :development
163
- version_requirements: *id009
164
- - !ruby/object:Gem::Dependency
165
- name: rspec
166
111
  prerelease: false
167
- requirement: &id010 !ruby/object:Gem::Requirement
112
+ version_requirements: *70246409409820
113
+ - !ruby/object:Gem::Dependency
114
+ name: rspec
115
+ requirement: &70246409409120 !ruby/object:Gem::Requirement
168
116
  none: false
169
- requirements:
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- hash: 35
173
- segments:
174
- - 2
175
- - 11
176
- - 0
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
177
120
  version: 2.11.0
178
121
  type: :development
179
- version_requirements: *id010
180
- description: |
181
- The Google API Ruby Client makes it trivial to discover and access supported
122
+ prerelease: false
123
+ version_requirements: *70246409409120
124
+ description: ! 'The Google API Ruby Client makes it trivial to discover and access
125
+ supported
126
+
182
127
  APIs.
183
128
 
129
+ '
184
130
  email: bobaman@google.com
185
- executables:
131
+ executables:
186
132
  - google-api
187
133
  extensions: []
188
-
189
- extra_rdoc_files:
134
+ extra_rdoc_files:
190
135
  - README.md
191
- files:
136
+ files:
137
+ - lib/compat/multi_json.rb
192
138
  - lib/google/api_client/batch.rb
193
139
  - lib/google/api_client/client_secrets.rb
194
140
  - lib/google/api_client/discovery/api.rb
@@ -222,44 +168,34 @@ files:
222
168
  - tasks/yard.rake
223
169
  - CHANGELOG.md
224
170
  - Gemfile
225
- - Gemfile.lock
226
171
  - LICENSE
227
172
  - Rakefile
228
173
  - README.md
229
174
  - bin/google-api
230
175
  homepage: http://code.google.com/p/google-api-ruby-client/
231
176
  licenses: []
232
-
233
177
  post_install_message:
234
- rdoc_options:
178
+ rdoc_options:
235
179
  - --main
236
180
  - README.md
237
- require_paths:
181
+ require_paths:
238
182
  - lib
239
- required_ruby_version: !ruby/object:Gem::Requirement
183
+ required_ruby_version: !ruby/object:Gem::Requirement
240
184
  none: false
241
- requirements:
242
- - - ">="
243
- - !ruby/object:Gem::Version
244
- hash: 3
245
- segments:
246
- - 0
247
- version: "0"
248
- required_rubygems_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ! '>='
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ required_rubygems_version: !ruby/object:Gem::Requirement
249
190
  none: false
250
- requirements:
251
- - - ">="
252
- - !ruby/object:Gem::Version
253
- hash: 3
254
- segments:
255
- - 0
256
- version: "0"
191
+ requirements:
192
+ - - ! '>='
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
257
195
  requirements: []
258
-
259
196
  rubyforge_project:
260
- rubygems_version: 1.8.6
197
+ rubygems_version: 1.8.10
261
198
  signing_key:
262
199
  specification_version: 3
263
200
  summary: Package Summary
264
201
  test_files: []
265
-
@@ -1,80 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- google-api-client (0.4.5)
5
- addressable (>= 2.3.2)
6
- autoparse (>= 0.3.2)
7
- extlib (>= 0.9.15)
8
- faraday (~> 0.8.1)
9
- launchy (>= 2.1.1)
10
- multi_json (>= 1.0.0)
11
- signet (>= 0.4.1)
12
- uuidtools (>= 2.1.0)
13
-
14
- GEM
15
- remote: http://rubygems.org/
16
- specs:
17
- addressable (2.3.2)
18
- autoparse (0.3.2)
19
- addressable (>= 2.3.1)
20
- extlib (>= 0.9.15)
21
- multi_json (>= 1.0.0)
22
- diff-lcs (1.1.3)
23
- extlib (0.9.15)
24
- faraday (0.8.1)
25
- multipart-post (~> 1.1)
26
- idn (0.0.2)
27
- jwt (0.1.5)
28
- multi_json (>= 1.0)
29
- launchy (2.1.1)
30
- addressable (~> 2.3)
31
- multi_json (1.3.6)
32
- multipart-post (1.1.5)
33
- rack (1.4.1)
34
- rack-protection (1.2.0)
35
- rack
36
- rake (0.9.2.2)
37
- rcov (1.0.0)
38
- redcarpet (2.1.1)
39
- rspec (2.11.0)
40
- rspec-core (~> 2.11.0)
41
- rspec-expectations (~> 2.11.0)
42
- rspec-mocks (~> 2.11.0)
43
- rspec-core (2.11.1)
44
- rspec-expectations (2.11.2)
45
- diff-lcs (~> 1.1.3)
46
- rspec-mocks (2.11.1)
47
- signet (0.4.1)
48
- addressable (>= 2.2.3)
49
- faraday (~> 0.8.1)
50
- jwt (>= 0.1.5)
51
- multi_json (>= 1.0.0)
52
- sinatra (1.3.2)
53
- rack (~> 1.3, >= 1.3.6)
54
- rack-protection (~> 1.2)
55
- tilt (~> 1.3, >= 1.3.3)
56
- tilt (1.3.3)
57
- uuidtools (2.1.3)
58
- yard (0.8.2.1)
59
-
60
- PLATFORMS
61
- ruby
62
-
63
- DEPENDENCIES
64
- addressable (>= 2.3.2)
65
- autoparse (>= 0.3.2)
66
- extlib (>= 0.9.15)
67
- faraday (~> 0.8.1)
68
- google-api-client!
69
- idn
70
- jruby-openssl
71
- launchy (>= 2.1.1)
72
- multi_json (>= 1.0.0)
73
- rake (>= 0.9.0)
74
- rcov (>= 0.9.9)
75
- redcarpet
76
- rspec (>= 2.11.0)
77
- signet (>= 0.4.1)
78
- sinatra
79
- uuidtools (>= 2.1.0)
80
- yard