lentil 0.1.7 → 0.1.8

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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -0
  3. data/app/assets/javascripts/lentil/addfancybox.js +3 -1
  4. data/app/assets/javascripts/lentil/iframe.js +117 -0
  5. data/app/assets/javascripts/lentil/thisorthat.js.erb +18 -20
  6. data/app/assets/stylesheets/lentil/iframe.css.scss +26 -0
  7. data/app/controllers/lentil/images_controller.rb +4 -0
  8. data/app/controllers/lentil/thisorthat_controller.rb +6 -4
  9. data/app/models/lentil/image.rb +16 -6
  10. data/app/views/layouts/lentil/iframe.html.erb +30 -0
  11. data/app/views/lentil/images/iframe.html.erb +9 -0
  12. data/config/routes.rb +1 -0
  13. data/lib/generators/lentil/install_generator.rb +18 -3
  14. data/lib/generators/lentil/templates/README.md +6 -0
  15. data/lib/lentil/instagram_harvester.rb +2 -2
  16. data/lib/lentil/version.rb +1 -1
  17. data/test/dummy/config/application.rb +6 -0
  18. data/test/fixtures/lentil/images.yml +84 -84
  19. data/test/functional/lentil/images_controller_test.rb +5 -0
  20. data/test/functional/lentil/photographers_controller_test.rb +1 -1
  21. data/test/integration/lentil/images_index_test.rb +2 -3
  22. data/test/integration/lentil/javascript/event_tracking_battle_test.rb +1 -2
  23. data/test/integration/lentil/javascript/image_modal_test.rb +2 -2
  24. data/test/vcr_cassettes/battle_images.yml +190 -135
  25. data/test/vcr_cassettes/battle_images_events.yml +123 -167
  26. data/test/vcr_cassettes/instagram_bad_image_check.yml +24 -21
  27. data/test/vcr_cassettes/instagram_good_image_check.yml +160 -15
  28. data/test/vcr_cassettes/instagram_image_harvest.yml +1990 -1950
  29. data/test/vcr_cassettes/instagram_oembed.yml +18 -9
  30. data/vendor/assets/javascripts/imagesloaded/jquery.imagesloaded.min.js +888 -3
  31. metadata +15 -12
  32. data/lib/generators/lentil/templates/devise.rb +0 -232
@@ -69,216 +69,216 @@ tres:
69
69
  win_pct: 50
70
70
 
71
71
  one:
72
- description: 'one #hunttesting'
72
+ description: 'six #hunttesting'
73
73
  created_at: 2013-04-16 16:16:16.273698000 Z
74
74
  updated_at: 2013-04-16 16:16:16.481430000 Z
75
75
  like_votes_count: 0
76
- url: http://instagram.com/p/YK-cpswMOn/
77
- user: jr
76
+ url: http://instagram.com/p/k5LhuktiSC/
77
+ user: bd
78
78
  state: 1
79
- external_identifier: '435434961797956519_228379143'
80
- long_url: http://distilleryimage7.s3.amazonaws.com/7deb2d9ea6ae11e28a1a22000aa81ffa_7.jpg
79
+ external_identifier: '664613116276253826_1128023464'
80
+ long_url: http://distilleryimage8.s3.amazonaws.com/28b09b209f2811e38e831293e346cce0_8.jpg
81
81
  original_datetime: 2013-04-16 15:58:34.000000000 Z
82
82
  staff_like: true
83
- moderator_id:
84
- moderated_at:
83
+ moderator_id:
84
+ moderated_at:
85
85
  second_moderation: false
86
86
  wins_count: 5
87
87
  losses_count: 5
88
88
  win_pct: 50
89
89
  popular_score: 0
90
- file_harvested_date:
90
+ file_harvested_date:
91
91
  file_harvest_failed: 0
92
- donor_agreement_submitted_date:
92
+ donor_agreement_submitted_date:
93
93
  donor_agreement_failed: 0
94
94
  failed_file_checks: 0
95
- file_last_checked:
95
+ file_last_checked:
96
96
  original_metadata:
97
- attribution:
97
+ attribution:
98
98
  tags:
99
99
  - hunttesting
100
- location:
100
+ location:
101
101
  comments:
102
102
  count: 0
103
103
  data: []
104
- filter: Inkwell
105
- created_time: '1366127914'
106
- link: http://instagram.com/p/YK-cpswMOn/
104
+ filter: Amaro
105
+ created_time: '1393448079'
106
+ link: http://instagram.com/p/k5LhuktiSC/
107
107
  likes:
108
108
  count: 0
109
109
  data: []
110
110
  images:
111
111
  low_resolution:
