enhance 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/enhance/urlhelper.rb +1 -1
- data/lib/enhance/version.rb +1 -1
- metadata +3 -3
data/lib/enhance/urlhelper.rb
CHANGED
@@ -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
|
data/lib/enhance/version.rb
CHANGED
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Guillaume Malette
|