prawn-swiss_qr_bill 0.5.3 → 0.5.4

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: c2c54f8fd1cb1646b3f2ab13cc420f47e6619c6170ae817590e251b3f1d38aca
4
- data.tar.gz: c2494971e8184c7a67064aaee7fd7ab2b5b413fc771e1db28bc565695b22b65f
3
+ metadata.gz: 62e0bca83159133dd9fd4c9dee95a195874eec1d339a89a34a344eb8e942472d
4
+ data.tar.gz: 599fc124b7d02ad2b622f5ddff349dba67ca9403b3acba37a75d0f5fec3a00a6
5
5
  SHA512:
6
- metadata.gz: a38c973095f1b4bbc789cfc9e240e12d73ccdc024a87d8ef75858a9132350b828dba6c58ee1c7636a9874b645232d754d010a8cae6bf05a63d831c21b4ce4661
7
- data.tar.gz: 0d7f6e0488e67c50f239da95c17756dd9d042ccded22272bfe02b2f4a1d7569575dd915427557f6f1b6bfc9d3ece166111cde67077d9c8828c725d0d7da45e5c
6
+ metadata.gz: b94d558ab500c74486695304a9c5481ba76681a589bae7b1069209d91b0b92c8f7f84462cb950b9dd5996d308bba5c6c345cabd70c328f402200351f39ef10ef
7
+ data.tar.gz: 6a73e2d7fb2703222b1720223fed9acad0d42b1445500abeaccd3b19839ae1348a108433ab812659e4b6debd606a616ce5287b6e20e47fe8df2ff693c28f8cc0
data/README.md CHANGED
@@ -151,8 +151,8 @@ Original author: Mischa Schindowski
151
151
  * [Prawn](https://github.com/prawnpdf/prawn): Fast, Nimble PDF Generation For Ruby
152
152
  * [Swiss QR-bill Validation Portal](https://validation.iso-payments.ch/qrrechnung)
153
153
  * [Swiss Payment Standards](https://www.paymentstandards.ch):
154
- * [Style Guide QR-bill](https://www.paymentstandards.ch/dam/downloads/style-guide-en.pdf)
155
- * [Implementation Guidelines QR-bill](https://www.paymentstandards.ch/dam/downloads/ig-qr-bill-en.pdf)
154
+ * [Style Guide QR-bill](https://www.six-group.com/dam/download/banking-services/standardization/qr-bill/style-guide-qr-bill-en.pdf)
155
+ * [Implementation Guidelines QR-bill](https://www.six-group.com/dam/download/banking-services/standardization/qr-bill/ig-qr-bill-v2.2-en.pdf)
156
156
 
157
157
  ## Copyright
158
158
 
Binary file
Binary file
@@ -68,10 +68,13 @@ module Prawn
68
68
  def build_address(address)
69
69
  [
70
70
  address[:name],
71
- address[:line1],
72
- address[:line2],
71
+ if address[:type] == 'S'
72
+ [address[:line1], address[:line2]].compact.join(' ')
73
+ else
74
+ [address[:line1], address[:line2]]
75
+ end,
73
76
  [address[:postal_code], address[:city]].compact.join(' ')
74
- ].compact.join("\n")
77
+ ].flatten.compact.join("\n")
75
78
  end
76
79
 
77
80
  def load_specs
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prawn
4
4
  module SwissQRBill
5
- VERSION = '0.5.3'
5
+ VERSION = '0.5.4'
6
6
  end
7
7
  end
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
23
23
  ]
24
24
 
25
25
  spec.add_dependency 'i18n', '~> 1.8'
26
- spec.add_dependency 'prawn', '~> 2.0'
27
26
  spec.add_dependency 'matrix', '~> 0.4'
27
+ spec.add_dependency 'prawn', '~> 2.0'
28
28
  spec.add_dependency 'rqrcode', '~> 2.0'
29
29
 
30
30
  spec.add_development_dependency 'pdf-reader', '~> 2.3'
@@ -35,7 +35,6 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency 'simplecov', '~> 0.16'
36
36
  spec.add_development_dependency 'simplecov-cobertura', '~> 2.0'
37
37
 
38
-
39
38
  spec.metadata = {
40
39
  'rubygems_mfa_required' => 'true'
41
40
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-swiss_qr_bill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mischa Schindowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -25,33 +25,33 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
- name: prawn
28
+ name: matrix
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '0.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '0.4'
41
41
  - !ruby/object:Gem::Dependency
42
- name: matrix
42
+ name: prawn
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.4'
47
+ version: '2.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.4'
54
+ version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rqrcode
57
57
  requirement: !ruby/object:Gem::Requirement