112
- url: http://distilleryimage7.s3.amazonaws.com/7deb2d9ea6ae11e28a1a22000aa81ffa_6.jpg
112
+ url: http://distilleryimage8.s3.amazonaws.com/28b09b209f2811e38e831293e346cce0_6.jpg
113
113
  width: 306
114
114
  height: 306
115
115
  thumbnail:
116
- url: http://distilleryimage7.s3.amazonaws.com/7deb2d9ea6ae11e28a1a22000aa81ffa_5.jpg
116
+ url: http://distilleryimage8.s3.amazonaws.com/28b09b209f2811e38e831293e346cce0_5.jpg
117
117
  width: 150
118
118
  height: 150
119
119
  standard_resolution:
120
- url: http://distilleryimage7.s3.amazonaws.com/7deb2d9ea6ae11e28a1a22000aa81ffa_7.jpg
120
+ url: http://distilleryimage8.s3.amazonaws.com/28b09b209f2811e38e831293e346cce0_8.jpg
121
121
  width: 612
122
122
  height: 612
123
123
  caption:
124
- created_time: '1366127959'
125
- text: ! 'one #hunttesting'
124
+ created_time: '1393448079'
125
+ text: ! 'six #hunttesting'
126
126
  from:
127
- username: jronallo
127
+ username: bddnc
128
128
  profile_picture: http://images.ak.instagram.com/profiles/anonymousUser.jpg
129
- id: '228379143'
130
- full_name: jronallo
131
- id: '435435338345791571'
129
+ id: '1128023464'
130
+ full_name: bddnc
131
+ id: '664613117098338265'
132
132
  type: image
133
- id: '435434961797956519_228379143'
133
+ id: '664613116276253826_1128023464'
134
134
  user:
135
- username: jronallo
135
+ username: bddnc
136
136
  website: ''
137
137
  profile_picture: http://images.ak.instagram.com/profiles/anonymousUser.jpg
138
- full_name: jronallo
138
+ full_name: bddnc
139
139
  bio: ''
140
- id: '228379143'
141
-
140
+ id: '1128023464'
141
+
142
142
 
143
143
  two:
144
- description: 'two #hunttesting'
144
+ description: 'five #hunttesting'
145
145
  created_at: 2013-04-16 16:16:15.890972000 Z
146
146
  updated_at: 2013-04-16 16:16:16.097712000 Z
147
147
  like_votes_count: 0
148
- url: http://instagram.com/p/YK-nyDwMO1/
149
- user: jr
148
+ url: http://instagram.com/p/k5LdOBtiR3/
149
+ user: bd
150
150
  state: 0
151
- external_identifier: '435435726688011189_228379143'
152
- long_url: http://distilleryimage9.s3.amazonaws.com/b443124ea6ae11e286b422000a9d0dd8_7.jpg
151
+ external_identifier: '664612806451405943_1128023464'
152
+ long_url: http://distilleryimage5.s3.amazonaws.com/1679c7b09f2811e386f1127bb479206d_8.jpg
153
153
  original_metadata:
154
- attribution:
154
+ attribution:
155
155
  tags:
156
156
  - hunttesting
157
- location:
157
+ location:
158
158
  comments:
159
159
  count: 0
160
160
  data: []
161
- filter: Normal
162
- created_time: '1366128005'
163
- link: http://instagram.com/p/YK-nyDwMO1/
161
+ filter: Amaro
162
+ created_time: '1393448042'
163
+ link: http://instagram.com/p/k5LdOBtiR3/
164
164
  likes:
165
165
  count: 0
166
166
  data: []
167
167
  images:
168
168
  low_resolution:
169
- url: http://distilleryimage9.s3.amazonaws.com/b443124ea6ae11e286b422000a9d0dd8_6.jpg
169
+ url: http://distilleryimage5.s3.amazonaws.com/1679c7b09f2811e386f1127bb479206d_6.jpg
170
170
  width: 306
171
171
  height: 306
172
172
  thumbnail:
173
- url: http://distilleryimage9.s3.amazonaws.com/b443124ea6ae11e286b422000a9d0dd8_5.jpg
173
+ url: http://distilleryimage9.s3.amazonaws.com/1679c7b09f2811e386f1127bb479206d_5.jpg
174
174
  width: 150
175
175
  height: 150
176
176
  standard_resolution:
177
- url: http://distilleryimage9.s3.amazonaws.com/b443124ea6ae11e286b422000a9d0dd8_7.jpg
177
+ url: http://distilleryimage5.s3.amazonaws.com/1679c7b09f2811e386f1127bb479206d_8.jpg
178
178
  width: 612
179
179
  height: 612
180
180
  caption:
181
- created_time: '1366128020'
182
- text: ! 'two #hunttesting'
181
+ created_time: '1393448042'
182
+ text: ! 'five #hunttesting'
183
183
  from:
184
- username: jronallo
184
+ username: bddnc
185
185
  profile_picture: http://images.ak.instagram.com/profiles/anonymousUser.jpg
186
- id: '228379143'
187
- full_name: jronallo
188
- id: '435435854178074722'
186
+ id: '1128023464'
187
+ full_name: bddnc
188
+ id: '664612806879225796'
189
189
  type: image
190
- id: '435435726688011189_228379143'
190
+ id: '664612806451405943_1128023464'
191
191
  user:
192
- username: jronallo
192
+ username: bddnc
193
193
  website: ''
194
194
  profile_picture: http://images.ak.instagram.com/profiles/anonymousUser.jpg
195
- full_name: jronallo
195
+ full_name: bddnc
196
196
  bio: ''
197
- id: '228379143'
197
+ id: '1128023464'
198
198
  original_datetime: 2013-04-16 16:00:05.000000000 Z
199
199
  staff_like: false
200
- moderator_id:
201
- moderated_at:
200
+ moderator_id:
201
+ moderated_at:
202
202
  second_moderation: false
203
203
  wins_count: 0
204
204
  losses_count: 0
205
- win_pct:
205
+ win_pct:
206
206
  popular_score: 0
207
- file_harvested_date:
207
+ file_harvested_date:
208
208
  file_harvest_failed: 0
209
- donor_agreement_submitted_date:
209
+ donor_agreement_submitted_date:
210
210
  donor_agreement_failed: 0
211
211
  failed_file_checks: 0
212
- file_last_checked:
212
+ file_last_checked:
213
213
 
214
214
 
215
215
  three:
216
- description: "three #hunttesting"
216
+ description: "four #hunttesting"
217
217
  created_at: 2013-04-16 16:16:15.526680000 Z
218
218
  updated_at: 2013-04-16 16:16:15.739221000 Z
219
219
  like_votes_count: 0
220
- url: http://instagram.com/p/YK-tp6QMO9/
221
- user: jr
220
+ url: http://instagram.com/p/k5LZPotiRv/
221
+ user: bd
222
222
  state: 0
223
- external_identifier: '435436130255553469_228379143'
224
- long_url: http://distilleryimage1.s3.amazonaws.com/d0f10e82a6ae11e28bc322000a9d0dcb_7.jpg
223
+ external_identifier: '664612533301552239_1128023464'
224
+ long_url: http://distilleryimage7.s3.amazonaws.com/fa670c909f2711e3a7fd12b201d372bb_8.jpg
225
225
  original_metadata:
226
- attribution:
226
+ attribution:
227
227
  tags:
228
228
  - hunttesting
229
- location:
229
+ location:
230
230
  comments:
231
231
  count: 0
232
232
  data: []
233
233
  filter: Normal
234
- created_time: '1366128053'
235
- link: http://instagram.com/p/YK-tp6QMO9/
234
+ created_time: '1393448009'
235
+ link: http://instagram.com/p/k5LZPotiRv/
236
236
  likes:
237
237
  count: 0
238
238
  data: []
239
239
  images:
240
240
  low_resolution:
241
- url: http://distilleryimage1.s3.amazonaws.com/d0f10e82a6ae11e28bc322000a9d0dcb_6.jpg
241
+ url: http://distilleryimage7.s3.amazonaws.com/fa670c909f2711e3a7fd12b201d372bb_6.jpg
242
242
  width: 306
243
243
  height: 306
244
244
  thumbnail:
245
- url: http://distilleryimage1.s3.amazonaws.com/d0f10e82a6ae11e28bc322000a9d0dcb_5.jpg
245
+ url: http://distilleryimage7.s3.amazonaws.com/fa670c909f2711e3a7fd12b201d372bb_5.jpg
246
246
  width: 150
247
247
  height: 150
248
248
  standard_resolution:
249
- url: http://distilleryimage1.s3.amazonaws.com/d0f10e82a6ae11e28bc322000a9d0dcb_7.jpg
249
+ url: http://distilleryimage7.s3.amazonaws.com/fa670c909f2711e3a7fd12b201d372bb_8.jpg
250
250
  width: 612
251
251
  height: 612
252
252
  caption:
253
253
  created_time: '1366128072'
254
- text: ! 'three #hunttesting'
254
+ text: ! 'four #hunttesting'
255
255
  from:
256
- username: jronallo
256
+ username: bddnc
257
257
  profile_picture: http://images.ak.instagram.com/profiles/anonymousUser.jpg
258
- id: '228379143'
259
- full_name: jronallo
258
+ id: '1128023464'
259
+ full_name: bddnc
260
260
  id: '435436286333993072'
261
261
  type: image
