onebox 1.8.18 → 1.8.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onebox/engine/amazon_onebox.rb +1 -1
- data/lib/onebox/engine/imgur_onebox.rb +1 -1
- data/lib/onebox/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38a4803aa8b41e5e08c6b2881049952f0c772e37
|
4
|
+
data.tar.gz: 2f376044f6d308b5d806dc8056ada1c55f17b214
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31f66a6050c43f98620b41a179f32917126bfc266376a60be8b83282fb73a6c9d1a1fadc3131b755b901da4bc69b35f53f6d67b5b54ab324a833623f8bb131ab
|
7
|
+
data.tar.gz: 6a033b6660c4a06ad1eaad84115fd1c8a386923e306e9678e7e5b26b0fe710157dd0fabe132f887fedba36e7f401fc4627bfe6d99ce6fd34d8bfef5dd3b0bc03
|
@@ -47,7 +47,7 @@ module Onebox
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def is_album?
|
50
|
-
response = Onebox::Helpers.fetch_response("
|
50
|
+
response = Onebox::Helpers.fetch_response("https://api.imgur.com/oembed.json?url=#{url}") rescue "{}"
|
51
51
|
oembed_data = Onebox::Helpers.symbolize_keys(::MultiJson.load(response))
|
52
52
|
imgur_data_id = Nokogiri::HTML(oembed_data[:html]).xpath("//blockquote").attr("data-id")
|
53
53
|
imgur_data_id.to_s[/a\//]
|
data/lib/onebox/version.rb
CHANGED
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.8.
|
4
|
+
version: 1.8.19
|
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: 2017-
|
13
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|
@@ -524,7 +524,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
524
524
|
version: '0'
|
525
525
|
requirements: []
|
526
526
|
rubyforge_project:
|
527
|
-
rubygems_version: 2.6.
|
527
|
+
rubygems_version: 2.6.13
|
528
528
|
signing_key:
|
529
529
|
specification_version: 4
|
530
530
|
summary: A gem for turning URLs into previews.
|