simple_params 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aad14f1f0e971f95b7b86b2b45bda867e9da7f3a
4
- data.tar.gz: 972a5e8d2c4b4090a31112263c23099e89008d42
3
+ metadata.gz: 9da7c3c0e1cfb3d49a5d89909ec315f935b2b62a
4
+ data.tar.gz: 7862eac106b9556c7de928726a770b607df3e57a
5
5
  SHA512:
6
- metadata.gz: c378ed7d5e6a199ec06a18256c054cde60ea142257f162f0a7729eff7beda991fc5a07941e866bba6498488a2cb5cac1efc108b82ca6501dad386c8617868031
7
- data.tar.gz: ad5ea85c969258cbae045c03c1364545f8b2933772ff2cd83f93578ea5e756f2c7e146e7f7a21728183ae7b15b20fdaa2e4804cb0f34ec0be1eff8706cedf629
6
+ metadata.gz: a0094bd1f1c935548e48c9c320adeee1dc80a64ed4a0c34d807f28226bf66acac63550ec377d27dfc0f567690bd7080322659dd3cd45ad437f03b78903fbe99b
7
+ data.tar.gz: 561b5b358eb6bbd221cde6c26d2eb1c0b7f078f4920604573d2c0dc1c06eaf4a2013bb3107fe59dde8a5672d92adfd19e20a196cea21fef1e3305bcf439a0b92
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ .idea/*
8
+ .env
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_params (2.0.0)
4
+ simple_params (2.0.1)
5
5
  activemodel (>= 3.0, <= 6.0)
6
6
  shoulda-matchers (>= 2.8)
7
7
  virtus (>= 1.0.0)
@@ -50,8 +50,8 @@ GEM
50
50
  rspec-expectations (2.99.2)
51
51
  diff-lcs (>= 1.1.3, < 2.0)
52
52
  rspec-mocks (2.99.3)
53
- shoulda-matchers (2.8.0)
54
- activesupport (>= 3.0.0)
53
+ shoulda-matchers (3.1.2)
54
+ activesupport (>= 4.0.0)
55
55
  slop (3.6.0)
56
56
  thor (0.20.0)
57
57
  thread_safe (0.3.6)
@@ -6,7 +6,7 @@ module SimpleParams
6
6
 
7
7
  private
8
8
  def hash_to_symbolized_hash(hash)
9
- hash.inject({}){|result, (key, value)|
9
+ hash.to_h.inject({}){|result, (key, value)|
10
10
  new_key = case key
11
11
  when String then key.to_sym
12
12
  else key
@@ -21,7 +21,7 @@ module SimpleParams
21
21
  end
22
22
 
23
23
  def class_instances
24
- nested_class_hash.each_pair.inject([]) do |array, (key, value)|
24
+ nested_class_hash.each_pair.inject([]) do |array, (_key, value)|
25
25
  array << value
26
26
  array.flatten.compact
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleParams
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - brycesenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-28 00:00:00.000000000 Z
11
+ date: 2018-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -135,6 +135,7 @@ executables: []
135
135
  extensions: []
136
136
  extra_rdoc_files: []
137
137
  files:
138
+ - ".gitignore"
138
139
  - ".rspec"
139
140
  - ".ruby-gemset"
140
141
  - ".ruby-version"