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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7ce7eb7546a981a9ef75e7b6262ad986130b4b7
4
- data.tar.gz: 3c710cc6ce56c5978f1bdb7091cd5dc368c48f03
3
+ metadata.gz: 5ab7c92f7cf252703f2f0ab62a13f89d317a2801
4
+ data.tar.gz: 0b7158c517ba56c29c28a8a801b44a0adba5198e
5
5
  SHA512:
6
- metadata.gz: 063a702bc34cc03c1381b6a5214d5b5bb3a21d7d30be0038faf5aca98718b7d100c658e1b789158511150d1917248bd052e14b46f80de734604cf914e38046bb
7
- data.tar.gz: 10f0f9f913932f09dc2e3ac603bc6756f8952aad363b5380f5c3ae7b753f955680b565b6aae1ae19d1d6ce94550121b704801467783619d913543ad86a470118
6
+ metadata.gz: 33a42b42f3cb089a71e71cc594c9fe52ca135e0225454233d9594bbbceee3cbb80d95a8945b7b24e07dac4a90f0e7e313fa44dd955c90da774460aaf1b1c11ee
7
+ data.tar.gz: 1f07d8f9ed72c4f41a07efb28c275ad5e1c690245248b39f5a2287dbefdb7b807fced7225ca5f6419d6af1b921853a720bcbdb29aef943a2ee697c2b6f2abea1
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ Changelog
2
+ =========
3
+
4
+ v0.0.2
5
+ ------
6
+
7
+ * Fix invalid path to data directory
8
+
9
+ v0.0.1
10
+ ------
11
+
12
+ Initial release
@@ -9,10 +9,10 @@ module SepaClearer
9
9
  service_b2b: :b2b
10
10
  }
11
11
 
12
- def data(file = 'data/deutsche_bundesbank.csv')
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
@@ -1,3 +1,3 @@
1
1
  module SepaClearer
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
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.1
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-16 00:00:00.000000000 Z
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