awrence 1.2.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +6 -0
- data/VERSION +1 -1
- data/lib/awrence/methods.rb +1 -1
- metadata +7 -132
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5c2e28c418ddf4a29fb3a7f6fcb22bffcf3ef89b5e6e438af0eacca002973ab
|
4
|
+
data.tar.gz: 64939e8d128b9392ea8eaf7128eb9beda1712662bf2e5c6dd2652b9be4aa21d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 462a73e5ecdab3f058b3fcd1ac57d67eb4ee1441438d3cf71e52988e53562ae0ba604ba6960a2651e2989bc2cfb3e2fb5b10a8d64e4ac84bb1f3cec004dec5d4
|
7
|
+
data.tar.gz: 4fde555b0c91bf205892cacb531293a5c3953f0688b6d464de27e6de1e2522712884cf47fee3af18fbce50ef54a30de47230a10a49a290bf03031eece0a467f6
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -9,6 +9,12 @@ 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 >= 3.0
|
15
|
+
|
16
|
+
For Ruby < 3.0 use version 2.0.1
|
17
|
+
|
12
18
|
## Installation
|
13
19
|
|
14
20
|
Add this to your Gemfile:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.0
|
data/lib/awrence/methods.rb
CHANGED
@@ -52,7 +52,7 @@ module Awrence
|
|
52
52
|
when Array
|
53
53
|
value.map { |v| send(method, v) }
|
54
54
|
when Hash
|
55
|
-
value.
|
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:
|
4
|
+
version: 3.0.0
|
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:
|
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: 2024-05-06 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: '
|
49
|
+
version: '3.0'
|
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.
|
56
|
+
rubygems_version: 3.5.9
|
182
57
|
signing_key:
|
183
58
|
specification_version: 4
|
184
59
|
summary: Camelize your snake keys when working with JSON APIs
|