262
- id: '435436130255553469_228379143'
262
+ id: '664612533301552239_1128023464'
263
263
  user:
264
- username: jronallo
264
+ username: bddnc
265
265
  website: ''
266
266
  profile_picture: http://images.ak.instagram.com/profiles/anonymousUser.jpg
267
- full_name: jronallo
267
+ full_name: bddnc
268
268
  bio: ''
269
- id: '228379143'
269
+ id: '1128023464'
270
270
  original_datetime: 2013-04-16 16:00:53.000000000 Z
271
271
  staff_like: false
272
- moderator_id:
273
- moderated_at:
272
+ moderator_id:
273
+ moderated_at:
274
274
  second_moderation: false
275
275
  wins_count: 0
276
276
  losses_count: 0
277
- win_pct:
277
+ win_pct:
278
278
  popular_score: 0
279
- file_harvested_date:
279
+ file_harvested_date:
280
280
  file_harvest_failed: 0
281
- donor_agreement_submitted_date:
281
+ donor_agreement_submitted_date:
282
282
  donor_agreement_failed: 0
283
283
  failed_file_checks: 0
284
- file_last_checked:
284
+ file_last_checked:
@@ -48,4 +48,9 @@ class Lentil::ImagesControllerTest < ActionController::TestCase
48
48
  assert_response :success
49
49
  end
50
50
 
51
+ test "should get a tiled view for iframe" do
52
+ get :iframe, :use_route => :lentil
53
+ assert_response :success
54
+ end
55
+
51
56
  end
@@ -7,7 +7,7 @@ class Lentil::PhotographersControllerTest < ActionController::TestCase
7
7
  end
8
8
 
9
9
  test "should get show view" do
10
- get :show, :id => lentil_users(:jr).id, :use_route => :lentil
10
+ get :show, :id => lentil_users(:bd).id, :use_route => :lentil
11
11
  assert_response :success
12
12
  end
13
13
 
@@ -13,12 +13,11 @@ class ImagesIndexTest < ActionDispatch::IntegrationTest
13
13
  end
14
14
 
15
15
  test "should have the titles of the images on the index page" do
16
- assert page.has_content?('Love the new @snohetta_design')
17
- assert page.has_content?('one')
16
+ assert page.has_content?('six #hunttesting')
18
17
  end
19
18
 
20
19
  test "should have usernames of image contributors" do
21
- assert page.has_content?('jronallo')
20
+ assert page.has_content?('bd')
22
21
  end
23
22
 
24
23
  # test "should be able to like vote for an image on the index page and see vote counts" do
@@ -1,11 +1,10 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class EventTrackingBattleTest < ActionDispatch::IntegrationTest
4
-
5
4
  test "battle pick image" do
6
5
  VCR.use_cassette('battle_images_events') do
7
6
  browser_start
8
- Lentil::ThisorthatController.stubs(:get_images).returns([lentil_images(:one), lentil_images(:uno)])
7
+ Lentil::ThisorthatController.any_instance.stubs(:get_images).returns([lentil_images(:dos), lentil_images(:one)])
9
8
  visit lentil.thisorthat_battle_path
10
9
  first_image = all('.battle-form').first()
11
10
  image_id = first_image['value']
@@ -11,10 +11,10 @@ class ImageModalTest < ActionDispatch::IntegrationTest
11
11
 
12
12
  test "should see a modal when clicking on an image" do
13
13
  visit lentil.images_path
14
- assert page.has_no_content?('one #hunttesting')
14
+ assert page.has_no_content?('six #hunttesting')
15
15
  assert page.has_no_selector?('.fancybox-image')
16
16
  all('.fancybox').first.click
17
- assert page.has_content?('one #hunttesting')
17
+ assert page.has_content?('six #hunttesting')
18
18
  assert page.has_selector?('.fancybox-image')
19
19
  end
20
20
  end
@@ -1,14 +1,16 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: head
5
- uri: http://distilleryimage3.s3.amazonaws.com/644f52a02d2f11e2b55e22000a9f09fb_7.jpg
4
+ method: get
5
+ uri: http://api.instagram.com/oembed?format=json&url=http://instagram.com/p/R82ycNoNfn/
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - '*/*'
12
14
  User-Agent:
13
15
  - Ruby
14
16
  response:
@@ -16,79 +18,98 @@ http_interactions:
16
18
  code: 200
17
19
  message: OK
18
20
  headers:
19
- X-Amz-Id-2:
20
- - qh7ZA6VeLowUfAssuoKuCMHmFPnNmT2i5pFYj6vG9YZDgnVa4FyRcLWT88YUZRH4
21
- X-Amz-Request-Id:
22
- - CB34B0AF2064D5C1
21
+ Cache-Control:
22
+ - private, no-cache, no-store, must-revalidate
23
+ Content-Language:
24
+ - en
25
+ Content-Type:
26
+ - application/json
23
27
  Date:
