master_lock 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/master_lock/version.rb +1 -1
- data/lib/master_lock.rb +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4fb4087494485dfb3639dc4e19c949d7244673c
|
4
|
+
data.tar.gz: ba1dc4d3a13cf1ab663f4392c9d84b564201522e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e8b1f7359945855b1b744e6057efac28140e941c80f439ba641873d9b8edc08a1debc3d8147ebdd383a4048c0b8fa3cf639833a581cb4a93246de4b366403e0
|
7
|
+
data.tar.gz: 5e7d5230f3c110f2228ffa1a3db9d5e07154ff658e32aff5e818f5c944a9b7adea42f08d3ecc1f4b9419b01a31e36030a4d089b72efb16aac782c9bf56fa34ce
|
data/lib/master_lock/version.rb
CHANGED
data/lib/master_lock.rb
CHANGED
@@ -30,7 +30,6 @@ module MasterLock
|
|
30
30
|
:hostname,
|
31
31
|
:logger,
|
32
32
|
:key_prefix,
|
33
|
-
:process_id,
|
34
33
|
:redis,
|
35
34
|
:sleep_time,
|
36
35
|
:ttl
|
@@ -127,7 +126,6 @@ module MasterLock
|
|
127
126
|
@config.logger = Logger.new(STDOUT)
|
128
127
|
@config.logger.progname = name
|
129
128
|
@config.key_prefix = DEFAULT_KEY_PREFIX
|
130
|
-
@config.process_id = Process.pid
|
131
129
|
@config.sleep_time = DEFAULT_SLEEP_TIME
|
132
130
|
@config.ttl = DEFAULT_TTL
|
133
131
|
end
|
@@ -149,7 +147,7 @@ module MasterLock
|
|
149
147
|
end
|
150
148
|
|
151
149
|
def generate_owner
|
152
|
-
"#{config.hostname}:#{
|
150
|
+
"#{config.hostname}:#{Process.pid}:#{Thread.current.object_id}"
|
153
151
|
end
|
154
152
|
end
|
155
153
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: master_lock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Posen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|