onebox 1.5.63 → 1.5.64

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: 98f6286920826da98121c8d36aa07ba8188e0b30
4
- data.tar.gz: 5bc9ca2a886a63491a493d3d793f56850b8477c9
3
+ metadata.gz: 27b80099dc780ea9cf712253a0df500f8244d3fc
4
+ data.tar.gz: edbb2372f23ed67e92836b45548e1ef9711291b1
5
5
  SHA512:
6
- metadata.gz: 9391bbf88620ce75eb1d9872b1a23b8852fd96c9bdc2a61e37216b02f8494c10afe34809ce00a8925363124ab7f5a71cb6861c9b760bf0fdb210dea27457109a
7
- data.tar.gz: 26babfa1d71b8c5b3b83a53424a2d44cda284035f8b4eca95efae2de3b891a7e149407eb1b10de16bbb96740cde38e7319b2464666790fe2c0916f56e1301bf6
6
+ metadata.gz: 6a231b47916df63078667679fbf5da44382a9b482bb6140ae70280e4f82ad688c62f71b83db8c9a5afbcd6846a63aa38f0c0257c22e0f994835d66c5a1e3f5ad
7
+ data.tar.gz: c2044e2c861058a2eb9461b2c6a8b70587be21bd43cd6b3cc22fcb906610e1cb33c30403340d893ed194d2e8393e7b9da9f5a7ce6a4917c8b5b2f63ab3efb9ad
@@ -0,0 +1,3 @@
1
+ ## 1.5.64
2
+
3
+ * Escape HTML entities in text when oneboxing Amazon URLs.
@@ -50,7 +50,7 @@ module Onebox
50
50
 
51
51
  def data
52
52
  result = { link: link,
53
- title: raw.css("title").inner_text,
53
+ title: CGI.unescapeHTML(raw.css("title").inner_text),
54
54
  image: image }
55
55
 
56
56
  result[:by_info] = raw.at("#by-line")
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.5.63"
2
+ VERSION = "1.5.64"
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.5.63
4
+ version: 1.5.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta
@@ -292,6 +292,7 @@ files:
292
292
  - ".rubocop.yml"
293
293
  - ".ruby-gemset"
294
294
  - ".travis.yml"
295
+ - CHANGELOG.md
295
296
  - Gemfile
296
297
  - Guardfile
297
298
  - LICENSE.txt
@@ -444,7 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
444
445
  version: '0'
445
446
  requirements: []
446
447
  rubyforge_project:
447
- rubygems_version: 2.5.1
448
+ rubygems_version: 2.6.7
448
449
  signing_key:
449
450
  specification_version: 4
450
451
  summary: A gem for turning URLs into previews.