spymemcached.jruby 1.0.7-java → 1.0.8-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.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97c21cdf9e531c371b41c16888058ad998488d11
|
4
|
+
data.tar.gz: 684c7b1e9355b9d1b7d8f3e29149f683a9a1cce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 330f2cef0eb215742935976c931dc0dc69dce1b5072431aba0c4e43bdfd16b92c2b7bed21b5b038c0abdd50850dee983b816cde5c78a3c3106f980cb0e894ee5
|
7
|
+
data.tar.gz: 25060f90b2d4cb0529acd0fcada6ec1069dd04fd78acd890e5b6c670b35cd09021b0ae15151c353790a645f37864ff1aeaab2cdf58a871c1f08c347031f8a061
|
data/lib/spymemcached.rb
CHANGED
@@ -32,8 +32,9 @@ class Spymemcached
|
|
32
32
|
#
|
33
33
|
# Logger: see Spymemcached for how to turn on detail log
|
34
34
|
#
|
35
|
-
def initialize(servers=
|
35
|
+
def initialize(servers=nil, options={})
|
36
36
|
@servers, @options = Array(servers).join(','), DEFAULT_OPTIONS.merge(options)
|
37
|
+
@servers = ['localhost:11211'] if @servers.empty?
|
37
38
|
@client = SpymemcachedAdapter.new(@servers, @options)
|
38
39
|
@namespace = if @options[:namespace]
|
39
40
|
@options[:namespace].is_a?(Proc) ? @options[:namespace] : lambda { @options[:namespace] }
|
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.8
|
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-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -77,7 +77,7 @@ files:
|
|
77
77
|
- test/spymemcached_rails23_test.rb
|
78
78
|
- test/spymemcached_test.rb
|
79
79
|
- test/test_helper.rb
|
80
|
-
homepage: https://github.com/
|
80
|
+
homepage: https://github.com/ThoughtWorksStudios/spymemcached.jruby
|
81
81
|
licenses:
|
82
82
|
- MIT
|
83
83
|
metadata: {}
|