bank-validator 0.2.0 → 0.2.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: ce72710f7f5b48fe94d61e369c631410fd437571
4
- data.tar.gz: c70fa8f2e6775e95b94b6df61d28013eb9c064a1
3
+ metadata.gz: 75e778293f28fae436fd12a7a36b2de3139868de
4
+ data.tar.gz: e95a402a728da38a3bba1ff247765ce8950c2851
5
5
  SHA512:
6
- metadata.gz: 9b2818360426dde18ed7da0613ef33b993e789c94a5e537d5991226d69973359802a5abebb207bcecbde8db64235ed4f5e3946c07663d7e1d9c656c2a0bd998b
7
- data.tar.gz: 9160b86ea2a11feb65ffcbfe40e0f048fdf3d30d8c73111e813367661ed93e2970c4ff5b6957d694563374fa63afdef61a200f6b0fe6040cb98454043e0c01ae
6
+ metadata.gz: 2a6658578af3c9003c446d1b4c2f92b9a76f12448e3867eeb27ed2c8bcf955cfa0d7ce72d015fca9e7b340e8078288c660787800abff4a87f116c08cc1dacac7
7
+ data.tar.gz: 1d302fad9d55ee487fba7ae70085576a9515b74538905e464fcc0c23d3c9277da8e73b26a2bcb0192da2d24924d23afb5bf7dafcd8a31dcc4b9c9f0624c1d8a7
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # bank-validator
2
+
3
+ bank-validator lets you validate different bank account numbers. A validated number means that the number follows the correct format has the correct checksum, which means it *could* be a real bank account. Currently supported formats are:
4
+
5
+ * IBAN
6
+ * BIC
7
+ * ABA RTN
8
+
9
+ ## Usage
10
+
11
+ To use bank-validator follow these simple steps:
12
+
13
+ Add to your Gemfile:
14
+
15
+ `gem 'bank-validator'`
16
+
17
+ Or:
18
+
19
+ `gem install bank-validator`
20
+
21
+ Now you can use the validations in your models.
22
+
23
+ Let's assume you have a `User` model with string columns `iban`, `bic`, and `routing_number`. To validate these fields you would simply add the following lines to your `User.rb` file:
24
+
25
+ ```
26
+ validates :iban, iban: true
27
+ validates :bic, bic: true
28
+ validates :routing_number, routing_number: true
29
+ ```
30
+
31
+ Now you're ready to go!
32
+
33
+ ## Contributing to bank-validator
34
+
35
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
36
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
37
+ * Fork the project.
38
+ * Start a feature/bugfix branch.
39
+ * Commit and push until you are happy with your contribution.
40
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
41
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
42
+
43
+ ## Copyright
44
+
45
+ Copyright (c) 2015 Adam Bahlke. See LICENSE.txt for
46
+ further details.
47
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bank-validator 0.2.0 ruby lib
5
+ # stub: bank-validator 0.2.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bank-validator"
9
- s.version = "0.2.0"
9
+ s.version = "0.2.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -16,14 +16,14 @@ Gem::Specification.new do |s|
16
16
  s.email = "adam.bahlke@hitfoxgroup.com"
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
- "README.rdoc"
19
+ "README.md"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
23
  "Gemfile",
24
24
  "Gemfile.lock",
25
25
  "LICENSE.txt",
26
- "README.rdoc",
26
+ "README.md",
27
27
  "Rakefile",
28
28
  "VERSION",
29
29
  "bank-validator.gemspec",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bank-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Bahlke
@@ -142,13 +142,13 @@ executables: []
142
142
  extensions: []
143
143
  extra_rdoc_files:
144
144
  - LICENSE.txt
145
- - README.rdoc
145
+ - README.md
146
146
  files:
147
147
  - .document
148
148
  - Gemfile
149
149
  - Gemfile.lock
150
150
  - LICENSE.txt
151
- - README.rdoc
151
+ - README.md
152
152
  - Rakefile
153
153
  - VERSION
154
154
  - bank-validator.gemspec
data/README.rdoc DELETED
@@ -1,19 +0,0 @@
1
- = bank-validator
2
-
3
- Description goes here.
4
-
5
- == Contributing to bank-validator
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2015 Adam Bahlke. See LICENSE.txt for
18
- further details.
19
-