obf 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/obf/utils.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: 9f21c1741609ab5a150ffab5391f8a74025f774ed4d2f6f91059cc5bfeedc79b
|
|
4
|
+
data.tar.gz: 252aa9db156ce015579129c70711e602407ccdb6e9a65cb68f177ecc550a2e41
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff7fbbb100eda89a6c02439ed5753ee7636a84444065da561d0e9c17d25b5912d810cabb780d8cdd66f70e337a65562bfb5188d77225316eb334ebb63c765264
|
|
7
|
+
data.tar.gz: 51f73c99c3f25269185614b1d0a25d96ae19ef94973692f8b7ba0b46a192bb36dd7eaf420513fc70de74522470f89b0cbb7689a6a33150d06d6b97fdf587cc2e
|
data/lib/obf/utils.rb
CHANGED
|
@@ -32,7 +32,7 @@ module OBF::Utils
|
|
|
32
32
|
|
|
33
33
|
def self.sanitize_url(url)
|
|
34
34
|
uri = URI.parse(url) rescue nil
|
|
35
|
-
return nil unless uri
|
|
35
|
+
return nil unless uri && uri.host
|
|
36
36
|
return nil if (!defined?(Rails) || !Rails.env.development?) && (uri.host.match(/^127/) || uri.host.match(/localhost/) || uri.host.match(/^0/) || uri.host.to_s == uri.host.to_i.to_s)
|
|
37
37
|
port_suffix = ""
|
|
38
38
|
port_suffix = ":#{uri.port}" if (uri.scheme == 'http' && uri.port != 80)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: obf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Whitmer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|