onebox 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +7 -452
- data/Gemfile +1 -1
- data/README.md +23 -45
- data/lib/onebox.rb +21 -13
- data/lib/onebox/engine.rb +53 -43
- data/lib/onebox/engine/amazon_onebox.rb +34 -7
- data/lib/onebox/engine/classic_google_maps_onebox.rb +37 -0
- data/lib/onebox/engine/github_blob_onebox.rb +27 -7
- data/lib/onebox/engine/github_commit_onebox.rb +8 -15
- data/lib/onebox/engine/github_gist_onebox.rb +10 -10
- data/lib/onebox/engine/github_pullrequest_onebox.rb +7 -15
- data/lib/onebox/engine/google_play_app_onebox.rb +30 -0
- data/lib/onebox/engine/html.rb +10 -1
- data/lib/onebox/engine/image_onebox.rb +13 -0
- data/lib/onebox/engine/stack_exchange_onebox.rb +25 -11
- data/lib/onebox/engine/standard_embed.rb +48 -0
- data/lib/onebox/engine/twitter_status_onebox.rb +100 -0
- data/lib/onebox/engine/whitelisted_generic_onebox.rb +223 -0
- data/lib/onebox/engine/wikipedia_onebox.rb +27 -5
- data/lib/onebox/engine/youtube_onebox.rb +22 -0
- data/lib/onebox/helpers.rb +24 -0
- data/lib/onebox/layout.rb +67 -0
- data/lib/onebox/layout_support.rb +16 -0
- data/lib/onebox/matcher.rb +6 -1
- data/lib/onebox/preview.rb +19 -6
- data/lib/onebox/version.rb +1 -1
- data/lib/onebox/view.rb +7 -12
- data/onebox.gemspec +7 -5
- data/spec/fixtures/amazon.response +1336 -2971
- data/spec/fixtures/githubblob.response +49 -921
- data/spec/fixtures/{android.response → googleplayapp.response} +1 -1
- data/spec/fixtures/stackexchange.response +1 -1889
- data/spec/fixtures/twitterstatus.response +3006 -0
- data/spec/fixtures/youtube-json.response +1 -0
- data/spec/fixtures/youtube.response +1625 -0
- data/spec/lib/onebox/engine/amazon_onebox_spec.rb +5 -20
- data/spec/lib/onebox/engine/classic_google_maps_onebox_spec.rb +28 -0
- data/spec/lib/onebox/engine/github_blob_onebox_spec.rb +6 -15
- data/spec/lib/onebox/engine/github_commit_onebox_spec.rb +14 -22
- data/spec/lib/onebox/engine/github_gist_onebox_spec.rb +6 -14
- data/spec/lib/onebox/engine/github_pullrequest_onebox_spec.rb +14 -26
- data/spec/lib/onebox/engine/google_play_app_onebox_spec.rb +28 -0
- data/spec/lib/onebox/engine/html_spec.rb +4 -6
- data/spec/lib/onebox/engine/json_spec.rb +4 -6
- data/spec/lib/onebox/engine/stack_exchange_onebox_spec.rb +4 -17
- data/spec/lib/onebox/engine/twitter_status_onebox_spec.rb +103 -0
- data/spec/lib/onebox/engine/whitelisted_generic_onebox_spec.rb +51 -0
- data/spec/lib/onebox/engine/wikipedia_onebox_spec.rb +4 -17
- data/spec/lib/onebox/engine/youtube_onebox_spec.rb +17 -0
- data/spec/lib/onebox/engine_spec.rb +35 -32
- data/spec/lib/onebox/layout_spec.rb +77 -0
- data/spec/lib/onebox/matcher_spec.rb +0 -15
- data/spec/lib/onebox/preview_spec.rb +39 -9
- data/spec/lib/onebox_spec.rb +15 -11
- data/spec/spec_helper.rb +60 -4
- data/spec/support/html_spec_helper.rb +2 -1
- data/templates/_layout.mustache +11 -4
- data/templates/amazon.mustache +4 -3
- data/templates/githubblob.mustache +7 -5
- data/templates/githubcommit.mustache +20 -11
- data/templates/githubpullrequest.mustache +19 -12
- data/templates/googleplayapp.mustache +4 -0
- data/templates/stackexchange.mustache +19 -3
- data/templates/twitterstatus.mustache +12 -0
- data/templates/whitelistedgeneric.mustache +5 -0
- data/templates/wikipedia.mustache +4 -3
- metadata +57 -166
- data/lib/onebox/engine/bliptv_onebox.rb +0 -28
- data/lib/onebox/engine/clikthrough_onebox.rb +0 -25
- data/lib/onebox/engine/college_humor_onebox.rb +0 -27
- data/lib/onebox/engine/dailymotion_onebox.rb +0 -28
- data/lib/onebox/engine/dotsub_onebox.rb +0 -27
- data/lib/onebox/engine/example_onebox.rb +0 -24
- data/lib/onebox/engine/flickr_onebox.rb +0 -26
- data/lib/onebox/engine/funny_or_die_onebox.rb +0 -28
- data/lib/onebox/engine/hulu_onebox.rb +0 -29
- data/lib/onebox/engine/imgur_image_onebox.rb +0 -26
- data/lib/onebox/engine/itunes_onebox.rb +0 -28
- data/lib/onebox/engine/kinomap_onebox.rb +0 -27
- data/lib/onebox/engine/nfb_onebox.rb +0 -28
- data/lib/onebox/engine/open_graph.rb +0 -11
- data/lib/onebox/engine/qik_onebox.rb +0 -25
- data/lib/onebox/engine/revision3_onebox.rb +0 -27
- data/lib/onebox/engine/slideshare_onebox.rb +0 -27
- data/lib/onebox/engine/sound_cloud_onebox.rb +0 -27
- data/lib/onebox/engine/spotify_onebox.rb +0 -27
- data/lib/onebox/engine/ted_onebox.rb +0 -28
- data/lib/onebox/engine/twitter_onebox.rb +0 -31
- data/lib/onebox/engine/viddler_onebox.rb +0 -28
- data/lib/onebox/engine/vimeo_onebox.rb +0 -27
- data/lib/onebox/engine/yfrog_onebox.rb +0 -28
- data/spec/fixtures/bliptv.response +0 -724
- data/spec/fixtures/clikthrough.response +0 -1472
- data/spec/fixtures/collegehumor.response +0 -1272
- data/spec/fixtures/dailymotion.response +0 -575
- data/spec/fixtures/dotsub.response +0 -1257
- data/spec/fixtures/example.response +0 -50
- data/spec/fixtures/flickr.response +0 -1292
- data/spec/fixtures/funnyordie.response +0 -2010
- data/spec/fixtures/githubgist.response +0 -468
- data/spec/fixtures/hulu.response +0 -339
- data/spec/fixtures/imguralbum.response +0 -941
- data/spec/fixtures/imgurimage.response +0 -872
- data/spec/fixtures/itunes.response +0 -402
- data/spec/fixtures/kinomap.response +0 -299
- data/spec/fixtures/nfb.response +0 -810
- data/spec/fixtures/opengraph.response +0 -27
- data/spec/fixtures/qik.response +0 -371
- data/spec/fixtures/revision3.response +0 -985
- data/spec/fixtures/rottentomatoesfresh.response +0 -3275
- data/spec/fixtures/rottentomatoesincomplete.response +0 -2313
- data/spec/fixtures/rottentomatoesrotten.response +0 -3549
- data/spec/fixtures/slideshare.response +0 -1745
- data/spec/fixtures/soundcloud.response +0 -1409
- data/spec/fixtures/spotify.response +0 -250
- data/spec/fixtures/ted.response +0 -1341
- data/spec/fixtures/twitter.response +0 -1712
- data/spec/fixtures/viddler.response +0 -442
- data/spec/fixtures/vimeo.response +0 -571
- data/spec/fixtures/yfrog.response +0 -464
- data/spec/lib/onebox/engine/bliptv_onebox_spec.rb +0 -37
- data/spec/lib/onebox/engine/clikthrough_onebox_spec.rb +0 -29
- data/spec/lib/onebox/engine/college_humor_onebox_spec.rb +0 -37
- data/spec/lib/onebox/engine/dailymotion_onebox_spec.rb +0 -39
- data/spec/lib/onebox/engine/dotsub_onebox_spec.rb +0 -39
- data/spec/lib/onebox/engine/example_onebox_spec.rb +0 -21
- data/spec/lib/onebox/engine/flickr_onebox_spec.rb +0 -33
- data/spec/lib/onebox/engine/funny_or_die_onebox_spec.rb +0 -37
- data/spec/lib/onebox/engine/hulu_onebox_spec.rb +0 -37
- data/spec/lib/onebox/engine/imgur_image_onebox_spec.rb +0 -29
- data/spec/lib/onebox/engine/itunes_onebox_spec.rb +0 -29
- data/spec/lib/onebox/engine/kinomap_onebox_spec.rb +0 -37
- data/spec/lib/onebox/engine/nfb_onebox_spec.rb +0 -38
- data/spec/lib/onebox/engine/open_graph_spec.rb +0 -27
- data/spec/lib/onebox/engine/qik_onebox_spec.rb +0 -38
- data/spec/lib/onebox/engine/revision3_onebox_spec.rb +0 -39
- data/spec/lib/onebox/engine/slideshare_onebox_spec.rb +0 -33
- data/spec/lib/onebox/engine/sound_cloud_onebox_spec.rb +0 -39
- data/spec/lib/onebox/engine/spotify_onebox_spec.rb +0 -36
- data/spec/lib/onebox/engine/ted_onebox_spec.rb +0 -33
- data/spec/lib/onebox/engine/twitter_onebox_spec.rb +0 -47
- data/spec/lib/onebox/engine/viddler_onebox_spec.rb +0 -39
- data/spec/lib/onebox/engine/vimeo_onebox_spec.rb +0 -37
- data/spec/lib/onebox/engine/yfrog_onebox_spec.rb +0 -33
- data/spec/lib/onebox/view_spec.rb +0 -16
- data/templates/bliptv.mustache +0 -5
- data/templates/clikthrough.mustache +0 -4
- data/templates/collegehumor.mustache +0 -5
- data/templates/dailymotion.mustache +0 -5
- data/templates/dotsub.mustache +0 -5
- data/templates/example.mustache +0 -2
- data/templates/flickr.mustache +0 -4
- data/templates/funnyordie.mustache +0 -6
- data/templates/githubgist.mustache +0 -3
- data/templates/hulu.mustache +0 -6
- data/templates/imgurimage.mustache +0 -3
- data/templates/itunes.mustache +0 -4
- data/templates/kinomap.mustache +0 -5
- data/templates/nfb.mustache +0 -5
- data/templates/qik.mustache +0 -4
- data/templates/revision3.mustache +0 -5
- data/templates/slideshare.mustache +0 -4
- data/templates/soundcloud.mustache +0 -5
- data/templates/spotify.mustache +0 -4
- data/templates/ted.mustache +0 -5
- data/templates/twitter.mustache +0 -7
- data/templates/viddler.mustache +0 -5
- data/templates/vimeo.mustache +0 -5
- data/templates/yfrog.mustache +0 -4
data/templates/_layout.mustache
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
|
4
|
-
|
1
|
+
<aside class="onebox {{subname}}">
|
2
|
+
<header class="source">
|
3
|
+
<a href="{{{link}}}">
|
4
|
+
{{domain}}
|
5
|
+
</a>
|
6
|
+
</header>
|
7
|
+
<article class="onebox-body">
|
8
|
+
{{{view}}}
|
9
|
+
</article>
|
10
|
+
<div style='clear: both'></div>
|
11
|
+
</aside>
|
data/templates/amazon.mustache
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
<
|
2
|
-
{{
|
3
|
-
|
4
|
-
{{
|
5
|
-
{{
|
1
|
+
<h4><a href="{{link}}" target="_blank">{{link}}</a></h4>
|
2
|
+
<pre><code class='{{lang}}'>{{content}}</code></pre>
|
3
|
+
|
4
|
+
{{#truncated}}
|
5
|
+
This file has been truncated. <a href="{{link}}" target="_blank">show original</a>
|
6
|
+
{{/truncated}}
|
7
|
+
|
@@ -1,11 +1,20 @@
|
|
1
|
-
{{
|
2
|
-
{{
|
3
|
-
{{
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
{{
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
{{#author.avatar_url}}
|
2
|
+
<a href="{{author.html_url}}" target="_blank">
|
3
|
+
<img alt="{{author.login}}" src="{{author.avatar_url}}" class="thumbnail">
|
4
|
+
</a>
|
5
|
+
{{/author.avatar_url}}
|
6
|
+
|
7
|
+
<h4>
|
8
|
+
<a href="{{html_url}}" target="_blank">{{commit.message}}</a>
|
9
|
+
</h4>
|
10
|
+
|
11
|
+
<div class="date">
|
12
|
+
by <a href="{{author.html_url}}" target="_blank">{{author.login}}</a>
|
13
|
+
on <a href="{{html_url}}" target="_blank">{{commit_date}}</a>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="github-commit-stats">
|
17
|
+
changed <strong>{{files.length}} files</strong>
|
18
|
+
with <strong>{{stats.additions}} additions</strong>
|
19
|
+
and <strong>{{stats.deletions}} deletions</strong>.
|
20
|
+
</div>
|
@@ -1,14 +1,21 @@
|
|
1
|
-
|
2
|
-
{{
|
3
|
-
{{
|
4
|
-
|
5
|
-
{{
|
6
|
-
<img src="{{gravatar}}" />
|
7
|
-
{{time_date}}
|
8
|
-
{{commits}}
|
9
|
-
{{additions}}
|
10
|
-
{{deletions}}
|
11
|
-
{{changed_files}}
|
12
|
-
{{description}}
|
1
|
+
{{#user.avatar_url}}
|
2
|
+
<a href="{{user.html_url}}" target="_blank">
|
3
|
+
<img alt="{{user.login}}" src="{{user.avatar_url}}" class="thumbnail">
|
4
|
+
</a>
|
5
|
+
{{/user.avatar_url}}
|
13
6
|
|
7
|
+
<h4>
|
8
|
+
<a href="{{html_url}}" target="_blank">{{title}}</a>
|
9
|
+
</h4>
|
14
10
|
|
11
|
+
<div class="date">
|
12
|
+
by <a href="{{user.html_url}}" target="_blank">{{user.login}}</a>
|
13
|
+
on <a href="{{html_url}}" target="_blank">{{created_at}}</a>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="github-commit-stats">
|
17
|
+
<strong>{{commits}} commits</strong>
|
18
|
+
changed <strong>{{changed_files}} files</strong>
|
19
|
+
with <strong>{{additions}} additions</strong>
|
20
|
+
and <strong>{{deletions}} deletions</strong>.
|
21
|
+
</div>
|
@@ -1,3 +1,19 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
<
|
1
|
+
{{#owner.profile_image}}
|
2
|
+
<a href="{{owner.link}}" target="_blank">
|
3
|
+
<img alt="{{owner.display_name}}" src="{{owner.profile_image}}" class="thumbnail">
|
4
|
+
</a>
|
5
|
+
{{/owner.profile_image}}
|
6
|
+
<h4>
|
7
|
+
<a href="{{link}}" target="_blank">{{{title}}}</a>
|
8
|
+
</h4>
|
9
|
+
|
10
|
+
<div class="date">
|
11
|
+
asked by <a href="{{owner.link}}" target="_blank">
|
12
|
+
{{owner.display_name}}
|
13
|
+
</a>
|
14
|
+
on <a href="{{link}}" target="_blank">{{creation_date}}</a>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div>
|
18
|
+
<strong>{{tags}}</strong>
|
19
|
+
</div>
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onebox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joanna Zeta
|
8
8
|
- Vyki Englert
|
9
|
+
- Robin Ward
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: multi_json
|
@@ -45,28 +46,28 @@ dependencies:
|
|
45
46
|
requirements:
|
46
47
|
- - ~>
|
47
48
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
49
|
+
version: 1.6.1
|
49
50
|
type: :runtime
|
50
51
|
prerelease: false
|
51
52
|
version_requirements: !ruby/object:Gem::Requirement
|
52
53
|
requirements:
|
53
54
|
- - ~>
|
54
55
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
56
|
+
version: 1.6.1
|
56
57
|
- !ruby/object:Gem::Dependency
|
57
58
|
name: opengraph_parser
|
58
59
|
requirement: !ruby/object:Gem::Requirement
|
59
60
|
requirements:
|
60
61
|
- - ~>
|
61
62
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
63
|
+
version: 0.2.3
|
63
64
|
type: :runtime
|
64
65
|
prerelease: false
|
65
66
|
version_requirements: !ruby/object:Gem::Requirement
|
66
67
|
requirements:
|
67
68
|
- - ~>
|
68
69
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
70
|
+
version: 0.2.3
|
70
71
|
- !ruby/object:Gem::Dependency
|
71
72
|
name: hexpress
|
72
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,10 +222,25 @@ dependencies:
|
|
221
222
|
- - ~>
|
222
223
|
- !ruby/object:Gem::Version
|
223
224
|
version: '0.11'
|
225
|
+
- !ruby/object:Gem::Dependency
|
226
|
+
name: twitter
|
227
|
+
requirement: !ruby/object:Gem::Requirement
|
228
|
+
requirements:
|
229
|
+
- - ~>
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: '4.8'
|
232
|
+
type: :development
|
233
|
+
prerelease: false
|
234
|
+
version_requirements: !ruby/object:Gem::Requirement
|
235
|
+
requirements:
|
236
|
+
- - ~>
|
237
|
+
- !ruby/object:Gem::Version
|
238
|
+
version: '4.8'
|
224
239
|
description: A gem for turning URLs into previews.
|
225
240
|
email:
|
226
241
|
- holla@jzeta.com
|
227
242
|
- vyki.englert@gmail.com
|
243
|
+
- robin.ward@gmail.com
|
228
244
|
executables: []
|
229
245
|
extensions: []
|
230
246
|
extra_rdoc_files: []
|
@@ -242,154 +258,74 @@ files:
|
|
242
258
|
- lib/onebox.rb
|
243
259
|
- lib/onebox/engine.rb
|
244
260
|
- lib/onebox/engine/amazon_onebox.rb
|
245
|
-
- lib/onebox/engine/
|
246
|
-
- lib/onebox/engine/clikthrough_onebox.rb
|
247
|
-
- lib/onebox/engine/college_humor_onebox.rb
|
248
|
-
- lib/onebox/engine/dailymotion_onebox.rb
|
249
|
-
- lib/onebox/engine/dotsub_onebox.rb
|
250
|
-
- lib/onebox/engine/example_onebox.rb
|
251
|
-
- lib/onebox/engine/flickr_onebox.rb
|
252
|
-
- lib/onebox/engine/funny_or_die_onebox.rb
|
261
|
+
- lib/onebox/engine/classic_google_maps_onebox.rb
|
253
262
|
- lib/onebox/engine/github_blob_onebox.rb
|
254
263
|
- lib/onebox/engine/github_commit_onebox.rb
|
255
264
|
- lib/onebox/engine/github_gist_onebox.rb
|
256
265
|
- lib/onebox/engine/github_pullrequest_onebox.rb
|
266
|
+
- lib/onebox/engine/google_play_app_onebox.rb
|
257
267
|
- lib/onebox/engine/html.rb
|
258
|
-
- lib/onebox/engine/
|
259
|
-
- lib/onebox/engine/imgur_image_onebox.rb
|
260
|
-
- lib/onebox/engine/itunes_onebox.rb
|
268
|
+
- lib/onebox/engine/image_onebox.rb
|
261
269
|
- lib/onebox/engine/json.rb
|
262
|
-
- lib/onebox/engine/kinomap_onebox.rb
|
263
|
-
- lib/onebox/engine/nfb_onebox.rb
|
264
|
-
- lib/onebox/engine/open_graph.rb
|
265
|
-
- lib/onebox/engine/qik_onebox.rb
|
266
|
-
- lib/onebox/engine/revision3_onebox.rb
|
267
|
-
- lib/onebox/engine/slideshare_onebox.rb
|
268
|
-
- lib/onebox/engine/sound_cloud_onebox.rb
|
269
|
-
- lib/onebox/engine/spotify_onebox.rb
|
270
270
|
- lib/onebox/engine/stack_exchange_onebox.rb
|
271
|
-
- lib/onebox/engine/
|
272
|
-
- lib/onebox/engine/
|
273
|
-
- lib/onebox/engine/
|
274
|
-
- lib/onebox/engine/vimeo_onebox.rb
|
271
|
+
- lib/onebox/engine/standard_embed.rb
|
272
|
+
- lib/onebox/engine/twitter_status_onebox.rb
|
273
|
+
- lib/onebox/engine/whitelisted_generic_onebox.rb
|
275
274
|
- lib/onebox/engine/wikipedia_onebox.rb
|
276
|
-
- lib/onebox/engine/
|
275
|
+
- lib/onebox/engine/youtube_onebox.rb
|
276
|
+
- lib/onebox/helpers.rb
|
277
|
+
- lib/onebox/layout.rb
|
278
|
+
- lib/onebox/layout_support.rb
|
277
279
|
- lib/onebox/matcher.rb
|
278
280
|
- lib/onebox/preview.rb
|
279
281
|
- lib/onebox/version.rb
|
280
282
|
- lib/onebox/view.rb
|
281
283
|
- onebox.gemspec
|
282
284
|
- spec/fixtures/amazon.response
|
283
|
-
- spec/fixtures/android.response
|
284
|
-
- spec/fixtures/bliptv.response
|
285
|
-
- spec/fixtures/clikthrough.response
|
286
|
-
- spec/fixtures/collegehumor.response
|
287
|
-
- spec/fixtures/dailymotion.response
|
288
|
-
- spec/fixtures/dotsub.response
|
289
|
-
- spec/fixtures/example.response
|
290
|
-
- spec/fixtures/flickr.response
|
291
|
-
- spec/fixtures/funnyordie.response
|
292
285
|
- spec/fixtures/githubblob.response
|
293
286
|
- spec/fixtures/githubcommit.response
|
294
|
-
- spec/fixtures/githubgist.response
|
295
287
|
- spec/fixtures/githubpullrequest.response
|
296
|
-
- spec/fixtures/
|
288
|
+
- spec/fixtures/googleplayapp.response
|
297
289
|
- spec/fixtures/image.response
|
298
|
-
- spec/fixtures/imguralbum.response
|
299
|
-
- spec/fixtures/imgurimage.response
|
300
|
-
- spec/fixtures/itunes.response
|
301
|
-
- spec/fixtures/kinomap.response
|
302
|
-
- spec/fixtures/nfb.response
|
303
|
-
- spec/fixtures/opengraph.response
|
304
|
-
- spec/fixtures/qik.response
|
305
|
-
- spec/fixtures/revision3.response
|
306
|
-
- spec/fixtures/rottentomatoesfresh.response
|
307
|
-
- spec/fixtures/rottentomatoesincomplete.response
|
308
|
-
- spec/fixtures/rottentomatoesrotten.response
|
309
|
-
- spec/fixtures/slideshare.response
|
310
|
-
- spec/fixtures/soundcloud.response
|
311
|
-
- spec/fixtures/spotify.response
|
312
290
|
- spec/fixtures/stackexchange.response
|
313
|
-
- spec/fixtures/
|
314
|
-
- spec/fixtures/twitter.response
|
315
|
-
- spec/fixtures/viddler.response
|
291
|
+
- spec/fixtures/twitterstatus.response
|
316
292
|
- spec/fixtures/video.response
|
317
|
-
- spec/fixtures/vimeo.response
|
318
293
|
- spec/fixtures/wikipedia.response
|
319
294
|
- spec/fixtures/wikipediaredirected.response
|
320
|
-
- spec/fixtures/
|
295
|
+
- spec/fixtures/youtube-json.response
|
296
|
+
- spec/fixtures/youtube.response
|
321
297
|
- spec/lib/onebox/engine/amazon_onebox_spec.rb
|
322
|
-
- spec/lib/onebox/engine/
|
323
|
-
- spec/lib/onebox/engine/clikthrough_onebox_spec.rb
|
324
|
-
- spec/lib/onebox/engine/college_humor_onebox_spec.rb
|
325
|
-
- spec/lib/onebox/engine/dailymotion_onebox_spec.rb
|
326
|
-
- spec/lib/onebox/engine/dotsub_onebox_spec.rb
|
327
|
-
- spec/lib/onebox/engine/example_onebox_spec.rb
|
328
|
-
- spec/lib/onebox/engine/flickr_onebox_spec.rb
|
329
|
-
- spec/lib/onebox/engine/funny_or_die_onebox_spec.rb
|
298
|
+
- spec/lib/onebox/engine/classic_google_maps_onebox_spec.rb
|
330
299
|
- spec/lib/onebox/engine/github_blob_onebox_spec.rb
|
331
300
|
- spec/lib/onebox/engine/github_commit_onebox_spec.rb
|
332
301
|
- spec/lib/onebox/engine/github_gist_onebox_spec.rb
|
333
302
|
- spec/lib/onebox/engine/github_pullrequest_onebox_spec.rb
|
303
|
+
- spec/lib/onebox/engine/google_play_app_onebox_spec.rb
|
334
304
|
- spec/lib/onebox/engine/html_spec.rb
|
335
|
-
- spec/lib/onebox/engine/hulu_onebox_spec.rb
|
336
|
-
- spec/lib/onebox/engine/imgur_image_onebox_spec.rb
|
337
|
-
- spec/lib/onebox/engine/itunes_onebox_spec.rb
|
338
305
|
- spec/lib/onebox/engine/json_spec.rb
|
339
|
-
- spec/lib/onebox/engine/kinomap_onebox_spec.rb
|
340
|
-
- spec/lib/onebox/engine/nfb_onebox_spec.rb
|
341
|
-
- spec/lib/onebox/engine/open_graph_spec.rb
|
342
|
-
- spec/lib/onebox/engine/qik_onebox_spec.rb
|
343
|
-
- spec/lib/onebox/engine/revision3_onebox_spec.rb
|
344
|
-
- spec/lib/onebox/engine/slideshare_onebox_spec.rb
|
345
|
-
- spec/lib/onebox/engine/sound_cloud_onebox_spec.rb
|
346
|
-
- spec/lib/onebox/engine/spotify_onebox_spec.rb
|
347
306
|
- spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
|
348
|
-
- spec/lib/onebox/engine/
|
349
|
-
- spec/lib/onebox/engine/
|
350
|
-
- spec/lib/onebox/engine/viddler_onebox_spec.rb
|
351
|
-
- spec/lib/onebox/engine/vimeo_onebox_spec.rb
|
307
|
+
- spec/lib/onebox/engine/twitter_status_onebox_spec.rb
|
308
|
+
- spec/lib/onebox/engine/whitelisted_generic_onebox_spec.rb
|
352
309
|
- spec/lib/onebox/engine/wikipedia_onebox_spec.rb
|
353
|
-
- spec/lib/onebox/engine/
|
310
|
+
- spec/lib/onebox/engine/youtube_onebox_spec.rb
|
354
311
|
- spec/lib/onebox/engine_spec.rb
|
312
|
+
- spec/lib/onebox/layout_spec.rb
|
355
313
|
- spec/lib/onebox/matcher_spec.rb
|
356
314
|
- spec/lib/onebox/preview_spec.rb
|
357
|
-
- spec/lib/onebox/view_spec.rb
|
358
315
|
- spec/lib/onebox_spec.rb
|
359
316
|
- spec/spec_helper.rb
|
360
317
|
- spec/support/html_spec_helper.rb
|
361
318
|
- templates/_layout.mustache
|
362
319
|
- templates/amazon.mustache
|
363
|
-
- templates/bliptv.mustache
|
364
|
-
- templates/clikthrough.mustache
|
365
|
-
- templates/collegehumor.mustache
|
366
|
-
- templates/dailymotion.mustache
|
367
|
-
- templates/dotsub.mustache
|
368
|
-
- templates/example.mustache
|
369
|
-
- templates/flickr.mustache
|
370
|
-
- templates/funnyordie.mustache
|
371
320
|
- templates/githubblob.mustache
|
372
321
|
- templates/githubcommit.mustache
|
373
|
-
- templates/githubgist.mustache
|
374
322
|
- templates/githubpullrequest.mustache
|
375
|
-
- templates/
|
376
|
-
- templates/imgurimage.mustache
|
377
|
-
- templates/itunes.mustache
|
378
|
-
- templates/kinomap.mustache
|
379
|
-
- templates/nfb.mustache
|
380
|
-
- templates/qik.mustache
|
381
|
-
- templates/revision3.mustache
|
382
|
-
- templates/slideshare.mustache
|
383
|
-
- templates/soundcloud.mustache
|
384
|
-
- templates/spotify.mustache
|
323
|
+
- templates/googleplayapp.mustache
|
385
324
|
- templates/stackexchange.mustache
|
386
|
-
- templates/
|
387
|
-
- templates/
|
388
|
-
- templates/viddler.mustache
|
389
|
-
- templates/vimeo.mustache
|
325
|
+
- templates/twitterstatus.mustache
|
326
|
+
- templates/whitelistedgeneric.mustache
|
390
327
|
- templates/wikipedia.mustache
|
391
|
-
|
392
|
-
homepage: http://github.com/dysania/onebox
|
328
|
+
homepage: https://github.com/dysania/onebox
|
393
329
|
licenses:
|
394
330
|
- MIT
|
395
331
|
metadata: {}
|
@@ -409,87 +345,42 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
409
345
|
version: '0'
|
410
346
|
requirements: []
|
411
347
|
rubyforge_project:
|
412
|
-
rubygems_version: 2.0.
|
348
|
+
rubygems_version: 2.0.6
|
413
349
|
signing_key:
|
414
350
|
specification_version: 4
|
415
351
|
summary: A gem for turning URLs into previews.
|
416
352
|
test_files:
|
417
353
|
- spec/fixtures/amazon.response
|
418
|
-
- spec/fixtures/android.response
|
419
|
-
- spec/fixtures/bliptv.response
|
420
|
-
- spec/fixtures/clikthrough.response
|
421
|
-
- spec/fixtures/collegehumor.response
|
422
|
-
- spec/fixtures/dailymotion.response
|
423
|
-
- spec/fixtures/dotsub.response
|
424
|
-
- spec/fixtures/example.response
|
425
|
-
- spec/fixtures/flickr.response
|
426
|
-
- spec/fixtures/funnyordie.response
|
427
354
|
- spec/fixtures/githubblob.response
|
428
355
|
- spec/fixtures/githubcommit.response
|
429
|
-
- spec/fixtures/githubgist.response
|
430
356
|
- spec/fixtures/githubpullrequest.response
|
431
|
-
- spec/fixtures/
|
357
|
+
- spec/fixtures/googleplayapp.response
|
432
358
|
- spec/fixtures/image.response
|
433
|
-
- spec/fixtures/imguralbum.response
|
434
|
-
- spec/fixtures/imgurimage.response
|
435
|
-
- spec/fixtures/itunes.response
|
436
|
-
- spec/fixtures/kinomap.response
|
437
|
-
- spec/fixtures/nfb.response
|
438
|
-
- spec/fixtures/opengraph.response
|
439
|
-
- spec/fixtures/qik.response
|
440
|
-
- spec/fixtures/revision3.response
|
441
|
-
- spec/fixtures/rottentomatoesfresh.response
|
442
|
-
- spec/fixtures/rottentomatoesincomplete.response
|
443
|
-
- spec/fixtures/rottentomatoesrotten.response
|
444
|
-
- spec/fixtures/slideshare.response
|
445
|
-
- spec/fixtures/soundcloud.response
|
446
|
-
- spec/fixtures/spotify.response
|
447
359
|
- spec/fixtures/stackexchange.response
|
448
|
-
- spec/fixtures/
|
449
|
-
- spec/fixtures/twitter.response
|
450
|
-
- spec/fixtures/viddler.response
|
360
|
+
- spec/fixtures/twitterstatus.response
|
451
361
|
- spec/fixtures/video.response
|
452
|
-
- spec/fixtures/vimeo.response
|
453
362
|
- spec/fixtures/wikipedia.response
|
454
363
|
- spec/fixtures/wikipediaredirected.response
|
455
|
-
- spec/fixtures/
|
364
|
+
- spec/fixtures/youtube-json.response
|
365
|
+
- spec/fixtures/youtube.response
|
456
366
|
- spec/lib/onebox/engine/amazon_onebox_spec.rb
|
457
|
-
- spec/lib/onebox/engine/
|
458
|
-
- spec/lib/onebox/engine/clikthrough_onebox_spec.rb
|
459
|
-
- spec/lib/onebox/engine/college_humor_onebox_spec.rb
|
460
|
-
- spec/lib/onebox/engine/dailymotion_onebox_spec.rb
|
461
|
-
- spec/lib/onebox/engine/dotsub_onebox_spec.rb
|
462
|
-
- spec/lib/onebox/engine/example_onebox_spec.rb
|
463
|
-
- spec/lib/onebox/engine/flickr_onebox_spec.rb
|
464
|
-
- spec/lib/onebox/engine/funny_or_die_onebox_spec.rb
|
367
|
+
- spec/lib/onebox/engine/classic_google_maps_onebox_spec.rb
|
465
368
|
- spec/lib/onebox/engine/github_blob_onebox_spec.rb
|
466
369
|
- spec/lib/onebox/engine/github_commit_onebox_spec.rb
|
467
370
|
- spec/lib/onebox/engine/github_gist_onebox_spec.rb
|
468
371
|
- spec/lib/onebox/engine/github_pullrequest_onebox_spec.rb
|
372
|
+
- spec/lib/onebox/engine/google_play_app_onebox_spec.rb
|
469
373
|
- spec/lib/onebox/engine/html_spec.rb
|
470
|
-
- spec/lib/onebox/engine/hulu_onebox_spec.rb
|
471
|
-
- spec/lib/onebox/engine/imgur_image_onebox_spec.rb
|
472
|
-
- spec/lib/onebox/engine/itunes_onebox_spec.rb
|
473
374
|
- spec/lib/onebox/engine/json_spec.rb
|
474
|
-
- spec/lib/onebox/engine/kinomap_onebox_spec.rb
|
475
|
-
- spec/lib/onebox/engine/nfb_onebox_spec.rb
|
476
|
-
- spec/lib/onebox/engine/open_graph_spec.rb
|
477
|
-
- spec/lib/onebox/engine/qik_onebox_spec.rb
|
478
|
-
- spec/lib/onebox/engine/revision3_onebox_spec.rb
|
479
|
-
- spec/lib/onebox/engine/slideshare_onebox_spec.rb
|
480
|
-
- spec/lib/onebox/engine/sound_cloud_onebox_spec.rb
|
481
|
-
- spec/lib/onebox/engine/spotify_onebox_spec.rb
|
482
375
|
- spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
|
483
|
-
- spec/lib/onebox/engine/
|
484
|
-
- spec/lib/onebox/engine/
|
485
|
-
- spec/lib/onebox/engine/viddler_onebox_spec.rb
|
486
|
-
- spec/lib/onebox/engine/vimeo_onebox_spec.rb
|
376
|
+
- spec/lib/onebox/engine/twitter_status_onebox_spec.rb
|
377
|
+
- spec/lib/onebox/engine/whitelisted_generic_onebox_spec.rb
|
487
378
|
- spec/lib/onebox/engine/wikipedia_onebox_spec.rb
|
488
|
-
- spec/lib/onebox/engine/
|
379
|
+
- spec/lib/onebox/engine/youtube_onebox_spec.rb
|
489
380
|
- spec/lib/onebox/engine_spec.rb
|
381
|
+
- spec/lib/onebox/layout_spec.rb
|
490
382
|
- spec/lib/onebox/matcher_spec.rb
|
491
383
|
- spec/lib/onebox/preview_spec.rb
|
492
|
-
- spec/lib/onebox/view_spec.rb
|
493
384
|
- spec/lib/onebox_spec.rb
|
494
385
|
- spec/spec_helper.rb
|
495
386
|
- spec/support/html_spec_helper.rb
|