kinja 0.0.8 → 0.0.9
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.
- checksums.yaml +4 -4
- data/lib/kinja/author.rb +12 -0
- data/lib/kinja/blog.rb +32 -0
- data/lib/kinja/client.rb +41 -0
- data/lib/kinja/helpers.rb +56 -0
- data/lib/kinja/post.rb +36 -0
- data/lib/kinja/tag.rb +34 -0
- data/lib/kinja/version.rb +1 -1
- data/lib/kinja.rb +5 -81
- data/spec/fixtures/vcr_cassettes/get_author_default_blog_id.yml +67 -0
- data/spec/fixtures/vcr_cassettes/get_author_profile.yml +67 -0
- data/spec/fixtures/vcr_cassettes/get_blog_id.yml +68 -0
- data/spec/fixtures/vcr_cassettes/get_feed_by_id.yml +9881 -0
- data/spec/fixtures/vcr_cassettes/get_feed_by_name.yml +10057 -0
- data/spec/fixtures/vcr_cassettes/get_tag.yml +11432 -0
- data/spec/fixtures/vcr_cassettes/get_tag_by_blog_id.yml +7705 -0
- data/spec/fixtures/vcr_cassettes/get_tag_by_blog_name.yml +7770 -0
- data/spec/fixtures/vcr_cassettes/update-post.yml +300 -65
- data/spec/lib/kinja/author_spec.rb +22 -0
- data/spec/lib/kinja/blog_spec.rb +29 -0
- data/spec/lib/kinja/client_spec.rb +0 -0
- data/spec/lib/kinja/helpers_spec.rb +25 -0
- data/spec/lib/kinja/post_spec.rb +48 -0
- data/spec/lib/kinja/tag_spec.rb +27 -0
- data/spec/lib/kinja_spec.rb +3 -76
- data/spec/spec_helper.rb +16 -0
- metadata +38 -2
@@ -6,7 +6,13 @@ http_interactions:
|
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
|
-
headers:
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
10
16
|
response:
|
11
17
|
status:
|
12
18
|
code: 200
|
@@ -26,24 +32,26 @@ http_interactions:
|
|
26
32
|
- CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
|
27
33
|
Set-Cookie:
|
28
34
|
- KinjaBurner="d41d8cd98f00b204e9800998ecf8427e|mzjjk judly bjysk ujnbv"; Expires=Thu,
|
29
|
-
|
30
|
-
- KinjaRememberMe=5876237249235511023|
|
31
|
-
Expires=Thu,
|
32
|
-
- KinjaSession=
|
33
|
-
20:
|
35
|
+
10 Apr 2025 20:19:20 GMT; Path=/; HTTPOnly
|
36
|
+
- KinjaRememberMe=5876237249235511023|30fc1844-bda3-400b-a6d9-6e910b004e50;
|
37
|
+
Expires=Thu, 10 Apr 2025 20:19:20 GMT; Path=/; HTTPOnly
|
38
|
+
- KinjaSession=30fc1844-bda3-400b-a6d9-6e910b004e50; Expires=Mon, 20 Apr 2015
|
39
|
+
20:19:20 GMT; Path=/; HTTPOnly
|
34
40
|
- geocc=US;path=/;
|
35
41
|
X-Kinja:
|
36
|
-
- '
|
42
|
+
- 'app18.bfc.kinja-ops.com #1178'
|
37
43
|
X-Kinja-Version:
|
38
44
|
- '20141118'
|
39
45
|
X-Robots-Tag:
|
40
46
|
- noindex
|
47
|
+
X-Cdn-Fetch:
|
48
|
+
- mantle-setcookie
|
41
49
|
Content-Length:
|
42
|
-
- '
|
50
|
+
- '244'
|
43
51
|
Accept-Ranges:
|
44
52
|
- none
|
45
53
|
Date:
|
46
|
-
- Mon,
|
54
|
+
- Mon, 13 Apr 2015 20:19:20 GMT
|
47
55
|
Via:
|
48
56
|
- 1.1 varnish
|
49
57
|
Age:
|
@@ -51,20 +59,20 @@ http_interactions:
|
|
51
59
|
Connection:
|
52
60
|
- keep-alive
|
53
61
|
X-Served-By:
|
54
|
-
- cache-
|
62
|
+
- cache-jfk1021-JFK
|
55
63
|
X-Cache:
|
56
64
|
- MISS
|
57
65
|
X-Cache-Hits:
|
58
66
|
- '0'
|
59
67
|
X-Timer:
|
60
|
-
-
|
68
|
+
- S1428956360.912781,VS0,VE37
|
61
69
|
Vary:
|
62
|
-
- X-Feature-Hash
|
70
|
+
- X-Feature-Hash,Accept-Encoding
|
63
71
|
body:
|
64
|
-
encoding:
|
65
|
-
string: '{"meta":{"error":null,"warnings":[]},"data":{"id":"5876237249235511023","screenName":"gemtest","displayName":"gemtest","authType":4,"authName":"burner","createdMillis":1424733492000,"updatedMillis":
|
72
|
+
encoding: ASCII-8BIT
|
73
|
+
string: '{"meta":{"error":null,"warnings":[]},"data":{"id":"5876237249235511023","screenName":"gemtest","displayName":"gemtest","authType":4,"authName":"burner","createdMillis":1424733492000,"updatedMillis":1428956360940,"lastLoginMillis":1428956360940,"status":"enabled","avatar":{"id":"17jcxk0ml1k8qpng","format":"png"},"superUser":false,"remoteAccounts":[]}}'
|
66
74
|
http_version:
|
67
|
-
recorded_at: Mon,
|
75
|
+
recorded_at: Mon, 13 Apr 2015 20:19:24 GMT
|
68
76
|
- request:
|
69
77
|
method: get
|
70
78
|
uri: http://kinja.com/api/profile/token
|
@@ -73,7 +81,7 @@ http_interactions:
|
|
73
81
|
string: ''
|
74
82
|
headers:
|
75
83
|
Cookie:
|
76
|
-
- KinjaSession=
|
84
|
+
- KinjaSession=30fc1844-bda3-400b-a6d9-6e910b004e50
|
77
85
|
response:
|
78
86
|
status:
|
79
87
|
code: 200
|
@@ -92,40 +100,44 @@ http_interactions:
|
|
92
100
|
P3p:
|
93
101
|
- CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
|
94
102
|
Set-Cookie:
|
95
|
-
- KinjaSession=
|
96
|
-
20:
|
103
|
+
- KinjaSession=30fc1844-bda3-400b-a6d9-6e910b004e50; Expires=Mon, 20 Apr 2015
|
104
|
+
20:19:20 GMT; Path=/; HTTPOnly
|
97
105
|
- geocc=US;path=/;
|
98
106
|
X-Kinja:
|
99
|
-
- '
|
107
|
+
- 'app06.xyz.kinja-ops.com #1178'
|
100
108
|
X-Kinja-Version:
|
101
109
|
- '20141118'
|
102
110
|
X-Robots-Tag:
|
103
111
|
- noindex
|
112
|
+
X-Cdn-Fetch:
|
113
|
+
- mantle-setcookie
|
104
114
|
Content-Length:
|
105
115
|
- '172'
|
106
116
|
Accept-Ranges:
|
107
117
|
- none
|
108
118
|
Date:
|
109
|
-
- Mon,
|
119
|
+
- Mon, 13 Apr 2015 20:19:20 GMT
|
110
120
|
Via:
|
111
121
|
- 1.1 varnish
|
122
|
+
Age:
|
123
|
+
- '0'
|
112
124
|
Connection:
|
113
125
|
- keep-alive
|
114
126
|
X-Served-By:
|
115
|
-
- cache-
|
127
|
+
- cache-jfk1027-JFK
|
116
128
|
X-Cache:
|
117
129
|
- MISS
|
118
130
|
X-Cache-Hits:
|
119
131
|
- '0'
|
120
132
|
X-Timer:
|
121
|
-
-
|
133
|
+
- S1428956360.989420,VS0,VE9
|
122
134
|
Vary:
|
123
135
|
- X-Feature-Hash
|
124
136
|
body:
|
125
137
|
encoding: UTF-8
|
126
|
-
string: '{"meta":{"error":null,"warnings":[]},"data":{"token":"
|
138
|
+
string: '{"meta":{"error":null,"warnings":[]},"data":{"token":"cf039981-df6b-4fa2-b1f7-5a6cd86ee28f","session":"30fc1844-bda3-400b-a6d9-6e910b004e50","createdMillis":1428956360995}}'
|
127
139
|
http_version:
|
128
|
-
recorded_at: Mon,
|
140
|
+
recorded_at: Mon, 13 Apr 2015 20:19:24 GMT
|
129
141
|
- request:
|
130
142
|
method: get
|
131
143
|
uri: http://kinja.com/api/profile/user/views/asAuthor?ids=5876237249235511023
|
@@ -147,7 +159,7 @@ http_interactions:
|
|
147
159
|
Content-Type:
|
148
160
|
- application/json; charset=utf-8
|
149
161
|
X-Kinja:
|
150
|
-
- '
|
162
|
+
- 'app07.bfc.kinja-ops.com #1178'
|
151
163
|
X-Kinja-Version:
|
152
164
|
- '20141118'
|
153
165
|
X-Robots-Tag:
|
@@ -159,21 +171,21 @@ http_interactions:
|
|
159
171
|
Accept-Ranges:
|
160
172
|
- none
|
161
173
|
Date:
|
162
|
-
- Mon,
|
174
|
+
- Mon, 13 Apr 2015 20:19:21 GMT
|
163
175
|
Via:
|
164
176
|
- 1.1 varnish
|
165
177
|
Age:
|
166
|
-
- '
|
178
|
+
- '0'
|
167
179
|
Connection:
|
168
180
|
- keep-alive
|
169
181
|
X-Served-By:
|
170
|
-
- cache-
|
182
|
+
- cache-jfk1022-JFK
|
171
183
|
X-Cache:
|
172
|
-
-
|
184
|
+
- MISS
|
173
185
|
X-Cache-Hits:
|
174
|
-
- '
|
186
|
+
- '0'
|
175
187
|
X-Timer:
|
176
|
-
-
|
188
|
+
- S1428956361.051829,VS0,VE6
|
177
189
|
Vary:
|
178
190
|
- X-Feature-Hash
|
179
191
|
Set-Cookie:
|
@@ -182,70 +194,293 @@ http_interactions:
|
|
182
194
|
encoding: UTF-8
|
183
195
|
string: '{"meta":{"error":null,"warnings":[]},"data":[{"id":"5876237249235511023","screenName":"gemtest","displayName":"gemtest","superUser":false,"defaultBlogId":1634457255,"avatar":{"id":"17jcxk0ml1k8qpng","format":"png"}}]}'
|
184
196
|
http_version:
|
185
|
-
recorded_at: Mon,
|
197
|
+
recorded_at: Mon, 13 Apr 2015 20:19:24 GMT
|
186
198
|
- request:
|
187
199
|
method: post
|
188
|
-
uri: http://kinja.com/
|
200
|
+
uri: http://kinja.com/apicore/post/1687581385/update?token=cf039981-df6b-4fa2-b1f7-5a6cd86ee28f
|
189
201
|
body:
|
190
202
|
encoding: UTF-8
|
191
|
-
string: '{"publishTimeMillis":
|
203
|
+
string: '{"publishTimeMillis":1428956364169,"defaultBlogId":1634457255}'
|
192
204
|
headers:
|
193
205
|
Content-Type:
|
194
206
|
- application/json
|
195
207
|
response:
|
196
208
|
status:
|
197
|
-
code:
|
198
|
-
message:
|
209
|
+
code: 404
|
210
|
+
message: Not Found
|
199
211
|
headers:
|
200
|
-
|
201
|
-
-
|
202
|
-
Access-Control-Allow-Headers:
|
203
|
-
- Content-Type
|
204
|
-
Access-Control-Allow-Methods:
|
205
|
-
- POST, GET, OPTIONS, PUT, DELETE
|
212
|
+
Cache-Control:
|
213
|
+
- max-age=2
|
206
214
|
Content-Type:
|
207
|
-
-
|
215
|
+
- text/html; charset=utf-8
|
216
|
+
P3p:
|
217
|
+
- CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"
|
208
218
|
X-Kinja:
|
209
|
-
- 'app03.
|
219
|
+
- 'app03.xyz.kinja-ops.com #15570'
|
220
|
+
X-Kinja-Build:
|
221
|
+
- '15570'
|
222
|
+
X-Kinja-Revision:
|
223
|
+
- 52de436be3b8012e5008d37d39e177fd58b85cac
|
224
|
+
X-Kinja-Server:
|
225
|
+
- app03.xyz.kinja-ops.com
|
210
226
|
X-Cdn-Fetch:
|
211
|
-
- mantle-
|
227
|
+
- mantle-origin-cache
|
212
228
|
Content-Length:
|
213
|
-
- '
|
229
|
+
- '31023'
|
214
230
|
Accept-Ranges:
|
215
|
-
-
|
231
|
+
- bytes
|
216
232
|
Date:
|
217
|
-
- Mon,
|
233
|
+
- Mon, 13 Apr 2015 20:19:21 GMT
|
218
234
|
Via:
|
219
235
|
- 1.1 varnish
|
220
236
|
Connection:
|
221
237
|
- keep-alive
|
222
238
|
X-Served-By:
|
223
|
-
- cache-
|
239
|
+
- cache-jfk1025-JFK
|
224
240
|
X-Cache:
|
225
241
|
- MISS
|
226
242
|
X-Cache-Hits:
|
227
243
|
- '0'
|
228
244
|
X-Timer:
|
229
|
-
-
|
245
|
+
- S1428956361.113201,VS0,VE28
|
230
246
|
Vary:
|
231
|
-
- X-Feature-Hash
|
247
|
+
- Accept-Encoding, X-Feature-Hash
|
232
248
|
Set-Cookie:
|
233
249
|
- geocc=US;path=/;
|
234
250
|
body:
|
235
251
|
encoding: UTF-8
|
236
|
-
string:
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
252
|
+
string: "\t<!DOCTYPE html><!--[if lt IE 8]>\t <html class=\"no-js lt-ie9 lt-ie8
|
253
|
+
lt-ie7\" lang=\"en-US\"> <![endif]--><!--[if IE 8]>\t <html class=\"no-js
|
254
|
+
lt-ie9\" lang=\"en-US\"> <![endif]--><!--[if gt IE 8]><!--> <html class=\"no-js\"
|
255
|
+
lang=\"en-US\"> <!--<![endif]--><!-- THIS IS OVERLORD --><head><meta http-equiv=\"X-UA-Compatible\"
|
256
|
+
content=\"IE=11; IE=10; IE=9; IE=8; IE=EDGE\" /><script async type=\"text/javascript\"
|
257
|
+
src=\"http://kinja.com/api/profile/assets/javascripts/sso.js\"></script>\n\t<script
|
258
|
+
type=\"text/javascript\">\n\t\tvar _sf_startpt=(new Date()).getTime();\n\t\tif
|
259
|
+
(typeof(performance) !== 'undefined' && typeof performance.now === 'function')
|
260
|
+
{\n\t\t\tvar _kinjaperf_start = performance.now();\n\t\t}\n\t</script>\n\t\t\n\t<script
|
261
|
+
type=\"text/javascript\">\n\t\t(function () {\n\t\t var w = typeof window
|
262
|
+
!= 'undefined' ? window : exports,\n\t\t\t marks = [];\n\t\t w.performance
|
263
|
+
|| (w.performance = {});\n\t\t w.performance.now || (\n\t\t\tw.performance.now
|
264
|
+
= performance.now || performance.webkitNow ||\n\t\t\t\t\t\t\t\t\t performance.msNow
|
265
|
+
|| performance.mozNow);\n\t\t if (!w.performance.now){\n\t\t\tvar s = Date.now
|
266
|
+
? Date.now() : +(new Date());\n\t\t\tif (performance.timing && performance.timing)\n\t\t\t
|
267
|
+
\ s = performance.timing.navigationStart\n\t\t\tw.performance.now = (function(){\n\t\t\t
|
268
|
+
\ var n = Date.now ? Date.now() : +(new Date());\n\t\t\t return n-s;\n\t\t\t});\n\t\t
|
269
|
+
\ }\n\t\t w.performance.mark || (\n\t\t w.performance.mark =\n\t\t\tw.performance.webkitMark
|
270
|
+
? w.performance.webkitMark :\n\t\t\t(function (l) {\n\t\t\t marks.push({'name':
|
271
|
+
l, 'entryType': 'mark', 'startTime': w.performance.now(), 'duration':0 });\n\t\t\t}));\n\t\t
|
272
|
+
\ w.performance.getEntriesByType || (\n\t\t w.performance.getEntriesByType
|
273
|
+
=\n\t\t\tw.performance.webkitGetEntriesByType ? w.performance.webkitGetEntriesByType
|
274
|
+
:\n\t\t\t(function (t) {\n\t\t\t return t == 'mark' ? marks : [];\n\t\t\t}));\n\t\t
|
275
|
+
\ w.performance.clearMarks || (\n\t\t\tw.performance.clearMarks = w.performance.webkitClearMarks
|
276
|
+
? w.performance.webkitClearMarks :\n\t\t\t(function () {\n\t\t\t marks =
|
277
|
+
[];\n\t\t\t}));\n\t\t w.markUserTime = function(l) {\n\t\t\tsetTimeout(function()
|
278
|
+
{\n\t\t\t\tif (typeof w.performance.mark === 'function') {\n\t\t\t\t\tw.performance.mark(l);\n\t\t\t\t}\n\t\t\t\tif
|
279
|
+
(w.console && w.console.timeStamp) {\n\t\t\t\t\tw.console.timeStamp(l);\n\t\t\t\t}\n\t\t\t},
|
280
|
+
0);\n\t\t };\n\n\t\t}());\n\t</script>\n\t\t<script>\n\twindow.Krux || ((Krux
|
281
|
+
= function () {\n\t\tKrux.q.push(arguments);\n\t}).q = []);\n\t(function ()
|
282
|
+
{\n\t\tfunction retrieve(n) {\n\t\t\tvar m, k = 'kx' + n;\n\t\t\tif (window.localStorage)
|
283
|
+
{\n\t\t\t\treturn window.localStorage[k] || \"\";\n\t\t\t} else if (navigator.cookieEnabled)
|
284
|
+
{\n\t\t\t\tm = document.cookie.match(k + '=([^;]*)');\n\t\t\t\treturn (m &&
|
285
|
+
unescape(m[1])) || \"\";\n\t\t\t} else {\n\t\t\t\treturn '';\n\t\t\t}\n\t\t}\n\t\tKrux.user
|
286
|
+
= retrieve('user');\n\t\tKrux.segments = retrieve('segs') && retrieve('segs').split(',')
|
287
|
+
|| [];\n\t})();\n\t</script><!-- Included CSS Files --><link rel=\"stylesheet\"
|
288
|
+
href=\"http://x.kinja-static.com/assets/stylesheets/tiger-c8b6d45b88e107435c30d5ec17f43c54.css\"><meta
|
289
|
+
name=\"dynamic-stylesheet\" id=\"editor-css-url\" content=\"http://x.kinja-static.com/assets/stylesheets/editor-fd8c41bef45b060a8bd99903248a933a.css\"><!--
|
290
|
+
Site specific colors -->\t<style type=\"text/css\"></style><meta name=\"google-site-verification\"
|
291
|
+
content=\"P13oAn8o8LB6FVCJWKsHWXvxfbR-SJrmvox6EgULpUs\" /><!-- IE Fix for
|
292
|
+
HTML5 Tags --><!--[if lte IE 9]><script src=\"http://html5shiv.googlecode.com/svn/trunk/html5.js\"></script><![endif]--><meta
|
293
|
+
charset=\"utf-8\" /><!-- Set the viewport width to device width for mobile
|
294
|
+
--><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0,
|
295
|
+
minimum-scale=1.0,maximum-scale=10.0\" /><meta name=\"ROBOTS\" content=\"INDEX,
|
296
|
+
FOLLOW\" /><title>Kinja</title><!-- favicon and touch icons --><link rel=\"shortcut
|
297
|
+
icon\" href=\"http://x.kinja-static.com/assets/images/logos/favicons/default.ico\"
|
298
|
+
/><link rel=\"apple-touch-icon\" href=\"http://x.kinja-static.com/assets/images/logos/touchicons/default-touch-icon-200x200.png\"
|
299
|
+
/><meta name=\"msapplication-square70x70logo\" content=\"http://x.kinja-static.com/assets/images/logos/touchicons/default-touch-icon-72x72.png\"
|
300
|
+
/><meta name=\"msapplication-square150x150logo\" content=\"http://x.kinja-static.com/assets/images/logos/touchicons/default-touch-icon-200x200.png\"
|
301
|
+
/><!-- rss --><!-- Open Graph/Facebook headers --><meta property=\"og:title\"
|
302
|
+
content=\"Kinja\" /><meta property=\"og:type\" content=\"blog\" /><meta property=\"og:image\"
|
303
|
+
content=\"http://kinja.com/assets/images/logos/touchicons/default-touch-icon-200x200.png\"
|
304
|
+
/><meta name=\"twitter:card\" content=\"summary_large_image\"><meta name=\"twitter:site\"
|
305
|
+
content=\"@kinja\"><meta name=\"twitter:title\" content=\"Kinja\"><meta name=\"twitter:description\"
|
306
|
+
content=\"\"><meta property=\"og:description\" content=\"\" /><meta name=\"description\"
|
307
|
+
content=\"\" /><meta property=\"og:locale\" content=\"en_US\" /><meta property=\"og:site_name\"
|
308
|
+
content=\"Kinja.com\" /></head><body class=\"f_ads_controller_on f_amazon_matchbuy_on
|
309
|
+
f_amazon_selective_clientside_render_on f_analyticstracking_on f_bigpic_share_on
|
310
|
+
f_biztools_blogname_on f_black_search_icon_on f_cda_on_hash_on f_coredecorators_on
|
311
|
+
f_coreinsets_on f_crossdomainanalytics_on f_editor_dst_fix_on f_editor_timezone_fix_on
|
312
|
+
f_foobar_foo f_footer_new_chartbeat_on f_foreplay_copy_update_on f_gnc_on
|
313
|
+
f_gns_on f_gnx_on f_grecaptcha_on f_groupchats_rendering_performance_on f_hide_pending_replies_on
|
314
|
+
f_hideownfollows_on f_iframe_resize_on f_large_post_performance_on f_limit_draft_controls_on
|
315
|
+
f_longer_permalink_cache_time_1800_on f_moatads_headertag_on f_moatads_promoted_on
|
316
|
+
f_mobile_ad_prototypes_on f_mobile_ad_prototypes_permalink_on f_multioauth_on
|
317
|
+
f_new_editor_css_on f_new_editor_dst_fix_on f_new_editor_message_on f_newblogproperties_on
|
318
|
+
f_newbuttons_on f_newfollowlists_on f_newnav_on f_no_follow_pending_on f_permalinkservice_inviteservice_on
|
319
|
+
f_permalinkservice_showcaseurl_on f_pinterest_on f_popular_6_on f_post_completion_on
|
320
|
+
f_pre_share_view_on f_privateview_to_dashboard_on f_promoted_touch_on f_purge_permalink_on_update_on
|
321
|
+
f_raven_on f_recommended_footer_on f_redactor_on f_remove_spinner_on f_round_avatars_on
|
322
|
+
f_s3assets_on f_scheduled_shares_on f_scribe_paragraphize_formatter_on f_sha_amazon_links_subtags_on
|
323
|
+
f_simplereach_expanded_on f_tablet_popular_on f_throttle_measuring_off f_throttle_test_foo_lorem
|
324
|
+
f_twitter_embed_fix_on f_uidimages_on f_universalanalytics_on f_userstats_on
|
325
|
+
f_viewstats_via_service_on k_liveblog_appRevision_1 k_liveblog_pollIntervalMillis_10000
|
326
|
+
k_maintenance_off en-US \"><div class=\"success-messages\" id=\"js_success-box-container\"></div><div
|
327
|
+
id=\"js_off-canvas-wrap\" class=\"off-canvas-wrap\" data-offcanvas><div class=\"inner-wrap\"><aside
|
328
|
+
class=\"left-off-canvas-menu show-for-medium-down proxima nav-dropdown main-menu\">\t<div
|
329
|
+
id=\"js_blogmenu--offcanvas\"><div class=\"search show-for-medium-down\">\t<form
|
330
|
+
method=\"GET\" class=\"search search-simple\" action=\"/search\" onsubmit=\"window.ga('send',
|
331
|
+
'event', 'Search', 'Submit', 'error');\"><div class=\"input-with-icon\"><span
|
332
|
+
class=\"icon icon-search-alt-thin\"></span><input type=\"text\" placeholder=\"Search
|
333
|
+
Kinja\" name=\"q\" class=\"mbn\" autocomplete=\"off\" data-focus-on-display/></div></form></div><div
|
334
|
+
class=\"divider show-for-medium-down\"></div><div class=\"js_login-links show-for-medium-down\"></div><ul
|
335
|
+
class=\"gmg-blog-list\"><li class=\"title\">Blogs you may like</li>\t<li><a
|
336
|
+
href=\"http://deadspin.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
337
|
+
Deadspin]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-deadspin\"></span>Deadspin</a></li><li><a
|
338
|
+
href=\"http://gawker.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
339
|
+
Gawker]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-gawker\"></span>Gawker</a></li><li><a
|
340
|
+
href=\"http://gizmodo.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
341
|
+
Gizmodo]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-gizmodo\"></span>Gizmodo</a></li><li><a
|
342
|
+
href=\"http://io9.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click, io9]\"><span
|
343
|
+
class=\"icon icon-prepend icon-sprite site-icon site-icon-io9\"></span>io9</a></li><li><a
|
344
|
+
href=\"http://jalopnik.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
345
|
+
Jalopnik]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-jalopnik\"></span>Jalopnik</a></li><li><a
|
346
|
+
href=\"http://jezebel.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
347
|
+
Jezebel]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-jezebel\"></span>Jezebel</a></li><li><a
|
348
|
+
href=\"http://kotaku.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
349
|
+
Kotaku]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-kotaku\"></span>Kotaku</a></li><li><a
|
350
|
+
href=\"http://lifehacker.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
351
|
+
Lifehacker]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-lifehacker\"></span>Lifehacker</a></li><li><a
|
352
|
+
href=\"http://sploid.gizmodo.com/\" data-ga=\"[Kinja Menu, Blogs You May Like
|
353
|
+
Click, Sploid]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-sploid\"></span>Sploid</a></li></ul></div><div
|
354
|
+
class=\"divider\"></div></aside><aside class=\"right-off-canvas-menu show-for-medium-down
|
355
|
+
proxima nav-dropdown\">\t<dl class=\"tabs row\" data-tab><dd class=\"js_notif-tab
|
356
|
+
tab-title small-6 columns\"><a href=\"#js_notifications--offcanvas\">Notifications</a></dd><dd
|
357
|
+
class=\"js_username-tab tab-title active small-6 columns\"><a href=\"#js_usermenu--offcanvas\"
|
358
|
+
class=\"js_username\">Username</a></dd></dl><div class=\"tabs-content\"><div
|
359
|
+
class=\"content notif-menu js_notif-panel\" id=\"js_notifications--offcanvas\"><div
|
360
|
+
class=\"divider\"></div></div><div class=\"content active\" id=\"js_usermenu--offcanvas\"><div
|
361
|
+
class=\"divider\"></div></div></div></aside><a class=\"exit-off-canvas\"></a>\t<!--
|
362
|
+
\ md5! --><nav class=\"js_global-nav-wrap js_top-nav global-nav\"><div class=\"global-nav__left
|
363
|
+
global-nav__triggers\"><a class=\"left-off-canvas-toggle hamburger-trigger\"
|
364
|
+
data-ga=\"[Kinja Menu, Menu Click, js_pageType]\"><span class=\"icon-dustinburger\"><span></span><span></span><span></span></span></a><a
|
365
|
+
data-dropdown=\"global-blog\" class=\"js_menu-button hamburger-trigger hamburger-trigger--desktop\"
|
366
|
+
data-ga=\"[Kinja Menu, Menu Click, js_pageType]\"><span class=\"icon-dustinburger\"><span></span><span></span><span></span></span></a><a
|
367
|
+
href=\"#\" id=\"global-search-trigger\" class=\"search-trigger\" data-dropdown=\"global-search\"
|
368
|
+
data-ga=\"[Kinja Menu, Search Click, js_pageType]\"><span class=\"icon icon-search-alt-thin\"></span></a></div><div
|
369
|
+
class=\"global-nav__right global-nav__triggers js_right-user-bar\"></div><div
|
370
|
+
class=\"global-nav__center row\"><div class=\"logo-wrapper large-6 columns
|
371
|
+
large-offset-4\"><a href=\"/\" class=\"logo\" title=\"\" data-ga=\"[Kinja
|
372
|
+
Menu, Logo/Blog Title Click, js_pageType]\"></a></div></div><div class=\"proxima
|
373
|
+
f-dropdown content nav-dropdown main-menu hide-for-medium-down \" id=\"global-blog\"
|
374
|
+
data-dropdown-content><div id=\"js_blogmenu--dropdown\"><div class=\"search
|
375
|
+
show-for-medium-down\">\t<form method=\"GET\" class=\"search search-simple\"
|
376
|
+
action=\"/search\" onsubmit=\"window.ga('send', 'event', 'Search', 'Submit',
|
377
|
+
'error');\"><div class=\"input-with-icon\"><span class=\"icon icon-search-alt-thin\"></span><input
|
378
|
+
type=\"text\" placeholder=\"Search Kinja\" name=\"q\" class=\"mbn\" autocomplete=\"off\"
|
379
|
+
data-focus-on-display/></div></form></div><div class=\"divider show-for-medium-down\"></div><div
|
380
|
+
class=\"js_login-links show-for-medium-down\"></div><ul class=\"gmg-blog-list\"><li
|
381
|
+
class=\"title\">Blogs you may like</li>\t<li><a href=\"http://deadspin.com\"
|
382
|
+
data-ga=\"[Kinja Menu, Blogs You May Like Click, Deadspin]\"><span class=\"icon
|
383
|
+
icon-prepend icon-sprite site-icon site-icon-deadspin\"></span>Deadspin</a></li><li><a
|
384
|
+
href=\"http://gawker.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
385
|
+
Gawker]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-gawker\"></span>Gawker</a></li><li><a
|
386
|
+
href=\"http://gizmodo.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
387
|
+
Gizmodo]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-gizmodo\"></span>Gizmodo</a></li><li><a
|
388
|
+
href=\"http://io9.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click, io9]\"><span
|
389
|
+
class=\"icon icon-prepend icon-sprite site-icon site-icon-io9\"></span>io9</a></li><li><a
|
390
|
+
href=\"http://jalopnik.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
391
|
+
Jalopnik]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-jalopnik\"></span>Jalopnik</a></li><li><a
|
392
|
+
href=\"http://jezebel.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
393
|
+
Jezebel]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-jezebel\"></span>Jezebel</a></li><li><a
|
394
|
+
href=\"http://kotaku.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
395
|
+
Kotaku]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-kotaku\"></span>Kotaku</a></li><li><a
|
396
|
+
href=\"http://lifehacker.com\" data-ga=\"[Kinja Menu, Blogs You May Like Click,
|
397
|
+
Lifehacker]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-lifehacker\"></span>Lifehacker</a></li><li><a
|
398
|
+
href=\"http://sploid.gizmodo.com/\" data-ga=\"[Kinja Menu, Blogs You May Like
|
399
|
+
Click, Sploid]\"><span class=\"icon icon-prepend icon-sprite site-icon site-icon-sploid\"></span>Sploid</a></li></ul></div></div><div
|
400
|
+
class=\"f-dropdown content nav-dropdown search-dropdown hide-for-medium-down\"
|
401
|
+
id=\"global-search\" data-dropdown-content><form method=\"GET\" action=\"/search\"
|
402
|
+
data-ga=\"[Search, Submit, js_pageType]\"><div class=\"input-with-icon\"><span
|
403
|
+
class=\"icon icon-search-alt-thin\"></span><input id=\"global-search-input\"
|
404
|
+
type=\"search\" name=\"q\" placeholder=\"Search Kinja\" autocomplete=\"off\"
|
405
|
+
/></div></form></div><div class=\"proxima f-dropdown nav-dropdown content
|
406
|
+
notif-menu\" id=\"js_notifications--dropdown\" data-dropdown-content></div><div
|
407
|
+
class=\"js_global-user scrollable-container noskimlinks noskimwords\"><div
|
408
|
+
class=\"proxima f-dropdown nav-dropdown content user-menu user-menu--mobile\"
|
409
|
+
id=\"js_usermenu--dropdown\" data-dropdown-content></div></div></nav>\t\n\t<script
|
410
|
+
type=\"text/javascript\">\n\t\tvar readOnlyRequest;\n\t\tvar cn = \"read-only\";\n\t\tvar
|
411
|
+
cacheBusterParam = \"?cb=\" + Math.floor(Date.now() / 60000); // update every
|
412
|
+
minute\n\t\tvar setReadOnly = function () {\n\t\t\tdocument.body.className
|
413
|
+
= (document.body.className === '') ? cn : document.body.className + ' ' +
|
414
|
+
cn;\n\t\t};\n\t\tif (window.XMLHttpRequest) {\n\t\t\treadOnlyRequest = new
|
415
|
+
XMLHttpRequest();\n\t\t} else if (window.ActiveXObject) {\n\t\t\treadOnlyRequest
|
416
|
+
= new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t}\n\t\treadOnlyRequest.onreadystatechange
|
417
|
+
= function() {\n\t\t\tif (readOnlyRequest.readyState == 4 && readOnlyRequest.status
|
418
|
+
>= 500 && readOnlyRequest.status < 600) {\n\t\t\t\tsetReadOnly();\n\t\t\t}\n\t\t};\n
|
419
|
+
\ \treadOnlyRequest.open('GET', \"/ajax/readOnlyMode\" + cacheBusterParam);\n
|
420
|
+
\ \treadOnlyRequest.send();\n\t</script>\n\t<div class=\"row page\"><div
|
421
|
+
class=\"columns\">\t\t<script type=\"text/javascript\">(function () {window.kinja
|
422
|
+
= window.kinja || {}; window.kinja.error = JSON.parse(decodeURIComponent(
|
423
|
+
'%7B%22status%22%3A404%7D' ));}());</script><div class=\"row\"><div class=\"medium-4
|
424
|
+
push-4 columns\"><div class=\"panel page-error text-center\"><a href=\"http://kinja.com/\"
|
425
|
+
class=\"logo\"></a><h1>404 / 1Path apicore/post/1687581385/update not found</h1></div></div></div></div></div>\t<div
|
426
|
+
style=\"display:none;\" id=\"read-only-warning\"><div class=\"row\"><div class=\"column
|
427
|
+
small-12\">Kinja is in read-only mode. We are working to restore service.</div></div></div><div
|
428
|
+
id=\"trackers\" style=\"display: none;\"></div><script type=\"text/javascript\">\n\t\tDate.now
|
429
|
+
= Date.now || function() { return +new Date; };\n\t\twindow.statsdTicks =
|
430
|
+
[{\n\t\t\tms: Date.now(),\n\t\t\tmessage: \"JS init reached\",\n\t\t\treporting:
|
431
|
+
false\n\t\t}];\n\t\t</script><script>markUserTime(\"JS - Before Require load\");</script><script
|
432
|
+
type=\"text/javascript\" src=\"http://x.kinja-static.com/assets/javascripts/lib/require.js?2\"></script><script
|
433
|
+
type=\"text/javascript\">(function () {window.kinja = window.kinja || {};
|
434
|
+
window.kinja.meta = JSON.parse(decodeURIComponent( '%7B%22cloudinaryRequest%22%3A%7B%22default%22%3A%7B%22eager%22%3A%22c_fill%2Cfl_progressive%2Cg_center%2Ch_180%2Cq_80%2Cw_320%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_600%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_100%2Cq_80%2Cw_100%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_77%2Cq_80%2Cw_137%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_600%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_264%2Cq_80%2Cw_470%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_358%2Cq_80%2Cw_636%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_264%2Cq_80%2Cw_470%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_77%2Cq_80%2Cw_137%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_77%2Cq_80%2Cw_137%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_120%2Cq_80%2Cw_120%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_636%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_77%2Cq_80%2Cw_137%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_358%2Cq_80%2Cw_636%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_470%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_80%2Cq_80%2Cw_80%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_180%2Cq_80%2Cw_320%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_180%2Cq_80%2Cw_320%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_320%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_120%2Cq_80%2Cw_120%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_200%2Cq_80%2Cw_200%7Cc_fill%2Cfl_progressive%2Cg_faces%2Ch_77%2Cq_80%2Cw_137%7Cc_fill%2Cfl_progressive%2Cg_faces%2Ch_77%2Cq_80%2Cw_137%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_80%2Cq_80%2Cw_80%7C%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_358%2Cq_80%2Cw_636%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_470%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_100%2Cq_80%2Cw_100%7Cc_fit%2Cfl_progressive%2Ch_100%2Cq_80%2Cw_75%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_200%2Cq_80%2Cw_200%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_636%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_320%7Cc_fit%2Cfl_progressive%2Ch_100%2Cq_80%2Cw_75%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_358%2Cq_80%2Cw_636%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_180%2Cq_80%2Cw_320%7C%22%2C%22timestamp%22%3A%221428956361%22%2C%22signature%22%3A%2207428d82668a99fe2f85be66202a7534c442c44e%22%2C%22api_key%22%3A%22196565315244936%22%2C%22eager_async%22%3A%22true%22%7D%2C%22gif%22%3A%7B%22eager%22%3A%22c_fill%2Cfl_progressive%2Cg_center%2Ch_180%2Cq_80%2Cw_320%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_600%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_100%2Cq_80%2Cw_100%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_77%2Cq_80%2Cw_137%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_600%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_264%2Cq_80%2Cw_470%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_358%2Cq_80%2Cw_636%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_264%2Cq_80%2Cw_470%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_77%2Cq_80%2Cw_137%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_77%2Cq_80%2Cw_137%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_120%2Cq_80%2Cw_120%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_636%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_77%2Cq_80%2Cw_137%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_358%2Cq_80%2Cw_636%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_470%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_80%2Cq_80%2Cw_80%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_180%2Cq_80%2Cw_320%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_180%2Cq_80%2Cw_320%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_320%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_120%2Cq_80%2Cw_120%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_200%2Cq_80%2Cw_200%7Cc_fill%2Cfl_progressive%2Cg_faces%2Ch_77%2Cq_80%2Cw_137%7Cc_fill%2Cfl_progressive%2Cg_faces%2Ch_77%2Cq_80%2Cw_137%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_80%2Cq_80%2Cw_80%7C%7Cc_fill%2Cfl_progressive%2Cg_north%2Ch_358%2Cq_80%2Cw_636%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_470%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_100%2Cq_80%2Cw_100%7Cc_fit%2Cfl_progressive%2Ch_100%2Cq_80%2Cw_75%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_200%2Cq_80%2Cw_200%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_636%7Cc_fit%2Cfl_progressive%2Cq_80%2Cw_320%7Cc_fit%2Cfl_progressive%2Ch_100%2Cq_80%2Cw_75%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_358%2Cq_80%2Cw_636%7Cc_fill%2Cfl_progressive%2Cg_center%2Ch_180%2Cq_80%2Cw_320%7C%22%2C%22timestamp%22%3A%221428956361%22%2C%22tags%22%3A%22gif%22%2C%22signature%22%3A%22df1170ebb69763f274231c7c4ea023bb37117bea%22%2C%22api_key%22%3A%22196565315244936%22%2C%22eager_async%22%3A%22true%22%7D%7D%2C%22syncFeatures%22%3Anull%2C%22featuresLastUpdate%22%3A1428938191804%2C%22killswitches%22%3A%7B%22liveblog.pollIntervalMillis%22%3A%7B%22name%22%3A%22liveblog.pollIntervalMillis%22%2C%22value%22%3A%2210000%22%2C%22defaultValue%22%3A%2210000%22%2C%22meta%22%3Anull%7D%2C%22liveblog.appRevision%22%3A%7B%22name%22%3A%22liveblog.appRevision%22%2C%22value%22%3A%221%22%2C%22defaultValue%22%3A%221%22%2C%22meta%22%3Anull%7D%2C%22maintenance%22%3A%7B%22name%22%3A%22maintenance%22%2C%22value%22%3A%22off%22%2C%22defaultValue%22%3A%22off%22%2C%22meta%22%3Anull%7D%7D%2C%22mode%22%3A%22live%22%2C%22pageType%22%3A%22error%22%2C%22currentUrl%22%3A%22%2Fapicore%2Fpost%2F1687581385%2Fupdate%3Ftoken%3Dcf039981-df6b-4fa2-b1f7-5a6cd86ee28f%22%2C%22locale%22%3A%22en-US%22%2C%22localeWithUnderscore%22%3A%22en_US%22%2C%22imageSizes%22%3A%7B%22KinjaCenteredMedium%22%3A%7B%22width%22%3A320%2C%22height%22%3A180%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22blg-logo%22%3A%7B%22width%22%3A600%2C%22crop%22%3A%22fit%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22blg-avt-%22%3A%7B%22width%22%3A100%2C%22height%22%3A100%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22kc-small%22%3A%7B%22width%22%3A137%2C%22height%22%3A77%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22BlogLogo%22%3A%7B%22width%22%3A600%2C%22crop%22%3A%22fit%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22k-large%22%3A%7B%22width%22%3A470%2C%22height%22%3A264%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22north%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22kc-xlarge%22%3A%7B%22width%22%3A636%2C%22height%22%3A358%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22KinjaLarge%22%3A%7B%22width%22%3A470%2C%22height%22%3A264%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22north%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22KinjaCenteredSmall%22%3A%7B%22width%22%3A137%2C%22height%22%3A77%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22k-small%22%3A%7B%22width%22%3A137%2C%22height%22%3A77%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22north%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22AvatarMedium%22%3A%7B%22width%22%3A120%2C%22height%22%3A120%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22ku-xlarge%22%3A%7B%22width%22%3A636%2C%22crop%22%3A%22fit%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22KinjaSmall%22%3A%7B%22width%22%3A137%2C%22height%22%3A77%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22north%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22KinjaExtraLarge%22%3A%7B%22width%22%3A636%2C%22height%22%3A358%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22north%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22ku-large%22%3A%7B%22width%22%3A470%2C%22crop%22%3A%22fit%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22avt-small%22%3A%7B%22width%22%3A80%2C%22height%22%3A80%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22k-medium%22%3A%7B%22width%22%3A320%2C%22height%22%3A180%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22north%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22KinjaMedium%22%3A%7B%22width%22%3A320%2C%22height%22%3A180%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22north%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22ku-medium%22%3A%7B%22width%22%3A320%2C%22crop%22%3A%22fit%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22avt-medium%22%3A%7B%22width%22%3A120%2C%22height%22%3A120%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22avt-large%22%3A%7B%22width%22%3A200%2C%22height%22%3A200%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22k-thumb%22%3A%7B%22width%22%3A137%2C%22height%22%3A77%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22faces%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22KinjaThumb%22%3A%7B%22width%22%3A137%2C%22height%22%3A77%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22faces%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22AvatarSmall%22%3A%7B%22width%22%3A80%2C%22height%22%3A80%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22original%22%3A%7B%7D%2C%22k-xlarge%22%3A%7B%22width%22%3A636%2C%22height%22%3A358%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22north%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22KinjaUncroppedLarge%22%3A%7B%22width%22%3A470%2C%22crop%22%3A%22fit%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22BlogAvatar%22%3A%7B%22width%22%3A100%2C%22height%22%3A100%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22ku-inset%22%3A%7B%22width%22%3A75%2C%22height%22%3A100%2C%22crop%22%3A%22fit%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22AvatarLarge%22%3A%7B%22width%22%3A200%2C%22height%22%3A200%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22KinjaUncroppedExtraLarge%22%3A%7B%22width%22%3A636%2C%22crop%22%3A%22fit%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22KinjaUncroppedMedium%22%3A%7B%22width%22%3A320%2C%22crop%22%3A%22fit%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22KinjaUncroppedInset%22%3A%7B%22width%22%3A75%2C%22height%22%3A100%2C%22crop%22%3A%22fit%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22KinjaCenteredExtraLarge%22%3A%7B%22width%22%3A636%2C%22height%22%3A358%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22kc-medium%22%3A%7B%22width%22%3A320%2C%22height%22%3A180%2C%22crop%22%3A%22fill%22%2C%22gravity%22%3A%22center%22%2C%22flags%22%3A%22progressive%22%2C%22quality%22%3A80%7D%2C%22Original%22%3A%7B%7D%7D%2C%22imgassets%22%3A%22http%3A%2F%2Fx.kinja-static.com%2Fassets%2Fimages%2F%22%7D'
|
435
|
+
));}());</script><script type=\"text/javascript\">(function () {/* This AMD
|
436
|
+
configuration is used in these contexts:1) in-browser2) build process3) tests*/(function
|
437
|
+
() {'use strict';/*globals requirejs, document */requirejs.config({bundles:
|
438
|
+
{'lib/scribe/scribe': ['scribe']},paths: (function () {var paths = {'html-janitor':
|
439
|
+
'lib/html-janitor',jquery: 'lib/jquery',underscore: 'lib/underscore',backbone:
|
440
|
+
'lib/backbone','backbone.marionette': 'lib/backbone.marionette','backbone.stickit':
|
441
|
+
'lib/backbone.stickit',moment: 'lib/amd-wrapped/momentjs/moment','moment-timezone':
|
442
|
+
'lib/amd-wrapped/momentjs/moment-timezone','jquery.tap': 'lib/amd-wrapped/tap.js/jquery.tap',ace:
|
443
|
+
'lib/ace','scribe-virtualdom': 'lib/scribe-virtualdom','scribe-plugin-heading-command':
|
444
|
+
'lib/scribe/plugins/scribe-plugin-heading-command','scribe-plugin-smart-lists':
|
445
|
+
'lib/scribe/plugins/scribe-plugin-smart-lists','scribe-plugin-blockquote-command':
|
446
|
+
'lib/scribe/plugins/scribe-plugin-blockquote-command','scribe-plugin-intelligent-unlink-command':
|
447
|
+
'lib/scribe/plugins/scribe-plugin-intelligent-unlink-command','scribe-plugin-formatter-html-ensure-semantic-elements':
|
448
|
+
'lib/scribe/plugins/scribe-plugin-formatter-html-ensure-semantic-elements','scribe-plugin-inline-styles-to-elements':
|
449
|
+
'lib/scribe/plugins/scribe-plugin-inline-styles-to-elements','scribe-plugin-keyboard-shortcuts':
|
450
|
+
'lib/scribe/plugins/scribe-plugin-keyboard-shortcuts','scribe-plugin-sanitizer':
|
451
|
+
'lib/scribe/plugins/scribe-plugin-sanitizer','scribe-plugin-code-command':
|
452
|
+
'lib/scribe/plugins/scribe-plugin-code-command','scribe-plugin-curly-quotes':
|
453
|
+
'lib/scribe/plugins/scribe-plugin-curly-quotes'};if (typeof document !== 'undefined')
|
454
|
+
{paths.templates = 'templates/closure/' + (document.getElementsByTagName('html')[0].getAttribute('lang')
|
455
|
+
|| 'en-US');}return paths;}())});}());var modules = {\"BaseApp\": \"-08654293cb824e6ee2a2f3ee952016fa\",\"TagPageApp\":
|
456
|
+
\"-94fd35e32e3cffa6aadc77b349537024\",\"PromoteModalModule\": \"-2f56e918519465afdefd9f9fb67aa6c7\",\"FrontPageApp\":
|
457
|
+
\"-e3ae4c1ba8366f0383d38e512195ba54\",\"Main\": \"-cd06759836c970bbc07cb20021f8dcea\",\"PromotedPostPreview\":
|
458
|
+
\"-364247591333788b703963ef95eb06f2\",\"RuleSystem\": \"-23eadc96464620f5481d6511290b831b\",\"ProfilePageApp\":
|
459
|
+
\"-957949a04b39e399f19ee5029c2d846a\",\"ace\": \"-a486a39565033c80d86a498ff172dad1\",\"AmazonStats\":
|
460
|
+
\"-9ac5f9b843b1cf3f2be5b340f5a277c1\",\"GroupchatsModule\": \"-d3c6a4e5d685e7448269107e972cc18e\",\"KindrApp\":
|
461
|
+
\"-83312f48930a76fdbde9b9ff55d00234\",\"FeaturesPageApp\": \"-65a2703d1ced5c8caa6e8e1ec6dd081a\",\"LeaderboardStatsPageApp\":
|
462
|
+
\"-4fa5a9931415be0334fbd904dbcd2f68\",\"ScribeEditor\": \"-59417fc3aabad48e65408bd3ef30d37b\",\"PrivatePageApp\":
|
463
|
+
\"-aa278e80581f90424142984ff6daa663\",\"PostDebugPageApp\": \"-66624a179609dfb6e8673869392ec459\",\"PostApp\":
|
464
|
+
\"-c1a077c0a42e68e0a9826f4a8aa216a6\",\"DashboardPageApp\": \"-cc3428c8341731b13f269dff0b96add3\",\"StatsPageApp\":
|
465
|
+
\"-f268d90af93d49d91f999d347134484c\",\"FlaggedRepliesApp\": \"-cbf2defe2f24e2dd73491aeb68e932a4\",\"MarionetteEditor\":
|
466
|
+
\"-aca87a5b0286c0bc6a430cbc64da51bc\",\"AccountModalsModule\": \"-75026eae9c9a941485cddd9da1878c97\",\"BlacklistPageApp\":
|
467
|
+
\"-25b7ac8fde26807a5793b23dc62c7ee9\",\"JWPlayer\": \"-bcb2726c49022f1b0a79203da422279b\",\"GmgFeaturesPageApp\":
|
468
|
+
\"-7e76b05ad75e7cfef9cdea7872277190\",\"DiscussionModule\": \"-6be9a00e43687019b3c5beb76f934c49\",\"ErrorPageApp\":
|
469
|
+
\"-466ecff71d2139f24f646a434efdc8ad\",\"NotificationsPageApp\": \"-dc3ef91dae4efb9e394ebec76ed6b105\",\"TipsApp\":
|
470
|
+
\"-f721801b3fe0a1e84c76bbabb51058f2\",\"KinjaAnalytics\": \"-bafda53ecf504147e84c449043b4a14c\",\"KinjaFeedApp\":
|
471
|
+
\"-e7858b1e7eab22658d6b108a734645ab\",\"SearchPageApp\": \"-919f72d26b93698a1a92435c0d348b95\",\"Raven\":
|
472
|
+
\"-3467f3aed7fecb0be39f14c0d7095e44\",\"BusinessModule\": \"-984f7818f6fd772eea21008a170c3f8a\",\"UIKitApp\":
|
473
|
+
\"-a40559245cde4eda70101934ee8c39d4\",\"BlogSettingsModule\": \"-7f3473aceba4c79155b9c7e0041b0401\",\"StatsPerformanceApp\":
|
474
|
+
\"-3a7c60504bc19f7755c8e6140894bf24\"}, paths = {}, baseUrl = \"http://x.kinja-static.com/assets/javascripts-min/\",
|
475
|
+
modulePath = \"layer/\"; for (var module in modules) {if (modules.hasOwnProperty(module))
|
476
|
+
{paths[\"module/\" + module] = \"module/\" + module + \"-en-US\" + modules[module];
|
477
|
+
paths[\"layer/\" + module] = \"layer/\" + module + \"-en-US\" + modules[module];}}require.config({waitSeconds:
|
478
|
+
0, baseUrl: baseUrl, paths: paths, map: {\"*\": {\"config\": \"config\"}}});markUserTime(\"JS
|
479
|
+
- Before preload\"); require([modulePath + \"Main\", modulePath + \"BaseApp\"],
|
480
|
+
function () {markUserTime(\"JS - After preload\"); require([\"module/Main\"],
|
481
|
+
function () {markUserTime(\"JS - After app init\");});});}());</script><!--[if
|
482
|
+
gte IE 9]> --><script>require([\"module/Raven\"]);</script><!-- <![endif]--><div
|
483
|
+
class=\"reveal-modal-bg\"></div><div id=\"modalplaceholder\"></div></div></div></body></html>"
|
249
484
|
http_version:
|
250
|
-
recorded_at: Mon,
|
485
|
+
recorded_at: Mon, 13 Apr 2015 20:19:24 GMT
|
251
486
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Kinja::Author do
|
4
|
+
let(:kinja) {
|
5
|
+
Kinja::Client.new
|
6
|
+
}
|
7
|
+
|
8
|
+
it "retrieves an author's profile" do
|
9
|
+
VCR.use_cassette('get_author_profile') do
|
10
|
+
author = kinja.get_author("id" => "5716491910670767033")
|
11
|
+
expect(author[0]["screenName"]).to eq "adampash"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
it "retrieves an author's default blog id" do
|
16
|
+
VCR.use_cassette('get_author_default_blog_id') do
|
17
|
+
blog_id = kinja.get_default_blog_id("id" => "5716491910670767033")
|
18
|
+
expect(blog_id).to eq 771
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Kinja::Blog do
|
4
|
+
let(:kinja) {
|
5
|
+
Kinja::Client.new
|
6
|
+
}
|
7
|
+
|
8
|
+
it "retrieves a blog's feed by id" do
|
9
|
+
VCR.use_cassette('get_feed_by_id') do
|
10
|
+
feed = kinja.get_feed(7)
|
11
|
+
expect(feed[0]["post"]["headline"].include? "You Are Paying Billions").to be true
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
it "retrieves a blog's id" do
|
16
|
+
VCR.use_cassette('get_blog_id') do
|
17
|
+
id = kinja.get_blog_id("gawker.com")
|
18
|
+
expect(id).to eq 7
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
it "retrieves a blogs' feed by blog name" do
|
23
|
+
VCR.use_cassette('get_feed_by_name') do
|
24
|
+
feed = kinja.get_feed("gawker.com")
|
25
|
+
expect(feed[0]["post"]["headline"].include? "Strong Storms").to be true
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
File without changes
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Kinja do
|
4
|
+
let(:kinja) {
|
5
|
+
Kinja::Client.new
|
6
|
+
}
|
7
|
+
|
8
|
+
it "gets an id from a link" do
|
9
|
+
new_link = "http://gizmodo.com/how-police-body-cameras-were-designed-to-get-cops-off-t-1691693677/+maxread"
|
10
|
+
expect(kinja.get_post_id new_link).to eq "1691693677"
|
11
|
+
|
12
|
+
old_link = "http://lifehacker.com/238306/lifehacker-code-texter-windows"
|
13
|
+
expect(kinja.get_post_id old_link).to eq "238306"
|
14
|
+
|
15
|
+
old_link_nums = "http://lifehacker.com/238306/lifehacker-21-code-texter-windows"
|
16
|
+
expect(kinja.get_post_id old_link_nums).to eq "238306"
|
17
|
+
|
18
|
+
multi_nums = "http://theconcourse.deadspin.com/a-21st-century-rip-van-winkle-what-changed-in-my-decad-1691783386/+laceydonohue"
|
19
|
+
expect(kinja.get_post_id multi_nums).to eq "1691783386"
|
20
|
+
end
|
21
|
+
|
22
|
+
it "returns the id if it's passed an id instead of a link" do
|
23
|
+
expect(kinja.get_post_id "23432343").to eq "23432343"
|
24
|
+
end
|
25
|
+
end
|