redlocker 1.0.0 → 1.1.0

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
  SHA256:
3
- metadata.gz: e6b158d009f6f41ce941ec241da5e4249fb5d76fc88719065eb91bbaebba4346
4
- data.tar.gz: 3c8a024c05fab2a0d7d02409ecd2579da2c6491b3a0d1dc32de4980b6358d10c
3
+ metadata.gz: afd499be81e4fc93441db8d4f4f79a7454a94a1786985cb2481008c28865e3de
4
+ data.tar.gz: 0ac4863f2783b2c800260107f98143f447f16f54c3861460b754601e72418fe5
5
5
  SHA512:
6
- metadata.gz: f834ec0a9d74c682c37806678da7b4e38555b564c9af61b54cbfb3ab63bc538c0c19c5d59d18cb8d09e679086a6f51cfdaa9d1312f55f2529f819c0e2ce447be
7
- data.tar.gz: b3e712bac4dd7f199505a64ba5dc0b7367ab847864e5ed10fb52d2ae25a70915c0ff5a78d87e9f48bb114e356ee5ed098998e3a5e7f8e0191335848b4d373c2e
6
+ metadata.gz: edea2edcc4c5c82eed7a9dfefef7f08ff5e08d28c1eb89fdab3cdf6acbe8afe5cb04c535f3ca2476080e20048bdfebb163f2fefb0c7ef2509a89b257752b5025
7
+ data.tar.gz: 0ea331acf71e8e6eb9bd1d113e6b931b272197ee5e41b21eebb132954ee8f19ed915de48106628d8bc37d2da43c893ed74645af69663357246b04f433baa5b67
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.1.0
4
+
5
+ * Add lock name to timeout errors
6
+
3
7
  ## v1.0.0
4
8
 
5
9
  * Initial release
@@ -38,7 +38,7 @@ module Redlocker
38
38
  # acquired.
39
39
 
40
40
  def acquire(&block)
41
- raise(TimeoutError, "Did not get lock within #{timeout} seconds") unless acquire_lock
41
+ raise(TimeoutError, "Did not get lock #{name} within #{timeout} seconds") unless acquire_lock
42
42
 
43
43
  begin
44
44
  keep_lock(&block)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Redlocker
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redlocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Vetter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-16 00:00:00.000000000 Z
11
+ date: 2021-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec