url_scrubber 0.8.25 → 0.8.26
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/url_scrubber/version.rb +1 -1
- data/lib/url_scrubber.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: 3e6ebe1219de63849404a6bdbbe807ba7507c55a16d223539c4defef09dd017f
|
4
|
+
data.tar.gz: 93fe2e43a341b4039d7829fc085f73c6ce12ad2e70ae5f78d9b6bcfa3b758b70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1d47cc282a5fe65d530486761df8e089ac9fe180152dfe47d3800bcb2bf0b2782c7d56532c165f900f100ab45b6788bced576a57b802493aa68a1a03a373939
|
7
|
+
data.tar.gz: ac593cb5fa5753f2ce1ee5d3d90e86013b51806195d093d27d8aa103de0c6e47a5372a48201d8ba021175f9bd2c94ef7cfa40c6154f64a53562d8b8968e45613
|
data/lib/url_scrubber/version.rb
CHANGED
data/lib/url_scrubber.rb
CHANGED
@@ -164,7 +164,7 @@ module UrlScrubber
|
|
164
164
|
scrubbed = scrub(url)
|
165
165
|
parsed = URI.parse(URI.escape(url)) or return nil
|
166
166
|
host = Domainatrix.parse(parsed.host)
|
167
|
-
if host.domain == "facebook" && host.subdomain == "business"
|
167
|
+
if host.domain == "facebook" && host.subdomain == "business" && scrubbed.exclude?("/settings/business_info")
|
168
168
|
public_url = scrubbed.sub("http://business.facebook.com", "http://facebook.com")
|
169
169
|
elsif host.domain == "google" && host.subdomain == "business"
|
170
170
|
public_url = scrubbed.sub("http://business.google.com", "http://plus.google.com")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: url_scrubber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Langton
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2025-08-
|
15
|
+
date: 2025-08-19 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rspec
|