lite-statistics 1.0.4 → 1.0.5

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: 49b18fb367a9702f9aa7253b8a6f50b6536ef1e4cad177f0bdba2d8d207ca069
4
- data.tar.gz: 5e63a6d3c6f6e4276379638a7d67791aad8f49504c4c7ac2c99f0d5faf7953c4
3
+ metadata.gz: 46df01b2764042cd9ae65a3343230f5b87ed99a9ab64da7e7c84fe4704e8706d
4
+ data.tar.gz: 9f660c1fab791cd49ce372cb65ae87783928a8b58f3eb11a6c00fbdeeceac79c
5
5
  SHA512:
6
- metadata.gz: ca8ec918047e496c990f5a317167e353939c303affb7b32eb93193a28b8c18f1b1ea924f50bfa53fbbcf8b92cae0bd577e53f3fa3e806487b061790653c0f6e2
7
- data.tar.gz: 7f819820a89cb88bc977a535df475cc021de63ff508ab301fac94c4d32e799db40aa2cf9b47cb54cf2dff5b358283ec78508c9f6ac03b064338d4285016c420b
6
+ metadata.gz: 7cc8421fc4e7ab1a8bd37db4b4aa9a76897ba31fd4fd303dca3487bd865fc80110da8fb2af116ed0a1db5ede2a4cabc1ca21a453776bdf2b79d4da1bdb2f6b5b
7
+ data.tar.gz: 0a949e21bab5c755f215554fb590d01a010b97eb39a4736b4521f4f0228eb24c3c3b6cf775883d329f164622c3202f3bceb353cc2e550ee73d4fc9c0d3d51143
@@ -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.5] - 2019-08-24
10
+ ### Changed
11
+ - Imporved how configuration works
12
+
9
13
  ## [1.0.4] - 2019-08-17
10
14
  ### Changed
11
15
  - Add check for monkey patches
@@ -1,30 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-statistics (1.0.4)
4
+ lite-statistics (1.0.5)
5
5
  lite-memoize
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (5.2.3)
11
- actionview (= 5.2.3)
12
- activesupport (= 5.2.3)
10
+ actionpack (6.0.0)
11
+ actionview (= 6.0.0)
12
+ activesupport (= 6.0.0)
13
13
  rack (~> 2.0)
14
14
  rack-test (>= 0.6.3)
15
15
  rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
- actionview (5.2.3)
18
- activesupport (= 5.2.3)
16
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
+ actionview (6.0.0)
18
+ activesupport (= 6.0.0)
19
19
  builder (~> 3.1)
20
20
  erubi (~> 1.4)
21
21
  rails-dom-testing (~> 2.0)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
23
- activesupport (5.2.3)
22
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
+ activesupport (6.0.0)
24
24
  concurrent-ruby (~> 1.0, >= 1.0.2)
25
25
  i18n (>= 0.7, < 2)
26
26
  minitest (~> 5.1)
27
27
  tzinfo (~> 1.1)
28
+ zeitwerk (~> 2.1, >= 2.1.8)
28
29
  ast (2.4.0)
29
30
  builder (3.2.3)
30
31
  colorize (0.8.1)
@@ -61,12 +62,12 @@ GEM
61
62
  nokogiri (>= 1.6)
62
63
  rails-html-sanitizer (1.2.0)
63
64
  loofah (~> 2.2, >= 2.2.2)
64
- railties (5.2.3)
65
- actionpack (= 5.2.3)
66
- activesupport (= 5.2.3)
65
+ railties (6.0.0)
66
+ actionpack (= 6.0.0)
67
+ activesupport (= 6.0.0)
67
68
  method_source
68
69
  rake (>= 0.8.7)
69
- thor (>= 0.19.0, < 2.0)
70
+ thor (>= 0.20.3, < 2.0)
70
71
  rainbow (3.0.0)
71
72
  rake (12.3.3)
72
73
  rspec (3.8.0)
@@ -102,6 +103,7 @@ GEM
102
103
  tzinfo (1.2.5)
103
104
  thread_safe (~> 0.1)
104
105
  unicode-display_width (1.6.0)
106
+ zeitwerk (2.1.9)
105
107
 
106
108
  PLATFORMS
107
109
  ruby
@@ -2,10 +2,8 @@
2
2
 
3
3
  require 'lite/memoize'
4
4
 
5
- %w[version configuration descriptive].each do |filename|
5
+ %w[version configuration descriptive enumerable].each do |filename|
6
6
  require "lite/statistics/#{filename}"
7
7
  end
8
8
 
9
- require 'lite/statistics/enumerable' if Lite::Statistics.configuration.monkey_patches
10
-
11
9
  require 'generators/lite/statistics/install_generator'
@@ -13,16 +13,22 @@ module Lite
13
13
 
14
14
  end
15
15
 
16
- def self.configuration
17
- @configuration ||= Configuration.new
18
- end
16
+ class << self
19
17
 
20
- def self.configuration=(config)
21
- @configuration = config
22
- end
18
+ attr_writer :configuration
19
+
20
+ def configuration
21
+ @configuration ||= Configuration.new
22
+ end
23
+
24
+ def configure
25
+ yield(configuration)
26
+ end
27
+
28
+ def reset_configuration!
29
+ @configuration = Configuration.new
30
+ end
23
31
 
24
- def self.configure
25
- yield(configuration)
26
32
  end
27
33
 
28
34
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Statistics
5
5
 
6
- VERSION ||= '1.0.4'
6
+ VERSION ||= '1.0.5'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-statistics
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
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-17 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: lite-memoize