creeper 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ branches:
5
+ only:
6
+ - master
@@ -86,7 +86,18 @@ module Creeper
86
86
  def self.redis(&block)
87
87
  @redis ||= Creeper::RedisConnection.create
88
88
  raise ArgumentError, "requires a block" if !block
89
- @redis.with(&block)
89
+ tries = 0
90
+ begin
91
+ @redis.with(&block)
92
+ rescue Redis::TimeoutError, Redis::ConnectionError
93
+ tries += 1
94
+ if tries < 30
95
+ sleep tries
96
+ retry
97
+ else
98
+ raise
99
+ end
100
+ end
90
101
  end
91
102
 
92
103
  def self.redis=(hash)
@@ -1,3 +1,3 @@
1
1
  module Creeper
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: creeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -249,6 +249,7 @@ files:
249
249
  - .gitignore
250
250
  - .rspec
251
251
  - .rvmrc
252
+ - .travis.yml
252
253
  - Gemfile
253
254
  - Guardfile
254
255
  - LICENSE
@@ -401,7 +402,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
401
402
  version: '0'
402
403
  segments:
403
404
  - 0
404
- hash: -3899601002688585292
405
+ hash: -3645396842965088324
405
406
  required_rubygems_version: !ruby/object:Gem::Requirement
406
407
  none: false
407
408
  requirements:
@@ -410,7 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
410
411
  version: '0'
411
412
  segments:
412
413
  - 0
413
- hash: -3899601002688585292
414
+ hash: -3645396842965088324
414
415
  requirements: []
415
416
  rubyforge_project:
416
417
  rubygems_version: 1.8.24