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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/onebox/helpers.rb +5 -2
- data/lib/onebox/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e6ae9522bf45380324988223f2ae4045384b597c58e7d0f4987d70d4739208e
|
4
|
+
data.tar.gz: 48035bd522e5efa73fc234b784dde29431023683781eca9aa5e3e8ece553c394
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da4d2d398231b4b012c0728ef25a91f6b5607e37c9cfaabd18e56cd2fbf9ddacbf859f6aa65ed41c2c06d1c0299599850732281420f33bcac5bb02b410c103e7
|
7
|
+
data.tar.gz: 4856ca6f9b657885e6be81dcc5bf38a1e3fc0ba1c586e1d2e4b5f054cc8e71b1554c0f6fbb3595d70d786164b566bdddfe30e37996ed402c785c5550b19ce559
|
data/Gemfile.lock
CHANGED
data/lib/onebox/helpers.rb
CHANGED
@@ -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
|
-
|
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
|
|
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.9.
|
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-
|
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.
|
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.
|