falls_back_on 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
 
22
22
  s.add_dependency 'cache_method'
23
- s.add_dependency 'lock_method'
23
+ s.add_dependency 'lock_method', '>=0.1.1'
24
24
  s.add_development_dependency 'test-unit'
25
25
  s.add_development_dependency 'memcached'
26
26
  s.add_development_dependency 'activerecord'
@@ -1,3 +1,3 @@
1
1
  module FallsBackOn
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
data/lib/falls_back_on.rb CHANGED
@@ -23,7 +23,7 @@ module FallsBackOn
23
23
  obj.send "#{k}=", v
24
24
  end
25
25
  rescue ::LockMethod::Locked
26
- $stderr.puts "#{self.to_s} was locked, retrying in 0.5 seconds..."
26
+ $stderr.puts "#{self.to_s} fallback calculation was locked, retrying in 0.5 seconds..." if ::ENV['FALLS_BACK_ON_DEBUG'] == 'true'
27
27
  sleep 0.5
28
28
  retry
29
29
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falls_back_on
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Seamus Abshere
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-02-24 00:00:00 -06:00
19
+ date: 2011-03-02 00:00:00 -06:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -41,10 +41,12 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- hash: 3
44
+ hash: 25
45
45
  segments:
46
46
  - 0
47
- version: "0"
47
+ - 1
48
+ - 1
49
+ version: 0.1.1
48
50
  type: :runtime
49
51
  version_requirements: *id002
50
52
  - !ruby/object:Gem::Dependency