spymemcached.jruby 1.0.5-java → 1.0.6-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spymemcached/rails23.rb +2 -2
- data/test/spymemcached_rails23_test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 851aefc720e9fdaab213529acb1fd7adae37cd3d
|
4
|
+
data.tar.gz: 7632fb094f798fa09ee6fd9faeb6dc7df75731be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d6583f571dc48a54ef0da6fca9bdae3258d95d8a01cf20f5fb6cd9891805f196845595c145aa7b0402aaa295cd9a816acde0e09c6a6c29e1c5339c05a8629e3
|
7
|
+
data.tar.gz: 64b8a8edd19cd0d801471f87887c714753cc8d6f93de219c9000882562a3af1fc498c7449093283257d786805c85a449063b4934badac25b0d5e940b82c57658
|
data/lib/spymemcached/rails23.rb
CHANGED
@@ -34,11 +34,11 @@ class Spymemcached
|
|
34
34
|
op(:delete, key) ? Response::DELETED : Response::NOT_FOUND
|
35
35
|
end
|
36
36
|
|
37
|
-
def incr(key, by=1)
|
37
|
+
def incr(key, by=1, *args)
|
38
38
|
op(:incr, key, by)
|
39
39
|
end
|
40
40
|
|
41
|
-
def decr(key, by=1)
|
41
|
+
def decr(key, by=1, *args)
|
42
42
|
op(:decr, key, by)
|
43
43
|
end
|
44
44
|
|
@@ -18,8 +18,8 @@ class SpymemcachedRails23Test < Test::Unit::TestCase
|
|
18
18
|
@client.set("key2", '1')
|
19
19
|
assert_equal({"key1" => '0', 'key2' => '1'}, @client.get_multi('key1', 'key2'))
|
20
20
|
|
21
|
-
assert_equal 1, @client.incr('key1')
|
22
|
-
assert_equal 0, @client.decr('key2')
|
21
|
+
assert_equal 1, @client.incr('key1', 1, ttl=0)
|
22
|
+
assert_equal 0, @client.decr('key2', 1, ttl=0)
|
23
23
|
|
24
24
|
assert @client.stats.values.first
|
25
25
|
end
|
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.6
|
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-10-
|
11
|
+
date: 2014-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|