fuzzyurl 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fuzzy_url.rb +9 -9
- data/lib/fuzzy_url/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d0dab6b74c3fbb9b07795ef0a38bda8e8f793df
|
4
|
+
data.tar.gz: 5a0d9230164d59f4c2a9e08dbc7fe3931380571d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c3460f1c72705df33bc18667f781f840b7ffdc8ed34b5b008056ad5389d13e92a22d88bcd03f69a0625a7c4be3dd48d2156c292ed55d236523e1b47abb2e7b0
|
7
|
+
data.tar.gz: ecd570ee1bb59a61ba9ea30adc23c00aaa3fc15578acde559c82ea9ab4f2366943c0a91345354737578bd668ea64e0c6532cd9ec27d0831c242b962296de6709
|
data/lib/fuzzy_url.rb
CHANGED
@@ -115,23 +115,23 @@ class FuzzyURL
|
|
115
115
|
if m = url.match(%r{
|
116
116
|
^
|
117
117
|
|
118
|
-
(?: (\* | [a-zA-Z]+) ://)?
|
118
|
+
(?: (\* | [a-zA-Z][A-Za-z+.-]+) ://)? ## m[1] is protocol
|
119
119
|
|
120
|
-
(?: (\* | [a-zA-Z0-
|
121
|
-
(?: : (\* | [a-zA-Z0-
|
120
|
+
(?: (\* | [a-zA-Z0-9%_.!~*'();&=+$,-]+) ## m[2] is username
|
121
|
+
(?: : (\* | [a-zA-Z0-9%_.!~*'();&=+$,-]*))? ## m[3] is password
|
122
122
|
@
|
123
123
|
)?
|
124
124
|
|
125
|
-
([a-zA-Z0-9\.\*\-]+?)?
|
125
|
+
([a-zA-Z0-9\.\*\-]+?)? ## m[4] is hostname
|
126
126
|
|
127
|
-
(?: : (\* | \d+))?
|
127
|
+
(?: : (\* | \d+))? ## m[5] is port
|
128
128
|
|
129
|
-
(/ [^\?\#]*)?
|
130
|
-
|
129
|
+
(/ [^\?\#]*)? ## m[6] is path
|
130
|
+
## captures leading /
|
131
131
|
|
132
|
-
(?: \? ([^\#]*) )?
|
132
|
+
(?: \? ([^\#]*) )? ## m[7] is query
|
133
133
|
|
134
|
-
(?: \# (.*) )?
|
134
|
+
(?: \# (.*) )? ## m[8] is fragment
|
135
135
|
|
136
136
|
$
|
137
137
|
}x)
|
data/lib/fuzzy_url/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuzzyurl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Gamache
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|