url_scrubber 0.8.21 → 0.8.22
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.rb +4 -2
- data/lib/url_scrubber/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: 67ce1b3d37161b4c930151fd3b5fd774ec5485e899c12e67b418d491fbf2d66f
|
|
4
|
+
data.tar.gz: f45d9d1ace77c6cc49b6d9613364285c04520830abec381049877794e71a8001
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d816fd33f22a40fa4814602715673f313f0163a1f05cc75439e276c301a3facfa1c7b0d0fc616817d7afca752c5c2a86e2d1003235468df9ea42cff013663ec5
|
|
7
|
+
data.tar.gz: bf7673bd46953077f4d7a016892a98c4b3e5dfc75dc911c21d13627249434a1947638f29ded55b3206bcb7d1dcbe3e2c3ffcb69b3d50b2147b34399b71e166b2
|
data/lib/url_scrubber.rb
CHANGED
|
@@ -119,9 +119,11 @@ module UrlScrubber
|
|
|
119
119
|
return url.include?('http://linkedin.com/in/') || url.include?('http://linkedin.com/pub/')
|
|
120
120
|
end
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
|
|
123
123
|
def self.find_identity_from_url(url)
|
|
124
|
-
|
|
124
|
+
return nil unless url.present?
|
|
125
|
+
url = UrlScrubber.scrub(url)
|
|
126
|
+
url ? url.split("/").last : nil
|
|
125
127
|
end
|
|
126
128
|
|
|
127
129
|
|
data/lib/url_scrubber/version.rb
CHANGED
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.22
|
|
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: 2021-
|
|
15
|
+
date: 2021-03-10 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: rspec
|