webtranslateit-payday 1.2.8 → 1.5.0.pre.1

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: 48219daa28bf526859301ccbf350ef69adbccd37a40ef09dc8d2a4ae12e3c1b5
4
- data.tar.gz: 7073dc6c8a5eda28373d62130df1b82f86bde07b071d48f12c2234dc3d9d0f52
3
+ metadata.gz: 68cf3d59e575ecea2fe472b0efa5801b5ed326d90868802ca9c9c5d65b704201
4
+ data.tar.gz: 75f2c4ef9903cf9c0c2b6800e0f300f012a56da7103fb4f2dbe00586b11acff4
5
5
  SHA512:
6
- metadata.gz: 368bb0df2e6c4a15b3e1c96d14f76ee30dd5d837a9aad8c25be444a2c90c9eea5fa7a9dc680037b4669329d1cf844eb9cb083155f7705b529f47c45d788ff4e1
7
- data.tar.gz: 16633a6e818cc4a08750996259a42d442a8b7dbd87aa0c2763b6a2f9582adb02e56f8cc503425cc812f7f8855017c7b25fe9338368e8fc9257736045f99fad1e
6
+ metadata.gz: a901971e1943e6e7532431ee009da1b27df8667524f549569cb8757956d50a8c0c71229b36a1fc83964c7850e9c4a21d475f867bf14f0c3bebdae869491b2285
7
+ data.tar.gz: 3747e6ff8f5f78e01594094c8614e82d83f50480b41049d265ee697bf246dae6d437a52a4f229876be0a43bb5de74d5cf91233bc417dd6deb32308a6961fb839
@@ -9,25 +9,23 @@ name: Ruby
9
9
 
10
10
  on:
11
11
  push:
12
- branches: [ main ]
12
+ branches:
13
13
  pull_request:
14
- branches: [ main ]
14
+ branches:
15
15
 
16
16
  jobs:
17
17
  test:
18
-
19
18
  runs-on: ubuntu-latest
20
19
  strategy:
21
20
  matrix:
22
- ruby-version: ['2.6', '2.7', '3.0']
21
+ ruby-version: ['3.1']
23
22
 
24
23
  steps:
25
24
  - uses: actions/checkout@v2
26
25
  - name: Set up Ruby
27
26
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
28
27
  # change this to (see https://github.com/ruby/setup-ruby#versioning):
29
- # uses: ruby/setup-ruby@v1
30
- uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
28
+ uses: ruby/setup-ruby@v1
31
29
  with:
32
30
  ruby-version: ${{ matrix.ruby-version }}
33
31
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
@@ -46,7 +44,7 @@ jobs:
46
44
  - name: Install ruby and gems
47
45
  uses: ruby/setup-ruby@v1
48
46
  with:
49
- ruby-version: 2.6.9 # Use .ruby-version file instead of duplicating here and in Gemfile?
47
+ ruby-version: 3.1.2 # Use .ruby-version file instead of duplicating here and in Gemfile?
50
48
  bundler-cache: true
51
49
 
52
50
  - name: Run ruby linter
data/.rubocop.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
3
  AllCops:
4
+ TargetRubyVersion: 3.1
4
5
  Exclude:
5
6
  - lib/generators/**/*
6
7
 
@@ -9,3 +10,156 @@ inherit_mode:
9
10
  - Exclude
10
11
 
11
12
  require: rubocop-rspec
13
+
14
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
15
+ Enabled: true
16
+ Gemspec/RequireMFA: # new in 1.23
17
+ Enabled: true
18
+ Layout/LineEndStringConcatenationIndentation: # new in 1.18
19
+ Enabled: true
20
+ Layout/SpaceBeforeBrackets: # new in 1.7
21
+ Enabled: true
22
+ Lint/AmbiguousAssignment: # new in 1.7
23
+ Enabled: true
24
+ Lint/AmbiguousOperatorPrecedence: # new in 1.21
25
+ Enabled: true
26
+ Lint/AmbiguousRange: # new in 1.19
27
+ Enabled: true
28
+ Lint/DeprecatedConstants: # new in 1.8
29
+ Enabled: true
30
+ Lint/DuplicateBranch: # new in 1.3
31
+ Enabled: true
32
+ Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
33
+ Enabled: true
34
+ Lint/EmptyBlock: # new in 1.1
35
+ Enabled: true
36
+ Lint/EmptyClass: # new in 1.3
37
+ Enabled: true
38
+ Lint/EmptyInPattern: # new in 1.16
39
+ Enabled: true
40
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
41
+ Enabled: true
42
+ Lint/LambdaWithoutLiteralBlock: # new in 1.8
43
+ Enabled: true
44
+ Lint/NoReturnInBeginEndBlocks: # new in 1.2
45
+ Enabled: true
46
+ Lint/NumberedParameterAssignment: # new in 1.9
47
+ Enabled: true
48
+ Lint/OrAssignmentToConstant: # new in 1.9
49
+ Enabled: true
50
+ Lint/RedundantDirGlobSort: # new in 1.8
51
+ Enabled: true
52
+ Lint/RefinementImportMethods: # new in 1.27
53
+ Enabled: true
54
+ Lint/RequireRelativeSelfPath: # new in 1.22
55
+ Enabled: true
56
+ Lint/SymbolConversion: # new in 1.9
57
+ Enabled: true
58
+ Lint/ToEnumArguments: # new in 1.1
59
+ Enabled: true
60
+ Lint/TripleQuotes: # new in 1.9
61
+ Enabled: true
62
+ Lint/UnexpectedBlockArity: # new in 1.5
63
+ Enabled: true
64
+ Lint/UnmodifiedReduceAccumulator: # new in 1.1
65
+ Enabled: true
66
+ Lint/UselessRuby2Keywords: # new in 1.23
67
+ Enabled: true
68
+ Naming/BlockForwarding: # new in 1.24
69
+ Enabled: true
70
+ Security/CompoundHash: # new in 1.28
71
+ Enabled: true
72
+ Security/IoMethods: # new in 1.22
73
+ Enabled: true
74
+ Style/ArgumentsForwarding: # new in 1.1
75
+ Enabled: true
76
+ Style/CollectionCompact: # new in 1.2
77
+ Enabled: true
78
+ Style/DocumentDynamicEvalDefinition: # new in 1.1
79
+ Enabled: true
80
+ Style/EndlessMethod: # new in 1.8
81
+ Enabled: true
82
+ Style/EnvHome: # new in 1.29
83
+ Enabled: true
84
+ Style/FetchEnvVar: # new in 1.28
85
+ Enabled: true
86
+ Style/FileRead: # new in 1.24
87
+ Enabled: true
88
+ Style/FileWrite: # new in 1.24
89
+ Enabled: true
90
+ Style/HashConversion: # new in 1.10
91
+ Enabled: true
92
+ Style/HashExcept: # new in 1.7
93
+ Enabled: true
94
+ Style/IfWithBooleanLiteralBranches: # new in 1.9
95
+ Enabled: true
96
+ Style/InPatternThen: # new in 1.16
97
+ Enabled: true
98
+ Style/MapCompactWithConditionalBlock: # new in 1.30
99
+ Enabled: true
100
+ Style/MapToHash: # new in 1.24
101
+ Enabled: true
102
+ Style/MultilineInPatternThen: # new in 1.16
103
+ Enabled: true
104
+ Style/NegatedIfElseCondition: # new in 1.2
105
+ Enabled: true
106
+ Style/NestedFileDirname: # new in 1.26
107
+ Enabled: true
108
+ Style/NilLambda: # new in 1.3
109
+ Enabled: true
110
+ Style/NumberedParameters: # new in 1.22
111
+ Enabled: true
112
+ Style/NumberedParametersLimit: # new in 1.22
113
+ Enabled: true
114
+ Style/ObjectThen: # new in 1.28
115
+ Enabled: true
116
+ Style/OpenStructUse: # new in 1.23
117
+ Enabled: true
118
+ Style/QuotedSymbols: # new in 1.16
119
+ Enabled: true
120
+ Style/RedundantArgument: # new in 1.4
121
+ Enabled: true
122
+ Style/RedundantInitialize: # new in 1.27
123
+ Enabled: true
124
+ Style/RedundantSelfAssignmentBranch: # new in 1.19
125
+ Enabled: true
126
+ Style/SelectByRegexp: # new in 1.22
127
+ Enabled: true
128
+ Style/StringChars: # new in 1.12
129
+ Enabled: true
130
+ Style/SwapValues: # new in 1.1
131
+ Enabled: true
132
+ RSpec/BeEq: # new in 2.9.0
133
+ Enabled: true
134
+ RSpec/BeNil: # new in 2.9.0
135
+ Enabled: true
136
+ RSpec/ChangeByZero: # new in 2.11.0
137
+ Enabled: true
138
+ RSpec/ExcessiveDocstringSpacing: # new in 2.5
139
+ Enabled: true
140
+ RSpec/IdenticalEqualityAssertion: # new in 2.4
141
+ Enabled: true
142
+ RSpec/SubjectDeclaration: # new in 2.5
143
+ Enabled: true
144
+ RSpec/VerifiedDoubleReference: # new in 2.10.0
145
+ Enabled: true
146
+ RSpec/FactoryBot/SyntaxMethods: # new in 2.7
147
+ Enabled: true
148
+ RSpec/Rails/AvoidSetupHook: # new in 2.4
149
+ Enabled: true
150
+ Layout/LineContinuationLeadingSpace: # new in 1.31
151
+ Enabled: true
152
+ Layout/LineContinuationSpacing: # new in 1.31
153
+ Enabled: true
154
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
155
+ Enabled: true
156
+ Lint/NonAtomicFileOperation: # new in 1.31
157
+ Enabled: true
158
+ Lint/RequireRangeParentheses: # new in 1.32
159
+ Enabled: true
160
+ Style/EmptyHeredoc: # new in 1.32
161
+ Enabled: true
162
+ RSpec/Capybara/SpecificMatcher: # new in 2.12
163
+ Enabled: true
164
+ RSpec/Rails/HaveHttpStatus: # new in 2.12
165
+ Enabled: true
data/.rubocop_todo.yml CHANGED
@@ -13,10 +13,3 @@ Style/Documentation:
13
13
  - 'spec/**/*'
14
14
  - 'test/**/*'
15
15
  - 'lib/generators/payday/setup/setup_generator.rb'
16
-
17
- # Offense count: 19
18
- # Cop supports --auto-correct.
19
- # Configuration parameters: EnforcedStyle.
20
- # SupportedStyles: always, always_true, never
21
- Style/FrozenStringLiteralComment:
22
- Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,8 +1,18 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.4.0 (2022-06-29)
4
+
5
+ * Target ruby 3.1.
6
+
7
+ ## 1.3.0 (2022-06-14)
8
+
9
+ * Target ruby 3.0.
10
+ * Verified compatibility with ruby 3.1.
11
+ * Update dependencies.
12
+
3
13
  ## 1.2.8 (2022-04-01)
4
14
 
5
- * Releax dependency to ruby 2.2.
15
+ * Relax dependency to ruby 2.2.
6
16
 
7
17
  ## 1.2.7 (2022-02-04)
8
18
 
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'http://rubygems.org'
2
4
 
3
5
  gemspec
data/Guardfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  guard :rspec, cmd: 'bundle exec rspec --color --format progress' do
2
4
  watch(%r{^spec/.+_spec\.rb$})
3
5
  watch('spec/spec_helper.rb') { 'spec' }
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler'
2
4
 
3
5
  require 'rake'
data/lib/payday/config.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Payday
2
4
  # Configuration for Payday. This is a singleton, so to set the company_name you would call
3
5
  # Payday::Config.default.company_name = "Awesome Corp".
data/lib/payday/i18n.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Load everything in the local folder
2
4
  I18n.enforce_available_locales = false
3
5
  I18n.load_path.concat(Dir[File.join(File.dirname(__FILE__), 'locale', '*.yml')])
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Payday
2
4
  # Basically just an invoice. Stick a ton of line items in it, add some details, and then render it out!
3
5
  class Invoice
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Include {Payday::Invoiceable} in your Invoice class to make it Payday compatible. Payday
2
4
  # expects that a +line_items+ method containing an Enumerable of {Payday::LineItem} compatible
3
5
  # elements exists. Those LineItem objects primarily need to include quantity, price, and description methods.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Payday
2
4
  # Represents a line item in an invoice.
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Include this module into your line item implementation to make sure that Payday stays happy
2
4
  # with it, or just make sure that your line item implements the amount method.
3
5
  module Payday
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Payday
2
4
  # The PDF renderer. We use this internally in Payday to render pdfs, but really you should just need to call
3
5
  # {{Payday::Invoiceable#render_pdf}} to render pdfs yourself.
@@ -75,10 +77,10 @@ module Payday
75
77
  end
76
78
 
77
79
  if File.extname(image) == '.svg'
78
- logo_info = pdf.svg(File.read(image), at: pdf.bounds.top_left, width: width, height: height)
80
+ logo_info = pdf.svg(File.read(image), at: pdf.bounds.top_left, width:, height:)
79
81
  logo_height = logo_info[:height]
80
82
  else
