distributed_mutex 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/mysql_mutex.rb +23 -23
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.2
1
+ 1.1.3
data/lib/mysql_mutex.rb CHANGED
@@ -84,26 +84,26 @@ class MySQLMutex < DistributedMutex
84
84
 
85
85
  end
86
86
 
87
- at_exit do
88
- rails_logger = defined?(Rails) && Rails.respond_to?(:logger) && Rails.logger
89
- begin
90
- locks = MySQLMutex.active_locks
91
- locks.delete_if do |k, v|
92
- v.empty?
93
- end
94
-
95
- if locks.size > 0
96
- if rails_logger
97
- rails_logger.error("MySQLMutex: Locks still active! - #{locks.inspect}")
98
- else
99
- STDERR.puts("MySQLMutex: Locks still active! - #{locks.inspect}")
100
- end
101
- end
102
- rescue => err
103
- if rails_logger
104
- rails_logger.error("MySQLMutex: #{err.message}")
105
- else
106
- STDERR.puts("MySQLMutex: #{err.message}")
107
- end
108
- end
109
- end
87
+ # at_exit do
88
+ # rails_logger = defined?(Rails) && Rails.respond_to?(:logger) && Rails.logger
89
+ # begin
90
+ # locks = MySQLMutex.active_locks
91
+ # locks.delete_if do |k, v|
92
+ # v.empty?
93
+ # end
94
+ #
95
+ # if locks.size > 0
96
+ # if rails_logger
97
+ # rails_logger.error("MySQLMutex: Locks still active! - #{locks.inspect}")
98
+ # else
99
+ # STDERR.puts("MySQLMutex: Locks still active! - #{locks.inspect}")
100
+ # end
101
+ # end
102
+ # rescue => err
103
+ # if rails_logger
104
+ # rails_logger.error("MySQLMutex: #{err.message}")
105
+ # else
106
+ # STDERR.puts("MySQLMutex: #{err.message}")
107
+ # end
108
+ # end
109
+ # end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distributed_mutex
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 2
10
- version: 1.1.2
9
+ - 3
10
+ version: 1.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Birkir A. Barkarson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-08 00:00:00 +09:00
18
+ date: 2011-11-17 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies: []
21
21