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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ba24d454323ce7e6ac1c540713424ab0a3789a7205af7d019714f5ffa489bc8
4
- data.tar.gz: 993ceac9b653ec496415cd99cb9065a88e6879acb084d67f87f9af97a8a4bdc9
3
+ metadata.gz: 908866366b007ce322b5934fe93ca866e9baa44bc0b470387030a936d8b3401d
4
+ data.tar.gz: 1b403b3d908574517bf787096d27bb7e746e57798a73e28a666175ca8862a1de
5
5
  SHA512:
6
- metadata.gz: 1f477165f75a0bea822a12664e0d68710ade1b7cb92ef22152af908a48e84b1f3cb63e3200ebe9674febf78a2854dbcbb157b69af73fc3ce3f050f449b70c7cd
7
- data.tar.gz: 9de71665668046da66b9c6378310cd18d336f3e517c4ba7c12def2166307ca8ebed37c12a8345d9d36efec377d8ff32e24eecb188c56e0bc700d8a8adf03f866
6
+ metadata.gz: c16bb27426e480b9a22f7d6288e4d787aca2c987d7ae2ff2a72b5a160ae77f25fbab336af374b06e3a8843a08ecc1a3af8b085c469535bda6a526cc999e4c94b
7
+ data.tar.gz: 480150345d5914b2f9a2b05a756d850a9fd119cdf1f386af19ae5fa1594edc3d2451903c9da9be5d990798d4ad1f5bd330cc2f341ce48d5c98d01ac574fb950f
@@ -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 contantize name clash
15
+ - Resolve constantize name clash
12
16
 
13
17
  ## [1.0.7] - 2019-08-15
14
18
  ### Changed
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-ruby (1.0.8)
4
+ lite-ruby (1.0.9)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 = camel_cased_word.split('::')
91
- Object.const_get(camel_cased_word) if names.empty?
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|
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Ruby
5
5
 
6
- VERSION ||= '1.0.8'
6
+ VERSION ||= '1.0.9'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez