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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTc0NjgzNDE1YzE4ZjcxODZiNmQ2MWY4YWI0YzcwYjZlNmM1MjllNg==
4
+ MWNkMWE5MDM0ZTliMzg1NDcwN2Y5Zjg4Mzc1ZWE4MWY1ZmVlMWUwMQ==
5
5
  data.tar.gz: !binary |-
6
- ZWU2NWNlZjg3YmNlMDk3M2RlZTJiMjVlOWEzYzNlMDczOGRmMDZkZg==
6
+ ZTg4Y2ZkNTU2NWZjMjhmYjczZGM4OTQ3MWRmYjNkMDc5ZDMxMTJmNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODM3OGM0YzU5MWE5YzNjZmFkMmE4YzQzYzFiMDkyMGQ1NThkOWNhYWYxNTIx
10
- NjJmOWE4MmNmNTE5MmE1ZjIyNDZjZTI0NDAyNWVhZmFiYTc2MDhkYmNkODNm
11
- MjZiNjFlNTQ1ZWZhZjc2ZGQ2YjcwMWUxMzk4YzBmOTkzYTI2MTg=
9
+ ZWM2M2VlZWM5N2UyMmFhODU4NmE0MjAwYWZiMzk1OTBkODA3ZDQ4NzA2ZWRj
10
+ Mzc0ZTk2MjY5YTA2YzVjY2NiY2RjMWEyZTQyZjc3NzFlNzE4YTU3YWRhZTQy
11
+ NWE3MDBlNzc5YTM4NDEzNjYwYzJiMjUxYjY3MDRjZjUzNzc1NTA=
12
12
  data.tar.gz: !binary |-
13
- YWNlZTc0Yzc1MmRmNzMwODY2Yzc4OTEyZmM1MDE1NTY3MmE4YmIyY2QwYjMz
14
- ZGVjYmYwNzBjYjNmMDI4YWYwM2RiYjA3ZjA2ZDE3MWM4Y2Y2ZDMyZTdmYTUz
15
- MGZkZGVlMjU0NGJhMDg5N2I3NDgzNDhhZDFlYzU4ZmE0ZWNkNTA=
13
+ NGQ2ZDQ3NjUwY2RlOGYxMzljNDMyMTU0ZWJmZGRkN2YwMmJjNmIwMzY4OGQ4
14
+ NWU0NmE5OGE3Mjk4NTgxNDk1M2E2YzdkNTVmNTEwMzQ1NDEzOGY2NmZjMzA2
15
+ ZTMzNzUwNDIyMWM5YzIzMjg2NTJhMGRlMWNkMWE5NTdiN2E5ZGI=
@@ -1,3 +1,3 @@
1
1
  module UrlScrubber
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.5"
3
3
  end
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$/ then return :youtube
49
- when /\btwitter\.com$/ then return :twitter
50
- when /\bfacebook\.com$/ then return :facebook
51
- when /\blinkedin\.com$/ then return :linkedin
52
- when /\bplus\.google\.com$/ then return :google
53
- when /\bslideshare\.net$/ then return :slideshare
54
- when /\bflickr\.com$/ then return :flickr
55
- when /\bpinterest\.com$/ then return :pinterest
56
- when /\bvimeo\.com$/ then return :vimeo
57
- when /\binstagram\.com$/ then return :instagram
58
- when /\byelp\.com$/ then return :yelp
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
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-05 00:00:00.000000000 Z
14
+ date: 2016-12-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec