reportinator 0.1.0 → 0.1.1

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: bb46422febcfaac711a20fbb21418ed224bc22e59468e9295dfccdd0c7ca309e
4
- data.tar.gz: afba11ce1ecc80668797392b5c24eeffc715d349b78f93fa7d6e7ea8dfdc096a
3
+ metadata.gz: 4147d8726c5389c8cfba111719f6c7fa8d4afabe362cc037bd39f0b891183e69
4
+ data.tar.gz: 15ffa046aeff1ce83d78520373dcb6140926dec3401dc0aa3087d017c14d819e
5
5
  SHA512:
6
- metadata.gz: 8c604e8d6b30dff8df130dd6af08fcbc7a6ee0a4bb4a9e3c39478e97f2d3a2bb073c4543dcd2f366c4a39b5b15c97925d64bcba4060ed344c4c95de616507d91
7
- data.tar.gz: 678d1ed69042d72e8f0c146abcc0a55becb31a7961f034bb58d63a1f2999100443f13e91fd71129bcaab33616a1bc0361bbac7dd62ae5003c21159574c2c4ef0
6
+ metadata.gz: cdc4d31939aa50cb613ded2e736184dc008f2b4912304be418a933d34df6c0d5b5b59224943a9b1381fdf804dd52e5fc293d838c4cf251e3bdbc4edc997b7a09
7
+ data.tar.gz: d9c6fa2118dba650d81ca9572a340bd914b2557104868dea322cd852c1479000b0566b07648d7199b9ceb9381d1b35cb750592f4d697625a8f56a27a90a19b8b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2022-10-04
3
+ ## [0.1.0] - 2022-10-06
4
4
  - Initial release
5
5
 
6
6
  ### Added
@@ -8,4 +8,9 @@
8
8
  - Method parser
9
9
  - Preset report type
10
10
  - Model report type
11
- - Readme with report tutorial
11
+ - Readme with report tutorial
12
+
13
+ ## [0.1.1] - 2022-10-06
14
+ ### Fixed
15
+ - Move Base class to it's own file
16
+ - Now uses require_rel rather than require_all
data/README.md CHANGED
@@ -70,7 +70,7 @@ Let's now add some data to this bad boy.
70
70
  {
71
71
  "type": ":preset",
72
72
  "params": {
73
- "data": ["nx1","nx2","nx3","nx4","nx5"]
73
+ "data": ["nx1","nx2","nx3","nx4","nx5"]
74
74
  }
75
75
  }
76
76
  ```
@@ -262,7 +262,7 @@ Let's add this now as the target of our report:
262
262
  {
263
263
  "type": ":preset",
264
264
  "params": {
265
- "data": ["nx1","nx2","nx3","nx4","nx5"]
265
+ "data": ["nx1","nx2","nx3","nx4","nx5"]
266
266
  }
267
267
  },
268
268
  {
@@ -0,0 +1,24 @@
1
+ module Reportinator
2
+ class Base
3
+ include ActiveModel::API
4
+ include ActiveModel::Attributes
5
+
6
+ require_rel "."
7
+
8
+ def self.config
9
+ Reportinator.config
10
+ end
11
+
12
+ def config
13
+ self.class.config
14
+ end
15
+
16
+ def self.logger
17
+ Reportinator.logger
18
+ end
19
+
20
+ def logger
21
+ self.class.logger
22
+ end
23
+ end
24
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reportinator
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/reportinator.rb CHANGED
@@ -1,12 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "reportinator/version"
4
3
  require "csv"
5
4
  require "json"
6
5
  require "fileutils"
7
6
  require "active_support"
8
7
  require "active_model"
9
8
  require "require_all"
9
+ require_relative "reportinator/version"
10
+ require_relative "reportinator/base"
10
11
 
11
12
  module Reportinator
12
13
  class Error < StandardError; end
@@ -43,27 +44,4 @@ module Reportinator
43
44
  end
44
45
  path
45
46
  end
46
-
47
- class Base
48
- include ActiveModel::API
49
- include ActiveModel::Attributes
50
-
51
- require_all "lib/reportinator"
52
-
53
- def self.config
54
- Reportinator.config
55
- end
56
-
57
- def config
58
- self.class.config
59
- end
60
-
61
- def self.logger
62
- Reportinator.logger
63
- end
64
-
65
- def logger
66
- self.class.logger
67
- end
68
- end
69
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reportinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moxvallix
@@ -57,6 +57,7 @@ files:
57
57
  - app/reports/example.report.json
58
58
  - app/reports/multiplication.report.json
59
59
  - lib/reportinator.rb
60
+ - lib/reportinator/base.rb
60
61
  - lib/reportinator/config.rb
61
62
  - lib/reportinator/loader.rb
62
63
  - lib/reportinator/parsers/method.rb