rails_kvs_driver-redis_driver 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/rails_kvs_driver/redis_driver/version.rb +1 -1
- data/rails_kvs_driver-redis_driver.gemspec +2 -2
- data/spec/common_example.rb +12 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bae204bb5e7740f513affc1be5562ea3352ecc0
|
4
|
+
data.tar.gz: d41b5871f142e939097b696e0adb7077e0b47067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aa4b20460a75f46d4e8271042dc95ace30755dcc543443b58c68ddf2e44cb3380bb761462103c5e9b92b8406f20eb6406e3370e8be3030a73a724c658ab076a
|
7
|
+
data.tar.gz: 796f00a3d2e04a3274c1f67eed885b0294dac7383d4133295c134e98dc62b2d6f09d16c458fa96cb8a3b1f419e569c9662a98b5750be6aa8600dc9f226312997
|
data/README.md
CHANGED
@@ -115,6 +115,9 @@ RailsKvsDriver::RedisDriver::Driver::session(driver_config) do |redis|
|
|
115
115
|
end
|
116
116
|
```
|
117
117
|
|
118
|
+
# API DOCUMENT
|
119
|
+
|
120
|
+
* [RailsKvsDriver-RedisDriver](http://rubydoc.info/github/alfa-jpn/rails_kvs_driver-redis_driver/master/frames)
|
118
121
|
|
119
122
|
|
120
123
|
## Contributing
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = RailsKvsDriver::RedisDriver::VERSION
|
9
9
|
spec.authors = ["alfa-jpn"]
|
10
10
|
spec.email = ["a.nkmr.ja@gmail.com"]
|
11
|
-
spec.description = "
|
11
|
+
spec.description = "rails_kvs_driver is available to use namespace and connection pool and ruby-like methods of kvs."
|
12
12
|
spec.summary = "redis driver for rails kvs driver."
|
13
13
|
spec.homepage = "https://github.com/alfa-jpn/rails_kvs_driver-redis_driver"
|
14
14
|
spec.license = "MIT"
|
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "yard"
|
25
25
|
|
26
26
|
spec.add_dependency "redis"
|
27
|
-
spec.add_dependency "rails_kvs_driver", "0.1.
|
27
|
+
spec.add_dependency "rails_kvs_driver", "0.1.6"
|
28
28
|
end
|
data/spec/common_example.rb
CHANGED
@@ -242,8 +242,18 @@ shared_examples_for 'RailsKvsDriver example' do |driver_class, driver_config|
|
|
242
242
|
driver_class::session(driver_config) do |kvs|
|
243
243
|
kvs.add_sorted_set('example', 'element', 10)
|
244
244
|
|
245
|
-
expect(kvs.sorted_sets.has_key?('example')).to
|
246
|
-
expect(kvs.sorted_sets.has_key?('nothing key')).to
|
245
|
+
expect(kvs.sorted_sets.has_key?('example')).to be_true
|
246
|
+
expect(kvs.sorted_sets.has_key?('nothing key')).to be_false
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
it 'call has_member?' do
|
251
|
+
driver_class::session(driver_config) do |kvs|
|
252
|
+
kvs.add_sorted_set('example', 'element', 10)
|
253
|
+
|
254
|
+
expect(kvs.sorted_sets.has_member?('example','element')).to be_true
|
255
|
+
expect(kvs.sorted_sets.has_member?('example','nothing member')).to be_false
|
256
|
+
expect(kvs.sorted_sets.has_member?('nothing key', 'element')).to be_false
|
247
257
|
end
|
248
258
|
end
|
249
259
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_kvs_driver-redis_driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alfa-jpn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,15 +86,16 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.1.
|
89
|
+
version: 0.1.6
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.1.
|
97
|
-
description:
|
96
|
+
version: 0.1.6
|
97
|
+
description: rails_kvs_driver is available to use namespace and connection pool and
|
98
|
+
ruby-like methods of kvs.
|
98
99
|
email:
|
99
100
|
- a.nkmr.ja@gmail.com
|
100
101
|
executables: []
|