lite-ruby 1.0.11 → 1.0.12

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: 93073011b0520a73b4b0d3311415cbcff582a92c7c88f8146b21c41a2b02ef94
4
- data.tar.gz: 9f5c1cd0080c616f7a84deb2dcfb3bbcc69057e50e50b96bc114e7d99a003b0d
3
+ metadata.gz: 7a93f838ee323d06f138b7c772efaae0c46de3cd4696bf1fbc29cae1a2efd137
4
+ data.tar.gz: 947a451f87050a7b1106f78c963808b545b8f856906129f6b1e43b41c8d558dc
5
5
  SHA512:
6
- metadata.gz: 14aad2c4f73c63f34b66e34bd2a050186b5b88161a5a4cb117f341a07d20bb788b88d9311dbfdf65cceaa6d2fbb94a46a90dbb78ce94c19d7e24ac5d00f90353
7
- data.tar.gz: cf1e8c7390dc377b7c7ba7827b1e3da4c759778b262d5fa47a839e6a71a87583d1fc74adc7c5e413e6815eae2e5872508b3a16655f044be7b799c5cf25397c9f
6
+ metadata.gz: bcf39979e280eac618e9357849596112cd00e809f076f25de51ae1624256e5d72cccda41345b7b07df0582644c6d9fe884f50ccf10f62059c3f48092aba17ced
7
+ data.tar.gz: 58b863fec65b549bf3cbb0d1f2ead1c2696b3848f3020d8979aa5eb0fff55c839c63897ce46c5ef3dfa641da2d27f18ea3a3a1978e9cf6d9bde2e0d2b3b085b8
data/.DS_Store CHANGED
Binary file
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.12] - 2019-08-15
10
+ ### Changed
11
+ - Changed how string underscore works
12
+ - Changed how string dasherize works
13
+
9
14
  ## [1.0.11] - 2019-08-15
10
15
  ### Changed
11
16
  - Renamed hash alias to aka
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-ruby (1.0.11)
4
+ lite-ruby (1.0.12)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
Binary file
Binary file
@@ -110,11 +110,11 @@ class String
110
110
  # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity
111
111
 
112
112
  def dasherize
113
- dup.dasherize!
113
+ underscore.tr('_', '-')
114
114
  end
115
115
 
116
116
  def dasherize!
117
- tr!('_', '-')
117
+ replace(dasherize)
118
118
  end
119
119
 
120
120
  def deconstantize
@@ -581,6 +581,7 @@ class String
581
581
  alias snakecase underscore
582
582
 
583
583
  def underscore!
584
+ camelize!
584
585
  gsub!(/::/, '/')
585
586
  gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2')
586
587
  gsub!(/([a-z\d])([A-Z])/, '\1_\2')
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Ruby
5
5
 
6
- VERSION ||= '1.0.11'
6
+ VERSION ||= '1.0.12'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-15 00:00:00.000000000 Z
11
+ date: 2019-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler