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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ab9ca1ac176e6f632f6c3d71ed4008bec96df23
4
- data.tar.gz: 43f2c87012e46141d08990ae8e5ce4badfba36e5
3
+ metadata.gz: a4fb4087494485dfb3639dc4e19c949d7244673c
4
+ data.tar.gz: ba1dc4d3a13cf1ab663f4392c9d84b564201522e
5
5
  SHA512:
6
- metadata.gz: 4f5a952ef00b065ef69563acdb808a2921726229be3ea9c78bf15b6070804ae8d8020f3cea5fd2e27f6ce52ae69d7bc13c4ec1d1a7dc6d9072cee626af4c4a19
7
- data.tar.gz: 82d2e7768c6d528d211f53870b06296194b328fb0ce4f703cfdd6e31287a1a8514a73c0f9a0db4776b194b9c32b1f0296d73738b9eeb83b20dfaa89e3548917f
6
+ metadata.gz: 0e8b1f7359945855b1b744e6057efac28140e941c80f439ba641873d9b8edc08a1debc3d8147ebdd383a4048c0b8fa3cf639833a581cb4a93246de4b366403e0
7
+ data.tar.gz: 5e7d5230f3c110f2228ffa1a3db9d5e07154ff658e32aff5e818f5c944a9b7adea42f08d3ecc1f4b9419b01a31e36030a4d089b72efb16aac782c9bf56fa34ce
@@ -1,3 +1,3 @@
1
1
  module MasterLock
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
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}:#{config.process_id}:#{Thread.current.object_id}"
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2016-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis