lite-ruby 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 997db962e2187aad31324a203ccd2d9e356d4a18d02b80e24bdc32c7e433e95b
4
- data.tar.gz: 9e9b55dca2fea604b0e58e8e750dda082bfc9851ce3c5004f4451afe64468336
3
+ metadata.gz: 1b4c2a37c0cc55a587d6c321baf3b4d6c26d89d51814cc8a995cca77c3061693
4
+ data.tar.gz: fbd039fae33008ab9677d84f45f81a1e1cd590f64cb7f3f634454497c4674cf7
5
5
  SHA512:
6
- metadata.gz: bac9fa22759bd3c30f9596a3906f70e089a99ef8cfcc3eee478f0992fdde84b7d7b069fa185c04b6e1dce5ca8e82602c95c338a7eebf6a212f60f7ba2c6cb146
7
- data.tar.gz: a33333716041baaabea38cb8ab2a307f3c587c6988c5d2628e734503c67ee4a10765e150d836cd666a1b2c03a97bff2b5678d5bf6457d05aaf1a135ad88d96f3
6
+ metadata.gz: 076e6cd76f6f24d874841c893714b949be8a0bf3af80494fb502c65ee53ea3167c028ce4edc209973b8c53c7b0b67d322934450814c5e30edc479edb0dcc64c0
7
+ data.tar.gz: b39115a037aa26c299c382f2f1f1e1800bb059a9a36200150fb7ab77b4d414acceac8b59718933245471297d6391e43e1ebc7a6c4772e21691103079195e991b
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.17] - 2019-08-24
10
+ ### Changed
11
+ - Improved how configuration works
12
+
9
13
  ## [1.0.16] - 2019-08-18
10
14
  ### Added
11
15
  - Added Array => `deep_dup`
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-ruby (1.0.16)
4
+ lite-ruby (1.0.17)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -4,11 +4,11 @@
4
4
  require "lite/ruby/#{filename}"
5
5
  end
6
6
 
7
- %w[date time].each do |filename|
8
- require "lite/ruby/helpers/#{filename}_helper"
9
- end
10
-
11
- Lite::Ruby.configuration.monkey_patches.each do |filename|
7
+ %w[
8
+ array boolean date enumerable hash integer kernel numeric object open_struct range string
9
+ struct time
10
+ ].each do |filename|
11
+ require "lite/ruby/helpers/#{filename}_helper" if %w[date time].include?(filename)
12
12
  require "lite/ruby/#{filename}"
13
13
  end
14
14
 
@@ -16,16 +16,22 @@ module Lite
16
16
 
17
17
  end
18
18
 
19
- def self.configuration
20
- @configuration ||= Configuration.new
21
- end
19
+ class << self
22
20
 
23
- def self.configuration=(config)
24
- @configuration = config
25
- end
21
+ attr_writer :configuration
22
+
23
+ def configuration
24
+ @configuration ||= Configuration.new
25
+ end
26
+
27
+ def configure
28
+ yield(configuration)
29
+ end
30
+
31
+ def reset_configuration!
32
+ @configuration = Configuration.new
33
+ end
26
34
 
27
- def self.configure
28
- yield(configuration)
29
35
  end
30
36
 
31
37
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Ruby
5
5
 
6
- VERSION ||= '1.0.16'
6
+ VERSION ||= '1.0.17'
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.16
4
+ version: 1.0.17
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-19 00:00:00.000000000 Z
11
+ date: 2019-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler