lite-ruby 1.0.8 → 1.0.9
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/Gemfile.lock +1 -1
- data/lib/lite/ruby/string.rb +2 -2
- data/lib/lite/ruby/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: 908866366b007ce322b5934fe93ca866e9baa44bc0b470387030a936d8b3401d
|
4
|
+
data.tar.gz: 1b403b3d908574517bf787096d27bb7e746e57798a73e28a666175ca8862a1de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c16bb27426e480b9a22f7d6288e4d787aca2c987d7ae2ff2a72b5a160ae77f25fbab336af374b06e3a8843a08ecc1a3af8b085c469535bda6a526cc999e4c94b
|
7
|
+
data.tar.gz: 480150345d5914b2f9a2b05a756d850a9fd119cdf1f386af19ae5fa1594edc3d2451903c9da9be5d990798d4ad1f5bd330cc2f341ce48d5c98d01ac574fb950f
|
data/CHANGELOG.md
CHANGED
@@ -6,9 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.0.9] - 2019-08-15
|
10
|
+
### Changed
|
11
|
+
- Remove unused local var from constantize
|
12
|
+
|
9
13
|
## [1.0.8] - 2019-08-15
|
10
14
|
### Changed
|
11
|
-
- Resolve
|
15
|
+
- Resolve constantize name clash
|
12
16
|
|
13
17
|
## [1.0.7] - 2019-08-15
|
14
18
|
### Changed
|
data/Gemfile.lock
CHANGED
data/lib/lite/ruby/string.rb
CHANGED
@@ -87,8 +87,8 @@ class String
|
|
87
87
|
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity
|
88
88
|
# rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity
|
89
89
|
def constantize
|
90
|
-
names =
|
91
|
-
Object.const_get(
|
90
|
+
names = split('::')
|
91
|
+
Object.const_get(self) if names.empty?
|
92
92
|
names.shift if names.size > 1 && names.first.empty?
|
93
93
|
|
94
94
|
names.inject(Object) do |constant, name|
|
data/lib/lite/ruby/version.rb
CHANGED