app-routes 0.1.9 → 0.1.10

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.
Files changed (2) hide show
  1. data/lib/app-routes.rb +7 -2
  2. metadata +1 -1
@@ -37,7 +37,9 @@ module AppRoutes
37
37
  puts err_label
38
38
  "app-routes error: " + ($!).to_s
39
39
  end
40
-
40
+
41
+ @params = {}
42
+
41
43
  end
42
44
  result
43
45
  end
@@ -47,7 +49,10 @@ module AppRoutes
47
49
  send (methodx[arg.class.to_s.to_sym]), arg, &block
48
50
  end
49
51
 
50
- alias add_route get
52
+ def add_route(arg)
53
+ get(arg) {yield(@params)}
54
+ end
55
+
51
56
  private
52
57
 
53
58
  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.9
5
+ version: 0.1.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson