sepa_clearer 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/sepa_clearer/deutsche_bundesbank.rb +6 -2
- data/lib/sepa_clearer/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ab7c92f7cf252703f2f0ab62a13f89d317a2801
|
4
|
+
data.tar.gz: 0b7158c517ba56c29c28a8a801b44a0adba5198e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33a42b42f3cb089a71e71cc594c9fe52ca135e0225454233d9594bbbceee3cbb80d95a8945b7b24e07dac4a90f0e7e313fa44dd955c90da774460aaf1b1c11ee
|
7
|
+
data.tar.gz: 1f07d8f9ed72c4f41a07efb28c275ad5e1c690245248b39f5a2287dbefdb7b807fced7225ca5f6419d6af1b921853a720bcbdb29aef943a2ee697c2b6f2abea1
|
data/CHANGELOG.md
ADDED
@@ -9,10 +9,10 @@ module SepaClearer
|
|
9
9
|
service_b2b: :b2b
|
10
10
|
}
|
11
11
|
|
12
|
-
def data(file =
|
12
|
+
def data(file = nil)
|
13
13
|
@data ||= begin
|
14
14
|
[].tap do |data|
|
15
|
-
CSV.foreach(file, { headers: true, col_sep: ';', header_converters: :symbol }) do |row|
|
15
|
+
CSV.foreach(file || default_data_file, { headers: true, col_sep: ';', header_converters: :symbol }) do |row|
|
16
16
|
data.push PaymentProvider.new(*parse_raw_data(row))
|
17
17
|
end
|
18
18
|
end
|
@@ -26,5 +26,9 @@ module SepaClearer
|
|
26
26
|
CAPABILITIES_MAPPING.map { |key, service| data[key] == '1' ? service : nil }.compact
|
27
27
|
]
|
28
28
|
end
|
29
|
+
|
30
|
+
def default_data_file
|
31
|
+
File.join(File.dirname(__FILE__), '../..', 'data/deutsche_bundesbank.csv')
|
32
|
+
end
|
29
33
|
end
|
30
34
|
end
|
data/lib/sepa_clearer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sepa_clearer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maximilian Schulz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -62,6 +62,7 @@ extensions: []
|
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
64
64
|
- ".gitignore"
|
65
|
+
- CHANGELOG.md
|
65
66
|
- Gemfile
|
66
67
|
- LICENSE.txt
|
67
68
|
- README.md
|