usher 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :build:
3
3
  :major: 0
4
4
  :minor: 6
5
- :patch: 4
5
+ :patch: 5
@@ -2,7 +2,9 @@ class Usher
2
2
  module Util
3
3
  class Mapper
4
4
 
5
- def
5
+ def initialize(router)
6
+ @router = router
7
+ end
6
8
 
7
9
  end
8
10
  end
@@ -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 :'!' then Usher::Route::Variable::Greedy
127
- when :* then Usher::Route::Variable::Glob
128
- when :':' then Usher::Route::Variable::Single
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
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-12 00:00:00 -05:00
17
+ date: 2010-01-13 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency