chute 2.1.6 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api.getchute.com/v2/albums
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"album":{"name":"Album for Tags"}}'
8
+ string: '{"album":{"name":"Album for Tags"}}'
9
9
  headers:
10
10
  Authorization:
11
11
  - Bearer API KEY
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Date:
28
28
  - Mon, 22 Apr 2013 22:26:20 GMT
29
29
  Etag:
30
- - ! '"8537b4eccdf342fbdd783d057410d1e6"'
30
+ - '"8537b4eccdf342fbdd783d057410d1e6"'
31
31
  Last-Modified:
32
32
  - Mon, 22 Apr 2013 22:26:20 GMT
33
33
  Server:
@@ -50,7 +50,7 @@ http_interactions:
50
50
  - keep-alive
51
51
  body:
52
52
  encoding: US-ASCII
53
- string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Tags"},"data":{"id":2412457,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412457","title":"Album
53
+ string: '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Tags"},"data":{"id":2412457,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412457","title":"Album
54
54
  Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412457/assets","title":"Asset
55
55
  Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412457/parcels","title":"Parcel
56
56
  Listing"}},"created_at":"2013-04-22T22:26:20Z","updated_at":"2013-04-22T22:26:20Z","shortcut":"a7ABrksu","name":"Album
@@ -63,7 +63,7 @@ http_interactions:
63
63
  uri: https://api.getchute.com/v2/albums/2412457/assets/import
64
64
  body:
65
65
  encoding: UTF-8
66
- string: ! '{"urls":["http://farm9.staticflickr.com/8194/8141607138_bfaea3afd9.jpg"]}'
66
+ string: '{"urls":["http://farm9.staticflickr.com/8194/8141607138_bfaea3afd9.jpg"]}'
67
67
  headers:
68
68
  Authorization:
69
69
  - Bearer API KEY
@@ -85,7 +85,7 @@ http_interactions:
85
85
  Date:
86
86
  - Mon, 22 Apr 2013 22:26:20 GMT
87
87
  Etag:
88
- - ! '"e109632f58397e26b953c827c1486da8"'
88
+ - '"e109632f58397e26b953c827c1486da8"'
89
89
  Last-Modified:
90
90
  - Thu, 29 Nov 2012 13:55:20 GMT
91
91
  Server:
@@ -108,7 +108,7 @@ http_interactions:
108
108
  - keep-alive
109
109
  body:
110
110
  encoding: US-ASCII
111
- string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412457/assets/import?&urls%5B%5D=http%3A%2F%2Ffarm9.staticflickr.com%2F8194%2F8141607138_bfaea3afd9.jpg"},"data":[{"id":72569916,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412457/assets/72569916","title":"Asset
111
+ string: '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412457/assets/import?&urls%5B%5D=http%3A%2F%2Ffarm9.staticflickr.com%2F8194%2F8141607138_bfaea3afd9.jpg"},"data":[{"id":72569916,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412457/assets/72569916","title":"Asset
112
112
  Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2412457/assets/72569916/exif","title":"Exif
113
113
  Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2412457/assets/72569916/geo","title":"Geo
114
114
  Details"},"heart":{"href":"http://api.getchute.com/v2/albums/a7ABrksu/assets/4UuKweohy/hearts","title":"Heart"},"vote":{"href":"http://api.getchute.com/v2/albums/a7ABrksu/assets/4UuKweohy/votes","title":"Vote"}},"created_at":"2012-11-29T13:55:20Z","updated_at":"2012-11-29T13:55:20Z","thumbnail":"http://media.getchute.com/media/4UuKweohy/75x75","url":"http://media.getchute.com/media/4UuKweohy","shortcut":"4UuKweohy","type":"image","caption":null,"dimensions":{"width":null,"height":null},"location":null,"source":{"source":"imported","source_id":null,"source_url":"http://farm9.staticflickr.com/8194/8141607138_bfaea3afd9.jpg","service":null,"import_id":null,"import_url":null,"original_url":"http://media.getchute.com/media/4UuKweohy"},"service":"uploaded"}]}'
@@ -119,7 +119,7 @@ http_interactions:
119
119
  uri: https://api.getchute.com/v2/albums/2412457/assets/72569916/tags
120
120
  body:
121
121
  encoding: UTF-8
122
- string: ! '{"tags":["TAG","AnotherTag"]}'
122
+ string: '{"tags":["TAG","AnotherTag"]}'
123
123
  headers:
124
124
  Authorization:
125
125
  - Bearer API KEY
