potlock 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7dd962c3aa384567b6785cb2e7a82a8fb31d50be3b2c3f228c249f72edf47800
4
- data.tar.gz: 6a78df19b8bc6d5c6dd70789529f557159a34446288f60c0433666b7a0576fe0
3
+ metadata.gz: d1b1d03ba7673ee19fa3bc43e646606eb5710c10b19857e5471fa5f15b6c7319
4
+ data.tar.gz: f9337bc18212f014131d8de6c6efdb0abbf6b65b8458567c1206500730168ac4
5
5
  SHA512:
6
- metadata.gz: 01cedb4706077fcfa12a778302d6a2878d368ac97379990001439ad2e149161bdccab46e4605be6c7514c3ddb7049331692559da6bc6d8cceb8a66e5cbd837df
7
- data.tar.gz: c0714d34a48015e239baca0d65ada1297d25245570d1365c8c47cfc31c9024c8e3dc5a2aceb4481a86a521a9699dd64268b883eef5081d3b1f9040c9c2a3760b
6
+ metadata.gz: 72dfb83f159611cce9173e61aec1c4f87f5006c782da69ff8e2e8c39af9b33042bc2fdeeb24709b7096e2726dcacb77b840c567846e7396ebe75732a31a0c090
7
+ data.tar.gz: 1dc88859c43abf29cf3a252fbbd187d3f73a4009a311a4bcfa1de491a980c8234b006fe037027e703b816a033717ca4a56ff5b14ee3c6cab8207e4200d3ed0f2
data/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
- ## [0.1.0] - 2021-09-29
1
+ ## [0.2.0] - 2021-11-16
2
+
3
+ - 1faf6da Bump version to 0.2.0
4
+ - f3fe257 Bump version to 0.1.2
5
+ - dc73659 Setter returns passed value
6
+
7
+ ## [0.1.1] - 2021-09-29
2
8
 
3
9
  - ebbcda8 Update Gemfile.lock
4
10
  - d07268d Bump version
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- potlock (0.1.1)
4
+ potlock (0.2.0)
5
5
  redlock (~> 1.2)
6
6
 
7
7
  GEM
@@ -30,6 +30,7 @@ module Potlock
30
30
  def set(&block)
31
31
  value = lock!(&block)
32
32
  redis.set(key, value)
33
+ value
33
34
  rescue Redlock::LockError => _e
34
35
  raise Potlock::LockError
35
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Potlock
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: potlock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibault Couraud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-29 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redlock
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.1.6
145
+ rubygems_version: 3.2.22
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Distributed Read-Write lock using redis.