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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e03c07bf920781777e67d73cee148dc4d98a9d9
4
- data.tar.gz: 2bf399db13171703e3a03ef65128e5c48aba16aa
3
+ metadata.gz: 2d0dab6b74c3fbb9b07795ef0a38bda8e8f793df
4
+ data.tar.gz: 5a0d9230164d59f4c2a9e08dbc7fe3931380571d
5
5
  SHA512:
6
- metadata.gz: 34d8da13ae4c79c2e2b912e085ddd3675b8b6b73dec2546f505368790b98c95b057597f636c05adab11b2228c2fdd847c7f0f0d68fba49677f06b441e6b4fa0d
7
- data.tar.gz: e62e3737a82ccc2f95337b4ee06079d5e619a3e124c96f98ed052c32bd5857f6108b6922201c2d221eeb5f5bdab189ed27b54dea2e4a78cc5b2d5687db6794de
6
+ metadata.gz: 3c3460f1c72705df33bc18667f781f840b7ffdc8ed34b5b008056ad5389d13e92a22d88bcd03f69a0625a7c4be3dd48d2156c292ed55d236523e1b47abb2e7b0
7
+ data.tar.gz: ecd570ee1bb59a61ba9ea30adc23c00aaa3fc15578acde559c82ea9ab4f2366943c0a91345354737578bd668ea64e0c6532cd9ec27d0831c242b962296de6709
@@ -115,23 +115,23 @@ class FuzzyURL
115
115
  if m = url.match(%r{
116
116
  ^
117
117
 
118
- (?: (\* | [a-zA-Z]+) ://)? ## m[1] is protocol
118
+ (?: (\* | [a-zA-Z][A-Za-z+.-]+) ://)? ## m[1] is protocol
119
119
 
120
- (?: (\* | [a-zA-Z0-9_]+) ## m[2] is username
121
- (?: : (\* | [a-zA-Z0-9_]*))? ## m[3] is password
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\.\*\-]+?)? ## m[4] is hostname
125
+ ([a-zA-Z0-9\.\*\-]+?)? ## m[4] is hostname
126
126
 
127
- (?: : (\* | \d+))? ## m[5] is port
127
+ (?: : (\* | \d+))? ## m[5] is port
128
128
 
129
- (/ [^\?\#]*)? ## m[6] is path
130
- ## captures leading /
129
+ (/ [^\?\#]*)? ## m[6] is path
130
+ ## captures leading /
131
131
 
132
- (?: \? ([^\#]*) )? ## m[7] is query
132
+ (?: \? ([^\#]*) )? ## m[7] is query
133
133
 
134
- (?: \# (.*) )? ## m[8] is fragment
134
+ (?: \# (.*) )? ## m[8] is fragment
135
135
 
136
136
  $
137
137
  }x)
@@ -1,6 +1,6 @@
1
1
  # @private
2
2
  class FuzzyURL
3
- VERSION = '0.2.1'
4
- VERSION_DATE = '2014-04-03'
3
+ VERSION = '0.2.2'
4
+ VERSION_DATE = '2014-04-05'
5
5
  end
6
6
 
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.1
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-03 00:00:00.000000000 Z
11
+ date: 2014-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake