lite-report 1.0.1 → 1.0.2

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: '0858c189821239b020f4c42e74d223a3b49fc96fcc568b6680f0debe9820061a'
4
- data.tar.gz: 38afa48cdbde551d0ae0bfaafe637908d09cf946a9044847174b848244484f96
3
+ metadata.gz: fec247c1ce8a3f5a03f01b9d389c50be4400c02ec1e4cc8fc2de8092b0d67747
4
+ data.tar.gz: 78f4d4b3d9f1557f2c26447ac6223affc786f8938e5d0b442d8c233530051ffb
5
5
  SHA512:
6
- metadata.gz: 492a6ef48c686c1fabde0bc2d75299b2b6a3b279e015f2e6cb11442734d36f06325a22fab35f270c170b65c514e60ea917a7afacbb66d61ba472d23a87403284
7
- data.tar.gz: cf3a6808e9af66e35bd2ae3c5a7b351610fa7e889a07916ee080ceadc87e370fd430eea88bb576746a5ea0b37a4abd62fac5ce378bc657683037fbced2e62269
6
+ metadata.gz: b016454a0f0f3e9eada7b1db8bb0c177b23e85cae65c01f23c024c6ece93b3e741f1a358ab5e0fff845db8c016904dda1c8da2ee5b13756374ca43173915a2e7
7
+ data.tar.gz: acb39fcfdd3c6e61482b3ccb789e706c8160e3beadacba090e289a3e7d1225231c490de249ddba1910e83c10bf9463c1adb1e754de6f06636290150acf7f87f0
data/CHANGELOG.md CHANGED
@@ -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.2] - 2019-08-24
10
+ ### Changed
11
+ - Imporved how configuration works
12
+
9
13
  ## [1.0.1] - 2019-08-15
10
14
  ### Changed
11
15
  - Underscore initializer file name
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-report (1.0.1)
4
+ lite-report (1.0.2)
5
5
  activerecord
6
6
  activerecord-import
7
7
  deep_pluck
@@ -9,33 +9,32 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (5.2.3)
13
- actionview (= 5.2.3)
14
- activesupport (= 5.2.3)
12
+ actionpack (6.0.0)
13
+ actionview (= 6.0.0)
14
+ activesupport (= 6.0.0)
15
15
  rack (~> 2.0)
16
16
  rack-test (>= 0.6.3)
17
17
  rails-dom-testing (~> 2.0)
18
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
19
- actionview (5.2.3)
20
- activesupport (= 5.2.3)
18
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
+ actionview (6.0.0)
20
+ activesupport (= 6.0.0)
21
21
  builder (~> 3.1)
22
22
  erubi (~> 1.4)
23
23
  rails-dom-testing (~> 2.0)
24
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
25
- activemodel (5.2.3)
26
- activesupport (= 5.2.3)
27
- activerecord (5.2.3)
28
- activemodel (= 5.2.3)
29
- activesupport (= 5.2.3)
30
- arel (>= 9.0)
24
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
+ activemodel (6.0.0)
26
+ activesupport (= 6.0.0)
27
+ activerecord (6.0.0)
28
+ activemodel (= 6.0.0)
29
+ activesupport (= 6.0.0)
31
30
  activerecord-import (1.0.2)
32
31
  activerecord (>= 3.2)
33
- activesupport (5.2.3)
32
+ activesupport (6.0.0)
34
33
  concurrent-ruby (~> 1.0, >= 1.0.2)
35
34
  i18n (>= 0.7, < 2)
36
35
  minitest (~> 5.1)
37
36
  tzinfo (~> 1.1)
38
- arel (9.0.0)
37
+ zeitwerk (~> 2.1, >= 2.1.8)
39
38
  ast (2.4.0)
40
39
  builder (3.2.3)
41
40
  colorize (0.8.1)
@@ -69,6 +68,8 @@ GEM
69
68
  ast (~> 2.4.0)
70
69
  pluck_all (2.0.4)
71
70
  activesupport (>= 3.0.0)
71
+ polyamorous (2.3.0)
72
+ activerecord (>= 5.0)
72
73
  rack (2.0.7)
73
74
  rack-test (1.1.0)
74
75
  rack (>= 1.0, < 3)
@@ -77,19 +78,20 @@ GEM
77
78
  nokogiri (>= 1.6)
78
79
  rails-html-sanitizer (1.2.0)
79
80
  loofah (~> 2.2, >= 2.2.2)
80
- railties (5.2.3)
81
- actionpack (= 5.2.3)
82
- activesupport (= 5.2.3)
81
+ railties (6.0.0)
82
+ actionpack (= 6.0.0)
83
+ activesupport (= 6.0.0)
83
84
  method_source
84
85
  rake (>= 0.8.7)
85
- thor (>= 0.19.0, < 2.0)
86
+ thor (>= 0.20.3, < 2.0)
86
87
  rainbow (3.0.0)
87
88
  rake (12.3.3)
88
- ransack (2.1.1)
89
+ ransack (2.3.0)
89
90
  actionpack (>= 5.0)
90
91
  activerecord (>= 5.0)
91
92
  activesupport (>= 5.0)
92
93
  i18n
94
+ polyamorous (= 2.3.0)
93
95
  rspec (3.8.0)
94
96
  rspec-core (~> 3.8.0)
95
97
  rspec-expectations (~> 3.8.0)
@@ -132,6 +134,7 @@ GEM
132
134
  tzinfo (1.2.5)
133
135
  thread_safe (~> 0.1)
134
136
  unicode-display_width (1.6.0)
137
+ zeitwerk (2.1.9)
135
138
 
136
139
  PLATFORMS
137
140
  ruby
@@ -15,16 +15,22 @@ module Lite
15
15
 
16
16
  end
17
17
 
18
- def self.configuration
19
- @configuration ||= Configuration.new
20
- end
18
+ class << self
21
19
 
22
- def self.configuration=(config)
23
- @configuration = config
24
- end
20
+ attr_writer :configuration
21
+
22
+ def configuration
23
+ @configuration ||= Configuration.new
24
+ end
25
+
26
+ def configure
27
+ yield(configuration)
28
+ end
29
+
30
+ def reset_configuration!
31
+ @configuration = Configuration.new
32
+ end
25
33
 
26
- def self.configure
27
- yield(configuration)
28
34
  end
29
35
 
30
36
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Report
5
5
 
6
- VERSION ||= '1.0.1'
6
+ VERSION ||= '1.0.2'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-report
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
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-15 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: activerecord