url_scrubber 0.8.15 → 0.8.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/url_scrubber.rb +6 -0
- data/lib/url_scrubber/version.rb +1 -1
- data/url_scrubber.gemspec +1 -0
- metadata +5 -5
- data/.rvmrc +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 455a7dccc82ca65d302205f525100c2c59700cbf41950533cae59269e47355c0
|
4
|
+
data.tar.gz: 558a14779d4edcb5766896cab6ed21b1b7ad2f5cc924d30a007aa670d4fe7bd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fba24e3059a04408972ef8fc52013b726aff9b2995adc1bf153bb9723673b65f9add9334a1c4fd2f93c7a92fa9db960b1e9469b81590f20a60a4c830e92632ea
|
7
|
+
data.tar.gz: 2d30bdcaf8d61e516cacc933dc2cfd2dd8010cea0edaab786a6d8b2c4a0f94c657d97c6b63ace038cc0f12a14e0ee0d2979e8bda43d9d814b74a56d0f7e3ae02
|
data/lib/url_scrubber.rb
CHANGED
@@ -48,6 +48,8 @@ module UrlScrubber
|
|
48
48
|
when 'tumblr' then return :tumblr
|
49
49
|
when 'twitter' then return :twitter
|
50
50
|
when 'vimeo' then return :vimeo
|
51
|
+
when 'vk' then return :vkontakte
|
52
|
+
when 'weibo' then return :weibo
|
51
53
|
when 'yelp' then return :yelp
|
52
54
|
when 'youtube' then return :youtube
|
53
55
|
end
|
@@ -69,6 +71,10 @@ module UrlScrubber
|
|
69
71
|
return false unless url
|
70
72
|
|
71
73
|
case service_of(url)
|
74
|
+
when :vkontakte
|
75
|
+
!!url.match(%r{^http://vk\.com/[\w_]+$})
|
76
|
+
when :weibo
|
77
|
+
!!url.match(%r{^http://weibo\.com/[\w_-]+$})
|
72
78
|
when :youtube
|
73
79
|
!!url.match(%r{^http://youtube\.com/[\w_-]+$})
|
74
80
|
when :twitter
|
data/lib/url_scrubber/version.rb
CHANGED
data/url_scrubber.gemspec
CHANGED
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.description = %q{Remove extraneous bits from URLs, follow redirects, identify social media urls, etc.}
|
8
8
|
gem.summary = %q{Clean up URLs.}
|
9
9
|
gem.homepage = "http://brandle.net"
|
10
|
+
gem.license = "MIT"
|
10
11
|
|
11
12
|
gem.files = `git ls-files`.split($\)
|
12
13
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
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.16
|
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:
|
15
|
+
date: 2019-02-12 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rspec
|
@@ -97,7 +97,6 @@ extensions: []
|
|
97
97
|
extra_rdoc_files: []
|
98
98
|
files:
|
99
99
|
- ".gitignore"
|
100
|
-
- ".rvmrc"
|
101
100
|
- Gemfile
|
102
101
|
- Guardfile
|
103
102
|
- README.md
|
@@ -108,7 +107,8 @@ files:
|
|
108
107
|
- spec/url_scrubber_spec.rb
|
109
108
|
- url_scrubber.gemspec
|
110
109
|
homepage: http://brandle.net
|
111
|
-
licenses:
|
110
|
+
licenses:
|
111
|
+
- MIT
|
112
112
|
metadata: {}
|
113
113
|
post_install_message:
|
114
114
|
rdoc_options: []
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.7.
|
129
|
+
rubygems_version: 2.7.8
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Clean up URLs.
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use 1.9.3@url_scrubber --create
|