ibanizator 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ibanizator.rb +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9ffa9b3624c8dcb1ed6a46732092438cc1c8fa7
4
- data.tar.gz: 6db3e500fedfbd60a4695cbbb3a75342ec231560
3
+ metadata.gz: f4516010c74f2fff18512e7fab52aea278531edf
4
+ data.tar.gz: 2cc32ba114285a09e3650580d2dca904d0229eb8
5
5
  SHA512:
6
- metadata.gz: f2aee1f03ad9c3033a1de26bfab6330e0a5306875af22d588397a27a27587bec2545646e0c5a861716855eb5b47daf703edc5277fd9a8be2fa409e257d17f904
7
- data.tar.gz: 75962fef57d77e6f264a6c6a39d30bb19f34dc733d165e294d612bca290d1efbd9e0bb371fd28dba1de1d72966646882031eec4fcb32f82773a029b376e66d92
6
+ metadata.gz: 87eeea15696057f3a361695d878b079fa7afa3f1fdb91bb8057aed1cc8a99ee600394dfe622357037272eea0be12c7060d33b7ce65c7a3a48169904f2a637cdd
7
+ data.tar.gz: bade9a4c18b8efd786440cc7e119e6c26470334f24018e43d2a28a0bd533472e833b4dc0a44390966922fd65f781704ef0e8b8b7b81e2b368c161098f91b4151
data/lib/ibanizator.rb CHANGED
@@ -34,12 +34,16 @@ class Ibanizator
34
34
  validator.validate_iban(iban)
35
35
  end
36
36
 
37
+ # <b>DEPRECATED:</b> Please use <tt>Ibanizator.bank_db.bank_by_bank_code</tt> instead.
37
38
  def bic bank_code
39
+ warn "[DEPRECATION] `Ibanizator#bank_name` is deprecated. Please use `Ibanizator::bank_db.bank_by_bank_code` instead."
38
40
  bank_db = SwiftBic::BankDb.new bank_code
39
41
  bank_db.bic
40
42
  end
41
43
 
44
+ # <b>DEPRECATED:</b> Please use <tt>Ibanizator.bank_db.bank_by_bank_code</tt> instead.
42
45
  def bank_name bank_code
46
+ warn "[DEPRECATION] `Ibanizator#bank_name` is deprecated. Please use `Ibanizator::bank_db.bank_by_bank_code` instead."
43
47
  bank_db = SwiftBic::BankDb.new bank_code
44
48
  bank_db.bank_name
45
49
  end
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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Stettner