camel_snake_keys 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/camel_snake_keys.rb +2 -1
- data/lib/version.rb +1 -1
- data/spec/lib/camel_snake_keys_spec.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a43ef9734380b43f45291290bb618394c59d90f5f4b4063971a43a3c3580fba
|
4
|
+
data.tar.gz: 23d0e08b903cf6ed0db29576f2f6fe9258b897ce93e9c2cea2c158bc0d93a142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7bc99bde80faed7b2de698ade5e57b0141ad2b017f7c6d6b57f6cc038d3ca0128aded3712fd51ebb43b50debea74c8e208b167a0fa9a84f7d049881d2730f34
|
7
|
+
data.tar.gz: 3f8f91a41a00d89683b4309e771c788f6ff6ba6fc7a0d0faf7576b5ddfa6a13d23d813b03d6e856ddbe7e7dbbffa0fbadf4dd2ff374af9b519fbac1e15fb1519
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
1.0.0 01/31/2024
|
2
2
|
================
|
3
3
|
|
4
|
-
|
4
|
+
Test against Ruby 3.3.0.
|
5
|
+
|
6
|
+
Don't let integer hash keys unleashed the bees.
|
7
|
+
|
8
|
+
Fix an introduced bug that produces leading underscores when snaking PascalCase.
|
5
9
|
|
6
10
|
0.1.0 10/14/2022
|
7
11
|
================
|
data/lib/camel_snake_keys.rb
CHANGED
data/lib/version.rb
CHANGED
@@ -33,6 +33,11 @@ RSpec.describe Enumerable do
|
|
33
33
|
CamelSnakeKeys.camelcase(nil).should eq ""
|
34
34
|
CamelSnakeKeys.snakecase(nil).should eq ""
|
35
35
|
end
|
36
|
+
|
37
|
+
it "handles pascal case (destructively)" do
|
38
|
+
CamelSnakeKeys.camelcase("pascal_case").should eq "pascalCase"
|
39
|
+
CamelSnakeKeys.snakecase("PascalCase").should eq "pascal_case"
|
40
|
+
end
|
36
41
|
end
|
37
42
|
|
38
43
|
context 'arrays' do
|