ssdb-attr 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77d806f87994fae0d7e5e0c34cf79c09f7a1db07
4
- data.tar.gz: 39074f54ad727b2e116c743298df7331bbc89ce4
3
+ metadata.gz: 31499311caa45d7129e0a6c0d79a391db919ec93
4
+ data.tar.gz: b345e7431fa1263c4f5c714a76fb23b762443a3a
5
5
  SHA512:
6
- metadata.gz: f2bb82cbaebdc00554a720221da4c3d4f504d6d395ef2598ed6fdfef369ce130741112d25316214996ee5c1cee12154a88770b3b5b3dcc1aa64d37e4a626e66b
7
- data.tar.gz: 2342c7f01bfb32af6088260f031a782394ebd848f4c971f004e127e4ce61c7bb07ed33c341c4d83acba45899850d8b650e0a95c124ee9749c673adc5543af2df
6
+ metadata.gz: 3b164bab058e911c7bd893c70c07f0907f966f5e9d074f18df619443813e3b77ea04c7d461a1c623baca0514d5c65863e7a930e37034e595dc7e12410b526f2a
7
+ data.tar.gz: 3a319604d98f756e0f0ab569aeff4f03a5e5d6a60b862d4ab2a2dc3456e2531384a2f30156a06dcd6e1a0813f82add9ee4b4332b892ceeae3cf45a44de863ec1
data/lib/ssdb-attr.rb CHANGED
@@ -14,7 +14,11 @@ module SSDBAttr
14
14
  timeout = (options[:timeout] || 2).to_i
15
15
 
16
16
  SSDBAttr.pool = ConnectionPool.new(size: pool_size, timeout: timeout) do
17
- Redis.new(url: options[:url])
17
+ if options[:url].present?
18
+ Redis.new(url: options[:url])
19
+ else
20
+ Redis.new(host: options[:host], port: options[:port])
21
+ end
18
22
  end
19
23
  end
20
24
  end
@@ -1,3 +1,3 @@
1
1
  module SSDBAttr
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssdb-attr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Larry Zhao