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 +4 -4
- data/README.md +1 -0
- data/lib/iban.rb +4 -4
- data/lib/iban/version.rb +1 -1
- data/spec/iban_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 935720b1afc0e9602d3e083e61d5f8055357bdb3
|
4
|
+
data.tar.gz: 5ee9e17613f8f84ccd80be25061adad752cdb263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/iban.rb
CHANGED
@@ -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
|
data/lib/iban/version.rb
CHANGED
data/spec/iban_spec.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|