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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8d4d7966d9b0ce6a332d49403c16ca9033988b6
4
- data.tar.gz: 9f61647e54d25cb68de85fab6908f4e4d76f950a
3
+ metadata.gz: ba067e45d8556306e6808bdc40a2ad4dc1c35c1f
4
+ data.tar.gz: 0e015cb754598fe8144e9b3e7d58c9deb801a002
5
5
  SHA512:
6
- metadata.gz: 2963343a2f6b4ea668965a5c761031d7f8231ca98de7461a2832b3881fde534af4f4bed608997334500ab3daf455f86ce62b04cf02e8dd3e964fddbc523a6b4a
7
- data.tar.gz: eda85372d0c7ee7320ceeec1a951b6040f4867d834e5529bece9911ed259d30d22583d3e917074860192c67231bd812d68979dfab44de57495e7faa2387faa75
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/cozy-oss/bank_routing"
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) }
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "114994196": {
3
+ "alias": "Mango Money",
4
+ "prepaid_card": true,
5
+ "possible_fraud_vector": true
6
+ },
7
+ "073972181": {
8
+ "alias": "NetSpend",
3
9
  "prepaid_card": true,
4
10
  "possible_fraud_vector": true
5
11
  }
6
- }
12
+ }
@@ -1,4 +1,4 @@
1
1
  module BankRouting
2
2
  # bank_routing version
3
- VERSION = "0.0.3"
3
+ VERSION = "1.0.0"
4
4
  end
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.3
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-01-17 00:00:00.000000000 Z
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/cozy-oss/bank_routing
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.1.11
157
+ rubygems_version: 2.0.14
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Exposes bank routing information.