finicity-ruby 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: ff94ad68c52843464a17802b5f6322d226a0d5e9
4
- data.tar.gz: 98254830bb29dcab441aecd9d0365fdcd05ac7c3
3
+ metadata.gz: dd78fcecab7120c6aa9078532ea076139d4ce683
4
+ data.tar.gz: c0cd6b70eb620fb4d5c34508d9f6c1b5d65a727c
5
5
  SHA512:
6
- metadata.gz: 4adbb085e03e3479435deab13a49986590cfdd609fac99f99e7e41ce18642db812d14cc240618c90b24ccdd9c595e3367990261c68fc1111298307440ff49cd8
7
- data.tar.gz: 5537f9ebbec5479ed4de430b76e33e01fc83bcdbdd4eca29dffe1481f34225e8d4d7a137b1f005c1d40b2605608ec37716b7f195a10af5f5530a6135d13ba1e1
6
+ metadata.gz: 9d957eec20a9940fd75863c5ea58fc6a887cddf319828a275c4e9ef4ecce9d62da8456122ec25b5f166c7b8073cf28c48686648c29b5d402a46d5260ea1e730a
7
+ data.tar.gz: edf307e1c38db99bad3789811e99558422a48f88c9ab3c933e6a2061c0919a1f828315dfc6c1f5381d2f2061bdb199816938c055df4debda58209a6688054933
@@ -2,10 +2,15 @@ require "hashie"
2
2
 
3
3
  module Finicity
4
4
  module Configurable
5
- KEYS = [:redis_url, :app_key, :partner_id, :partner_secret, :max_retries, :app_type, :verbose].freeze
5
+ KEYS = [:redis_url, :redis, :app_key, :partner_id, :partner_secret, :max_retries, :app_type, :verbose].freeze
6
6
 
7
7
  attr_writer(*KEYS)
8
8
 
9
+ def redis_url=(url)
10
+ @redis_url = url
11
+ @redis = Redis.new(url: url)
12
+ end
13
+
9
14
  def configure
10
15
  yield self
11
16
  self
@@ -42,7 +42,7 @@ module Finicity
42
42
  end
43
43
 
44
44
  def redis
45
- Redis.new(url: Finicity.configs.redis_url)
45
+ Finicity.configs.redis
46
46
  end
47
47
  end
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module Finicity
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finicity-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Azzurrio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-07 00:00:00.000000000 Z
11
+ date: 2016-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie