ibanizator 0.1.7 → 0.2.0

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: f13fb4eb7ea6126304ea1ee2ec0f3815305ed276
4
- data.tar.gz: 827e00760e75b74b791fc3ce4bc10c0e3a37d201
3
+ metadata.gz: 6e4b864df215e01fb6c4a916515668d937a1ae2d
4
+ data.tar.gz: 7d810309a577814be7dd3691f524d5c704750aed
5
5
  SHA512:
6
- metadata.gz: edad6f5183763978341382d9d19bc45b62c624ace8653470a809ad54c4447c7a5850570e95538a7e3dbb9035bedf3fe8a4ac871a0eb68233e52973f5af5c53fd
7
- data.tar.gz: c66a388b2a8aed564a9655151d0cf6226841e1a8f5bf39990b6706d9a4cd096c9d0c1f00feb0c023a2c2047349de4ef76909bf4142ce9a769d772d57ac928069
6
+ metadata.gz: ae4beb1d02495c730169a6b89228ce9020c41b7a1ccb86c42e521f13b1743d189a401a17eca0441f13a7bd8eb6c919c4211998c94ecf13a746922f3eed7f9874
7
+ data.tar.gz: dcaa2f5eb9bf645e9ccabf900fb6386f0cd2ed291974c861025f1515c209c24c711e6709bcd05e753a13be3e59d7bdcadf9f5c304cab7e25b897be6dc87f5cf3
data/lib/ibanizator.rb CHANGED
@@ -1,7 +1,13 @@
1
1
  require_relative 'iban/validator'
2
2
  require_relative 'swift_bic/bank_db'
3
+ require_relative 'ibanizator/bank_db'
4
+ require_relative 'ibanizator/bank'
3
5
 
4
6
  class Ibanizator
7
+ def self.bank_db
8
+ @bank_db ||= BankDb.new
9
+ end
10
+
5
11
  def calculate_iban options
6
12
  # Error handling
7
13
  # TODO
@@ -13,7 +13,9 @@ module SwiftBic
13
13
  end
14
14
  end
15
15
 
16
+ # <b>DEPRECATED:</b> Please use <tt>Ibanizator.bank_db</tt> instead.
16
17
  def initialize bank_code
18
+ warn "[DEPRECATION] `SwiftBic::BankDb` is deprecated. Please use `Ibanizator::bank_db` instead."
17
19
  validate_bank_code bank_code
18
20
  @bank_data = BANKS[bank_code]
19
21
  raise BankNotFoundError unless @bank_data
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibanizator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Stettner
@@ -9,7 +9,91 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-06-27 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: equalizer
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.9
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.9
27
+ - !ruby/object:Gem::Dependency
28
+ name: adamantium
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 0.2.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 0.2.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 10.3.2
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 10.3.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.6.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 1.6.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 4.2.10
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 4.2.10
13
97
  description: ibanizator generates the correct IBAN for given account number and bank
14
98
  number for german accounts. It is possible to validate given international IBANS.
15
99
  Calculates also the BIC and bank names for given german bank codes.
@@ -50,4 +134,3 @@ signing_key:
50
134
  specification_version: 4
51
135
  summary: An IBAN generator/validator and BIC generator for german accounts.
52
136
  test_files: []
53
- has_rdoc: