xunch 0.0.9.1 → 0.0.9.2

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: bfa3acc12d6287ef825abf765898bf2d2437df18
4
- data.tar.gz: dbc34ae7e29cb0d4382342cd771f7efc21512040
3
+ metadata.gz: f9e243a498f5fb934616634590b4364264b0789e
4
+ data.tar.gz: a005e7788ad30122e25c275e9b163f29af22bea6
5
5
  SHA512:
6
- metadata.gz: 764eb9fc9264aac38fbc92b1863cd119cbb7d84d83ad3220cea36aa8273898b8d9a520469c5d8aa7fc9a3cb9ff40cdd468306721d4ab5bc08ed181fb2e63108b
7
- data.tar.gz: 5ccaff37bca70da67af1b82eeb2bb555f1062485cf0f3e7670a4a2f576b340140d1a154919a841881a88d27c8a1a0ef3e8599419940e0183598df6b89462f8a2
6
+ metadata.gz: 54586e08a65dc20c8e3a2ec360beeb3f4ab3ee76e8bd06b0b8768170f06a0989bfaf76b06b906a543f76de93ab036991cbcf682e8904d9a033c5afea120d8f8e
7
+ data.tar.gz: 7456d2bef5e619304a8ec0ec7c0460d03eb5e6b1f4cfee9f5a8a088ed22fc73bfbf5ded192273c061fcc7770a880f8cfa233a853ea9bf60dc2a90b1767690c56
@@ -6,6 +6,7 @@ module Xunch
6
6
  @available = [] # pool of free connections
7
7
  @pending = [] # pending reservations (FIFO)
8
8
  @pool_timeout = options[:pool_timeout]
9
+ p options[:size]
9
10
 
10
11
  options[:size].times do
11
12
  @available.push(redis = Redis.new(options))
@@ -9,7 +9,8 @@ module Xunch
9
9
  :password => nil,
10
10
  :timeout => nil,
11
11
  :db => 0,
12
- :weight => 1
12
+ :weight => 1,
13
+ :size => 1
13
14
  }
14
15
 
15
16
  def initialize(options)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xunch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9.1
4
+ version: 0.0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ted Wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-27 00:00:00.000000000 Z
11
+ date: 2014-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis