lite-ruby 1.0.4 → 1.0.5

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: 04000606ae7be2f1ccd5eabce5505152245c7d887831b1cf5d8b4fb314eaa493
4
- data.tar.gz: 6475eda4f943b7eb690b94712fad42ed0ed56801750c3806a31fcb71b3c7c509
3
+ metadata.gz: d491d1f3a4df259dd3f5f08b9757082d16029d52695442273bd8e3946d07615b
4
+ data.tar.gz: bc77e6dd598a7800d7e7abe7bde39fcae5a941edea9b483df499c39c2b37b05e
5
5
  SHA512:
6
- metadata.gz: 01b1a425b1b5e7c9c821dade32a826c2b655028c32bd70a149a573d113d509a36ffb168ed0e9a30e088611bd3cf4bd255c7d5c7294f05fb310d84b89e298407a
7
- data.tar.gz: 8707863ed5227904179e70b77996a31680f18d8a12e86893ed9c0e492165905deeaead2f5c2477c9ff77151f73188513cd69ad21aacaaaad5a1f2956a679c444
6
+ metadata.gz: 24d51fda2095cbe7a2e0fd9217404ecbab715193529d92b2ddae93c648b09013f3c022712f326f66e0f3cd6f5426f85f6c41a5e1cc28134144c4bb774c26d59b
7
+ data.tar.gz: 6b7c5b3ab9552381c50b4e4bc8cdaf8eca96077b1d53687353ab85dac1594810a097dabf2975f5b27fd2c22a3c21d5b953ac328f28f355a8e49df28ad8059b4b
data/CHANGELOG.md CHANGED
@@ -6,7 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- ## [1.0.4] - 2019-08-09
9
+ ## [1.0.4] - 2019-08-010
10
+ ### Changed
11
+ - Improved speed for Array denillify
12
+ - Improved speed for Hash denillify
13
+
14
+ ## [1.0.4] - 2019-08-010
10
15
  ### Added
11
16
  - Added more boolean value checks
12
17
  - Added Numeric => `markdown_percentage`
@@ -15,7 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
20
  - Added Object => `to_bool`
16
21
  - Added String => `dedupe`
17
22
  ### Changed
18
- - Move boolean classes to its own file
23
+ - Move Boolean classes to its own file
19
24
 
20
25
  ## [1.0.3] - 2019-07-30
21
26
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-ruby (1.0.4)
4
+ lite-ruby (1.0.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -85,7 +85,7 @@ class Array
85
85
  end
86
86
 
87
87
  def denillify(identity = 0)
88
- map { |val| val.nil? ? identity : val }
88
+ map { |val| val || identity }
89
89
  end
90
90
 
91
91
  def denillify!(identity = 0)
@@ -164,12 +164,12 @@ class Hash
164
164
  self
165
165
  end
166
166
 
167
- def denillify(value = 0)
168
- dup.denillify!(value)
167
+ def denillify(identity = 0)
168
+ dup.denillify!(identity)
169
169
  end
170
170
 
171
- def denillify!(value = 0)
172
- each { |key, val| self[key] = val.nil? ? value : val }
171
+ def denillify!(identity = 0)
172
+ each { |key, val| self[key] = val || identity }
173
173
  end
174
174
 
175
175
  def diff(hash)
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Ruby
5
5
 
6
- VERSION ||= '1.0.4'
6
+ VERSION ||= '1.0.5'
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.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez