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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e7e216d163d7adc99ee432d4bc16e639fa621f4
4
- data.tar.gz: 9c9224c516ef324d858dfab29e37d68e80e0b23a
3
+ metadata.gz: 38a4803aa8b41e5e08c6b2881049952f0c772e37
4
+ data.tar.gz: 2f376044f6d308b5d806dc8056ada1c55f17b214
5
5
  SHA512:
6
- metadata.gz: 2501d3ae5025b97e8efb9133f6dedb91e21d7c0ee4d6775f8a0cc736798cc7109980f93b6dd70ebe6906713934674f071db7acf556e06054d9a0d9d5575fcd54
7
- data.tar.gz: 07c2a809870856370d0062e34285ccfe14baa24e3c24eb83689b7884c9cd0accbf1239008930826ef077fbaeb769c8429f66cf17e060fccab4aabcd493ae7e21
6
+ metadata.gz: 31f66a6050c43f98620b41a179f32917126bfc266376a60be8b83282fb73a6c9d1a1fadc3131b755b901da4bc69b35f53f6d67b5b54ab324a833623f8bb131ab
7
+ data.tar.gz: 6a033b6660c4a06ad1eaad84115fd1c8a386923e306e9678e7e5b26b0fe710157dd0fabe132f887fedba36e7f401fc4627bfe6d99ce6fd34d8bfef5dd3b0bc03
@@ -73,7 +73,7 @@ module Onebox
73
73
  end
74
74
 
75
75
  summary = raw.at("#productDescription")
76
- result[:description] = og[:description] || summary&.inner_text
76
+ result[:description] = og[:description] || summary.inner_text
77
77
  result
78
78
  end
79
79
  end
@@ -47,7 +47,7 @@ module Onebox
47
47
  end
48
48
 
49
49
  def is_album?
50
- response = Onebox::Helpers.fetch_response("http://api.imgur.com/oembed.json?url=#{url}") rescue "{}"
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\//]
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.8.18"
2
+ VERSION = "1.8.19"
3
3
  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.8.18
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-08-17 00:00:00.000000000 Z
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.8
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.