friendly_routes 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/friendly_routes/services/parser.rb +4 -1
- data/lib/friendly_routes/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcb9fa885ae589f1d6eff1fd16318d19d782e109
|
4
|
+
data.tar.gz: f42c5ac91c33aebed0143064957a8153baa9420c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aadefafcb576ce5a8e8fe8670623503554496f6d731fc75e4a0af9f952f70afd33f16d899aa0bd2082cd46ba6d7b890dbc3e97f8c44239d3414ce37eab7f6bd1
|
7
|
+
data.tar.gz: 084a4ec740ea9d9c5db2a5db057aa373faa08bf2946b3f29a37f9b81d1cc0249fc364bf1ede817247eecb6e22725ea7a7e62377ace9d7bf990e027c86b7bf14e
|
@@ -22,7 +22,10 @@ module FriendlyRoutes
|
|
22
22
|
value = @params[prefixed_name]
|
23
23
|
return unless value
|
24
24
|
@params[param.name] = param.parse(value)
|
25
|
-
|
25
|
+
unless @keep_all
|
26
|
+
@params.delete(prefixed_name) unless param.name == prefixed_name
|
27
|
+
@params.delete(:friendly_route)
|
28
|
+
end
|
26
29
|
end
|
27
30
|
end
|
28
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: friendly_routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Gritsay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|