plissken 1.4.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -0
  3. data/VERSION +1 -1
  4. data/lib/plissken/methods.rb +1 -1
  5. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38db0a3758d33d97146f2356ad5b2ecc4727e4ebab65d15f7007d3c55bb745d9
4
- data.tar.gz: d23380751b6ba823e77eeee5fb01dbc97bff480e5bce15f99caa76c6426f88bd
3
+ metadata.gz: a3eed593d974744cc4b272490d781eb6c51410d085a8aac872937f57bbee538f
4
+ data.tar.gz: 68d5b45803ab129c7f9a10c9cd6fc8a2e7f3b639f0576b535adee1adf87531e6
5
5
  SHA512:
6
- metadata.gz: 34db145fb5be603bd44fda24914e8e52b122ba1fd255860bcd141419217dfa005927265790298619c7f38299513520a7b7ba87c000b375c744210606ce15e783
7
- data.tar.gz: 455d38c219493f54ee54589f0031e2505f063c19fc55bdaa9d006d78077cb3a1362e1a82e025e11239a742594d5dc21776e7dddcc166854b78718ecb48498521
6
+ metadata.gz: 90266a92824aee9bbfacb5b7676da9516cef3deacb39f50a9727913fe4f41ddc34c5cbf03bad3a21d5f13b993d1be4a3e8f0ab4777e9c8ea93541bf61a6a13e9
7
+ data.tar.gz: ef019c34e4fd4b6b415d027d0e5f41043ae53c329154a9050be59e2b09568edcf0a473842874ffa884f72c1a2ba0ac304268e14dc46fec2a5a80c1c4311182ad
data/README.md CHANGED
@@ -9,6 +9,10 @@ Plissken to the rescue!
9
9
 
10
10
  This gem recursively converts all camelBack or CamelCase keys in either a Hash structure, or an Array of Hashes, to snake_case.
11
11
 
12
+ ## Requirements
13
+
14
+ * Ruby >= 2.7
15
+
12
16
  ## Installation
13
17
 
14
18
  Add this to your Gemfile:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 2.0.0
@@ -20,7 +20,7 @@ module Plissken
20
20
  private
21
21
 
22
22
  def snake_hash(value)
23
- value.map { |k, v| [underscore_key(k), to_snake_keys(v)] }.to_h
23
+ value.to_h { |k, v| [underscore_key(k), to_snake_keys(v)] }
24
24
  end
25
25
 
26
26
  def underscore_key(key)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plissken
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Hrycyszyn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-18 00:00:00.000000000 Z
12
+ date: 2022-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: byebug
@@ -162,7 +162,8 @@ files:
162
162
  homepage: https://github.com/technicalpanda/plissken
163
163
  licenses:
164
164
  - MIT
165
- metadata: {}
165
+ metadata:
166
+ rubygems_mfa_required: 'true'
166
167
  post_install_message:
167
168
  rdoc_options: []
168
169
  require_paths:
@@ -171,14 +172,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
172
  requirements:
172
173
  - - ">="
173
174
  - !ruby/object:Gem::Version
174
- version: '2.5'
175
+ version: '2.7'
175
176
  required_rubygems_version: !ruby/object:Gem::Requirement
176
177
  requirements:
177
178
  - - ">="
178
179
  - !ruby/object:Gem::Version
179
180
  version: '0'
180
181
  requirements: []
181
- rubygems_version: 3.1.4
182
+ rubygems_version: 3.2.33
182
183
  signing_key:
183
184
  specification_version: 4
184
185
  summary: Snakify your camel keys when working with JSON APIs