@@ -141,7 +141,7 @@ http_interactions:
141
141
  Date:
142
142
  - Mon, 22 Apr 2013 22:26:21 GMT
143
143
  Etag:
144
- - ! '"ccf5cb6f5d93480b308f82baacce6544"'
144
+ - '"ccf5cb6f5d93480b308f82baacce6544"'
145
145
  Server:
146
146
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
147
147
  Status:
@@ -162,7 +162,7 @@ http_interactions:
162
162
  - keep-alive
163
163
  body:
164
164
  encoding: US-ASCII
165
- string: ! '{"response":{"title":"Tags Added","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412457/assets/72569916/tags?tag%5Btags%5D%5B%5D=TAG&tag%5Btags%5D%5B%5D=AnotherTag&tags%5B%5D=TAG&tags%5B%5D=AnotherTag"},"data":["TAG","AnotherTag"]}'
165
+ string: '{"response":{"title":"Tags Added","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412457/assets/72569916/tags?tag%5Btags%5D%5B%5D=TAG&tag%5Btags%5D%5B%5D=AnotherTag&tags%5B%5D=TAG&tags%5B%5D=AnotherTag"},"data":["TAG","AnotherTag"]}'
166
166
  http_version:
167
167
  recorded_at: Mon, 22 Apr 2013 22:26:21 GMT
168
168
  - request:
@@ -170,7 +170,7 @@ http_interactions:
170
170
  uri: https://api.getchute.com/v2/albums/2412457/assets/72569916/tags
171
171
  body:
172
172
  encoding: UTF-8
173
- string: ! '{}'
173
+ string: "{}"
174
174
  headers:
175
175
  Authorization:
176
176
  - Bearer API KEY
@@ -192,7 +192,7 @@ http_interactions:
192
192
  Date:
193
193
  - Mon, 22 Apr 2013 22:26:21 GMT
194
194
  Etag:
195
- - ! '"9e8968bc56ceaf053c2378a30c49b318"'
195
+ - '"9e8968bc56ceaf053c2378a30c49b318"'
196
196
  Server:
197
197
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
198
198
  Status:
@@ -213,7 +213,7 @@ http_interactions:
213
213
  - keep-alive
214
214
  body:
215
215
  encoding: US-ASCII
216
- string: ! '{"response":{"title":"Tags List","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412457/assets/72569916/tags?"},"data":["TAG","AnotherTag"]}'
216
+ string: '{"response":{"title":"Tags List","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412457/assets/72569916/tags?"},"data":["TAG","AnotherTag"]}'
217
217
  http_version:
218
218
  recorded_at: Mon, 22 Apr 2013 22:26:21 GMT
219
219
  - request:
@@ -221,7 +221,7 @@ http_interactions:
221
221
  uri: https://api.getchute.com/v2/albums/2412457/assets/72569916/tags
222
222
  body:
223
223
  encoding: UTF-8
224
- string: ! '{"tags":["Replaced TAG1","Replaced Tag2"]}'
224
+ string: '{"tags":["Replaced TAG1","Replaced Tag2"]}'
225
225
  headers:
226
226
  Authorization:
227
227
  - Bearer API KEY
@@ -243,7 +243,7 @@ http_interactions:
243
243
  Date:
244
244
  - Mon, 22 Apr 2013 22:26:22 GMT
245
245
  Etag:
246
- - ! '"b9f0c21ed2a878a345dc225ad673e807"'
246
+ - '"b9f0c21ed2a878a345dc225ad673e807"'
247
247
  Server:
248
248
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
249
249
  Status:
@@ -264,8 +264,77 @@ http_interactions:
264
264
  - keep-alive
265
265
  body:
266
266
  encoding: US-ASCII
267
- string: ! '{"response":{"title":"Tags Updated","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412457/assets/72569916/tags?tag%5Btags%5D%5B%5D=Replaced+TAG1&tag%5Btags%5D%5B%5D=Replaced+Tag2&tags%5B%5D=Replaced+TAG1&tags%5B%5D=Replaced+Tag2"},"data":["Replaced
267
+ string: '{"response":{"title":"Tags Updated","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412457/assets/72569916/tags?tag%5Btags%5D%5B%5D=Replaced+TAG1&tag%5Btags%5D%5B%5D=Replaced+Tag2&tags%5B%5D=Replaced+TAG1&tags%5B%5D=Replaced+Tag2"},"data":["Replaced
268
268
  TAG1","Replaced Tag2"]}'
269
269
  http_version:
270
270
  recorded_at: Mon, 22 Apr 2013 22:26:22 GMT
271
- recorded_with: VCR 2.2.5
271
+ - request:
272
+ method: delete
273
+ uri: https://api.getchute.com/v2/albums/2412457/assets/72569916/tags
274
+ body:
275
+ encoding: UTF-8
276
+ string: '{"tags":["Replaced TAG1"]}'
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: 404
289
+ message: Not Found
290
+ headers:
291
+ Content-Type:
292
+ - text/html; charset=utf-8
293
+ Date:
294
+ - Sat, 01 Aug 2015 00:30:29 GMT
295
+ Server:
296
+ - nginx
297
+ Status:
298
+ - 404 Not Found
299
+ X-Rack-Cache:
300
+ - invalidate, pass
301
+ X-Request-Id:
302
+ - 00245ad300e1409115899852354f924b
303
+ X-Runtime:
304
+ - '0.004648'
305
+ Content-Length:
306
+ - '728'
307
+ Connection:
308
+ - keep-alive
309
+ body:
310
+ encoding: UTF-8
311
+ string: |
312
+ <!DOCTYPE html>
313
+ <html>
314
+ <head>
315
+ <title>The page you were looking for doesn't exist (404)</title>
316
+ <style type="text/css">
317
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
318
+ div.dialog {
319
+ width: 25em;
320
+ padding: 0 4em;
321
+ margin: 4em auto 0 auto;
322
+ border: 1px solid #ccc;
323
+ border-right-color: #999;
324
+ border-bottom-color: #999;
325
+ }
326
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
327
+ </style>
328
+ </head>
329
+
330
+ <body>
331
+ <!-- This file lives in public/404.html -->
332
+ <div class="dialog">
333
+ <h1>The page you were looking for doesn't exist.</h1>
334
+ <p>You may have mistyped the address or the page may have moved.</p>
335
+ </div>
336
+ </body>
337
+ </html>
338
+ http_version:
339
+ recorded_at: Sat, 01 Aug 2015 00:30:52 GMT
340
+ recorded_with: VCR 2.9.3
@@ -16,7 +16,7 @@ require 'vcr'
16
16
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
17
17
 
18
18
  RSpec.configure do |config|
19
- config.color_enabled = true
19
+ config.color = true
20
20
  # Use color not only in STDOUT but also in pagers and files
21
21
  config.tty = true
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chute
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chute Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-24 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.8.0
61
+ version: 3.3.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.8.0
68
+ version: 3.3.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rdoc
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -127,7 +127,6 @@ email: support@getchute.com
127
127
  executables: []
128
128
  extensions: []
129
129
  extra_rdoc_files:
130
- - CHANGELOG.md
131
130
  - LICENSE.md
132
131
  - README.md
133
132
  files:
@@ -146,6 +145,7 @@ files:
146
145
  - lib/chute/response.rb
147
146
  - lib/chute/v2/accounts.rb
148
147
  - lib/chute/v2/albums.rb
148
+ - lib/chute/v2/apps.rb
149
149
  - lib/chute/v2/assets.rb
150
150
  - lib/chute/v2/campaigns.rb
151
151
  - lib/chute/v2/comments.rb
@@ -163,6 +163,7 @@ files:
163
163
  - spec/chute/response_spec.rb
164
164
  - spec/chute/v2/accounts_spec.rb
165
165
  - spec/chute/v2/albums_spec.rb
166
+ - spec/chute/v2/apps_spec.rb
166
167
  - spec/chute/v2/assets_spec.rb
167
168
  - spec/chute/v2/campaigns_spec.rb
168
169
  - spec/chute/v2/comments_spec.rb
@@ -199,6 +200,7 @@ files:
199
200
  - spec/fixtures/chute_cassettes/campaigns/campaigns_create.yml
200
201
  - spec/fixtures/chute_cassettes/campaigns/storage.yml
201
202
  - spec/fixtures/chute_cassettes/comments/comments_create.yml
203
+ - spec/fixtures/chute_cassettes/comments/comments_delete.yml
202
204
  - spec/fixtures/chute_cassettes/comments/comments_list.yml
203
205
  - spec/fixtures/chute_cassettes/flags/flags_methods.yml
204
206
  - spec/fixtures/chute_cassettes/hearts/hearts_methods.yml
@@ -236,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
238
  version: '0'
237
239
  requirements: []
238
240
  rubyforge_project:
239
- rubygems_version: 2.4.5
241
+ rubygems_version: 2.4.6
240
242
  signing_key:
241
243
  specification_version: 4
242
244
  summary: Chute API SDK