norton 0.0.17 → 0.0.18

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: 4319dc01ad48accc355a4c17cb49422a28c4af9b
4
- data.tar.gz: f8c24a68eba1e10c92030d770fb7df427fe10de8
3
+ metadata.gz: c89415440b323b271c5897927a73e8d272a16561
4
+ data.tar.gz: f4a82ea218cb03c067e222f3d7a3cdafaee9d9c0
5
5
  SHA512:
6
- metadata.gz: c432e3cd78e1ef3994c18b6c0d8d22dce6529cf1eb557e557eff158f5120456358ece24f401b8e6e9c4aac8aa55078e8bef0e58b18efa0e2573a78545e98fef0
7
- data.tar.gz: 757a1784c0285d94f3b9817d701b741e2ecf9f8f5cca3e79a30d41d791afe724c00a2ca9abe0f7895e10ada861d1a72ce135a13515561303b49f0f58eceeb3dc
6
+ metadata.gz: cb0ba052090f2b4d687f1f11def1d3f9ada80ca4ac894427bffa94938b0485574a8a99c633e10fc69a803892b1359b379beea8531f879d3ac13fc32e7ab1e9c0
7
+ data.tar.gz: a79e8d1b49987a9fe0dca3eb7e692fe20fa600b377e7df88d197edfbf17e2e2555cd6601b32f7e050e56b58b263d118275d2607cc295de367d3a057a1a5a5d6e
@@ -1,3 +1,3 @@
1
1
  module Norton
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
data/lib/norton.rb CHANGED
@@ -22,9 +22,9 @@ module Norton
22
22
  pool_size = (options[:pool] || 1).to_i
23
23
  timeout = (options[:timeout] || 2).to_i
24
24
 
25
- Norton.redis = ConnectionPool.new(size: pool_size, timeout: timeout) do
26
- Redis.new(url: options[:url])
25
+ Norton.redis = ConnectionPool.new(:size => pool_size, :timeout => timeout) do
26
+ Redis.new(options.slice(:url, :host, :port, :db, :path, :password, :namespace, :ssl_params, :driver))
27
27
  end
28
28
  end
29
29
  end
30
- end
30
+ end
data/norton.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "redis", "~> 3.2.1"
21
+ spec.add_dependency "redis", ">= 3.2.0"
22
22
  spec.add_dependency "connection_pool", "~> 2.2.0"
23
23
  spec.add_dependency "activesupport", "~> 4.1"
24
24
 
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: norton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Larry Zhao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-26 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.1
19
+ version: 3.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.1
26
+ version: 3.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: connection_pool
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  requirements: []
167
167
  rubyforge_project:
168
- rubygems_version: 2.4.7
168
+ rubygems_version: 2.5.1
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Provide simple helpers on persist values in redis for performance. Works