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 +4 -4
- data/.DS_Store +0 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/lite/.DS_Store +0 -0
- data/lib/lite/ruby/string.rb +3 -2
- data/lib/lite/ruby/version.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: 7a93f838ee323d06f138b7c772efaae0c46de3cd4696bf1fbc29cae1a2efd137
|
4
|
+
data.tar.gz: 947a451f87050a7b1106f78c963808b545b8f856906129f6b1e43b41c8d558dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcf39979e280eac618e9357849596112cd00e809f076f25de51ae1624256e5d72cccda41345b7b07df0582644c6d9fe884f50ccf10f62059c3f48092aba17ced
|
7
|
+
data.tar.gz: 58b863fec65b549bf3cbb0d1f2ead1c2696b3848f3020d8979aa5eb0fff55c839c63897ce46c5ef3dfa641da2d27f18ea3a3a1978e9cf6d9bde2e0d2b3b085b8
|
data/.DS_Store
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/Gemfile.lock
CHANGED
data/lib/.DS_Store
CHANGED
Binary file
|
data/lib/lite/.DS_Store
CHANGED
Binary file
|
data/lib/lite/ruby/string.rb
CHANGED
@@ -110,11 +110,11 @@ class String
|
|
110
110
|
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity
|
111
111
|
|
112
112
|
def dasherize
|
113
|
-
|
113
|
+
underscore.tr('_', '-')
|
114
114
|
end
|
115
115
|
|
116
116
|
def dasherize!
|
117
|
-
|
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')
|
data/lib/lite/ruby/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|