onebox 1.8.94 → 1.8.95
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 +3 -1
- data/lib/onebox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d02de0d9a88959e66217ddb8ee376a74b2966329d6898141ca27c1c67bf528c
|
4
|
+
data.tar.gz: 586f0dd3b4f7ff9339d02ace072fc0e7e18b7f842e9d6a1466e6e4f69cd9ccc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0ee8ace0a72a29fdd6c8d6dabe2648863c3168dd2aa861d766a7a4b51924e6bb562347b3de252cb922d7007f6e776c5901510854aa492d9917fe27cfc8e2491
|
7
|
+
data.tar.gz: 73417906a702859c059967b3b635438883278542cc3ad4b9a70a2ff3d0408a9a33e441a79125f38db8169859bc50244a690a72fee448e11fa61be3cff6405007
|
data/Gemfile.lock
CHANGED
data/lib/onebox/helpers.rb
CHANGED
@@ -188,7 +188,8 @@ module Onebox
|
|
188
188
|
src
|
189
189
|
end
|
190
190
|
|
191
|
-
RFC_3986_URI_REGEX
|
191
|
+
RFC_3986_URI_REGEX ||= /^(?<scheme>([^:\/?#]+):)?(?<authority>\/\/([^\/?#]*))?(?<path>[^?#]*)(\?(?<query>[^#]*))?(#(?<fragment>.*))?$/
|
192
|
+
DOUBLE_ESCAPED_REGEXP ||= /%25([0-9a-f]{2})/i
|
192
193
|
|
193
194
|
# Percent-encodes a URI query parameter per RFC3986 - https://tools.ietf.org/html/rfc3986
|
194
195
|
def self.uri_query_encode(query_string)
|
@@ -219,6 +220,7 @@ module Onebox
|
|
219
220
|
# URI::parse and URI::Generic.build don't like paths encoded with CGI.escape
|
220
221
|
# URI.escape does not change / to %2F and : to %3A like CGI.escape
|
221
222
|
encoded += URI.escape(parts[:path]) unless parts[:path].nil?
|
223
|
+
encoded.gsub!(DOUBLE_ESCAPED_REGEXP, '%\1')
|
222
224
|
|
223
225
|
# each query parameter
|
224
226
|
if !parts[:query].nil?
|
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.8.
|
4
|
+
version: 1.8.95
|
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-06-
|
13
|
+
date: 2019-06-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|