onebox 1.9.9 → 1.9.10

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
  SHA256:
3
- metadata.gz: 1e6ae9522bf45380324988223f2ae4045384b597c58e7d0f4987d70d4739208e
4
- data.tar.gz: 48035bd522e5efa73fc234b784dde29431023683781eca9aa5e3e8ece553c394
3
+ metadata.gz: d2a1a3dc2e875d3ae1dcf36398ae539fe2246d4ebc81f0aadec5367ad1eda5bb
4
+ data.tar.gz: 8a22fe033f4642d257a0ac264b4b7ff7a566eb37bb2197b58e8026a38c389e98
5
5
  SHA512:
6
- metadata.gz: da4d2d398231b4b012c0728ef25a91f6b5607e37c9cfaabd18e56cd2fbf9ddacbf859f6aa65ed41c2c06d1c0299599850732281420f33bcac5bb02b410c103e7
7
- data.tar.gz: 4856ca6f9b657885e6be81dcc5bf38a1e3fc0ba1c586e1d2e4b5f054cc8e71b1554c0f6fbb3595d70d786164b566bdddfe30e37996ed402c785c5550b19ce559
6
+ metadata.gz: 436531fc0976fa08afcef6efe331cb36f2b9ba587067d6634641a55315e3d399fd3f31bc6b809ba8fbb942868f8ea85380a8b1907df81be86ecbb6c3feb2945a
7
+ data.tar.gz: 43d6ed29d364961a23ce1b4b023690996ccb3fe57c5245f6f4e0a8eba136b608adf4d3d3153a53b6108291d794520b595ded9c5f399cf01f33b88f74be9bb51e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- onebox (1.9.9)
4
+ onebox (1.9.10)
5
5
  htmlentities (~> 4.3)
6
6
  moneta (~> 1.0)
7
7
  multi_json (~> 1.11)
@@ -220,6 +220,7 @@ module Onebox
220
220
  # prefer secure URLs
221
221
  d[:image] = d[:image_secure_url] || d[:image_url] || d[:thumbnail_url] || d[:image]
222
222
  d[:image] = Onebox::Helpers::get_absolute_image_url(d[:image], @url)
223
+ d[:image] = Onebox::Helpers::normalize_url_for_output(html_entities.decode(d[:image]))
223
224
 
224
225
  d[:video] = d[:video_secure_url] || d[:video_url] || d[:video]
225
226
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.9.9"
4
+ VERSION = "1.9.10"
5
5
  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.9.9
4
+ version: 1.9.10
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: 2019-08-12 00:00:00.000000000 Z
13
+ date: 2019-08-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json