bank_routing 1.0.0 → 1.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88bde94de995d591ff3d81b965520e43283061dd
|
4
|
+
data.tar.gz: 2bb2075b2c196d0f0e4d44f71e2db3ae983dd156
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 003ed0264f41dd7069f20e7c6ab8c79e76cec0539fbdac77c6a8400e18131ee4be352a5b26854637fa6f69d71a6f859ff67933eb3d970112e364d1b35f7d87b6
|
7
|
+
data.tar.gz: eb60cc1b4dd8ccbb089420044e0bb926a4e20757da48718edab82d990ba581eda9242c104ebd6a0d68f70955b3a506d6577f2aa31d0cf5e29cd51483c16b6d5f
|
data/README.md
CHANGED
@@ -8,6 +8,8 @@
|
|
8
8
|
|
9
9
|
Getting information about bank routing numbers is a huge pain. The authoritative source for this information is the Federal Reserve, and they only offer this information in a size-delimited text file available from their web site (that, by the way, has an iffy SSL certificate). This gem allows access to all of that information, plus a bunch of translations (mostly prettifying bank names) and extra metadata about the numbers and their corresponding institutions. This is an ongoing effort, and contributions are encouraged either in the code or in the JSON-encoded mapping and metadata files included in this repository.
|
10
10
|
|
11
|
+
A snapshot copy of the ACH directory is included in this package for testing purposes - it is not recommended that you use the included file in production environments. It is best to set the system to download a new ACH file on startup. The most current Federal Reserve ACH directory can always be found at http://www.fededirectory.frb.org/FedACHdir.txt .
|
12
|
+
|
11
13
|
## Example
|
12
14
|
|
13
15
|
```ruby
|
File without changes
|
File without changes
|
File without changes
|
@@ -182,11 +182,11 @@ class RoutingNumber
|
|
182
182
|
DefaultOptions = {
|
183
183
|
store_in: :memory,
|
184
184
|
routing_data_url: "https://www.fededirectory.frb.org/FedACHdir.txt",
|
185
|
-
routing_data_file: File.expand_path(File.dirname(__FILE__)) + "/FedACHdir.txt",
|
185
|
+
routing_data_file: File.expand_path(File.dirname(__FILE__)) + "/../../data/FedACHdir.txt",
|
186
186
|
fetch_fed_data: false,
|
187
187
|
store_opts: {},
|
188
|
-
mapping_file: File.expand_path(File.dirname(__FILE__) + "/mappings.json"),
|
189
|
-
metadata_file: File.expand_path(File.dirname(__FILE__) + "/metadata.json")
|
188
|
+
mapping_file: File.expand_path(File.dirname(__FILE__) + "/../../data/mappings.json"),
|
189
|
+
metadata_file: File.expand_path(File.dirname(__FILE__) + "/../../data/metadata.json")
|
190
190
|
}.freeze
|
191
191
|
|
192
192
|
def init!(opts = {})
|
data/lib/bank_routing/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bank_routing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cozy
|
@@ -126,10 +126,10 @@ files:
|
|
126
126
|
- README.md
|
127
127
|
- Rakefile
|
128
128
|
- bank_routing.gemspec
|
129
|
+
- data/FedACHdir.txt
|
130
|
+
- data/mappings.json
|
131
|
+
- data/metadata.json
|
129
132
|
- lib/bank_routing.rb
|
130
|
-
- lib/bank_routing/FedACHdir.txt
|
131
|
-
- lib/bank_routing/mappings.json
|
132
|
-
- lib/bank_routing/metadata.json
|
133
133
|
- lib/bank_routing/routing_numbers.rb
|
134
134
|
- lib/bank_routing/version.rb
|
135
135
|
- spec/bank_routing_spec.rb
|