url_scrubber 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/url_scrubber/version.rb +1 -1
- data/lib/url_scrubber.rb +13 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWNkMWE5MDM0ZTliMzg1NDcwN2Y5Zjg4Mzc1ZWE4MWY1ZmVlMWUwMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTg4Y2ZkNTU2NWZjMjhmYjczZGM4OTQ3MWRmYjNkMDc5ZDMxMTJmNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWM2M2VlZWM5N2UyMmFhODU4NmE0MjAwYWZiMzk1OTBkODA3ZDQ4NzA2ZWRj
|
10
|
+
Mzc0ZTk2MjY5YTA2YzVjY2NiY2RjMWEyZTQyZjc3NzFlNzE4YTU3YWRhZTQy
|
11
|
+
NWE3MDBlNzc5YTM4NDEzNjYwYzJiMjUxYjY3MDRjZjUzNzc1NTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGQ2ZDQ3NjUwY2RlOGYxMzljNDMyMTU0ZWJmZGRkN2YwMmJjNmIwMzY4OGQ4
|
14
|
+
NWU0NmE5OGE3Mjk4NTgxNDk1M2E2YzdkNTVmNTEwMzQ1NDEzOGY2NmZjMzA2
|
15
|
+
ZTMzNzUwNDIyMWM5YzIzMjg2NTJhMGRlMWNkMWE5NTdiN2E5ZGI=
|
data/lib/url_scrubber/version.rb
CHANGED
data/lib/url_scrubber.rb
CHANGED
@@ -45,17 +45,19 @@ module UrlScrubber
|
|
45
45
|
end
|
46
46
|
|
47
47
|
case domain
|
48
|
-
when /\byoutube\.com$/
|
49
|
-
when /\btwitter\.com$/
|
50
|
-
when /\bfacebook\.com$/
|
51
|
-
when /\
|
52
|
-
when /\
|
53
|
-
when /\
|
54
|
-
when /\
|
55
|
-
when /\
|
56
|
-
when /\
|
57
|
-
when /\
|
58
|
-
when /\
|
48
|
+
when /\byoutube\.com$/ then return :youtube
|
49
|
+
when /\btwitter\.com$/ then return :twitter
|
50
|
+
when /\bfacebook\.com$/ then return :facebook
|
51
|
+
when /\bbusiness.facebook\.com$/ then return :facebook
|
52
|
+
when /\blinkedin\.com$/ then return :linkedin
|
53
|
+
when /\bplus\.google\.com$/ then return :google
|
54
|
+
when /\bbusiness\.google\.com$/ then return :google
|
55
|
+
when /\bslideshare\.net$/ then return :slideshare
|
56
|
+
when /\bflickr\.com$/ then return :flickr
|
57
|
+
when /\bpinterest\.com$/ then return :pinterest
|
58
|
+
when /\bvimeo\.com$/ then return :vimeo
|
59
|
+
when /\binstagram\.com$/ then return :instagram
|
60
|
+
when /\byelp\.com$/ then return :yelp
|
59
61
|
end
|
60
62
|
else
|
61
63
|
Rails.logger.debug "No Domain Match"
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Langton
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-12-
|
14
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|