ruby_fints 0.0.2 → 0.0.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
  SHA1:
3
- metadata.gz: 334a1e0c17c756b2380b9fb739cfeeb7198030e5
4
- data.tar.gz: 565548ae22bb8510b7da5e4db147c28076a9ca48
3
+ metadata.gz: '046070118a12bf407ebbc6d300d43a616c4c35a8'
4
+ data.tar.gz: 1d25318affcfaf97965fe9b9ebcbd031da4010d7
5
5
  SHA512:
6
- metadata.gz: 42513b7488dbd861747ad06d08ad5948811bd81d508cb352f50a75a6132c405d633a2346063fde5b7b88ddd55d834c4a14a700e3bfe3013d0471da0ad23acfc3
7
- data.tar.gz: 6bfd3b8107a41506a60d0ab56d230e078ac50d1fc060e164e2192e5f35bf5b0089c9b237c454dd29f983f3f4ac0d4212e6bac6563668efacbb38ea03293f1612
6
+ metadata.gz: e751448855bf9f5b0763233671f022a7d724c3bd9f50aa8f9307d386b172e2d4cda3c27da04b42121117e575cfb34a977b2f3e6a94f66f0111e93dc35eb14979
7
+ data.tar.gz: 1f0819503b91715b67b3a698c4b0b26350d8cde134abfef5143c806497745682efa64a3c79b3ec95e79a980dfa135bc7da84bb4a920a52864c2ea585ae103747
data/README.md CHANGED
@@ -15,6 +15,8 @@ Limitations
15
15
  Banks tested:
16
16
 
17
17
  * Sparkasse
18
+ * ING DiBa
19
+ * GLS Bank
18
20
 
19
21
  Usage
20
22
  -----
data/lib/fints/helper.rb CHANGED
@@ -7,10 +7,10 @@ module FinTS
7
7
  def self.fints_unescape(content)
8
8
  content.gsub('??', '?').gsub("?'", "'").gsub('?+', '+').gsub('?:', ':')
9
9
  end
10
-
10
+
11
11
  def self.mt940_to_array(data)
12
- processed_data = data.gsub('@@', '\r\n').gsub('-0000', '+0000')
13
- mt940 = Cmxl.parse(processed_data, encoding: 'ISO-8859-1')
12
+ processed_data = data.gsub('@@', "\n").gsub('-0000', '+0000')
13
+ mt940 = Cmxl.parse(processed_data)
14
14
  mt940.flat_map(&:transactions)
15
15
  end
16
16
  end
data/lib/fints/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module FinTS
2
2
  GEM_NAME = 'ruby_fints'
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_fints
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marvin Killing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-30 00:00:00.000000000 Z
11
+ date: 2018-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cmxl