blz 0.2.0.20170605 → 0.2.0.20171204
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/blz.gemspec +1 -1
- data/data/2017_12_04.tsv.gz +0 -0
- data/lib/blz.rb +1 -1
- data/test/test_bank.rb +2 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a67f504ef0161721fd8bd0e5d8795766e3875ea
|
4
|
+
data.tar.gz: f9ff3396cc18edfcd6eb1bde36cfaa8406bdf83f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 994cf10651ed49739863e3af0984befdaa699210b4f5aa0e45fa551e3b1d524013722ce2fb9fc10a320dfb4824e339feb70cefe2f0d2a8df942f41b04ff53da3
|
7
|
+
data.tar.gz: 5fe285bf17a6b93e7882ffb871a79d9cd422e57c85adac37fb82a9169fec034bbb2f7b221759fcdb24912398d822ecf1306468187e79817e530825c3ffa4b78f
|
data/CHANGELOG.md
CHANGED
data/blz.gemspec
CHANGED
Binary file
|
data/lib/blz.rb
CHANGED
@@ -11,7 +11,7 @@ require "date"
|
|
11
11
|
|
12
12
|
module BLZ
|
13
13
|
def self.convert_file_to_date(f)
|
14
|
-
match = f.match
|
14
|
+
match = f.match(/(?<y>\d{4})_(?<m>\d\d)_(?<d>\d\d)\.tsv\.gz$/)
|
15
15
|
Date.new match[:y].to_i, match[:m].to_i, match[:d].to_i
|
16
16
|
end
|
17
17
|
|
data/test/test_bank.rb
CHANGED
@@ -36,7 +36,8 @@ class TestBank < Test::Unit::TestCase
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def test_current_data_file
|
39
|
-
|
39
|
+
re = /\A\d{4}_\d\d_\d\d\.tsv\.gz\z/
|
40
|
+
assert_match re, File.basename(BLZ::DATA_FILE)
|
40
41
|
end
|
41
42
|
|
42
43
|
def test_all_banks
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.
|
4
|
+
version: 0.2.0.20171204
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Eilhard
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- data/2016_09_04.tsv.gz
|
83
83
|
- data/2017_03_06.tsv.gz
|
84
84
|
- data/2017_06_05.tsv.gz
|
85
|
+
- data/2017_12_04.tsv.gz
|
85
86
|
- lib/blz.rb
|
86
87
|
- lib/blz/bank.rb
|
87
88
|
- test/test_bank.rb
|
@@ -105,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
106
|
version: '0'
|
106
107
|
requirements: []
|
107
108
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.6.
|
109
|
+
rubygems_version: 2.6.13
|
109
110
|
signing_key:
|
110
111
|
specification_version: 4
|
111
112
|
summary: BLZ (Bankleitzahlen) for Ruby
|