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 +5 -5
- data/Changelog.md +4 -0
- data/lib/merge_params/helpers.rb +1 -1
- data/lib/merge_params/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c06e2126cb5978d95685901f3c5d3e72e643f55a
|
4
|
+
data.tar.gz: '005193093380694a32d4d9481a9029c80e0f4ac9'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/merge_params/helpers.rb
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
|
-
|
61
|
+
deep_merge(new_params.deep_symbolize_keys)
|
62
62
|
end
|
63
63
|
|
64
64
|
# Easily extract just certain param keys.
|
data/lib/merge_params/version.rb
CHANGED
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.
|
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
|
-
|
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
|