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 +4 -4
- data/lib/norton/version.rb +1 -1
- data/lib/norton.rb +3 -3
- data/norton.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c89415440b323b271c5897927a73e8d272a16561
|
4
|
+
data.tar.gz: f4a82ea218cb03c067e222f3d7a3cdafaee9d9c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb0ba052090f2b4d687f1f11def1d3f9ada80ca4ac894427bffa94938b0485574a8a99c633e10fc69a803892b1359b379beea8531f879d3ac13fc32e7ab1e9c0
|
7
|
+
data.tar.gz: a79e8d1b49987a9fe0dca3eb7e692fe20fa600b377e7df88d197edfbf17e2e2555cd6601b32f7e050e56b58b263d118275d2607cc295de367d3a057a1a5a5d6e
|
data/lib/norton/version.rb
CHANGED
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
|
26
|
-
Redis.new(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", "
|
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.
|
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:
|
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.
|
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.
|
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.
|
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
|