thinreports 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +4 -5
- data/CHANGELOG.md +11 -0
- data/Gemfile +0 -1
- data/README.md +1 -1
- data/lib/thinreports/basic_report/report/base.rb +3 -2
- data/lib/thinreports/version.rb +1 -1
- data/thinreports.gemspec +2 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca00a89102c8683e9d93b0b9589cdbe9b4ad7d86105de73d22f3de41997d0fa6
|
4
|
+
data.tar.gz: da3ee5c69c8b74612e18fa22d90e9ae7217111b5847f65f6e89f1f3683cef5f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df0b7b69c44692865e67a2c0a59d4c4620aa88b560ad8d9bd0d6a7005af1d881b49118d76fb63e2e7e51844a882b005c6a53fe9676fe7f5e7a3bb5b2d3b948e6
|
7
|
+
data.tar.gz: 596814b3d23e600193748ff728ff24e065696661ae3b1104b924516fd1bfa1fb28a79b5d0a341605c3dda0c132d46c2b62770ef3a249312204b90a542a326358
|
data/.github/workflows/test.yml
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
name: Test
|
2
2
|
|
3
|
-
on:
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main, dev ]
|
6
|
+
pull_request:
|
4
7
|
|
5
8
|
jobs:
|
6
9
|
setup:
|
@@ -8,13 +11,9 @@ jobs:
|
|
8
11
|
|
9
12
|
runs-on: ubuntu-latest
|
10
13
|
|
11
|
-
# Run this build only on either pull request or push.
|
12
|
-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
13
|
-
|
14
14
|
strategy:
|
15
15
|
matrix:
|
16
16
|
ruby:
|
17
|
-
- "2.7"
|
18
17
|
- "3.0"
|
19
18
|
- "3.1"
|
20
19
|
- "3.2"
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
## main (Unreleased)
|
2
2
|
|
3
|
+
## 0.14.0
|
4
|
+
|
5
|
+
* Drop Ruby 2.7 support
|
6
|
+
* Fix LoadError: cannot load such file -- matrix #131
|
7
|
+
|
8
|
+
## 0.13.1
|
9
|
+
|
10
|
+
Bug fixes:
|
11
|
+
|
12
|
+
* allow title argument to be specified in Report.generate method #127
|
13
|
+
|
3
14
|
## 0.13.0
|
4
15
|
|
5
16
|
Breaking Changes:
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -26,12 +26,13 @@ module Thinreports
|
|
26
26
|
# @param layout (see #initialize)
|
27
27
|
# @param filename (see #generate)
|
28
28
|
# @param security (see #generate)
|
29
|
+
# @param title (see #generate)
|
29
30
|
# @param [Hash] report ({}) DEPRECATED. Options for Report.
|
30
31
|
# @param [Hash] generator ({}) DEPRECATED. Options for Generator.
|
31
32
|
# @yield (see .create)
|
32
33
|
# @yieldparam (see .create)
|
33
34
|
# @return [String]
|
34
|
-
def generate(layout: nil, filename: nil, security: nil, report: {}, generator: {}, &block)
|
35
|
+
def generate(layout: nil, filename: nil, security: nil, title: nil, report: {}, generator: {}, &block)
|
35
36
|
raise ArgumentError, '#generate requires a block' unless block_given?
|
36
37
|
|
37
38
|
if report.any? || generator.any?
|
@@ -44,7 +45,7 @@ module Thinreports
|
|
44
45
|
security ||= generator[:security]
|
45
46
|
|
46
47
|
report = create(layout: layout, &block)
|
47
|
-
report.generate(filename: filename, security: security)
|
48
|
+
report.generate(filename: filename, security: security, title: title)
|
48
49
|
end
|
49
50
|
end
|
50
51
|
|
data/lib/thinreports/version.rb
CHANGED
data/thinreports.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.license = 'MIT'
|
16
16
|
s.metadata = { 'rubygems_mfa_required' => 'true' }
|
17
17
|
|
18
|
-
s.required_ruby_version = '>=
|
18
|
+
s.required_ruby_version = Gem::Requirement.new('>= 3.0.0')
|
19
19
|
|
20
20
|
s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
21
21
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
|
@@ -23,5 +23,6 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.require_paths = ['lib']
|
24
24
|
|
25
25
|
s.add_dependency 'prawn', '>= 2.4.0'
|
26
|
+
s.add_dependency 'matrix', '~> 0.4'
|
26
27
|
s.add_dependency 'rexml'
|
27
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thinreports
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matsukei Co.,Ltd.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prawn
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.4.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: matrix
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.4'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.4'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rexml
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
194
|
requirements:
|
181
195
|
- - ">="
|
182
196
|
- !ruby/object:Gem::Version
|
183
|
-
version:
|
197
|
+
version: 3.0.0
|
184
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
199
|
requirements:
|
186
200
|
- - ">="
|