app-routes 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/app-routes.rb +1 -1
  2. metadata +1 -1
@@ -50,7 +50,7 @@ class AppRoutes
50
50
  private
51
51
 
52
52
  def string_get(raw_s, &block)
53
- s = raw_s.gsub(/\:\w+/,'(\w+)').gsub(/\/\*/,'(.*)')
53
+ s = "^%s$" % raw_s.gsub(/\:\w+/,'(\w+)').gsub(/\/\*/,'(.*)')
54
54
  @route[Regexp.new s] = {s: raw_s, block: block}
55
55
  end
56
56
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app-routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors: []
7
7