ibandit 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.rubocop.yml +43 -0
- data/.rubocop_todo.yml +23 -0
- data/CHANGELOG.md +48 -0
- data/Gemfile +3 -0
- data/LICENSE +22 -0
- data/README.md +303 -0
- data/TODO.md +5 -0
- data/bin/build_structure_file.rb +101 -0
- data/circle.yml +19 -0
- data/data/IBANSTRUCTURE.xml +1184 -0
- data/data/IBAN_Registry.txt +70 -0
- data/data/structure_additions.yml +43 -0
- data/ibandit.gemspec +24 -0
- data/lib/ibandit.rb +16 -0
- data/lib/ibandit/check_digit.rb +183 -0
- data/lib/ibandit/errors.rb +5 -0
- data/lib/ibandit/iban.rb +168 -0
- data/lib/ibandit/iban_builder.rb +528 -0
- data/lib/ibandit/structures.yml +703 -0
- data/lib/ibandit/version.rb +3 -0
- data/spec/ibandit/check_digit_spec.rb +130 -0
- data/spec/ibandit/iban_builder_spec.rb +853 -0
- data/spec/ibandit/iban_spec.rb +549 -0
- data/spec/spec_helper.rb +7 -0
- metadata +141 -0
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ibandit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Grey Baker
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec-its
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.1'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.28.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.28.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sax-machine
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.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.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: nokogiri
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.6'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.6'
|
83
|
+
description: Ibandit is a Ruby library for manipulating and validating IBANs. It allows
|
84
|
+
you to construct an IBAN from national banking details; deconstruct an IBAN into
|
85
|
+
national banking details; and validate an IBAN's check digits and format.
|
86
|
+
email:
|
87
|
+
- grey@gocardless.com
|
88
|
+
executables: []
|
89
|
+
extensions: []
|
90
|
+
extra_rdoc_files: []
|
91
|
+
files:
|
92
|
+
- .gitignore
|
93
|
+
- .rubocop.yml
|
94
|
+
- .rubocop_todo.yml
|
95
|
+
- CHANGELOG.md
|
96
|
+
- Gemfile
|
97
|
+
- LICENSE
|
98
|
+
- README.md
|
99
|
+
- TODO.md
|
100
|
+
- bin/build_structure_file.rb
|
101
|
+
- circle.yml
|
102
|
+
- data/IBANSTRUCTURE.xml
|
103
|
+
- data/IBAN_Registry.txt
|
104
|
+
- data/structure_additions.yml
|
105
|
+
- ibandit.gemspec
|
106
|
+
- lib/ibandit.rb
|
107
|
+
- lib/ibandit/check_digit.rb
|
108
|
+
- lib/ibandit/errors.rb
|
109
|
+
- lib/ibandit/iban.rb
|
110
|
+
- lib/ibandit/iban_builder.rb
|
111
|
+
- lib/ibandit/structures.yml
|
112
|
+
- lib/ibandit/version.rb
|
113
|
+
- spec/ibandit/check_digit_spec.rb
|
114
|
+
- spec/ibandit/iban_builder_spec.rb
|
115
|
+
- spec/ibandit/iban_spec.rb
|
116
|
+
- spec/spec_helper.rb
|
117
|
+
homepage: https://github.com/gocardless/ibandit
|
118
|
+
licenses:
|
119
|
+
- MIT
|
120
|
+
metadata: {}
|
121
|
+
post_install_message:
|
122
|
+
rdoc_options: []
|
123
|
+
require_paths:
|
124
|
+
- lib
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - '>='
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
requirements: []
|
136
|
+
rubyforge_project:
|
137
|
+
rubygems_version: 2.2.2
|
138
|
+
signing_key:
|
139
|
+
specification_version: 4
|
140
|
+
summary: Convert national banking details into IBANs, and vice-versa.
|
141
|
+
test_files: []
|