onebox 1.5.27 → 1.5.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,21 @@
1
+ require "spec_helper"
2
+
3
+ describe Onebox::Engine::SteamStoreWidgetOnebox do
4
+
5
+ before do
6
+ fake("http://store.steampowered.com/app/10/", response("steamstorewidget"))
7
+ end
8
+
9
+ it "supports iframe widget render" do
10
+ expect(Onebox.preview('http://store.steampowered.com/app/10/').to_s).to match(/<iframe/)
11
+ end
12
+
13
+ it "supports http app to https widget resource" do
14
+ expect(Onebox.preview('http://store.steampowered.com/app/10/').to_s).to match('https://store.steampowered.com/widget/10/')
15
+ end
16
+
17
+ it "supports a simple preview without an iframe" do
18
+ expect(Onebox.preview('http://store.steampowered.com/app/10/').placeholder_html.to_s).to match('Steam Store Widget onebox preview')
19
+ end
20
+
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.27
4
+ version: 1.5.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-03 00:00:00.000000000 Z
13
+ date: 2015-11-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json
@@ -319,6 +319,7 @@ files:
319
319
  - lib/onebox/engine/soundcloud_onebox.rb
320
320
  - lib/onebox/engine/stack_exchange_onebox.rb
321
321
  - lib/onebox/engine/standard_embed.rb
322
+ - lib/onebox/engine/steam_store_widget_onebox.rb
322
323
  - lib/onebox/engine/twitter_status_onebox.rb
323
324
  - lib/onebox/engine/video_onebox.rb
324
325
  - lib/onebox/engine/whitelisted_generic_onebox.rb
@@ -351,6 +352,7 @@ files:
351
352
  - spec/fixtures/pubmed-xml.response
352
353
  - spec/fixtures/pubmed.response
353
354
  - spec/fixtures/stackexchange.response
355
+ - spec/fixtures/steamstorewidget.response
354
356
  - spec/fixtures/twitterstatus.response
355
357
  - spec/fixtures/video.response
356
358
  - spec/fixtures/wikipedia.response
@@ -374,6 +376,7 @@ files:
374
376
  - spec/lib/onebox/engine/json_spec.rb
375
377
  - spec/lib/onebox/engine/pubmed_onebox_spec.rb
376
378
  - spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
379
+ - spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
377
380
  - spec/lib/onebox/engine/twitter_status_onebox_spec.rb
378
381
  - spec/lib/onebox/engine/video_onebox_spec.rb
379
382
  - spec/lib/onebox/engine/whitelisted_generic_onebox_spec.rb
@@ -428,7 +431,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
428
431
  version: '0'
429
432
  requirements: []
430
433
  rubyforge_project:
431
- rubygems_version: 2.4.5
434
+ rubygems_version: 2.4.5.1
432
435
  signing_key:
433
436
  specification_version: 4
434
437
  summary: A gem for turning URLs into previews.
@@ -446,6 +449,7 @@ test_files:
446
449
  - spec/fixtures/pubmed-xml.response
447
450
  - spec/fixtures/pubmed.response
448
451
  - spec/fixtures/stackexchange.response
452
+ - spec/fixtures/steamstorewidget.response
449
453
  - spec/fixtures/twitterstatus.response
450
454
  - spec/fixtures/video.response
451
455
  - spec/fixtures/wikipedia.response
@@ -469,6 +473,7 @@ test_files:
469
473
  - spec/lib/onebox/engine/json_spec.rb
470
474
  - spec/lib/onebox/engine/pubmed_onebox_spec.rb
471
475
  - spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
476
+ - spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
472
477
  - spec/lib/onebox/engine/twitter_status_onebox_spec.rb
473
478
  - spec/lib/onebox/engine/video_onebox_spec.rb
474
479
  - spec/lib/onebox/engine/whitelisted_generic_onebox_spec.rb
@@ -483,4 +488,3 @@ test_files:
483
488
  - spec/lib/onebox_spec.rb
484
489
  - spec/spec_helper.rb
485
490
  - spec/support/html_spec_helper.rb
486
- has_rdoc: