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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/spymemcached.rb +2 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1193b806e0f10e5614d045d8caff971a0f3c1f40
4
- data.tar.gz: d3815486843195c3283c5edeacbb6d2c97d5190a
3
+ metadata.gz: 97c21cdf9e531c371b41c16888058ad998488d11
4
+ data.tar.gz: 684c7b1e9355b9d1b7d8f3e29149f683a9a1cce7
5
5
  SHA512:
6
- metadata.gz: feebac09805bf08357710cf7ff2916e991dc18c64124682a152ae486a563dde48fa7dd247d2c5c0f50a6c9278c23d782eee2b20eb2fdab25697f40761d3f401f
7
- data.tar.gz: 87626fa88fc1818dd523f4515fa49bf887267e97d59264b24049fca0e157190b021375491f22e6febe4f024180eb1a9a290f6fbc7a8b6123edce99f98846080f
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=['localhost:11211'], options={})
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.7
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-30 00:00:00.000000000 Z
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/xli/spymemcached.jruby
80
+ homepage: https://github.com/ThoughtWorksStudios/spymemcached.jruby
81
81
  licenses:
82
82
  - MIT
83
83
  metadata: {}