bank_routing 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -0
- data/bank_routing.gemspec +1 -1
- data/lib/bank_routing/metadata.json +7 -1
- data/lib/bank_routing/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba067e45d8556306e6808bdc40a2ad4dc1c35c1f
|
4
|
+
data.tar.gz: 0e015cb754598fe8144e9b3e7d58c9deb801a002
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d6540ac06ea03a21e99a16e28040bc2faa7050cc998b9e5a9bc6bf1efdaae036c34deb076f8f2fa8eba4be91a3f2b40d036a4ed41c199f6aa2dde1f51d74aad
|
7
|
+
data.tar.gz: 1a790c50279fc9d5d8b3e18304b03e3b2e808571a46b2c422b896817df5a15d985512586fb3041f8c8f52bdd5e07de1b5287da83a56c7df7d082cc3336407d2b
|
data/README.md
CHANGED
@@ -19,6 +19,28 @@ RoutingNumber.get(121000358)["name"] # => "Bank of America"
|
|
19
19
|
|
20
20
|
$ gem install bank_routing
|
21
21
|
|
22
|
+
## Configuration
|
23
|
+
|
24
|
+
By default, the routing number database is loaded from a local copy of the Federal Reserve dump file and stored in memory (it's not really that big). To change that behavior:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
RoutingNumber.init!( store_in: :redis, store_opts: { db: 15 }, fetch_fed_data: true )
|
28
|
+
```
|
29
|
+
|
30
|
+
This will store the routing number database, after being loaded from the Federal Reserve website, into Redis in database number 15. Access works exactly the same.
|
31
|
+
|
32
|
+
You can also configure the service independently of loading the routing database. This works especially well in systems where there are child processes connecting to the same store (Redis, for example). In this case, the routing database will be loaded on first access (by the first child process of a Unicorn web server, for example) - it's essentially lazy-loaded, so a priming call is suggested after system startup. It is worth noting that if a shared data store is used (Redis), it will load the database only once, no matter how many processes attempt access.
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
RoutingNumber.options = {
|
36
|
+
store_in: :redis,
|
37
|
+
store_opts: {
|
38
|
+
db: 15
|
39
|
+
},
|
40
|
+
fetch_fed_data: true
|
41
|
+
}
|
42
|
+
```
|
43
|
+
|
22
44
|
## Copyright
|
23
45
|
|
24
46
|
Copyright (c) 2014 Cozy Services Ltd.
|
data/bank_routing.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.license = "MIT"
|
11
11
|
gem.authors = ["Cozy"]
|
12
12
|
gem.email = "oss@cozy.co"
|
13
|
-
gem.homepage = "https://github.com/
|
13
|
+
gem.homepage = "https://github.com/CozyCo/bank_routing"
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/lib/bank_routing/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bank_routing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cozy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -134,7 +134,7 @@ files:
|
|
134
134
|
- lib/bank_routing/version.rb
|
135
135
|
- spec/bank_routing_spec.rb
|
136
136
|
- spec/spec_helper.rb
|
137
|
-
homepage: https://github.com/
|
137
|
+
homepage: https://github.com/CozyCo/bank_routing
|
138
138
|
licenses:
|
139
139
|
- MIT
|
140
140
|
metadata: {}
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.0.14
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Exposes bank routing information.
|