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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8d55973512956a6f4d6f839268b112b6a6d823e
4
- data.tar.gz: 7b6718ca5105a557d4e6c174966e69da0e2dd3c5
3
+ metadata.gz: dcb9fa885ae589f1d6eff1fd16318d19d782e109
4
+ data.tar.gz: f42c5ac91c33aebed0143064957a8153baa9420c
5
5
  SHA512:
6
- metadata.gz: ea0b9fa68189e7ee5f5722720119938aaf2e05dee2f7fe9d4df5e946ebddec5969317ba87f8a82eb18d682dd3edcd93c54e5a1734332d9c4dd73693a19acc5b1
7
- data.tar.gz: 8a66038f2aa779912e64d33ef1b20b7b7bf7780491161dd80d8bdccad3392c0c4a9e70ee3e010c35fda61f8d1a3d9170c6fa44c33bb94a2d639fbe9569c06910
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
- @params.delete(prefixed_name) unless @keep_all || param.name == prefixed_name
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FriendlyRoutes
4
- VERSION = '0.4.2'
4
+ VERSION = '0.4.3'
5
5
  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.2
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-05 00:00:00.000000000 Z
11
+ date: 2016-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails