relax-rb 0.2.1 → 0.2.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
  SHA1:
3
- metadata.gz: 01e01b5399433cf4c7fe11bae9447be897418b49
4
- data.tar.gz: 3a850a64c3034dda7878cece0b2f8c784c2c1207
3
+ metadata.gz: f069ff4029b634f6c2f18e2069a6a50c6a2d7441
4
+ data.tar.gz: 100010406406dfe03359c57065a09cef4d5267fb
5
5
  SHA512:
6
- metadata.gz: 9c882da40bce5602b95ab9d60b61a559d63b5e5a185f6df9484d84be0dfc41e068108113b149eb17461e810eba676334df1f0d67072b40c9d120270b80e7f056
7
- data.tar.gz: e806eb89696a809adce57f6c79cf1fdcd053d95401baf84c83997f4be023199b6770cb91a2c4b03d3b50c070e795e6e97dccfb97cdaf2ea4c6e230ba6a8a8e44
6
+ metadata.gz: e06a343fd1ec7c264213abcf65ef6a6fb250b5ea00e511c676ec998bee6955e835b5e1b3e53e2cd7e47f9a6d008c2ceeea2678d7bbdbba77b3d05224058201aa
7
+ data.tar.gz: 638c4ba842b0f5d874f942f73f0d51774694dda8b09dcc0afcfc3bf36c9a95706fe6b3db25c3f7e5c91700bf63ffd8651cbeb3647139a7fb669543ee25bb7fbc
data/lib/relax/base.rb CHANGED
@@ -9,9 +9,13 @@ module Relax
9
9
  redis_uri = URI.parse("redis://localhost:6379")
10
10
  end
11
11
 
12
- @@conn ||= ConnectionPool.new(timeout: 1, size: 2) do
13
- Redis.new(url: redis_uri, db: 0)
12
+ if !defined?(@@conn)
13
+ @@conn = ConnectionPool.new(timeout: 1, size: 2) do
14
+ Redis.new(url: redis_uri, db: 0)
15
+ end
14
16
  end
17
+
18
+ @@conn
15
19
  end
16
20
  end
17
21
  end
data/lib/relax/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Relax
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relax-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - arunthampi