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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec1ca9a25621cae05c4f5933c6a89f7bdf13dff54707fcc4c9c56042adfafa20
4
- data.tar.gz: 447d3529dcc71e8b76864fe63dca034852d24d6464ba55709bdcd721d5360b9d
3
+ metadata.gz: ca00a89102c8683e9d93b0b9589cdbe9b4ad7d86105de73d22f3de41997d0fa6
4
+ data.tar.gz: da3ee5c69c8b74612e18fa22d90e9ae7217111b5847f65f6e89f1f3683cef5f2
5
5
  SHA512:
6
- metadata.gz: f6e53ec1903941f693501393e5ebc07221d9d6a50c287aee7e4219b2ff224747b021c7be671d6b39a758b0add7f9060c67b37f8fa08d4e95c0f9cb1aaa3e8774
7
- data.tar.gz: 7a32cf28566ae5bdb4766f9c944c4efb2cbfdcc6eb0319f719815cc33a8c1950a43307e131d6e032dfd09cf2340669c9054d39ed632ef46290c4f385df59999b
6
+ metadata.gz: df0b7b69c44692865e67a2c0a59d4c4620aa88b560ad8d9bd0d6a7005af1d881b49118d76fb63e2e7e51844a882b005c6a53fe9676fe7f5e7a3bb5b2d3b948e6
7
+ data.tar.gz: 596814b3d23e600193748ff728ff24e065696661ae3b1104b924516fd1bfa1fb28a79b5d0a341605c3dda0c132d46c2b62770ef3a249312204b90a542a326358
@@ -1,6 +1,9 @@
1
1
  name: Test
2
2
 
3
- on: [push, pull_request]
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
@@ -9,7 +9,6 @@ gem 'rake'
9
9
  gem 'minitest'
10
10
  gem 'mocha'
11
11
  gem 'pdf-inspector'
12
- gem 'matrix'
13
12
  gem 'pdf_matcher-testing'
14
13
 
15
14
  # suppress warning: assigned but unused variable - y1
data/README.md CHANGED
@@ -9,7 +9,7 @@ A Ruby library for [Thinreports](https://github.com/thinreports/thinreports).
9
9
 
10
10
  ### Supported Versions
11
11
 
12
- - Ruby 2.7, 3.0, 3.1, 3.2
12
+ - Ruby 3.0, 3.1, 3.2
13
13
  - Prawn 2.4+
14
14
 
15
15
  ## Installation
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Thinreports
4
- VERSION = '0.13.0'
4
+ VERSION = '0.14.0'
5
5
  end
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 = '>= 2.7.0'
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.13.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-09-06 00:00:00.000000000 Z
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: 2.7.0
197
+ version: 3.0.0
184
198
  required_rubygems_version: !ruby/object:Gem::Requirement
185
199
  requirements:
186
200
  - - ">="