81
- logo_info = pdf.image(image, at: pdf.bounds.top_left, width: width, height: height)
83
+ logo_info = pdf.image(image, at: pdf.bounds.top_left, width:, height:)
82
84
  logo_height = logo_info.scaled_height
83
85
  end
84
86
 
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # This is Payday!
2
4
  module Payday
3
5
  # Current Version
4
- VERSION = '1.2.8'.freeze
6
+ VERSION = '1.5.0.pre.1'
5
7
  end
data/lib/payday.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Not much to see here
2
4
  require 'date'
3
5
  require 'time'
data/payday.gemspec CHANGED
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  $LOAD_PATH.push File.expand_path('lib', __dir__)
2
4
  require 'payday/version'
3
5
 
4
6
  Gem::Specification.new do |s|
5
7
  s.name = 'webtranslateit-payday'
6
8
  s.version = Payday::VERSION
7
- s.required_ruby_version = '>= 2.2'
9
+ s.required_ruby_version = '>= 3.1'
8
10
  s.platform = Gem::Platform::RUBY
9
11
  s.authors = ['Alan Johnson', 'Edouard Briere']
10
12
  s.email = ['edouard@webtranslateit.com']
@@ -13,23 +15,24 @@ Gem::Specification.new do |s|
13
15
  s.description = 'Payday is a library for rendering invoices to pdf.'
14
16
 
15
17
  s.add_dependency 'activesupport'
16
- s.add_dependency('i18n', '>= 0.7', '< 2.0')
17
- s.add_dependency('money', '~> 6.5')
18
- s.add_dependency('prawn', '>= 1.0', '< 2.5')
19
- s.add_dependency('prawn-svg', '>= 0.15.0', '< 0.32.1')
20
- s.add_dependency('prawn-table', '>= 0.2.2')
18
+ s.add_dependency 'i18n', '>= 0.7'
19
+ s.add_dependency 'money', '~> 6.16'
20
+ s.add_dependency 'prawn', '>= 2.0'
21
+ s.add_dependency 'prawn-svg', '>= 0.32.0'
22
+ s.add_dependency 'prawn-table', '>= 0.2.2'
21
23
  s.add_dependency 'rexml'
22
24
 
23
- s.add_development_dependency('guard')
24
- s.add_development_dependency('guard-rspec')
25
+ s.add_development_dependency 'guard'
26
+ s.add_development_dependency 'guard-rspec'
25
27
  s.add_development_dependency 'guard-rubocop'
26
- s.add_development_dependency('rspec', '~> 3.10.0')
27
- s.add_development_dependency('rubocop')
28
- s.add_development_dependency('rubocop-rspec')
28
+ s.add_development_dependency 'matrix' # for compat reasons, required in builds
29
+ s.add_development_dependency 'rspec', '~> 3.11.0'
30
+ s.add_development_dependency 'rubocop'
31
+ s.add_development_dependency 'rubocop-rspec'
29
32
 
30
33
  s.files = `git ls-files`.split("\n")
31
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
32
34
  s.executables =
33
35
  `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
34
36
  s.require_paths = ['lib']
37
+ s.metadata['rubygems_mfa_required'] = 'true'
35
38
  end
data/spec/invoice_spec.rb CHANGED
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  module Payday # rubocop:todo Metrics/ModuleLength
4
- describe Invoice do # rubocop:todo Metrics/BlockLength
6
+ describe Invoice do
5
7
  # rubocop:todo RSpec/MultipleExpectations
6
8
  it 'is able to be initialized with a hash of options' do # rubocop:todo RSpec/ExampleLength, RSpec/MultipleExpectations
7
9
  # rubocop:enable RSpec/MultipleExpectations
@@ -74,37 +76,37 @@ module Payday # rubocop:todo Metrics/ModuleLength
74
76
 
75
77
  it "is overdue when it's past date and unpaid" do
76
78
  i = described_class.new(due_at: Date.today - 1)
77
- expect(i.overdue?).to eq(true)
79
+ expect(i.overdue?).to be(true)
78
80
  end
79
81
 
80
82
  it "isn't overdue when past due date and paid" do
81
83
  i = described_class.new(due_at: Date.today - 1, paid_at: Date.today)
82
- expect(i.overdue?).not_to eq(true)
84
+ expect(i.overdue?).not_to be(true)
83
85
  end
84
86
 
85
87
  it 'is overdue when due date is a time before the current date' do
86
88
  i = described_class.new(due_at: Time.parse('Jan 1 14:33:20 GMT 2011'))
87
- expect(i.overdue?).to eq(true)
89
+ expect(i.overdue?).to be(true)
88
90
  end
89
91
 
90
92
  it 'is not refunded when not marked refunded' do
91
93
  i = described_class.new
92
- expect(i.refunded?).not_to eq(true)
94
+ expect(i.refunded?).not_to be(true)
93
95
  end
94
96
 
95
97
  it 'is refunded when marked as refunded' do
96
98
  i = described_class.new(refunded_at: Date.today)
97
- expect(i.refunded?).to eq(true)
99
+ expect(i.refunded?).to be(true)
98
100
  end
99
101
 
100
102
  it 'is not paid when not marked paid' do
101
103
  i = described_class.new
102
- expect(i.paid?).not_to eq(true)
104
+ expect(i.paid?).not_to be(true)
103
105
  end
104
106
 
105
107
  it 'is paid when marked as paid' do
106
108
  i = described_class.new(paid_at: Date.today)
107
- expect(i.paid?).to eq(true)
109
+ expect(i.paid?).to be(true)
108
110
  end
109
111
 
110
112
  # rubocop:todo RSpec/MultipleExpectations
@@ -136,9 +138,9 @@ module Payday # rubocop:todo Metrics/ModuleLength
136
138
  expect(details).to include(%w[Awesome Absolutely])
137
139
  end
138
140
 
139
- describe 'rendering' do # rubocop:todo Metrics/BlockLength
141
+ describe 'rendering' do
140
142
  before do
141
- Dir.mkdir('tmp') unless File.exist?('tmp')
143
+ FileUtils.mkdir_p('tmp')
142
144
  Config.default.reset
143
145
  end
144
146
 
@@ -146,7 +148,7 @@ module Payday # rubocop:todo Metrics/ModuleLength
146
148
  let(:invoice_params) { {} }
147
149
 
148
150
  it 'renders to a file' do
149
- File.unlink('tmp/testing.pdf') if File.exist?('tmp/testing.pdf')
151
+ FileUtils.rm_rf('tmp/testing.pdf')
150
152
 
151
153
  invoice.render_pdf_to_file('tmp/testing.pdf')
152
154
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  module Payday
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  module Payday
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative '../lib/payday'
2
4
 
3
5
  # Requires supporting ruby files with custom matchers and macros, etc, in
4
6
  # spec/support/ and its subdirectories.
5
- Dir['spec/support/**/*.rb'].each { |f| require f[5..-1] }
7
+ Dir['spec/support/**/*.rb'].each { |f| require f[5..] }
6
8
 
7
9
  RSpec.configure do |_config|
8
10
  # some (optional) config here
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fileutils'
2
4
 
3
5
  # Usage: expect(renderer.render).to match_binary_asset('pdf/test.pdf')
@@ -11,7 +13,7 @@ RSpec::Matchers.define(:match_binary_asset) do |file_name|
11
13
  output_path = File.join('tmp/rendered_output', file_name)
12
14
 
13
15
  FileUtils.mkdir_p(File.dirname(output_path))
14
- File.open(output_path, 'wb') { |f| f.write actual_output }
16
+ File.binwrite(output_path, actual_output)
15
17
  end
16
18
  end
17
19
  end
@@ -20,7 +22,7 @@ RSpec::Matchers.define(:match_binary_asset) do |file_name|
20
22
  expected_output_path = File.join('spec/assets', file_name)
21
23
  actual_output_path = File.join('tmp/rendered_output', file_name)
22
24
 
23
- "expected output to match '#{expected_output_path}' "\
25
+ "expected output to match '#{expected_output_path}' " \
24
26
  "(see #{actual_output_path})"
25
27
  end
26
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webtranslateit-payday
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.5.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Johnson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-04-01 00:00:00.000000000 Z
12
+ date: 2022-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -32,9 +32,6 @@ dependencies:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0.7'
35
- - - "<"
36
- - !ruby/object:Gem::Version
37
- version: '2.0'
38
35
  type: :runtime
39
36
  prerelease: false
40
37
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,63 +39,48 @@ dependencies:
42
39
  - - ">="
43
40
  - !ruby/object:Gem::Version
44
41
  version: '0.7'
45
- - - "<"
46
- - !ruby/object:Gem::Version
47
- version: '2.0'
48
42
  - !ruby/object:Gem::Dependency
49
43
  name: money
50
44
  requirement: !ruby/object:Gem::Requirement
51
45
  requirements:
52
46
  - - "~>"
53
47
  - !ruby/object:Gem::Version
54
- version: '6.5'
48
+ version: '6.16'
55
49
  type: :runtime
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
52
  requirements:
59
53
  - - "~>"
60
54
  - !ruby/object:Gem::Version
61
- version: '6.5'
55
+ version: '6.16'
62
56
  - !ruby/object:Gem::Dependency
63
57
  name: prawn
64
58
  requirement: !ruby/object:Gem::Requirement
65
59
  requirements:
66
60
  - - ">="
67
61
  - !ruby/object:Gem::Version
68
- version: '1.0'
69
- - - "<"
70
- - !ruby/object:Gem::Version
71
- version: '2.5'
62
+ version: '2.0'
72
63
  type: :runtime
73
64
  prerelease: false
74
65
  version_requirements: !ruby/object:Gem::Requirement
75
66
  requirements:
76
67
  - - ">="
77
68
  - !ruby/object:Gem::Version
78
- version: '1.0'
79
- - - "<"
80
- - !ruby/object:Gem::Version
81
- version: '2.5'
69
+ version: '2.0'
82
70
  - !ruby/object:Gem::Dependency
83
71
  name: prawn-svg
84
72
  requirement: !ruby/object:Gem::Requirement
85
73
  requirements:
86
74
  - - ">="
87
75
  - !ruby/object:Gem::Version
88
- version: 0.15.0
89
- - - "<"
90
- - !ruby/object:Gem::Version
91
- version: 0.32.1
76
+ version: 0.32.0
92
77
  type: :runtime
93
78
  prerelease: false
94
79
  version_requirements: !ruby/object:Gem::Requirement
95
80
  requirements:
96
81
  - - ">="
97
82
  - !ruby/object:Gem::Version
98
- version: 0.15.0
99
- - - "<"
100
- - !ruby/object:Gem::Version
101
- version: 0.32.1
83
+ version: 0.32.0
102
84
  - !ruby/object:Gem::Dependency
103
85
  name: prawn-table
104
86
  requirement: !ruby/object:Gem::Requirement
@@ -169,20 +151,34 @@ dependencies:
169
151
  - - ">="
170
152
  - !ruby/object:Gem::Version
171
153
  version: '0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: matrix
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
172
168
  - !ruby/object:Gem::Dependency
173
169
  name: rspec
174
170
  requirement: !ruby/object:Gem::Requirement
175
171
  requirements:
176
172
  - - "~>"
177
173
  - !ruby/object:Gem::Version
178
- version: 3.10.0
174
+ version: 3.11.0
179
175
  type: :development
180
176
  prerelease: false
181
177
  version_requirements: !ruby/object:Gem::Requirement
182
178
  requirements:
183
179
  - - "~>"
184
180
  - !ruby/object:Gem::Version
185
- version: 3.10.0
181
+ version: 3.11.0
186
182
  - !ruby/object:Gem::Dependency
187
183
  name: rubocop
188
184
  requirement: !ruby/object:Gem::Requirement
@@ -264,7 +260,8 @@ files:
264
260
  - spec/support/asset_matchers.rb
265
261
  homepage: https://github.com/webtranslateit/payday
266
262
  licenses: []
267
- metadata: {}
263
+ metadata:
264
+ rubygems_mfa_required: 'true'
268
265
  post_install_message:
269
266
  rdoc_options: []
270
267
  require_paths:
@@ -273,25 +270,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
273
270
  requirements:
274
271
  - - ">="
275
272
  - !ruby/object:Gem::Version
276
- version: '2.2'
273
+ version: '3.1'
277
274
  required_rubygems_version: !ruby/object:Gem::Requirement
278
275
  requirements:
279
- - - ">="
276
+ - - ">"
280
277
  - !ruby/object:Gem::Version
281
- version: '0'
278
+ version: 1.3.1
282
279
  requirements: []
283
- rubygems_version: 3.1.6
280
+ rubygems_version: 3.3.7
284
281
  signing_key:
285
282
  specification_version: 4
286
283
  summary: A simple library for rendering invoices.
287
- test_files:
288
- - spec/assets/default_logo.png
289
- - spec/assets/svg.pdf
290
- - spec/assets/testing.pdf
291
- - spec/assets/testing_predefined_amount.pdf
292
- - spec/assets/tiger.svg
293
- - spec/invoice_spec.rb
294
- - spec/line_item_spec.rb
295
- - spec/pdf_renderer_spec.rb
296
- - spec/spec_helper.rb
297
- - spec/support/asset_matchers.rb
284
+ test_files: []