wafris 0.8.1 → 0.8.2

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
  SHA256:
3
- metadata.gz: 8a2722b928a9589d9a25292b4116200e428fabfbbc7fa7d15e2eaada1a42927a
4
- data.tar.gz: c3b941f3ed47136b92731e62df8dbb9d47c29d0817bf85e5b974bcd7b01c9ca8
3
+ metadata.gz: 4648b968fb97b4c210848c124e505d4fd352f4d5c4342aff63aa972f82967db0
4
+ data.tar.gz: 7a13b0c631ba0dd8b7730c08743ca038e45da6bf2aee84e16c85ea4e87c57c73
5
5
  SHA512:
6
- metadata.gz: 8e52e73b5d385e3a81ee4f5845f50dc00cd52683b595db3e5cb4f47ca7e573d49343525b8c2d6de423f9f189752b82f47acb71240d298b509f1da9b72023313e
7
- data.tar.gz: b8cb1ccb52d9edc06756f78b277ff4ca2c2c39c94bea68e1e913b74dd620cf8033342759b232cfa086e6cf55f683729258cbb44488eca08f4d821ee751ab1929
6
+ metadata.gz: 6e6fba1bd54b344308e61629d1763d503c501d55304c84725ae55743410691ea7d92a6542cca96df26415126a3d6993bca062b5c88b315d33dff748e5182ad73
7
+ data.tar.gz: fe7c14c52b91ad41c8c8f2d92d7f6ddfe2c1285880e34c18904140f0cd9ffe41ee0de677bd84f39af198c97a4a6735bdc39bf255078a1e436551be74f27b75e5
@@ -6,20 +6,11 @@ module Wafris
6
6
  attr_accessor :redis_pool_size
7
7
 
8
8
  def initialize
9
- @redis = set_redis
9
+ @redis = Redis.new(
10
+ url: ENV['REDIS_URL'],
11
+ ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }
12
+ )
10
13
  @redis_pool_size = 20
11
- set_version
12
- end
13
-
14
- def set_redis
15
- if ENV['REDIS_URL']
16
- Redis.new(
17
- url: ENV['REDIS_URL'],
18
- ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }
19
- )
20
- else
21
- Redis.new
22
- end
23
14
  end
24
15
 
25
16
  def connection_pool
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wafris
4
- VERSION = "0.8.1"
4
+ VERSION = "0.8.2"
5
5
  end
data/lib/wafris.rb CHANGED
@@ -13,6 +13,7 @@ module Wafris
13
13
  class << self
14
14
  def configure
15
15
  yield configuration
16
+ configuration.set_version
16
17
  end
17
18
 
18
19
  def configuration
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wafris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micahel Buckbee