url_compare 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/url_compare.rb +3 -2
- metadata +2 -2
data/lib/url_compare.rb
CHANGED
@@ -15,8 +15,9 @@ class UrlCompare
|
|
15
15
|
|
16
16
|
def self.strip_url(url, options)
|
17
17
|
result = url
|
18
|
-
|
19
18
|
result = result.split('?')[0] if options[:ignore_params]
|
20
|
-
result.split('#')[0]
|
19
|
+
result = result.split('#')[0] || ''
|
20
|
+
result = result.sub('//www.', '//').chomp('/')
|
21
|
+
result
|
21
22
|
end
|
22
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: url_compare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-31 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'Attempts to identify URLs that are identical or similar by
|
15
15
|
|