blz 0.1.4.20141207 → 0.1.4.20150308

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2fd8989afe5fb213aa830b04e984474951e12b5
4
- data.tar.gz: d8337e1c84a36d3ec981b4749444cbb42c0efaab
3
+ metadata.gz: f699a25ba0ca2eae9e1bae666f76f5c8245ac6e7
4
+ data.tar.gz: 51435d01451a8a19cd4d57582adcf3457fefee8d
5
5
  SHA512:
6
- metadata.gz: 97713a68b76a4757550c1dedb7b88ae86e766311025881c19483062548762afefd4e8f67be619cc4f7dc5b49d6dca6650e61359574f05da08c874abdd045c2ca
7
- data.tar.gz: c85a4927f5f3a60d54d75399b0fd57e27a22182db6a28665a7a2b0528c52dff810df4d53665ecbe22bafaba913fe0d7e641f2d5184bea3f0dd7a74d6fb987a94
6
+ metadata.gz: 8d7f37240a490280b4414c0903a10e651afc9583a8a995e8dcd39a177c1973d785a29bbfc0cdd6605f0aa40365f5c1fa491a13bdaadf042b1129d91e99bb3685
7
+ data.tar.gz: b095a0c3b5bc7c3f606d955ec750e593ee3f51233713b4bfbbeba2336547ac544105e3f836d9f29727018aac934bb707750c55c380d34c2d10521f65f89e0f65
data/README.md CHANGED
@@ -61,6 +61,31 @@ version number of this gem mirrors the last date the provided data is valid.
61
61
 
62
62
  Now go and build your own BLZ gem ;-)
63
63
 
64
+ ### Note on converting
65
+
66
+ One of the easiest ways to contribute is by updating the `data/*.tsv.gz`
67
+ files. Currently, this is a 3-monthly manual process of:
68
+
69
+ 1. Downloading the file linked above (it helps to be subscribed to the
70
+ Bundesbank ExtraNet INTBA mailing list to get notifications, but the
71
+ [registration process](https://extranet.bundesbank.de/bsvpub/)
72
+ is a bit cumbersome...).
73
+
74
+ 2. Converting the `BLZ_yyyymmdd.xlsx` file into a tab seperated format
75
+ (plain old CSV format with `\t` as field seperator; omit the header).
76
+ Save it as `data/yyyy_mm_dd.tsv`
77
+
78
+ 3. Gzip'ing the `.tsv` file (i.e. `gzip -9 yyyy_mm_dd.tsv`, resulting
79
+ in `data/yyyy_mm_dd.tsv.gz`).
80
+
81
+ 4. Modify the `test_current_data_file` method in `test/test_bank.rb` to
82
+ reflect the latest file.
83
+
84
+ 5. Run the tests (`rake`).
85
+
86
+ Obviously, this process tends to be error prone. A pull request with a
87
+ Rake task completing these steps would be nice to have.
88
+
64
89
  ## Contributors
65
90
 
66
91
  * [dmke](https://github.com/dmke)
data/blz.gemspec CHANGED
@@ -4,7 +4,7 @@ extra_rdoc_files = ['CHANGELOG.md', 'LICENSE', 'README.md']
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'blz'
7
- s.version = '0.1.4.20141207'
7
+ s.version = '0.1.4.20150308'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.summary = "BLZ (Bankleitzahlen) for Ruby"
10
10
 
Binary file
data/test/test_bank.rb CHANGED
@@ -5,6 +5,10 @@ require 'test/unit'
5
5
 
6
6
  class TestBank < Test::Unit::TestCase
7
7
 
8
+ def test_current_data_file
9
+ assert_equal "2014_12_08.tsv.gz", File.basename(BLZ::DATA_FILE)
10
+ end
11
+
8
12
  def test_all_banks
9
13
  assert !BLZ::Bank.all.nil?
10
14
  assert sskm = BLZ::Bank.all.find { |b| b.blz == "70150000" }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.20141207
4
+ version: 0.1.4.20150308
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Eilhard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-08 00:00:00.000000000 Z
11
+ date: 2014-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -91,6 +91,7 @@ files:
91
91
  - data/2013_12_09.tsv.gz
92
92
  - data/2014_03_03.tsv.gz
93
93
  - data/2014_09_08.tsv.gz
94
+ - data/2014_12_08.tsv.gz
94
95
  - lib/blz.rb
95
96
  - lib/blz/bank.rb
96
97
  - test/test_bank.rb
@@ -114,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
115
  version: '0'
115
116
  requirements: []
116
117
  rubyforge_project:
117
- rubygems_version: 2.2.2
118
+ rubygems_version: 2.4.2
118
119
  signing_key:
119
120
  specification_version: 4
120
121
  summary: BLZ (Bankleitzahlen) for Ruby