awrence 1.2.1 → 2.0.1

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 +7 -132
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ea9ffe08685c4d1f7d302efaf13077b4cf86908fce25dd6dac706e9f832b39e
4
- data.tar.gz: a9c44ac2fd6134e5063c30eb924fdbf2a44a6652d956b467a8324bd4065034f1
3
+ metadata.gz: b9ad31efa3716cc6e0c4c10654a506a549e6e707adf5f7849cc237878c726dd7
4
+ data.tar.gz: e37015d0e7a72a7588c8acc405bf89f1906cbc6372da64d27d991f312722e1c2
5
5
  SHA512:
6
- metadata.gz: 9da5f704603f55dbf0220554da57c448bedff741751b66836e22a69bbdef9498938cc7149dbbcb036c2808b650024e6ad90875510986f4c675b0b482ec2aae56
7
- data.tar.gz: 4b97555cb25181c0dadd271b3c2c4b22fd0cf2c5f06b826f7f87f9282b1f7afb3f78c3c7465ede8ec3e1e48084458b4e99a4a6bed3e026c1ff6942f1b5b8e05e
6
+ metadata.gz: 7bc7dbc91cdc47d7fcc49fea9a91033916628f9f93993742e83ff06eb71afa290bd8a029525cf1e87e8c21b4667e5a38166ba89894e264de3fadd24664b95184
7
+ data.tar.gz: f103746aef4c264b6e38e034a9e20e6f88660c10c26a3a03661f221431fbca3c8082838f0b21c4befa44f58c3dc04ffffcd3d9e56f616fafa4e7616678712ae1
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.1
@@ -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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Hrycyszyn
@@ -9,134 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-18 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: byebug
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - "~>"
19
- - !ruby/object:Gem::Version
20
- version: '11.1'
21
- type: :development
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - "~>"
26
- - !ruby/object:Gem::Version
27
- version: '11.1'
28
- - !ruby/object:Gem::Dependency
29
- name: minitest
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: '5.14'
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - "~>"
40
- - !ruby/object:Gem::Version
41
- version: '5.14'
42
- - !ruby/object:Gem::Dependency
43
- name: minitest-fail-fast
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - "~>"
47
- - !ruby/object:Gem::Version
48
- version: '0.1'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - "~>"
54
- - !ruby/object:Gem::Version
55
- version: '0.1'
56
- - !ruby/object:Gem::Dependency
57
- name: minitest-macos-notification
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: '0.3'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '0.3'
70
- - !ruby/object:Gem::Dependency
71
- name: minitest-reporters
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - "~>"
75
- - !ruby/object:Gem::Version
76
- version: '1.4'
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - "~>"
82
- - !ruby/object:Gem::Version
83
- version: '1.4'
84
- - !ruby/object:Gem::Dependency
85
- name: rake
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - "~>"
89
- - !ruby/object:Gem::Version
90
- version: '13.0'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '13.0'
98
- - !ruby/object:Gem::Dependency
99
- name: rubocop
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - "~>"
103
- - !ruby/object:Gem::Version
104
- version: '1.7'
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - "~>"
110
- - !ruby/object:Gem::Version
111
- version: '1.7'
112
- - !ruby/object:Gem::Dependency
113
- name: rubocop-minitest
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - "~>"
117
- - !ruby/object:Gem::Version
118
- version: '0.10'
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - "~>"
124
- - !ruby/object:Gem::Version
125
- version: '0.10'
126
- - !ruby/object:Gem::Dependency
127
- name: rubocop-rake
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - "~>"
131
- - !ruby/object:Gem::Version
132
- version: '0.5'
133
- type: :development
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '0.5'
12
+ date: 2022-01-23 00:00:00.000000000 Z
13
+ dependencies: []
140
14
  description: |-
141
15
  Have you ever needed to automatically convert Ruby-style snake_case to CamelCase or camelBack hash keys?
142
16
 
@@ -162,7 +36,8 @@ files:
162
36
  homepage: https://github.com/technicalpanda/awrence
163
37
  licenses:
164
38
  - MIT
165
- metadata: {}
39
+ metadata:
40
+ rubygems_mfa_required: 'true'
166
41
  post_install_message:
167
42
  rdoc_options: []
168
43
  require_paths:
@@ -171,14 +46,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
46
  requirements:
172
47
  - - ">="
173
48
  - !ruby/object:Gem::Version
174
- version: '2.5'
49
+ version: '2.7'
175
50
  required_rubygems_version: !ruby/object:Gem::Requirement
176
51
  requirements:
177
52
  - - ">="
178
53
  - !ruby/object:Gem::Version
179
54
  version: '0'
180
55
  requirements: []
181
- rubygems_version: 3.1.4
56
+ rubygems_version: 3.2.33
182
57
  signing_key:
183
58
  specification_version: 4
184
59
  summary: Camelize your snake keys when working with JSON APIs