banking_data 0.5.1 → 0.7.2

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.
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "activesupport", "~>3.0.0"
6
6
  gem "activemodel", "~>3.0.0"
7
7
 
8
- gemspec :path=>"../"
8
+ gemspec :path => "../"
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "activesupport", "~>4.0.0"
6
6
  gem "activemodel", "~>4.0.0"
7
7
 
8
- gemspec :path=>"../"
8
+ gemspec :path => "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "~>4.2.0"
6
+ gem "activemodel", "~>4.2.0"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "~>5.0.0"
6
+ gem "activemodel", "~>5.0.0"
7
+
8
+ gemspec :path => "../"
@@ -22,8 +22,8 @@ class BankingData::AustrianBank < BankingData::Bank
22
22
  def get_all
23
23
  banks = []
24
24
  SmarterCSV.process(file, opts).each do |line|
25
- blz = line[:bankleitzahl].try(:gsub, /"/, '')
26
- bic = line[:'swift_code'].try(:gsub, /"/, '')
25
+ blz = line[:bankleitzahl].to_s
26
+ bic = line[:'swift_code']
27
27
  if blz && bic
28
28
  banks << new(bic: bic, blz: blz)
29
29
  end
@@ -35,14 +35,13 @@ class BankingData::AustrianBank < BankingData::Bank
35
35
 
36
36
  def file
37
37
  File.dirname(__FILE__) +
38
- '/../../data/kiverzeichnis_gesamt_de_1381499802577.csv'
38
+ '/../../data/SEPA-ZV-VZ_gesamt_de_1502983225066.csv'
39
39
  end
40
40
 
41
41
  def opts
42
42
  {
43
43
  col_sep: ';',
44
- file_encoding: 'iso-8859-1',
45
- force_simple_split: true
44
+ file_encoding: 'iso-8859-1'
46
45
  }
47
46
  end
48
47
  end
@@ -31,7 +31,7 @@ class BankingData::GermanBank < BankingData::Bank
31
31
  end
32
32
 
33
33
  def file
34
- File.dirname(__FILE__) + '/../../data/BLZ_20130909.txt'
34
+ File.dirname(__FILE__) + '/../../data/blz_2017_09_04_txt'
35
35
  end
36
36
  end
37
37
  end
@@ -1,4 +1,4 @@
1
1
  module BankingData
2
2
  # banking_data version
3
- VERSION = '0.5.1'
3
+ VERSION = '0.7.2'
4
4
  end
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  module BankingData
4
4
  describe AustrianBank do
5
5
  describe 'end-to-end test' do
6
- ['ABAGATWW', 'ABVRATW1'].each do |bic|
6
+ ['RCNOATW1XXX', 'FFBKDEFFAUT'].each do |bic|
7
7
  it "includes #{bic}" do
8
8
  expect(AustrianBank.only(:bic).map(&:first)).to include(bic)
9
9
  expect(Bank.where(locale: :at).only(:bic).map(&:first))
@@ -11,7 +11,7 @@ module BankingData
11
11
  end
12
12
  end
13
13
 
14
- ['60000', '15150'].each do |blz|
14
+ ['19420', '15150'].each do |blz|
15
15
  it "includes #{blz}" do
16
16
  expect(AustrianBank.only(:blz).map(&:first)).to include(blz)
17
17
  expect(AustrianBank.only(:blz).flatten).to include(blz)
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  module BankingData
4
4
  describe GermanBank do
5
5
  describe 'end-to-end test' do
6
- ['MARKDEF1100', 'PBNKDEFF100'].each do |bic|
6
+ ['MARKDEF1100', 'BELADEBEXXX', 'SLZODE22XXX'].each do |bic|
7
7
  it "includes #{bic}" do
8
8
  expect(GermanBank.only(:bic).map(&:first)).to include(bic)
9
9
  expect(Bank.where(locale: :de).only(:bic).map(&:first))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: banking_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank C. Eckert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-29 00:00:00.000000000 Z
11
+ date: 2017-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -154,13 +154,14 @@ files:
154
154
  - README.md
155
155
  - Rakefile
156
156
  - banking_data.gemspec
157
- - data/BLZ_20130909.txt
157
+ - data/README.md
158
+ - data/SEPA-ZV-VZ_gesamt_de_1502983225066.csv
158
159
  - data/bcbankenstamm.txt
159
- - data/kiverzeichnis_gesamt_de_1381499802577.csv
160
+ - data/blz_2017_09_04_txt
160
161
  - gemfiles/rails_3.0.gemfile
161
- - gemfiles/rails_3.1.gemfile
162
- - gemfiles/rails_3.2.gemfile
163
162
  - gemfiles/rails_4.0.gemfile
163
+ - gemfiles/rails_4.2.gemfile
164
+ - gemfiles/rails_5.0.gemfile
164
165
  - lib/banking_data.rb
165
166
  - lib/banking_data/austrian_bank.rb
166
167
  - lib/banking_data/bank.rb
@@ -195,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
196
  version: '0'
196
197
  requirements: []
197
198
  rubyforge_project:
198
- rubygems_version: 2.2.2
199
+ rubygems_version: 2.6.12
199
200
  signing_key:
200
201
  specification_version: 4
201
202
  summary: Banking data for German, Austrian and Swiss banks