lucky_case 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lucky_case.rb +2 -2
- data/lib/lucky_case/version.rb +1 -1
- 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: 3f48f5e809c7ac7a21a5a42f3d98e0e074c297082d105f955d6770ad0b2ef02e
|
4
|
+
data.tar.gz: 020d6af3f21fd2aaa057dfe4024fa46234931c7fff4c8e163883a881848715b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4eb43b5b752f3c31a98dc1fd10c78f64d2dbb67e5a272796d738aac5d23c147887313164a9ff0a052fc634d8261b26bf9608f777d7cc71ddde5c57091bfdce2c
|
7
|
+
data.tar.gz: 4daa7ee01603efb6645e9dfe26897ee67ef8cd8e0389c006401269a1f95bf1dff3773efd608a1eb79577d7f7658c5fcff4c7f01f9eea0c86ff1ce0ca75810fc4
|
data/lib/lucky_case.rb
CHANGED
@@ -632,9 +632,9 @@ module LuckyCase
|
|
632
632
|
loop do
|
633
633
|
converted = ''
|
634
634
|
a.each do |part|
|
635
|
-
converted += self.
|
635
|
+
converted += self.convert_case part, CASES.keys.sample, preserve_prefixed_underscores: preserve_prefixed_underscores
|
636
636
|
end
|
637
|
-
converted = self.
|
637
|
+
converted = self.convert_case converted, CASES.keys.sample, preserve_prefixed_underscores: preserve_prefixed_underscores
|
638
638
|
break if converted != string && underscores_at_start(string) + converted != string
|
639
639
|
end
|
640
640
|
if preserve_prefixed_underscores
|
data/lib/lucky_case/version.rb
CHANGED