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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7c4dc263bc163972145a81df6aee8c9f95326618965c5fae6f499be6d90aad7
4
- data.tar.gz: 28397c3898961a0651a518ecfcf22750f54646433b032cb1a61148e0953bdea8
3
+ metadata.gz: 3f48f5e809c7ac7a21a5a42f3d98e0e074c297082d105f955d6770ad0b2ef02e
4
+ data.tar.gz: 020d6af3f21fd2aaa057dfe4024fa46234931c7fff4c8e163883a881848715b8
5
5
  SHA512:
6
- metadata.gz: 3bee15287a4859b58818ba57c602afe70623c8020177b6af654f08059325f64fc03cce898d7ae97d7d33a6acdf9ee81afd47a5251049f05e25bffb51125a4bf6
7
- data.tar.gz: 68ffb0cc620c65ce3bca6f0ec5c14d582ad01cab8477be6afdfafa67728888989b15f28bc851c409c622f86fd0aab2cbc5520397b221b3845fdd2589b6bd8214
6
+ metadata.gz: 4eb43b5b752f3c31a98dc1fd10c78f64d2dbb67e5a272796d738aac5d23c147887313164a9ff0a052fc634d8261b26bf9608f777d7cc71ddde5c57091bfdce2c
7
+ data.tar.gz: 4daa7ee01603efb6645e9dfe26897ee67ef8cd8e0389c006401269a1f95bf1dff3773efd608a1eb79577d7f7658c5fcff4c7f01f9eea0c86ff1ce0ca75810fc4
@@ -632,9 +632,9 @@ module LuckyCase
632
632
  loop do
633
633
  converted = ''
634
634
  a.each do |part|
635
- converted += self.send CASES.keys.sample, part
635
+ converted += self.convert_case part, CASES.keys.sample, preserve_prefixed_underscores: preserve_prefixed_underscores
636
636
  end
637
- converted = self.send CASES.keys.sample, converted
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
@@ -1,3 +1,3 @@
1
1
  module LuckyCase
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucky_case
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthäus J. N. Beyrle