sepa_file_parser 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94b742b5591b7ff53813138ee487d626939944f422f067f85d1a0e6562861186
4
- data.tar.gz: bfefae01adca5836c2dcf9a4916928b7cf97ef5b44c2e86ab9645cf396d5e5d9
3
+ metadata.gz: 6a416863e01eac08c6e608b5a1191b121af6a39e89123d193c0c462b805670b6
4
+ data.tar.gz: afc850d51e4b8ab193e264544772d80d9e13b1190df967c554c609d157d03aac
5
5
  SHA512:
6
- metadata.gz: ef76bd050f8d8efe7197cd1b6bd59c6fb5f2a3aa49842114008650d9bf54a93986305029a379d3145a658aee5ce4ef9fa01374a3238915827a804e922aead73f
7
- data.tar.gz: fcd58f28a0556a62c08650910fbea5bdbe61c0edda0e5be9d4834bc1e4e277e75388bb144ffd84967a32c60d6ec828e03f0dda6953214e22488072a5e3a25756
6
+ metadata.gz: de0bac5811b638f4cba7e5b3cca25139ccfd68a7527b2bfb7f5f5dab748a9b46461996312df6b8ba00095265836fe1d3703cfcec043291c112c178109f886f68
7
+ data.tar.gz: 27062970e0dc3f83366a4beffde363254e7460672fceb00d67087396472a88c76090f00e25fe5dd6159dc4a9bcca500b9c4374268af9932156c29c6badb8c21f
@@ -144,17 +144,17 @@ module SepaFileParser
144
144
  end
145
145
 
146
146
  def parse_amount
147
- if xml_data.xpath('Amt').any?
147
+ if xml_data.xpath('Amt/text()').any?
148
148
  xml_data.xpath('Amt/text()').text
149
- elsif xml_data.xpath('AmtDtls').any?
149
+ elsif xml_data.xpath('AmtDtls//Amt/text()').any?
150
150
  xml_data.xpath('AmtDtls//Amt/text()').first.text
151
151
  end
152
152
  end
153
153
 
154
154
  def parse_currency
155
- if xml_data.xpath('Amt').any?
155
+ if xml_data.xpath('Amt/@Ccy').any?
156
156
  xml_data.xpath('Amt/@Ccy').text
157
- elsif xml_data.xpath('AmtDtls').any?
157
+ elsif xml_data.xpath('AmtDtls//Amt/@Ccy').any?
158
158
  xml_data.xpath('AmtDtls//Amt/@Ccy').first.text
159
159
  end
160
160
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SepaFileParser
4
4
 
5
- VERSION = '0.8.0'
5
+ VERSION = '0.8.1'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sepa_file_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schoknecht
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
- rubygems_version: 3.6.9
160
+ rubygems_version: 4.0.3
161
161
  specification_version: 4
162
162
  summary: Gem for parsing camt, pain, ... files into a speaking object.
163
163
  test_files: []