global_uid 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/global_uid.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'global_uid'
16
- s.version = '1.2.4'
16
+ s.version = '1.2.5'
17
17
  s.date = '2012-03-13'
18
18
  s.rubyforge_project = 'global_uid'
19
19
 
@@ -164,11 +164,11 @@ module GlobalUid
164
164
  end
165
165
  end
166
166
 
167
- if errors.size == servers.size
168
- # The INCREDIBLY BAD CASE WHERE EVERYONE IS ERRORING!
169
- # Might as well start drinking if we hit this spot in the code.
170
- # note that at this point we're trying to retry on the next request.
171
- servers.each { |s| s[:retry_at] = Time.now - 5.minutes }
167
+ # in the case where all servers are gone, put everyone back in.
168
+ if servers.all? { |info| info[:cx].nil? }
169
+ servers.each do |info|
170
+ info[:retry_at] = Time.now - 5.minutes
171
+ end
172
172
  raise NoServersAvailableException, "Errors hit: #{errors.map(&:to_s).join(',')}"
173
173
  end
174
174
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global_uid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: