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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +15 -13
- data/lib/lite/statistics.rb +1 -3
- data/lib/lite/statistics/configuration.rb +14 -8
- data/lib/lite/statistics/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 46df01b2764042cd9ae65a3343230f5b87ed99a9ab64da7e7c84fe4704e8706d
|
|
4
|
+
data.tar.gz: 9f660c1fab791cd49ce372cb65ae87783928a8b58f3eb11a6c00fbdeeceac79c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7cc8421fc4e7ab1a8bd37db4b4aa9a76897ba31fd4fd303dca3487bd865fc80110da8fb2af116ed0a1db5ede2a4cabc1ca21a453776bdf2b79d4da1bdb2f6b5b
|
|
7
|
+
data.tar.gz: 0a949e21bab5c755f215554fb590d01a010b97eb39a4736b4521f4f0228eb24c3c3b6cf775883d329f164622c3202f3bceb353cc2e550ee73d4fc9c0d3d51143
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
lite-statistics (1.0.
|
|
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 (
|
|
11
|
-
actionview (=
|
|
12
|
-
activesupport (=
|
|
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
|
|
17
|
-
actionview (
|
|
18
|
-
activesupport (=
|
|
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.
|
|
23
|
-
activesupport (
|
|
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 (
|
|
65
|
-
actionpack (=
|
|
66
|
-
activesupport (=
|
|
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.
|
|
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
|
data/lib/lite/statistics.rb
CHANGED
|
@@ -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
|
-
|
|
17
|
-
@configuration ||= Configuration.new
|
|
18
|
-
end
|
|
16
|
+
class << self
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
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
|
+
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-
|
|
11
|
+
date: 2019-08-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lite-memoize
|