merge_params 0.4.0 → 0.4.1

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
- SHA256:
3
- metadata.gz: 50468b8b15c7c21253bc50acaaa50f423eb45f012373ec5d09e96d8477fa115d
4
- data.tar.gz: a3733c9745be932c2c7792aee32966a8cb5b7c36a67785b63afe9094e8858a74
2
+ SHA1:
3
+ metadata.gz: c06e2126cb5978d95685901f3c5d3e72e643f55a
4
+ data.tar.gz: '005193093380694a32d4d9481a9029c80e0f4ac9'
5
5
  SHA512:
6
- metadata.gz: 458352f9fae2cc4f410886360880c8261466d1c1358bc52cbb40f6bc79268c1752a5a6962308ce34021da751eb392b6c46b4b78bfcc95a9ce53a6aecb2e6dfc4
7
- data.tar.gz: da60236fa26260b6d227b7923b7562f455962256f247e6fff84fdbb1c5f6008f6d2b9f653f22452bc6df0472ce1463e97e8f61f247862d433d64636ab060e05b
6
+ metadata.gz: 1c0b903c82caf2746944325ff2c8de02c4629b7568c90c312ce88c2321f17329d91963d12fc8fb96b2c6252dd394cd6708f98583356ff6ec8646f61240049802
7
+ data.tar.gz: a363d8cb713b14e4cf3d3c85b679712a5c48caf94c64edced7fb077c7583541b1ce203e67ab888e8bdc32dc0a5f494c7d64affefe48e29ccf1aad0fa31f5ee6b
data/Changelog.md CHANGED
@@ -5,6 +5,10 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/).
5
5
 
6
6
  ## (Unreleased)
7
7
 
8
+ ## 0.4.1 (2019-02-08)
9
+ - Fix issue with merge_params not merging nested hashes as expected (changed to
10
+ use `deep_merge` instead of `merge`)
11
+
8
12
  ## 0.4.0 (2019-02-07)
9
13
 
10
14
  ### Added/Changed
@@ -58,7 +58,7 @@ module MergeParams::Helpers
58
58
  # Safely merges the given params with the params from the current request
59
59
  def merge_params(new_params = {})
60
60
  params_for_url_for.
61
- merge(new_params.deep_symbolize_keys)
61
+ deep_merge(new_params.deep_symbolize_keys)
62
62
  end
63
63
 
64
64
  # Easily extract just certain param keys.
@@ -1,5 +1,5 @@
1
1
  module MergeParams
2
2
  def self.version
3
- "0.4.0"
3
+ "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merge_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Rick
@@ -150,7 +150,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  - !ruby/object:Gem::Version
151
151
  version: '0'
152
152
  requirements: []
153
- rubygems_version: 3.0.1
153
+ rubyforge_project:
154
+ rubygems_version: 2.6.14.3
154
155
  signing_key:
155
156
  specification_version: 4
156
157
  summary: Safely merge params for use with url_for or for the query string