IBAN 0.1.0 → 0.1.1

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: 05384522e8cc437be731e5beb0df9d53825c09a7
4
- data.tar.gz: 47050586e11b101829d9877d62140e4a19f9a905
3
+ metadata.gz: 935720b1afc0e9602d3e083e61d5f8055357bdb3
4
+ data.tar.gz: 5ee9e17613f8f84ccd80be25061adad752cdb263
5
5
  SHA512:
6
- metadata.gz: 240a7bcc243999d0a3223eebedc4cf910ffe631d4f58d7547e1ec50f1cf2452800630a188a4cb70debb2bb4e20c2b75e0d47930e36d3d33dacca5f3bea4ea64d
7
- data.tar.gz: a787d4f8320b2ec7d96730b9c236b4e1fd8b3cabfa79ee29b117f8fb2afe28b67d8286451e49a2890cdc717a406b5d85812ee46c6fa67485f0af23b525f6d35e
6
+ metadata.gz: 6670867d84fcc2ad513dfcc512ede43c1af1191a3493b47e4da277cfde37e856e4776289026a69595a93c7b7d4f6fae24044add995052871c874cdaf90c3e61c
7
+ data.tar.gz: 7f392388878fac70d02b3866c9830b60579d97e2a5029075f6f88d75133725b6c5cdbf623bc17bb82d20b60a9d07df1e21ae061c3754796f3ce1047f3efd7131
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  IBAN information, validation and formatting.
4
4
  Ships with an ActiveModel validator.
5
5
 
6
+ [![Gem Version](https://badge.fury.io/rb/IBAN.png)](http://badge.fury.io/rb/IBAN)
6
7
  [![Build Status](https://travis-ci.org/max-power/iban.png?branch=master)](https://travis-ci.org/max-power/iban)
7
8
 
8
9
  ## Installation
@@ -55,10 +55,6 @@ class IBAN
55
55
  !!bban_data
56
56
  end
57
57
 
58
- def respond_to?(method_name, include_private=false)
59
- (bban_data && bban_data.names.include?(method_name.to_s)) || super
60
- end
61
-
62
58
  private
63
59
 
64
60
  def specification
@@ -72,4 +68,8 @@ class IBAN
72
68
  def method_missing(method_name, *args)
73
69
  respond_to?(method_name) ? bban_data[method_name] : super
74
70
  end
71
+
72
+ def respond_to_missing?(method_name, include_private=false)
73
+ (bban_data && bban_data.names.include?(method_name.to_s)) || super
74
+ end
75
75
  end
@@ -1,3 +1,3 @@
1
1
  class IBAN
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -38,6 +38,14 @@ describe IBAN do
38
38
  it "should convert to formatted string" do
39
39
  @iban.to_s(true).must_equal 'FR14 2004 1010 0505 0001 3M02 606'
40
40
  end
41
+
42
+ it "should respond_to? account_number" do
43
+ @iban.respond_to?(:account_number).must_equal true
44
+ end
45
+
46
+ it "should return account_number" do
47
+ @iban.account_number.must_equal "0500013M026"
48
+ end
41
49
 
42
50
  [
43
51
  "AL47212110090000000235698741",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: IBAN
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-23 00:00:00.000000000 Z
11
+ date: 2013-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler