hexapdf-extras 1.2.2 → 1.2.3

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: f67123484ebe9ff4b442a3928cc727d19b7b3e9767536c08775d9f8bbd679d41
4
- data.tar.gz: 5d7cc27bb1537f22465fb1ca8fd6396629575a4ffec9c49a64c52e7ad0c31d31
3
+ metadata.gz: 1b425559332a45c2a40c8de3fb518e26c772db9b99f63ef393df92f2bfceee3b
4
+ data.tar.gz: e33029a0a9aa8aed06f1438f31fdf8b53cb7bc0b15e96f43b72a7b74d014d5d6
5
5
  SHA512:
6
- metadata.gz: f717ebe411c150d4da8edafedf19739305d11a18d9e164a3db9f68ef535ba02cdb5374753414f0cd05bbbc92f51547b32cde1eceee845c568c87c3a7be662a00
7
- data.tar.gz: 25c2b45c6ed7b614c6c32a5b7fdc3f30ed1700162baff8c1b9450ee08b010fea3142ffeab41f7ccf370b71d3c9038ae9a9ec738929bac4fac0229b67d0d2690c
6
+ metadata.gz: 72e693b278f55b2e8fb8ddb7b7ade7ec544b4ffa2e0977b73f1b5a784be7444de78101af02c25095cdb6e5f00b86ac704bd84c6f947090754c39041a1085f5d3
7
+ data.tar.gz: 4e2caa6555160576d3e008706f7dc58540be3766eab308c318872778feb79a4185289c90cba605c69e406143d674f4e6abaf0bf2f931a5fa6f5410d14bad1ff8
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake/testtask'
3
3
  require 'rubygems/package_task'
4
4
 
5
5
  Rake::TestTask.new do |t|
6
- t.libs << 'test'
6
+ t.libs << 'test' << '../hexapdf/lib'
7
7
  t.test_files = FileList['test/**/*.rb']
8
8
  t.verbose = false
9
9
  t.warning = true
@@ -2,6 +2,6 @@
2
2
 
3
3
  module HexaPDF
4
4
  module Extras
5
- VERSION = '1.2.2'
5
+ VERSION = '1.2.3'
6
6
  end
7
7
  end
@@ -74,7 +74,7 @@ describe HexaPDF::Extras::GraphicObject::Zint do
74
74
  [:set_font_and_size, [:F1, 14.0]],
75
75
  [:set_device_gray_non_stroking_color, [0.0]],
76
76
  [:begin_text],
77
- [:set_text_matrix, [1, 0, 0, 1, 67.716, 3.5]],
77
+ [:move_text, [67.716, 3.5]],
78
78
  [:show_text, ["test"]],
79
79
  [:end_text]])
80
80
  end
@@ -108,7 +108,7 @@ describe HexaPDF::Extras::GraphicObject::Zint do
108
108
  [:set_font_and_size, [:F1, 14.0]],
109
109
  [:set_device_gray_non_stroking_color, [0.0]],
110
110
  [:begin_text],
111
- [:set_text_matrix, [1, 0, 0, 1, 0.216, 0.400002]],
111
+ [:move_text, [0.216, 0.400002]],
112
112
  [:show_text, ["1"]],
113
113
  [:set_font_and_size, [:F1, 20.0]],
114
114
  [:move_text, [32.424, 0]],
@@ -13,7 +13,7 @@ describe HexaPDF::Extras::Layout::SwissQRBill do
13
13
  def data
14
14
  @data ||= {
15
15
  creditor: {
16
- iban: "CH4431999123000889012",
16
+ iban: +"CH4431999123000889012",
17
17
  name: "Max Muster & Söhne",
18
18
  address_line1: "Musterstrasse",
19
19
  address_line2: "123",
@@ -72,11 +72,11 @@ describe HexaPDF::Extras::Layout::SwissQRBill do
72
72
  it "ensures a correct iban value in the creditor field" do
73
73
  data[:creditor].delete(:iban)
74
74
  assert_invalid_data(/:iban of :creditor is missing/)
75
- data[:creditor][:iban] = 'CH44 319 39912300088901 2'
75
+ data[:creditor][:iban] = +'CH44 319 39912300088901 2'
76
76
  assert_invalid_data(/:iban of :creditor.*21/)
77
- data[:creditor][:iban] = 'CH4431999123000889013'
77
+ data[:creditor][:iban] = +'CH4431999123000889013'
78
78
  assert_invalid_data(/:iban of :creditor.*invalid check digits/)
79
- data[:creditor][:iban] = 'CH4431999123000889012'
79
+ data[:creditor][:iban] = +'CH4431999123000889012'
80
80
  assert(create_box(data))
81
81
  end
82
82
 
@@ -152,32 +152,32 @@ describe HexaPDF::Extras::Layout::SwissQRBill do
152
152
  it "ensures the QRR reference value exists and is valid" do
153
153
  data[:reference_type] = 'QRR'
154
154
  assert_invalid_data(/:reference must be filled.*QRR/)
155
- data[:reference] = 'adsfads'
155
+ data[:reference] = +'adsfads'
156
156
  assert_invalid_data(/:reference for QRR.*27/)
157
- data[:reference] = '210000000003139471430009011'
157
+ data[:reference] = +'210000000003139471430009011'
158
158
  assert_invalid_data(/:reference for QRR.*invalid check digit.*7/)
159
- data[:reference] = '21000000000313947143000901'
159
+ data[:reference] = +'21000000000313947143000901'
160
160
  assert_equal('7', create_box(data).data[:reference][26])
161
- data[:reference] = '210000000 0031394 71430009017'
161
+ data[:reference] = +'210000000 0031394 71430009017'
162
162
  assert(create_box(data))
163
163
  end
164
164
 
165
165
  it "ensures the SCOR reference value exists and is valid" do
166
166
  data[:reference_type] = 'SCOR'
167
167
  assert_invalid_data(/:reference must be filled.*SCOR/)
168
- data[:reference] = 'RF11'
168
+ data[:reference] = +'RF11'
169
169
  assert_invalid_data(/:reference for SCOR.*5 and 25/)
170
- data[:reference] = 'RFa' * 9
170
+ data[:reference] = +'RFa' * 9
171
171
  assert_invalid_data(/:reference for SCOR.*5 and 25/)
172
- data[:reference] = 'RF123323;ö'
172
+ data[:reference] = +'RF123323;ö'
173
173
  assert_invalid_data(/:reference for SCOR.*alpha-numeric/)
174
- data[:reference] = 'a' * 20
174
+ data[:reference] = +'a' * 20
175
175
  assert_invalid_data(/:reference for SCOR must start.*RF/)
176
- data[:reference] = 'RFabcdefgh'
176
+ data[:reference] = +'RFabcdefgh'
177
177
  assert_invalid_data(/:reference for SCOR must start.*RF and check digits/)
178
- data[:reference] = 'RF 48 5000056789012345d'
178
+ data[:reference] = +'RF 48 5000056789012345d'
179
179
  assert_invalid_data(/:reference for SCOR has invalid check digits/)
180
- data[:reference] = 'RF 48 5000056789012345'
180
+ data[:reference] = +'RF 48 5000056789012345'
181
181
  assert(create_box(data))
182
182
  end
183
183
 
@@ -226,7 +226,7 @@ describe HexaPDF::Extras::Layout::SwissQRBill do
226
226
 
227
227
  it "works with all information filled in" do
228
228
  data[:reference_type] = 'QRR'
229
- data[:reference] = '210000000 0031394 71430009017'
229
+ data[:reference] = +'210000000 0031394 71430009017'
230
230
  data[:message] = 'Please just pay the bills, Jim!'
231
231
  data[:billing_information] = '//S/hit/30/50/what/do/I/do/'
232
232
  data[:alternative_schemes] = 'ebill/here/comes/data'
@@ -237,7 +237,7 @@ describe HexaPDF::Extras::Layout::SwissQRBill do
237
237
  data.delete(:debtor)
238
238
  data.delete(:amount)
239
239
  data[:reference_type] = 'SCOR'
240
- data[:reference] = 'RF48 5000056789012345'
240
+ data[:reference] = +'RF48 5000056789012345'
241
241
  assert(@composer.box(:swiss_qr_bill, data: data))
242
242
  end
243
243
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexapdf-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Leitner
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-06-05 00:00:00.000000000 Z
10
+ date: 2025-01-01 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: hexapdf
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '0.44'
18
+ version: '1.0'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '0.44'
25
+ version: '1.0'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: rqrcode_core
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +51,6 @@ dependencies:
52
51
  - - "~>"
53
52
  - !ruby/object:Gem::Version
54
53
  version: '1.3'
55
- description:
56
54
  email: t_leitner@gmx.at
57
55
  executables: []
58
56
  extensions: []
@@ -81,7 +79,6 @@ homepage: https://hexapdf-extras.gettalong.org
81
79
  licenses:
82
80
  - MIT
83
81
  metadata: {}
84
- post_install_message:
85
82
  rdoc_options: []
86
83
  require_paths:
87
84
  - lib
@@ -89,15 +86,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
86
  requirements:
90
87
  - - ">="
91
88
  - !ruby/object:Gem::Version
92
- version: '2.7'
89
+ version: '3.0'
93
90
  required_rubygems_version: !ruby/object:Gem::Requirement
94
91
  requirements:
95
92
  - - ">="
96
93
  - !ruby/object:Gem::Version
97
94
  version: '0'
98
95
  requirements: []
99
- rubygems_version: 3.5.3
100
- signing_key:
96
+ rubygems_version: 3.6.2
101
97
  specification_version: 4
102
98
  summary: Additional functionality for HexaPDF
103
99
  test_files: []