awrence 1.2.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/awrence/methods.rb +1 -1
  5. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ea9ffe08685c4d1f7d302efaf13077b4cf86908fce25dd6dac706e9f832b39e
4
- data.tar.gz: a9c44ac2fd6134e5063c30eb924fdbf2a44a6652d956b467a8324bd4065034f1
3
+ metadata.gz: 6121082bf25dc2a5050b21f38404fb6d300838c68c6df2b5d67c3d9956622d21
4
+ data.tar.gz: 3caa8b1d101475002f9d17d0e2c2b0418d8a8a39f1693f526cc04ab6d1cd6206
5
5
  SHA512:
6
- metadata.gz: 9da5f704603f55dbf0220554da57c448bedff741751b66836e22a69bbdef9498938cc7149dbbcb036c2808b650024e6ad90875510986f4c675b0b482ec2aae56
7
- data.tar.gz: 4b97555cb25181c0dadd271b3c2c4b22fd0cf2c5f06b826f7f87f9282b1f7afb3f78c3c7465ede8ec3e1e48084458b4e99a4a6bed3e026c1ff6942f1b5b8e05e
6
+ metadata.gz: 2a7e48f2382dfc3f863f09f2b3d54293b02661734a7b5e344d6e8241de5e8563769fc23b1da5d83d10e48b6bf961c85287d46b201be602fb5334cbe86ac1fa4a
7
+ data.tar.gz: 64e04089c788665af85de7e0a296b6160962524bfb5a0abcac0fed6b619fa6746c6a320c88d54b05cedd7a4e273304fe0cb0febe6e952798e5838876b1a5b0f3
data/README.md CHANGED
@@ -9,6 +9,10 @@ Awrence to the rescue!
9
9
 
10
10
  This gem recursively converts all snake_case keys in a hash structure to camelBack or CamelCase.
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.2.1
1
+ 2.0.0
@@ -52,7 +52,7 @@ module Awrence
52
52
  when Array
53
53
  value.map { |v| send(method, v) }
54
54
  when Hash
55
- value.map { |k, v| [camelize_key(k, first_upper: first_upper), send(method, v)] }.to_h
55
+ value.to_h { |k, v| [camelize_key(k, first_upper: first_upper), send(method, v)] }
56
56
  else
57
57
  value
58
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awrence
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.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/awrence
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: Camelize your snake keys when working with JSON APIs