chute 2.1.3 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/chute.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "chute"
8
- s.version = "2.1.3"
8
+ s.version = "2.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Darko Grozdanovski", "Chris Burkhart", "Petr Bela"]
12
- s.date = "2013-09-19"
12
+ s.date = "2013-10-24"
13
13
  s.description = "wrapper for the API for getchute.com"
14
14
  s.email = "support@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -81,6 +81,7 @@ Gem::Specification.new do |s|
81
81
  "spec/fixtures/chute_cassettes/campaigns/campaign_get.yml",
82
82
  "spec/fixtures/chute_cassettes/campaigns/campaigns.yml",
83
83
  "spec/fixtures/chute_cassettes/campaigns/campaigns_create.yml",
84
+ "spec/fixtures/chute_cassettes/campaigns/storage.yml",
84
85
  "spec/fixtures/chute_cassettes/comments/comments_create.yml",
85
86
  "spec/fixtures/chute_cassettes/comments/comments_list.yml",
86
87
  "spec/fixtures/chute_cassettes/flags/flags_methods.yml",
@@ -17,6 +17,20 @@ module Chute
17
17
  Chute::Client.post("/v2/campaigns", :campaign => campaign)
18
18
  end
19
19
 
20
+ [:temp, :private, :public].each do |type|
21
+ define_method "#{type}_storage_create" do |campaign_id, data|
22
+ Chute::Client.post("/v2/campaigns/#{campaign_id}/store/#{type}", data)
23
+ end
24
+
25
+ define_method "#{type}_storage_update" do |campaign_id, store_id, data|
26
+ Chute::Client.put("/v2/campaigns/#{campaign_id}/store/#{type}/#{store_id}", data)
27
+ end
28
+
29
+ define_method "#{type}_storage_find" do |campaign_id, store_id|
30
+ Chute::Client.get("/v2/campaigns/#{campaign_id}/store/#{type}/#{store_id}")
31
+ end
32
+ end
33
+
20
34
  end
21
35
  end
22
36
  end
data/lib/chute/version.rb CHANGED
@@ -2,7 +2,7 @@ module Chute
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- PATCH = 3
5
+ PATCH = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
@@ -64,6 +64,39 @@ describe Chute::V2::Campaigns do
64
64
  end
65
65
  end
66
66
 
67
+ describe "storage endpoints" do
68
+ before do
69
+ VCR.insert_cassette 'campaigns/storage', :record => :new_episodes
70
+ end
71
+ after do
72
+ VCR.eject_cassette
73
+ end
74
+
75
+ let(:id) { Chute::V2::Campaigns.create({:name => "Created Campaign"}).data.id }
76
+
77
+ [:temp, :private, :public].each do |storage_type|
78
+ it "Test #{storage_type} storage flow" do
79
+ response = Chute::V2::Campaigns.send("#{storage_type}_storage_create", id, {a: "b"})
80
+ @id = response.data.id
81
+ response.data.should_not == nil
82
+ end
83
+
84
+ it "GET #{storage_type} storage" do
85
+ response = Chute::V2::Campaigns.send("#{storage_type}_storage_create", id, {a: "b"})
86
+ @id = response.data.id
87
+ response = Chute::V2::Campaigns.send("#{storage_type}_storage_find", id, @id)
88
+ response.data.id.should == @id
89
+ end
90
+
91
+ it "PUT #{storage_type} storage" do
92
+ response = Chute::V2::Campaigns.send("#{storage_type}_storage_create", id, {a: "b"})
93
+ @id = response.data.id
94
+ response = Chute::V2::Campaigns.send("#{storage_type}_storage_update", id, @id, {b: "c"})
95
+ JSON.parse(response.data.value).should == {"b" => "c"}
96
+ end
97
+ end
98
+ end
99
+
67
100
  end
68
101
 
69
102
  end
@@ -0,0 +1,830 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.getchute.com/v2/campaigns
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"campaign":{"name":"Created Campaign"}}'
9
+ headers:
10
+ Authorization:
11
+ - Bearer API KEY
12
+ Content-Type:
13
+ - application/json
14
+ Accepts:
15
+ - application/json
16
+ X-Client-Id:
17
+ - 508fc620018d162a070000d6
18
+ response:
19
+ status:
20
+ code: 201
21
+ message: Created
22
+ headers:
23
+ Cache-Control:
24
+ - max-age=0, private, must-revalidate
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Thu, 24 Oct 2013 21:31:58 GMT
29
+ Etag:
30
+ - ! '"159edd8b2943a13422b97c199ae8a34b"'
31
+ Last-Modified:
32
+ - Thu, 24 Oct 2013 21:31:58 GMT
33
+ Server:
34
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
35
+ Status:
36
+ - '201'
37
+ X-Powered-By:
38
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
39
+ X-Rack-Cache:
40
+ - invalidate, pass
41
+ X-Request-Id:
42
+ - 8f5b4dd3e2ddbb5ae30eabf9ae20e06e
43
+ X-Runtime:
44
+ - '0.061859'
45
+ X-Ua-Compatible:
46
+ - IE=Edge,chrome=1
47
+ Transfer-Encoding:
48
+ - chunked
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ! '{"response":{"title":"Campaign Details","version":2,"code":201,"href":"https://api.getchute.com/v2/campaigns"},"data":{"id":312,"links":{"self":{"href":"http://api.getchute.com/v2/campaigns/312","title":"Campaign
54
+ Details"}},"created_at":"2013-10-24T21:31:58Z","updated_at":"2013-10-24T21:31:58Z","name":"Created
55
+ Campaign","start_date":null,"end_date":null,"s3_access_key":null,"s3_bucket":null,"s3_secret":null,"ftp_hostname":null,"ftp_username":null,"ftp_password":null,"app_id_facebook":null,"app_secret_facebook":null,"app_id_flickr":null,"app_secret_flickr":null,"app_id_instagram":null,"app_secret_instagram":null,"app_id_google":null,"app_secret_google":null,"users":[{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
56
+ Details"}},"created_at":"2012-01-17T19:53:39Z","updated_at":"2012-09-15T10:55:51Z","name":"darko1002001","username":"darko1002001","avatar":"http://static.getchute.com/v1/images/avatar-100x100.png","profile":null,"email":"darko@getchute.com","status":"verified"}]}}'
57
+ http_version:
58
+ recorded_at: Thu, 24 Oct 2013 21:31:58 GMT
59
+ - request:
60
+ method: post
61
+ uri: https://api.getchute.com/v2/campaigns/312/store/temp
62
+ body:
63
+ encoding: UTF-8
64
+ string: ! '{"a":"b"}'
65
+ headers:
66
+ Authorization:
67
+ - Bearer API KEY
68
+ Content-Type:
69
+ - application/json
70
+ Accepts:
71
+ - application/json
72
+ X-Client-Id:
73
+ - 508fc620018d162a070000d6
74
+ response:
75
+ status:
76
+ code: 201
77
+ message: Created
78
+ headers:
79
+ Cache-Control:
80
+ - max-age=0, private, must-revalidate
81
+ Content-Type:
82
+ - application/json; charset=utf-8
83
+ Date:
84
+ - Thu, 24 Oct 2013 21:31:59 GMT
85
+ Etag:
86
+ - ! '"57672d26d8b2643412d0b75ea9e6c6a8"'
87
+ Last-Modified:
88
+ - Thu, 24 Oct 2013 21:31:59 GMT
89
+ Server:
90
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
91
+ Status:
92
+ - '201'
93
+ X-Powered-By:
94
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
95
+ X-Rack-Cache:
96
+ - invalidate, pass
97
+ X-Request-Id:
98
+ - 51041b8a5b1c3f5ca471331d6379c653
99
+ X-Runtime:
100
+ - '0.057823'
101
+ X-Ua-Compatible:
102
+ - IE=Edge,chrome=1
103
+ Content-Length:
104
+ - '343'
105
+ Connection:
106
+ - keep-alive
107
+ body:
108
+ encoding: US-ASCII
109
+ string: ! '{"response":{"title":"Stores::Temp Details","version":2,"code":201,"href":"https://api.getchute.com/v2/campaigns/312/store/temp"},"data":{"id":"526991cf8a9eb036ef000001","created_at":"2013-10-24T21:31:59Z","updated_at":"2013-10-24T21:31:59Z","value":"{\"a\":\"b\"}","url":"http://s3.amazonaws.com/store.getchute.com/526991cf8a9eb036ef000001"}}'
110
+ http_version:
111
+ recorded_at: Thu, 24 Oct 2013 21:31:59 GMT
112
+ - request:
113
+ method: get
114
+ uri: https://api.getchute.com/v2/campaigns/312/store/temp/526991cf8a9eb036ef000001
115
+ body:
116
+ encoding: UTF-8
117
+ string: ! '{}'
118
+ headers:
119
+ Authorization:
120
+ - Bearer API KEY
121
+ Content-Type:
122
+ - application/json
123
+ Accepts:
124
+ - application/json
125
+ X-Client-Id:
126
+ - 508fc620018d162a070000d6
127
+ response:
128
+ status:
129
+ code: 200
130
+ message: OK
131
+ headers:
132
+ Cache-Control:
133
+ - must-revalidate, private, max-age=0
134
+ Content-Type:
135
+ - application/json; charset=utf-8
136
+ Date:
137
+ - Thu, 24 Oct 2013 21:31:59 GMT
138
+ Etag:
139
+ - ! '"57672d26d8b2643412d0b75ea9e6c6a8"'
140
+ Last-Modified:
141
+ - Thu, 24 Oct 2013 21:31:59 GMT
142
+ Server:
143
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
144
+ Status:
145
+ - '200'
146
+ X-Powered-By:
147
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
148
+ X-Rack-Cache:
149
+ - miss
150
+ X-Request-Id:
151
+ - b018940c7d0fa195e305147c23935a72
152
+ X-Runtime:
153
+ - '0.022160'
154
+ X-Ua-Compatible:
155
+ - IE=Edge,chrome=1
156
+ Content-Length:
157
+ - '368'
158
+ Connection:
159
+ - keep-alive
160
+ body:
161
+ encoding: US-ASCII
162
+ string: ! '{"response":{"title":"Stores::Temp Details","version":2,"code":200,"href":"https://api.getchute.com/v2/campaigns/312/store/temp/526991cf8a9eb036ef000001"},"data":{"id":"526991cf8a9eb036ef000001","created_at":"2013-10-24T21:31:59Z","updated_at":"2013-10-24T21:31:59Z","value":"{\"a\":\"b\"}","url":"http://s3.amazonaws.com/store.getchute.com/526991cf8a9eb036ef000001"}}'
163
+ http_version:
164
+ recorded_at: Thu, 24 Oct 2013 21:31:59 GMT
165
+ - request:
166
+ method: put
167
+ uri: https://api.getchute.com/v2/campaigns/312/store/temp/526991cf8a9eb036ef000001
168
+ body:
169
+ encoding: UTF-8
170
+ string: ! '{"b":"c"}'
171
+ headers:
172
+ Authorization:
173
+ - Bearer API KEY
174
+ Content-Type:
175
+ - application/json
176
+ Accepts:
177
+ - application/json
178
+ X-Client-Id:
179
+ - 508fc620018d162a070000d6
180
+ response:
181
+ status:
182
+ code: 200
183
+ message: OK
184
+ headers:
185
+ Cache-Control:
186
+ - max-age=0, private, must-revalidate
187
+ Content-Type:
188
+ - application/json; charset=utf-8
189
+ Date:
190
+ - Thu, 24 Oct 2013 21:32:00 GMT
191
+ Etag:
192
+ - ! '"57672d26d8b2643412d0b75ea9e6c6a8"'
193
+ Last-Modified:
194
+ - Thu, 24 Oct 2013 21:32:00 GMT
195
+ Server:
196
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
197
+ Status:
198
+ - '200'
199
+ X-Powered-By:
200
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
201
+ X-Rack-Cache:
202
+ - invalidate, pass
203
+ X-Request-Id:
204
+ - 8a3e7965c82231f0ce45ae821b2d4df6
205
+ X-Runtime:
206
+ - '0.054690'
207
+ X-Ua-Compatible:
208
+ - IE=Edge,chrome=1
209
+ Content-Length:
210
+ - '368'
211
+ Connection:
212
+ - keep-alive
213
+ body:
214
+ encoding: US-ASCII
215
+ string: ! '{"response":{"title":"Stores::Temp Details","version":2,"code":200,"href":"https://api.getchute.com/v2/campaigns/312/store/temp/526991cf8a9eb036ef000001"},"data":{"id":"526991cf8a9eb036ef000001","created_at":"2013-10-24T21:31:59Z","updated_at":"2013-10-24T21:32:00Z","value":"{\"b\":\"c\"}","url":"http://s3.amazonaws.com/store.getchute.com/526991cf8a9eb036ef000001"}}'
216
+ http_version:
217
+ recorded_at: Thu, 24 Oct 2013 21:32:00 GMT
218
+ - request:
219
+ method: post
220
+ uri: https://api.getchute.com/v2/campaigns/312/store/private
221
+ body:
222
+ encoding: UTF-8
223
+ string: ! '{"a":"b"}'
224
+ headers:
225
+ Authorization:
226
+ - Bearer API KEY
227
+ Content-Type:
228
+ - application/json
229
+ Accepts:
230
+ - application/json
231
+ X-Client-Id:
232
+ - 508fc620018d162a070000d6
233
+ response:
234
+ status:
235
+ code: 201
236
+ message: Created
237
+ headers:
238
+ Cache-Control:
239
+ - max-age=0, private, must-revalidate
240
+ Content-Type:
241
+ - application/json; charset=utf-8
242
+ Date:
243
+ - Thu, 24 Oct 2013 21:32:01 GMT
244
+ Etag:
245
+ - ! '"13217ec840916f534039aa85400a2328"'
246
+ Last-Modified:
247
+ - Thu, 24 Oct 2013 21:32:01 GMT
248
+ Server:
249
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
250
+ Status:
251
+ - '201'
252
+ X-Powered-By:
253
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
254
+ X-Rack-Cache:
255
+ - invalidate, pass
256
+ X-Request-Id:
257
+ - 7cc9dc089af1dda88f9dbda0d30f38e4
258
+ X-Runtime:
259
+ - '0.032817'
260
+ X-Ua-Compatible:
261
+ - IE=Edge,chrome=1
262
+ Content-Length:
263
+ - '284'
264
+ Connection:
265
+ - keep-alive
266
+ body:
267
+ encoding: US-ASCII
268
+ string: ! '{"response":{"title":"Stores::Private Details","version":2,"code":201,"href":"https://api.getchute.com/v2/campaigns/312/store/private"},"data":{"id":"526991d18a9eb036ef000002","created_at":"2013-10-24T21:32:01Z","updated_at":"2013-10-24T21:32:01Z","value":"{\"a\":\"b\"}","url":null}}'
269
+ http_version:
270
+ recorded_at: Thu, 24 Oct 2013 21:32:00 GMT
271
+ - request:
272
+ method: get
273
+ uri: https://api.getchute.com/v2/campaigns/312/store/private/526991d18a9eb036ef000002
274
+ body:
275
+ encoding: UTF-8
276
+ string: ! '{}'
277
+ headers:
278
+ Authorization:
279
+ - Bearer API KEY
280
+ Content-Type:
281
+ - application/json
282
+ Accepts:
283
+ - application/json
284
+ X-Client-Id:
285
+ - 508fc620018d162a070000d6
286
+ response:
287
+ status:
288
+ code: 200
289
+ message: OK
290
+ headers:
291
+ Cache-Control:
292
+ - must-revalidate, private, max-age=0
293
+ Content-Type:
294
+ - application/json; charset=utf-8
295
+ Date:
296
+ - Thu, 24 Oct 2013 21:32:02 GMT
297
+ Etag:
298
+ - ! '"13217ec840916f534039aa85400a2328"'
299
+ Last-Modified:
300
+ - Thu, 24 Oct 2013 21:32:01 GMT
301
+ Server:
302
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
303
+ Status:
304
+ - '200'
305
+ X-Powered-By:
306
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
307
+ X-Rack-Cache:
308
+ - miss
309
+ X-Request-Id:
310
+ - 7b43ca413ea2ca6f3b07669aca1abc01
311
+ X-Runtime:
312
+ - '0.158664'
313
+ X-Ua-Compatible:
314
+ - IE=Edge,chrome=1
315
+ Content-Length:
316
+ - '309'
317
+ Connection:
318
+ - keep-alive
319
+ body:
320
+ encoding: US-ASCII
321
+ string: ! '{"response":{"title":"Stores::Private Details","version":2,"code":200,"href":"https://api.getchute.com/v2/campaigns/312/store/private/526991d18a9eb036ef000002"},"data":{"id":"526991d18a9eb036ef000002","created_at":"2013-10-24T21:32:01Z","updated_at":"2013-10-24T21:32:01Z","value":"{\"a\":\"b\"}","url":null}}'
322
+ http_version:
323
+ recorded_at: Thu, 24 Oct 2013 21:32:01 GMT
324
+ - request:
325
+ method: put
326
+ uri: https://api.getchute.com/v2/campaigns/312/store/private/526991d18a9eb036ef000002
327
+ body:
328
+ encoding: UTF-8
329
+ string: ! '{"b":"c"}'
330
+ headers:
331
+ Authorization:
332
+ - Bearer API KEY
333
+ Content-Type:
334
+ - application/json
335
+ Accepts:
336
+ - application/json
337
+ X-Client-Id:
338
+ - 508fc620018d162a070000d6
339
+ response:
340
+ status:
341
+ code: 200
342
+ message: OK
343
+ headers:
344
+ Cache-Control:
345
+ - max-age=0, private, must-revalidate
346
+ Content-Type:
347
+ - application/json; charset=utf-8
348
+ Date:
349
+ - Thu, 24 Oct 2013 21:32:02 GMT
350
+ Etag:
351
+ - ! '"13217ec840916f534039aa85400a2328"'
352
+ Last-Modified:
353
+ - Thu, 24 Oct 2013 21:32:02 GMT
354
+ Server:
355
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
356
+ Status:
357
+ - '200'
358
+ X-Powered-By:
359
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
360
+ X-Rack-Cache:
361
+ - invalidate, pass
362
+ X-Request-Id:
363
+ - 28fbca1afd97426449ea0c484a6d3939
364
+ X-Runtime:
365
+ - '0.041037'
366
+ X-Ua-Compatible:
367
+ - IE=Edge,chrome=1
368
+ Content-Length:
369
+ - '309'
370
+ Connection:
371
+ - keep-alive
372
+ body:
373
+ encoding: US-ASCII
374
+ string: ! '{"response":{"title":"Stores::Private Details","version":2,"code":200,"href":"https://api.getchute.com/v2/campaigns/312/store/private/526991d18a9eb036ef000002"},"data":{"id":"526991d18a9eb036ef000002","created_at":"2013-10-24T21:32:01Z","updated_at":"2013-10-24T21:32:02Z","value":"{\"b\":\"c\"}","url":null}}'
375
+ http_version:
376
+ recorded_at: Thu, 24 Oct 2013 21:32:02 GMT
377
+ - request:
378
+ method: post
379
+ uri: https://api.getchute.com/v2/campaigns/312/store/public
380
+ body:
381
+ encoding: UTF-8
382
+ string: ! '{"a":"b"}'
383
+ headers:
384
+ Authorization:
385
+ - Bearer API KEY
386
+ Content-Type:
387
+ - application/json
388
+ Accepts:
389
+ - application/json
390
+ X-Client-Id:
391
+ - 508fc620018d162a070000d6
392
+ response:
393
+ status:
394
+ code: 201
395
+ message: Created
396
+ headers:
397
+ Cache-Control:
398
+ - max-age=0, private, must-revalidate
399
+ Content-Type:
400
+ - application/json; charset=utf-8
401
+ Date:
402
+ - Thu, 24 Oct 2013 21:32:03 GMT
403
+ Etag:
404
+ - ! '"9ead386fed08d0052e65de9ef3e34b2c"'
405
+ Last-Modified:
406
+ - Thu, 24 Oct 2013 21:32:03 GMT
407
+ Server:
408
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
409
+ Status:
410
+ - '201'
411
+ X-Powered-By:
412
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
413
+ X-Rack-Cache:
414
+ - invalidate, pass
415
+ X-Request-Id:
416
+ - 4be9acfd0bca45ed265493970debffa5
417
+ X-Runtime:
418
+ - '0.139704'
419
+ X-Ua-Compatible:
420
+ - IE=Edge,chrome=1
421
+ Content-Length:
422
+ - '347'
423
+ Connection:
424
+ - keep-alive
425
+ body:
426
+ encoding: US-ASCII
427
+ string: ! '{"response":{"title":"Stores::Public Details","version":2,"code":201,"href":"https://api.getchute.com/v2/campaigns/312/store/public"},"data":{"id":"526991d38a9eb036ef000003","created_at":"2013-10-24T21:32:03Z","updated_at":"2013-10-24T21:32:03Z","value":"{\"a\":\"b\"}","url":"http://s3.amazonaws.com/store.getchute.com/526991d38a9eb036ef000003"}}'
428
+ http_version:
429
+ recorded_at: Thu, 24 Oct 2013 21:32:03 GMT
430
+ - request:
431
+ method: get
432
+ uri: https://api.getchute.com/v2/campaigns/312/store/public/526991d38a9eb036ef000003
433
+ body:
434
+ encoding: UTF-8
435
+ string: ! '{}'
436
+ headers:
437
+ Authorization:
438
+ - Bearer API KEY
439
+ Content-Type:
440
+ - application/json
441
+ Accepts:
442
+ - application/json
443
+ X-Client-Id:
444
+ - 508fc620018d162a070000d6
445
+ response:
446
+ status:
447
+ code: 200
448
+ message: OK
449
+ headers:
450
+ Cache-Control:
451
+ - must-revalidate, private, max-age=0
452
+ Content-Type:
453
+ - application/json; charset=utf-8
454
+ Date:
455
+ - Thu, 24 Oct 2013 21:32:04 GMT
456
+ Etag:
457
+ - ! '"9ead386fed08d0052e65de9ef3e34b2c"'
458
+ Last-Modified:
459
+ - Thu, 24 Oct 2013 21:32:03 GMT
460
+ Server:
461
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
462
+ Status:
463
+ - '200'
464
+ X-Powered-By:
465
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
466
+ X-Rack-Cache:
467
+ - miss
468
+ X-Request-Id:
469
+ - 0f7d68f9ebbfec19aa2f0d477f2d44fa
470
+ X-Runtime:
471
+ - '0.054616'
472
+ X-Ua-Compatible:
473
+ - IE=Edge,chrome=1
474
+ Content-Length:
475
+ - '372'
476
+ Connection:
477
+ - keep-alive
478
+ body:
479
+ encoding: US-ASCII
480
+ string: ! '{"response":{"title":"Stores::Public Details","version":2,"code":200,"href":"https://api.getchute.com/v2/campaigns/312/store/public/526991d38a9eb036ef000003"},"data":{"id":"526991d38a9eb036ef000003","created_at":"2013-10-24T21:32:03Z","updated_at":"2013-10-24T21:32:03Z","value":"{\"a\":\"b\"}","url":"http://s3.amazonaws.com/store.getchute.com/526991d38a9eb036ef000003"}}'
481
+ http_version:
482
+ recorded_at: Thu, 24 Oct 2013 21:32:04 GMT
483
+ - request:
484
+ method: put
485
+ uri: https://api.getchute.com/v2/campaigns/312/store/public/526991d38a9eb036ef000003
486
+ body:
487
+ encoding: UTF-8
488
+ string: ! '{"b":"c"}'
489
+ headers:
490
+ Authorization:
491
+ - Bearer API KEY
492
+ Content-Type:
493
+ - application/json
494
+ Accepts:
495
+ - application/json
496
+ X-Client-Id:
497
+ - 508fc620018d162a070000d6
498
+ response:
499
+ status:
500
+ code: 200
501
+ message: OK
502
+ headers:
503
+ Cache-Control:
504
+ - max-age=0, private, must-revalidate
505
+ Content-Type:
506
+ - application/json; charset=utf-8
507
+ Date:
508
+ - Thu, 24 Oct 2013 21:32:04 GMT
509
+ Etag:
510
+ - ! '"9ead386fed08d0052e65de9ef3e34b2c"'
511
+ Last-Modified:
512
+ - Thu, 24 Oct 2013 21:32:04 GMT
513
+ Server:
514
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
515
+ Status:
516
+ - '200'
517
+ X-Powered-By:
518
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
519
+ X-Rack-Cache:
520
+ - invalidate, pass
521
+ X-Request-Id:
522
+ - 8174f217fe8a5182482942851160f0b2
523
+ X-Runtime:
524
+ - '0.094694'
525
+ X-Ua-Compatible:
526
+ - IE=Edge,chrome=1
527
+ Content-Length:
528
+ - '372'
529
+ Connection:
530
+ - keep-alive
531
+ body:
532
+ encoding: US-ASCII
533
+ string: ! '{"response":{"title":"Stores::Public Details","version":2,"code":200,"href":"https://api.getchute.com/v2/campaigns/312/store/public/526991d38a9eb036ef000003"},"data":{"id":"526991d38a9eb036ef000003","created_at":"2013-10-24T21:32:03Z","updated_at":"2013-10-24T21:32:04Z","value":"{\"b\":\"c\"}","url":"http://s3.amazonaws.com/store.getchute.com/526991d38a9eb036ef000003"}}'
534
+ http_version:
535
+ recorded_at: Thu, 24 Oct 2013 21:32:04 GMT
536
+ - request:
537
+ method: get
538
+ uri: https://api.getchute.com/v2/campaigns/312/store/temp/asd
539
+ body:
540
+ encoding: UTF-8
541
+ string: ! '{}'
542
+ headers:
543
+ Authorization:
544
+ - Bearer API KEY
545
+ Content-Type:
546
+ - application/json
547
+ Accepts:
548
+ - application/json
549
+ X-Client-Id:
550
+ - 508fc620018d162a070000d6
551
+ response:
552
+ status:
553
+ code: 404
554
+ message: Not Found
555
+ headers:
556
+ Cache-Control:
557
+ - no-cache, private
558
+ Content-Type:
559
+ - application/json; charset=utf-8
560
+ Date:
561
+ - Thu, 24 Oct 2013 21:33:30 GMT
562
+ Server:
563
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
564
+ Status:
565
+ - '404'
566
+ X-Powered-By:
567
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
568
+ X-Rack-Cache:
569
+ - miss
570
+ X-Request-Id:
571
+ - 54656caff6af34af9b844f3f343dd1fc
572
+ X-Runtime:
573
+ - '0.012319'
574
+ X-Ua-Compatible:
575
+ - IE=Edge,chrome=1
576
+ Content-Length:
577
+ - '123'
578
+ Connection:
579
+ - keep-alive
580
+ body:
581
+ encoding: US-ASCII
582
+ string: ! '{"response":{"error":"Not Found","version":2,"code":404,"href":"https://api.getchute.com/v2/campaigns/312/store/temp/asd"}}'
583
+ http_version:
584
+ recorded_at: Thu, 24 Oct 2013 21:33:29 GMT
585
+ - request:
586
+ method: put
587
+ uri: https://api.getchute.com/v2/campaigns/312/store/temp/asd
588
+ body:
589
+ encoding: UTF-8
590
+ string: ! '{"b":"c"}'
591
+ headers:
592
+ Authorization:
593
+ - Bearer API KEY
594
+ Content-Type:
595
+ - application/json
596
+ Accepts:
597
+ - application/json
598
+ X-Client-Id:
599
+ - 508fc620018d162a070000d6
600
+ response:
601
+ status:
602
+ code: 404
603
+ message: Not Found
604
+ headers:
605
+ Cache-Control:
606
+ - no-cache
607
+ Content-Type:
608
+ - application/json; charset=utf-8
609
+ Date:
610
+ - Thu, 24 Oct 2013 21:33:30 GMT
611
+ Server:
612
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
613
+ Status:
614
+ - '404'
615
+ X-Powered-By:
616
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
617
+ X-Rack-Cache:
618
+ - invalidate, pass
619
+ X-Request-Id:
620
+ - b6e648e2a0e5c687094eb619c5eb9ad9
621
+ X-Runtime:
622
+ - '0.022876'
623
+ X-Ua-Compatible:
624
+ - IE=Edge,chrome=1
625
+ Content-Length:
626
+ - '123'
627
+ Connection:
628
+ - keep-alive
629
+ body:
630
+ encoding: US-ASCII
631
+ string: ! '{"response":{"error":"Not Found","version":2,"code":404,"href":"https://api.getchute.com/v2/campaigns/312/store/temp/asd"}}'
632
+ http_version:
633
+ recorded_at: Thu, 24 Oct 2013 21:33:30 GMT
634
+ - request:
635
+ method: get
636
+ uri: https://api.getchute.com/v2/campaigns/312/store/private/asd
637
+ body:
638
+ encoding: UTF-8
639
+ string: ! '{}'
640
+ headers:
641
+ Authorization:
642
+ - Bearer API KEY
643
+ Content-Type:
644
+ - application/json
645
+ Accepts:
646
+ - application/json
647
+ X-Client-Id:
648
+ - 508fc620018d162a070000d6
649
+ response:
650
+ status:
651
+ code: 404
652
+ message: Not Found
653
+ headers:
654
+ Cache-Control:
655
+ - no-cache, private
656
+ Content-Type:
657
+ - application/json; charset=utf-8
658
+ Date:
659
+ - Thu, 24 Oct 2013 21:33:31 GMT
660
+ Server:
661
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
662
+ Status:
663
+ - '404'
664
+ X-Powered-By:
665
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
666
+ X-Rack-Cache:
667
+ - miss
668
+ X-Request-Id:
669
+ - 72a4c88c4fb7c3da3cba5ee67fc2acaa
670
+ X-Runtime:
671
+ - '0.114464'
672
+ X-Ua-Compatible:
673
+ - IE=Edge,chrome=1
674
+ Content-Length:
675
+ - '126'
676
+ Connection:
677
+ - keep-alive
678
+ body:
679
+ encoding: US-ASCII
680
+ string: ! '{"response":{"error":"Not Found","version":2,"code":404,"href":"https://api.getchute.com/v2/campaigns/312/store/private/asd"}}'
681
+ http_version:
682
+ recorded_at: Thu, 24 Oct 2013 21:33:31 GMT
683
+ - request:
684
+ method: put
685
+ uri: https://api.getchute.com/v2/campaigns/312/store/private/asd
686
+ body:
687
+ encoding: UTF-8
688
+ string: ! '{"b":"c"}'
689
+ headers:
690
+ Authorization:
691
+ - Bearer API KEY
692
+ Content-Type:
693
+ - application/json
694
+ Accepts:
695
+ - application/json
696
+ X-Client-Id:
697
+ - 508fc620018d162a070000d6
698
+ response:
699
+ status:
700
+ code: 404
701
+ message: Not Found
702
+ headers:
703
+ Cache-Control:
704
+ - no-cache
705
+ Content-Type:
706
+ - application/json; charset=utf-8
707
+ Date:
708
+ - Thu, 24 Oct 2013 21:33:31 GMT
709
+ Server:
710
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
711
+ Status:
712
+ - '404'
713
+ X-Powered-By:
714
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
715
+ X-Rack-Cache:
716
+ - invalidate, pass
717
+ X-Request-Id:
718
+ - dd383afdaed09970844606a73b72ed72
719
+ X-Runtime:
720
+ - '0.024804'
721
+ X-Ua-Compatible:
722
+ - IE=Edge,chrome=1
723
+ Content-Length:
724
+ - '126'
725
+ Connection:
726
+ - keep-alive
727
+ body:
728
+ encoding: US-ASCII
729
+ string: ! '{"response":{"error":"Not Found","version":2,"code":404,"href":"https://api.getchute.com/v2/campaigns/312/store/private/asd"}}'
730
+ http_version:
731
+ recorded_at: Thu, 24 Oct 2013 21:33:31 GMT
732
+ - request:
733
+ method: get
734
+ uri: https://api.getchute.com/v2/campaigns/312/store/public/asd
735
+ body:
736
+ encoding: UTF-8
737
+ string: ! '{}'
738
+ headers:
739
+ Authorization:
740
+ - Bearer API KEY
741
+ Content-Type:
742
+ - application/json
743
+ Accepts:
744
+ - application/json
745
+ X-Client-Id:
746
+ - 508fc620018d162a070000d6
747
+ response:
748
+ status:
749
+ code: 404
750
+ message: Not Found
751
+ headers:
752
+ Cache-Control:
753
+ - no-cache, private
754
+ Content-Type:
755
+ - application/json; charset=utf-8
756
+ Date:
757
+ - Thu, 24 Oct 2013 21:33:32 GMT
758
+ Server:
759
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
760
+ Status:
761
+ - '404'
762
+ X-Powered-By:
763
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
764
+ X-Rack-Cache:
765
+ - miss
766
+ X-Request-Id:
767
+ - cdc6527648501fd646bed25b2be05af6
768
+ X-Runtime:
769
+ - '0.068779'
770
+ X-Ua-Compatible:
771
+ - IE=Edge,chrome=1
772
+ Content-Length:
773
+ - '125'
774
+ Connection:
775
+ - keep-alive
776
+ body:
777
+ encoding: US-ASCII
778
+ string: ! '{"response":{"error":"Not Found","version":2,"code":404,"href":"https://api.getchute.com/v2/campaigns/312/store/public/asd"}}'
779
+ http_version:
780
+ recorded_at: Thu, 24 Oct 2013 21:33:32 GMT
781
+ - request:
782
+ method: put
783
+ uri: https://api.getchute.com/v2/campaigns/312/store/public/asd
784
+ body:
785
+ encoding: UTF-8
786
+ string: ! '{"b":"c"}'
787
+ headers:
788
+ Authorization:
789
+ - Bearer API KEY
790
+ Content-Type:
791
+ - application/json
792
+ Accepts:
793
+ - application/json
794
+ X-Client-Id:
795
+ - 508fc620018d162a070000d6
796
+ response:
797
+ status:
798
+ code: 404
799
+ message: Not Found
800
+ headers:
801
+ Cache-Control:
802
+ - no-cache
803
+ Content-Type:
804
+ - application/json; charset=utf-8
805
+ Date:
806
+ - Thu, 24 Oct 2013 21:33:33 GMT
807
+ Server:
808
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
809
+ Status:
810
+ - '404'
811
+ X-Powered-By:
812
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
813
+ X-Rack-Cache:
814
+ - invalidate, pass
815
+ X-Request-Id:
816
+ - 00462052c38d0fe6b6cd32edba758b5c
817
+ X-Runtime:
818
+ - '0.061944'
819
+ X-Ua-Compatible:
820
+ - IE=Edge,chrome=1
821
+ Content-Length:
822
+ - '125'
823
+ Connection:
824
+ - keep-alive
825
+ body:
826
+ encoding: US-ASCII
827
+ string: ! '{"response":{"error":"Not Found","version":2,"code":404,"href":"https://api.getchute.com/v2/campaigns/312/store/public/asd"}}'
828
+ http_version:
829
+ recorded_at: Thu, 24 Oct 2013 21:33:33 GMT
830
+ recorded_with: VCR 2.5.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chute
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-09-19 00:00:00.000000000 Z
14
+ date: 2013-10-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: httparty
@@ -213,6 +213,7 @@ files:
213
213
  - spec/fixtures/chute_cassettes/campaigns/campaign_get.yml
214
214
  - spec/fixtures/chute_cassettes/campaigns/campaigns.yml
215
215
  - spec/fixtures/chute_cassettes/campaigns/campaigns_create.yml
216
+ - spec/fixtures/chute_cassettes/campaigns/storage.yml
216
217
  - spec/fixtures/chute_cassettes/comments/comments_create.yml
217
218
  - spec/fixtures/chute_cassettes/comments/comments_list.yml
218
219
  - spec/fixtures/chute_cassettes/flags/flags_methods.yml
@@ -245,7 +246,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
245
246
  version: '0'
246
247
  segments:
247
248
  - 0
248
- hash: 3521415362243172776
249
+ hash: 3469266328880689271
249
250
  required_rubygems_version: !ruby/object:Gem::Requirement
250
251
  none: false
251
252
  requirements: