spymemcached.jruby 1.0.11-java → 1.0.12-java
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fef73d46866215d32cbe93c671d25b89b9661d2
|
4
|
+
data.tar.gz: 9012c67d747885258945133db1477507119c03bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b079ee7292b105ad2b60a48b15c161b724861c04debeb2097ffcc5ac06979317a57394283c92faa43485d82527ecadb9bf0e7ffe0c3a50de69f8bbce199c255
|
7
|
+
data.tar.gz: 48c557725e890b1c677d25229a1b4904c576a9afdb3ec05a4635b34665c6ce5dffa39c9118b3cb7fac7f582b298832a082b53852ae18d6b75bc45ad7e1c2fd97
|
data/lib/spymemcached.rb
CHANGED
@@ -39,6 +39,11 @@ class SpymemcachedBinaryProtocolTest < Test::Unit::TestCase
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def test_incr_and_decr
|
42
|
+
assert_equal 1, @client.incr('incr-key', 1)
|
43
|
+
assert_equal '1', @client.get('incr-key')
|
44
|
+
assert_equal 0, @client.decr('decr-key', 1)
|
45
|
+
assert_equal '0', @client.get('decr-key')
|
46
|
+
|
42
47
|
@client.add('key', '0', 0, :raw => true)
|
43
48
|
assert_equal 0, @client.incr('key', 0)
|
44
49
|
@client.incr('key')
|
@@ -39,6 +39,11 @@ class SpymemcachedPlainProtocolTest < Test::Unit::TestCase
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def test_incr_and_decr
|
42
|
+
assert_equal 1, @client.incr('incr-key', 1)
|
43
|
+
assert_equal '1', @client.get('incr-key')
|
44
|
+
assert_equal 0, @client.decr('decr-key', 1)
|
45
|
+
assert_equal '0', @client.get('decr-key')
|
46
|
+
|
42
47
|
@client.add('key', '0', 0, :raw => true)
|
43
48
|
assert_equal 0, @client.incr('key', 0)
|
44
49
|
@client.incr('key')
|
data/test/spymemcached_test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spymemcached.jruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Xiao Li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|