xunch 0.0.10 → 0.0.10.1

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/xunch/shard/redis.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b9efd0dbc507a067990707959bf7040723501b2
4
- data.tar.gz: 6db627302cd36ebb8c6920aeaef910c1bb3058ef
3
+ metadata.gz: e4675154dcdab18efb9f40343df82ff35bd43e9f
4
+ data.tar.gz: 47eba457b210aecbf72268eda35557b8f785bf57
5
5
  SHA512:
6
- metadata.gz: 2c0446b02a16207ac5fce8dc943052b5bfa6475eea11d45bb656e6cea6a72db7b624c506f3e39615ae9dfbd89501b98844955539c6d7ddf29a7632d6d9665303
7
- data.tar.gz: d5b99e32c4a5e9551983d80b6c4462115bdd0efed10bab866fa8fa8cf1e360daea095e080df87b8df001f786f0ce3dd03cdcb6c483f1dce4b839f2f5ba727a42
6
+ metadata.gz: 1e029ca1ed83d478e0231305779ae280f332098fb0cdf3d721cc0c9ffea5b211f5ce839f85d3328230d47f6dfcf3c31accd31193a8754f42d94b39991b962a4d
7
+ data.tar.gz: c424b62fef9d63c041332f59b3cb01bc47fa6ecf8f4f344649711ef6a4c4b9b6979bd4bf099f01a5f6e02dd365775186a02cdb5111b63c14557bbac69f72fd52
@@ -22,8 +22,8 @@ module Xunch
22
22
  options[:pool_timeout] = 1073741823
23
23
  end
24
24
  # p options[:driver]
25
- last_driver = Redis::Connection.drivers.last
26
- options[:driver] ||= last_driver[last_driver.rindex('.'), last_driver.length].to_sym
25
+ last_driver = Redis::Connection.drivers.last.name
26
+ options[:driver] ||= last_driver[last_driver.rindex(':') + 1, last_driver.length].to_sym
27
27
  if options[:driver] == :synchrony
28
28
  require "xunch/connection/fiber_redis_pool"
29
29
  # puts "fiber pool"
@@ -257,7 +257,7 @@ module Xunch
257
257
  end
258
258
  end
259
259
 
260
- private
260
+ private
261
261
  def with(&block)
262
262
  @pool.with(&block)
263
263
  end
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.10
4
+ version: 0.0.10.1
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-03-03 00:00:00.000000000 Z
11
+ date: 2014-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis