app-routes 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/app-routes.rb +3 -2
- metadata +2 -2
data/lib/app-routes.rb
CHANGED
@@ -13,10 +13,10 @@ module AppRoutes
|
|
13
13
|
|
14
14
|
result = nil
|
15
15
|
|
16
|
-
route = @route.detect {|key, block|
|
16
|
+
route = @route.detect {|key, block| request.match(key) }
|
17
17
|
|
18
18
|
if route then
|
19
|
-
key, block = route
|
19
|
+
key, block = route
|
20
20
|
match = request.match(key)
|
21
21
|
|
22
22
|
args = match.captures
|
@@ -47,6 +47,7 @@ module AppRoutes
|
|
47
47
|
send (methodx[arg.class.to_s.to_sym]), arg, &block
|
48
48
|
end
|
49
49
|
|
50
|
+
alias add_route get
|
50
51
|
private
|
51
52
|
|
52
53
|
def string_get(raw_s, &block)
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: app-routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- James Robertson
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-02-
|
13
|
+
date: 2012-02-22 00:00:00 +00:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|