24
- - Tue, 07 May 2013 14:57:26 GMT
28
+ - Thu, 27 Feb 2014 19:42:54 GMT
25
29
  Expires:
26
- - Thu, 15 Apr 2020 20:00:00 GMT
27
- Last-Modified:
28
- - Tue, 13 Nov 2012 01:13:55 GMT
29
- Etag:
30
- - ! '"c4f4b4b37c4e33c16c31092bd8ebf05d"'
31
- Accept-Ranges:
32
- - bytes
33
- Content-Type:
34
- - image/jpeg
35
- Content-Length:
36
- - '87450'
30
+ - Sat, 01 Jan 2000 00:00:00 GMT
31
+ Pragma:
32
+ - no-cache
37
33
  Server:
38
- - AmazonS3
34
+ - nginx
35
+ Set-Cookie:
36
+ - ccode=US; Path=/
37
+ - csrftoken=e081cc0702791acd6a3fa8ff8b1a5513; expires=Thu, 26-Feb-2015 19:42:54
38
+ GMT; Max-Age=31449600; Path=/
39
+ - mid=Uw-VPgAEAAFy8J-uIsSZp_EdCnnn; expires=Wed, 22-Feb-2034 19:42:54 GMT; Max-Age=630720000;
40
+ Path=/
41
+ Vary:
42
+ - Cookie, Accept-Language, Accept-Encoding
43
+ Content-Length:
44
+ - '249'
45
+ Connection:
46
+ - keep-alive
39
47
  body:
40
- encoding: US-ASCII
41
- string: ''
48
+ encoding: UTF-8
49
+ string: '{"provider_url":"http:\/\/instagram.com\/","media_id":"323374234042685415_31727100","title":"Bubble
50
+ bubble...","url":"http:\/\/distilleryimage3.ak.instagram.com\/644f52a02d2f11e2b55e22000a9f09fb_7.jpg","author_name":"cazzerson","height":612,"width":612,"version":"1.0","author_url":"http:\/\/instagram.com\/cazzerson","author_id":31727100,"type":"photo","provider_name":"Instagram"}'
42
51
  http_version:
43
- recorded_at: Tue, 07 May 2013 14:57:25 GMT
52
+ recorded_at: Thu, 27 Feb 2014 19:42:54 GMT
44
53
  - request:
45
- method: head
46
- uri: http://distilleryimage6.ak.instagram.com/ef3c7ff0b71d11e2b1b722000a1d0aba_7.jpg
54
+ method: get
55
+ uri: http://api.instagram.com/oembed?format=json&url=http://instagram.com/p/ZA1L0nINXi/
47
56
  body:
48
57
  encoding: US-ASCII
49
58
  string: ''
50
59
  headers:
60
+ Accept-Encoding:
61
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
51
62
  Accept:
52
- - ! '*/*'
63
+ - '*/*'
53
64
  User-Agent:
54
65
  - Ruby
55
66
  response:
56
67
  status:
57
- code: 403
58
- message: Forbidden
68
+ code: 404
69
+ message: NOT FOUND
59
70
  headers:
60
- X-Amz-Request-Id:
61
- - 8C9749C453F0CCA0
62
- X-Amz-Id-2:
63
- - y8u+O12gNGHzkhkovPHyfLzfNEUHqVrr4xr4n4zgNho2UqIF6AQ4KhD3AGq0fZSv
64
- Content-Type:
65
- - application/xml
66
- Server:
67
- - AmazonS3
68
71
  Cache-Control:
69
- - max-age=129600
72
+ - private, no-cache, no-store, must-revalidate
73
+ Content-Language:
74
+ - en
75
+ Content-Type:
76
+ - text/html; charset=utf-8
77
+ Date:
78
+ - Thu, 27 Feb 2014 19:42:54 GMT
70
79
  Expires:
71
- - Thu, 09 May 2013 02:57:26 GMT
80
+ - Sat, 01 Jan 2000 00:00:00 GMT
81
+ Pragma:
82
+ - no-cache
83
+ Server:
84
+ - nginx
85
+ Set-Cookie:
86
+ - ccode=US; Path=/
87
+ - csrftoken=c9d44bf3281ffa60168cf219fece1006; expires=Thu, 26-Feb-2015 19:42:54
88
+ GMT; Max-Age=31449600; Path=/
89
+ - mid=Uw-VPgAEAAE6MIQcBg24mIuWY8fR; expires=Wed, 22-Feb-2034 19:42:54 GMT; Max-Age=630720000;
90
+ Path=/
91
+ Vary:
92
+ - Cookie, Accept-Language
72
93
  Content-Length:
73
- - '1'
74
- Date:
75
- - Tue, 07 May 2013 14:57:26 GMT
94
+ - '34'
76
95
  Connection:
77
96
  - keep-alive
78
97
  body:
79
- encoding: US-ASCII
80
- string: ''
98
+ encoding: UTF-8
99
+ string: No Media Match
81
100
  http_version:
82
- recorded_at: Tue, 07 May 2013 14:57:26 GMT
101
+ recorded_at: Thu, 27 Feb 2014 19:42:54 GMT
83
102
  - request:
84
- method: head
85
- uri: http://distilleryimage7.s3.amazonaws.com/55dcf0ba2a8c11e29cc822000a1f96e3_7.jpg
103
+ method: get
104
+ uri: http://api.instagram.com/oembed?format=json&url=http://instagram.com/p/k5LhuktiSC/
86
105
  body:
87
106
  encoding: US-ASCII
88
107
  string: ''
89
108
  headers:
109
+ Accept-Encoding:
110
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
90
111
  Accept:
91
- - ! '*/*'
112
+ - '*/*'
92
113
  User-Agent:
93
114
  - Ruby
94
115
  response:
@@ -96,40 +117,49 @@ http_interactions:
96
117
  code: 200
97
118
  message: OK
98
119
  headers:
99
- X-Amz-Id-2:
100
- - 7aJgYS88E3F2XKl+jDPBOITPBjslVA78YU8GG92NQVyjojY/8Te76DndySmGhnfQ
101
- X-Amz-Request-Id:
102
- - 0473A9C23A7A8690
120
+ Cache-Control:
121
+ - private, no-cache, no-store, must-revalidate
122
+ Content-Language:
123
+ - en
124
+ Content-Type:
125
+ - application/json
103
126
  Date:
104
- - Tue, 07 May 2013 14:57:27 GMT
127
+ - Thu, 27 Feb 2014 19:42:54 GMT
105
128
  Expires:
106
- - Thu, 15 Apr 2020 20:00:00 GMT
107
- Last-Modified:
108
- - Fri, 09 Nov 2012 16:41:40 GMT
109
- Etag:
110
- - ! '"ec1196c1b6349e7e25ef2aa1d462b4e1"'
111
- Accept-Ranges:
112
- - bytes
113
- Content-Type:
114
- - image/jpeg
115
- Content-Length:
116
- - '84579'
129
+ - Sat, 01 Jan 2000 00:00:00 GMT
130
+ Pragma:
131
+ - no-cache
117
132
  Server:
118
- - AmazonS3
133
+ - nginx
134
+ Set-Cookie:
135
+ - ccode=US; Path=/
136
+ - csrftoken=0433d840e863edb10666afa87b2a068b; expires=Thu, 26-Feb-2015 19:42:54
137
+ GMT; Max-Age=31449600; Path=/
138
+ - mid=Uw-VPgAEAAH3fw8MDboIOffN0zE2; expires=Wed, 22-Feb-2034 19:42:54 GMT; Max-Age=630720000;
139
+ Path=/
140
+ Vary:
141
+ - Cookie, Accept-Language, Accept-Encoding
142
+ Content-Length:
143
+ - '245'
144
+ Connection:
145
+ - keep-alive
119
146
  body:
120
- encoding: US-ASCII
121
- string: ''
147
+ encoding: UTF-8
148
+ string: '{"provider_url":"http:\/\/instagram.com\/","media_id":"664613116276253826_1128023464","title":"six
149
+ #hunttesting","url":"http:\/\/distilleryimage8.ak.instagram.com\/28b09b209f2811e38e831293e346cce0_8.jpg","author_name":"bddnc","height":640,"width":640,"version":"1.0","author_url":"http:\/\/instagram.com\/bddnc","author_id":1128023464,"type":"photo","provider_name":"Instagram"}'
122
150
  http_version:
123
- recorded_at: Tue, 07 May 2013 14:57:26 GMT
151
+ recorded_at: Thu, 27 Feb 2014 19:42:54 GMT
124
152
  - request:
125
- method: head
126
- uri: http://distilleryimage3.s3.amazonaws.com/644f52a02d2f11e2b55e22000a9f09fb_7.jpg
153
+ method: get
154
+ uri: http://api.instagram.com/oembed?format=json&url=http://instagram.com/p/R82ycNoNfn/
127
155
  body:
128
156
  encoding: US-ASCII
129
157
  string: ''
130
158
  headers:
159
+ Accept-Encoding:
160
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
131
161
  Accept:
132
- - ! '*/*'
162
+ - '*/*'
133
163
  User-Agent:
134
164
  - Ruby
135
165
  response:
@@ -137,79 +167,98 @@ http_interactions:
137
167
  code: 200
138
168
  message: OK
139
169
  headers:
140
- X-Amz-Id-2:
141
- - egiEhZusJOHp5tBxITJ+0yMZ0sd8E8L45BBJ514LxOeQys66xTCgme9Sh/sWed1Z
142
- X-Amz-Request-Id:
143
- - 950B07CB3806414A
170
+ Cache-Control:
171
+ - private, no-cache, no-store, must-revalidate
172
+ Content-Language:
173
+ - en
174
+ Content-Type:
175
+ - application/json
144
176
  Date:
145
- - Tue, 07 May 2013 14:57:27 GMT
177
+ - Thu, 27 Feb 2014 19:42:54 GMT
146
178
  Expires:
147
- - Thu, 15 Apr 2020 20:00:00 GMT
148
- Last-Modified:
149
- - Tue, 13 Nov 2012 01:13:55 GMT
150
- Etag:
151
- - ! '"c4f4b4b37c4e33c16c31092bd8ebf05d"'
152
- Accept-Ranges:
153
- - bytes
154
- Content-Type:
155
- - image/jpeg
156
- Content-Length:
157
- - '87450'
179
+ - Sat, 01 Jan 2000 00:00:00 GMT
180
+ Pragma:
181
+ - no-cache
158
182
  Server:
159
- - AmazonS3
183
+ - nginx
184
+ Set-Cookie:
185
+ - ccode=US; Path=/
186
+ - csrftoken=55845d2b97bc7fb8c3f8f9d4d3fe9409; expires=Thu, 26-Feb-2015 19:42:54
187
+ GMT; Max-Age=31449600; Path=/
188
+ - mid=Uw-VPgAEAAEij81IRus_AlKNWNP7; expires=Wed, 22-Feb-2034 19:42:54 GMT; Max-Age=630720000;
189
+ Path=/
190
+ Vary:
191
+ - Cookie, Accept-Language, Accept-Encoding
192
+ Content-Length:
193
+ - '249'
194
+ Connection:
195
+ - keep-alive
160
196
  body:
161
- encoding: US-ASCII
162
- string: ''
197
+ encoding: UTF-8
198
+ string: '{"provider_url":"http:\/\/instagram.com\/","media_id":"323374234042685415_31727100","title":"Bubble
199
+ bubble...","url":"http:\/\/distilleryimage3.ak.instagram.com\/644f52a02d2f11e2b55e22000a9f09fb_7.jpg","author_name":"cazzerson","height":612,"width":612,"version":"1.0","author_url":"http:\/\/instagram.com\/cazzerson","author_id":31727100,"type":"photo","provider_name":"Instagram"}'
163
200
  http_version:
164
- recorded_at: Tue, 07 May 2013 14:57:26 GMT
201
+ recorded_at: Thu, 27 Feb 2014 19:42:54 GMT
165
202
  - request:
166
- method: head
167
- uri: http://distilleryimage6.ak.instagram.com/ef3c7ff0b71d11e2b1b722000a1d0aba_7.jpg
203
+ method: get
204
+ uri: http://api.instagram.com/oembed?format=json&url=http://instagram.com/p/ZA1L0nINXi/
168
205
  body:
169
206
  encoding: US-ASCII
170
207
  string: ''
171
208
  headers:
209
+ Accept-Encoding:
210
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
172
211
  Accept:
173
- - ! '*/*'
212
+ - '*/*'
174
213
  User-Agent:
175
214
  - Ruby
176
215
  response:
177
216
  status:
178
- code: 403
179
- message: Forbidden
217
+ code: 404
218
+ message: NOT FOUND
180
219
  headers:
181
- X-Amz-Request-Id:
182
- - CF6B07CC1112F2AD
183
- X-Amz-Id-2:
184
- - WXuXnlrapSZRoDjF9z/k5aWvIsPpFsZHrEvPDTQe4djnmT2ohYhDqfaX4e7vwW/S
185
- Content-Type:
186
- - application/xml
187
- Server:
188
- - AmazonS3
189
220
  Cache-Control:
190
- - max-age=129600
221
+ - private, no-cache, no-store, must-revalidate
222
+ Content-Language:
223
+ - en
224
+ Content-Type:
225
+ - text/html; charset=utf-8
226
+ Date:
227
+ - Thu, 27 Feb 2014 19:42:54 GMT
191
228
  Expires:
192
- - Thu, 09 May 2013 02:57:26 GMT
229
+ - Sat, 01 Jan 2000 00:00:00 GMT
230
+ Pragma:
231
+ - no-cache
232
+ Server:
233
+ - nginx
234
+ Set-Cookie:
235
+ - ccode=US; Path=/
236
+ - csrftoken=d6266caf663f9909c87673d4d8f895a8; expires=Thu, 26-Feb-2015 19:42:54
237
+ GMT; Max-Age=31449600; Path=/
238
+ - mid=Uw-VPgAEAAE-mydLNVv49vMpmJT4; expires=Wed, 22-Feb-2034 19:42:54 GMT; Max-Age=630720000;
239
+ Path=/
240
+ Vary:
241
+ - Cookie, Accept-Language
193
242
  Content-Length:
194
- - '1'
195
- Date:
196
- - Tue, 07 May 2013 14:57:26 GMT
243
+ - '34'
197
244
  Connection:
198
245
  - keep-alive
199
246
  body:
200
- encoding: US-ASCII
201
- string: ''
247
+ encoding: UTF-8
248
+ string: No Media Match
202
249
  http_version:
203
- recorded_at: Tue, 07 May 2013 14:57:26 GMT
250
+ recorded_at: Thu, 27 Feb 2014 19:42:54 GMT
204
251
  - request:
205
- method: head
206
- uri: http://distilleryimage7.s3.amazonaws.com/7deb2d9ea6ae11e28a1a22000aa81ffa_7.jpg
252
+ method: get
253
+ uri: http://api.instagram.com/oembed?format=json&url=http://instagram.com/p/R0NyCsK_xf/
207
254
  body:
208
255
  encoding: US-ASCII
209
256
  string: ''
210
257
  headers:
258
+ Accept-Encoding:
259
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
211
260
  Accept:
212
- - ! '*/*'
261
+ - '*/*'
213
262
  User-Agent:
214
263
  - Ruby
215
264
  response:
@@ -217,29 +266,35 @@ http_interactions:
217
266
  code: 200
218
267
  message: OK
219
268
  headers:
220
- X-Amz-Id-2:
221
- - ALRfjdlKJqkh4Hf6JeyIPBJoW1JWEfBsqkpLc4ivfRl5u94eO+sWZP6/R4zVxmTQ
222
- X-Amz-Request-Id:
223
- - DB9CFAC9A11074F3
269
+ Cache-Control:
270
+ - private, no-cache, no-store, must-revalidate
271
+ Content-Language:
272
+ - en
273
+ Content-Type:
274
+ - application/json
224
275
  Date:
225
- - Tue, 07 May 2013 14:57:27 GMT
276
+ - Thu, 27 Feb 2014 19:42:54 GMT
226
277
  Expires:
227
- - Thu, 15 Apr 2020 20:00:00 GMT
228
- Last-Modified:
229
- - Tue, 16 Apr 2013 15:58:35 GMT
230
- Etag:
231
- - ! '"2b4e035b520a465d18472ce01dfb6dfd"'
232
- Accept-Ranges:
233
- - bytes
234
- Content-Type:
235
- - image/jpeg
236
- Content-Length:
237
- - '87726'
278
+ - Sat, 01 Jan 2000 00:00:00 GMT
279
+ Pragma:
280
+ - no-cache
238
281
  Server:
239
- - AmazonS3
282
+ - nginx
283
+ Set-Cookie:
284
+ - ccode=US; Path=/
285
+ - csrftoken=65113997a68a232330752b7f4ecfc78e; expires=Thu, 26-Feb-2015 19:42:54
286
+ GMT; Max-Age=31449600; Path=/
287
+ - mid=Uw-VPgAEAAFdCNfvK9phYZ52i0ao; expires=Wed, 22-Feb-2034 19:42:54 GMT; Max-Age=630720000;
288
+ Path=/
289
+ Vary:
290
+ - Cookie, Accept-Language, Accept-Encoding
291
+ Content-Length:
292
+ - '243'
293
+ Connection:
294
+ - keep-alive
240
295
  body:
241
- encoding: US-ASCII
242
- string: ''
296
+ encoding: UTF-8
297
+ string: '{"provider_url":"http:\/\/instagram.com\/","media_id":"320942086917192799_244467814","title":"Tethered","url":"http:\/\/distilleryimage7.ak.instagram.com\/55dcf0ba2a8c11e29cc822000a1f96e3_7.jpg","author_name":"corylown","height":612,"width":612,"version":"1.0","author_url":"http:\/\/instagram.com\/corylown","author_id":244467814,"type":"photo","provider_name":"Instagram"}'
243
298
  http_version:
244
- recorded_at: Tue, 07 May 2013 14:57:26 GMT
245
- recorded_with: VCR 2.4.0
299
+ recorded_at: Thu, 27 Feb 2014 19:42:54 GMT
300
+ recorded_with: VCR 2.7.0