enhance 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  module ActionView::Helpers::UrlHelper
2
2
  def enhance url, geometry
3
- matches = url.match /(?<url>[^?])\??(?<get>.*)?/
3
+ matches = url.match /(?<url>[^?]*)\??(?<get>.*)?/
4
4
  [[matches['url'], geometry].compact.join("/"), matches['get']].compact.reject(&:empty?).join("?")
5
5
  end
6
6
  alias_method :enhance!, :enhance
@@ -1,3 +1,3 @@
1
1
  module Enhance
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enhance
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guillaume Malette