rails-routes-js-utils 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@ module Rails
17
17
  static_part = this_spec.split(param_split)
18
18
  dynamic_part = this_spec.scan(param_split)
19
19
  dynamic_part.slice!(-1,1)
20
- compiled_match = []
20
+ compiled_match = ['^']
21
21
  compiled_replace = ["function() { return ''"]
22
22
  for i in 0..[static_part.length,dynamic_part.length].max
23
23
  if (static_part[i] && static_part[i].length)
@@ -29,6 +29,7 @@ module Rails
29
29
  compiled_match << param_replace
30
30
  end
31
31
  end
32
+ compiled_match << "\/?$"
32
33
  compiled_regex = Regexp.new(compiled_match.join());
33
34
  compiled_replace << ";}"
34
35
 
@@ -2,7 +2,7 @@ module Rails
2
2
  module Routes
3
3
  module Js
4
4
  module Utils
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-routes-js-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: