db_lock 0.3 → 0.4

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: b31aa49ced9bf1f6fc1ae0ebc3018a7feb1e3738
4
- data.tar.gz: 8de321f98a12ad5da8dd5906e7a2753e0e13b7e2
3
+ metadata.gz: 7230e5421d955e3ed7e9903b2a730bcde5200bb4
4
+ data.tar.gz: 551309356ff9e36e28a657f5d981d5dd5fd8cec0
5
5
  SHA512:
6
- metadata.gz: 701e854fdb2411b7754e2adad66f9441a16a2dcab2c0331424b2b45de3f7bea6ca8e08bdd5c67f1d18069cd5e4696b2af1cb33eb6659d7b1c70b04b682bfbd88
7
- data.tar.gz: b686dd636d4e69708112fbac457525ecd5f692f0152d132752c8250e64d2c6bdfae5a1f71deedde790b685388f8b5019f2fb686a41aa9f3de4435a03e8fd8423
6
+ metadata.gz: 5a4778d48baed0e2cd1c80e7473c8a5146cf3a9376a1635568b115bc69e8d687407e2ab5aae8d2ccffd2ce6e1c87208ba8f3e08cff0ddd27042289175e07ed68
7
+ data.tar.gz: 8e16aa30a9f515abe1f4628642e30495dbc0fc6dde3a74ec7e14dfd501e640e7fb198412ef658451c611d7293696b8b19a2d610dc7e8b3d4bd975aa60ac2299f
data/config/database.yml CHANGED
File without changes
data/lib/db_lock.rb CHANGED
@@ -4,7 +4,7 @@ module DBLock
4
4
  class Lock
5
5
  class << self
6
6
  def get(name, timeout=0)
7
- timeout = timeout.to_i # catches nil
7
+ timeout = timeout.to_f # catches nil
8
8
  timeout = 0 if timeout < 0
9
9
  raise "Invalid lock name: #{name.inspect}" if name.empty?
10
10
  raise AlreadyLocked.new("Already lock in progress") if locked?
@@ -1,3 +1,3 @@
1
1
  module DBLock
2
- VERSION = "0.3"
2
+ VERSION = "0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_lock
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - mkon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-13 00:00:00.000000000 Z
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord