awrence 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/VERSION +1 -1
- data/lib/awrence/methods.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ea9ffe08685c4d1f7d302efaf13077b4cf86908fce25dd6dac706e9f832b39e
|
4
|
+
data.tar.gz: a9c44ac2fd6134e5063c30eb924fdbf2a44a6652d956b467a8324bd4065034f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9da5f704603f55dbf0220554da57c448bedff741751b66836e22a69bbdef9498938cc7149dbbcb036c2808b650024e6ad90875510986f4c675b0b482ec2aae56
|
7
|
+
data.tar.gz: 4b97555cb25181c0dadd271b3c2c4b22fd0cf2c5f06b826f7f87f9282b1f7afb3f78c3c7465ede8ec3e1e48084458b4e99a4a6bed3e026c1ff6942f1b5b8e05e
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Awrence
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/awrence.svg)](https://badge.fury.io/rb/awrence)
|
4
|
+
![CI](https://github.com/technicalpanda/awrence/workflows/CI/badge.svg)
|
4
5
|
|
5
6
|
Have you ever needed to automatically convert Rubyish `snake_case` to JSON-style `camelBack` or `CamelCase` hash keys?
|
6
7
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.1
|
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
|
-
|
55
|
+
value.map { |k, v| [camelize_key(k, first_upper: first_upper), send(method, v)] }.to_h
|
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.
|
4
|
+
version: 1.2.1
|
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-
|
12
|
+
date: 2021-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: byebug
|