banking_data 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,3 +3,4 @@ html/
3
3
  pkg/
4
4
  vendor/cache/*.gem
5
5
  coverage
6
+ *.gem
data/.travis.yml CHANGED
@@ -8,4 +8,8 @@ rvm:
8
8
  - rbx-19mode
9
9
  - rbx-2.0.0
10
10
  - rbx-head
11
+ matrix:
12
+ allow_failures:
13
+ - rvm: rbx-2.0.0
14
+ - rvm: rbx-head
11
15
  script: rspec
@@ -7,6 +7,10 @@ class BankingData::AustrianBank < BankingData::Bank
7
7
  attr_accessor :bic
8
8
 
9
9
  def self.all
10
+ @@all ||= get_all
11
+ end
12
+
13
+ def self.get_all
10
14
  banks = []
11
15
  SmarterCSV.process(file, opts).each do |line|
12
16
  bic = line[:'swift-code'].try(:gsub, /"/, '')
@@ -6,6 +6,10 @@ class BankingData::GermanBank < BankingData::Bank
6
6
  attr_accessor :bic, :blz
7
7
 
8
8
  def self.all
9
+ @@all ||= get_all
10
+ end
11
+
12
+ def self.get_all
9
13
  banks = []
10
14
  File.open(file).each_line do |line|
11
15
  blz = line[0..7]
@@ -6,6 +6,10 @@ class BankingData::SwissBank < BankingData::Bank
6
6
  attr_accessor :bic
7
7
 
8
8
  def self.all
9
+ @@all ||= get_all
10
+ end
11
+
12
+ def self.get_all
9
13
  banks = []
10
14
  File.read(file, encoding: 'iso-8859-1').lines.each do |line|
11
15
  kennzeichen = line[7..10]
@@ -1,4 +1,4 @@
1
1
  module BankingData
2
2
  # banking_data version
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: banking_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: