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.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.travis.yml +6 -8
- data/Appraisals +11 -11
- data/README.md +17 -0
- data/data/README.md +24 -0
- data/data/SEPA-ZV-VZ_gesamt_de_1502983225066.csv +882 -0
- data/data/bcbankenstamm.txt +3375 -3555
- data/data/{BLZ_20130909.txt → blz_2017_09_04_txt} +6984 -9289
- data/gemfiles/rails_3.0.gemfile +1 -1
- data/gemfiles/rails_4.0.gemfile +1 -1
- data/gemfiles/rails_4.2.gemfile +8 -0
- data/gemfiles/rails_5.0.gemfile +8 -0
- data/lib/banking_data/austrian_bank.rb +4 -5
- data/lib/banking_data/german_bank.rb +1 -1
- data/lib/banking_data/version.rb +1 -1
- data/spec/banking_data/austrian_bank_spec.rb +2 -2
- data/spec/banking_data/german_bank_spec.rb +1 -1
- metadata +8 -7
- data/data/kiverzeichnis_gesamt_de_1381499802577.csv +0 -5193
- data/gemfiles/rails_3.1.gemfile +0 -8
- data/gemfiles/rails_3.2.gemfile +0 -8
data/gemfiles/rails_3.0.gemfile
CHANGED
data/gemfiles/rails_4.0.gemfile
CHANGED
|
@@ -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].
|
|
26
|
-
bic = line[:'swift_code']
|
|
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/
|
|
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
|
data/lib/banking_data/version.rb
CHANGED
|
@@ -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
|
-
['
|
|
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
|
-
['
|
|
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', '
|
|
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.
|
|
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:
|
|
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/
|
|
157
|
+
- data/README.md
|
|
158
|
+
- data/SEPA-ZV-VZ_gesamt_de_1502983225066.csv
|
|
158
159
|
- data/bcbankenstamm.txt
|
|
159
|
-
- data/
|
|
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.
|
|
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
|