onebox 1.9.8 → 1.9.9

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: 412af2ca283c07e7f49ceb8ca8c2175d32882bfec6174e6d961c35763d4484b6
4
- data.tar.gz: f062f50e4a536601cc2cb220571ad4e95a643d22d8d8638177a8174c9bd0f568
3
+ metadata.gz: 1e6ae9522bf45380324988223f2ae4045384b597c58e7d0f4987d70d4739208e
4
+ data.tar.gz: 48035bd522e5efa73fc234b784dde29431023683781eca9aa5e3e8ece553c394
5
5
  SHA512:
6
- metadata.gz: 3f1fa65f3a838550ebc3e6bc39221c46df74e8673b2c68bbb1fc6d9da2b6d3ac3666b893c29e46ea1050f421aad0e12e20a44009b2633463f78f42fc8321ad98
7
- data.tar.gz: 49e191dd53a866d5e7385db9b89fbf3de51778b6d109d3c7bc687819f93e9c215d408b2f317ec13e9a5db5317cc854e999342345e258d4986c3395962f803a85
6
+ metadata.gz: da4d2d398231b4b012c0728ef25a91f6b5607e37c9cfaabd18e56cd2fbf9ddacbf859f6aa65ed41c2c06d1c0299599850732281420f33bcac5bb02b410c103e7
7
+ data.tar.gz: 4856ca6f9b657885e6be81dcc5bf38a1e3fc0ba1c586e1d2e4b5f054cc8e71b1554c0f6fbb3595d70d786164b566bdddfe30e37996ed402c785c5550b19ce559
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- onebox (1.9.7)
4
+ onebox (1.9.9)
5
5
  htmlentities (~> 4.3)
6
6
  moneta (~> 1.0)
7
7
  multi_json (~> 1.11)
@@ -201,7 +201,7 @@ module Onebox
201
201
  # = *( pchar / "/" / "?" )
202
202
  # CGI.escape turns space into + which is the most backward compatible
203
203
  # however it doesn't roundtrip through URI.unescape which prefers %20
204
- CGI.escape(query_string).gsub('+', '%20')
204
+ CGI.escape(query_string).gsub('%25', '%').gsub('+', '%20')
205
205
  end
206
206
 
207
207
  # Percent-encodes a URI string per RFC3986 - https://tools.ietf.org/html/rfc3986
@@ -233,7 +233,10 @@ module Onebox
233
233
  encoded += '?' + query_string
234
234
  end
235
235
 
236
- encoded += '#' + uri_query_encode(parts[:fragment]) unless parts[:fragment].nil?
236
+ unless parts[:fragment].nil?
237
+ encoded += '#' + uri_query_encode(parts[:fragment])&.gsub('%21%2F', '!/')
238
+ end
239
+
237
240
  encoded
238
241
  end
239
242
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.9.8"
4
+ VERSION = "1.9.9"
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.8
4
+ version: 1.9.9
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-08 00:00:00.000000000 Z
13
+ date: 2019-08-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json
@@ -422,7 +422,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
422
422
  - !ruby/object:Gem::Version
423
423
  version: '0'
424
424
  requirements: []
425
- rubygems_version: 3.0.4
425
+ rubygems_version: 3.0.3
426
426
  signing_key:
427
427
  specification_version: 4
428
428
  summary: A gem for generating embeddable HTML previews from URLs.