usher 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/usher/util/mapper.rb +3 -1
- data/lib/usher/util/parser.rb +3 -3
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/usher/util/mapper.rb
CHANGED
data/lib/usher/util/parser.rb
CHANGED
@@ -123,9 +123,9 @@ class Usher
|
|
123
123
|
if variable
|
124
124
|
variable_type = variable.slice!(0).chr.to_sym
|
125
125
|
variable_class = case variable_type
|
126
|
-
when :'!'
|
127
|
-
when :*
|
128
|
-
when :':'
|
126
|
+
when :'!' : Usher::Route::Variable::Greedy
|
127
|
+
when :* : Usher::Route::Variable::Glob
|
128
|
+
when :':' : Usher::Route::Variable::Single
|
129
129
|
end
|
130
130
|
variable_name = variable[0, variable.size - 1].to_sym
|
131
131
|
current_group << variable_class.new(variable_name, regex, requirements && requirements[variable_name])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: usher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Neighman
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-01-
|
17
|
+
date: 2010-01-13 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|