activejob-uniqueness 0.1.3 → 0.1.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
  SHA256:
3
- metadata.gz: 881d2ffd39454784d884cc4049639e2e4455d854deec87217c55a95c4f4a5869
4
- data.tar.gz: 469900d8be29af691e4efa9d883ba3d037dbbd06ac9ca7a6cf38b8cd0b2fb17d
3
+ metadata.gz: e3116a8a0c1f30bef14857117a4a43d125ea904816a0800ff2ed8b59136c1b3a
4
+ data.tar.gz: fc71b051b317e5edf19bb69e4896f3df92b054e6ae99776d3b9da69a6d3315e3
5
5
  SHA512:
6
- metadata.gz: c9907d17c12ff54e319d75253c7190a97b8114f7492e728d98b19ea94a14219722365f35e98422a3b2cd474d6aa14cb8c45bd5b7facfc68febdb541e14110c3a
7
- data.tar.gz: a4f99ea028e1290f7742d67025b04069c0bec2912bdf4b455f0e422b91c411e8adb6e0ad2193c3b7a0067f2921cdb3b7fe7bf2ff3f251258e87b931956f96112
6
+ metadata.gz: 4b712824c587e5062b52f21601c1e0f8fd04b89735ef15cc10ac9b701b04356c662cc4c5ced21c36c1c9bf91ae139361e7f27e855960ae6a464cf1cc49022df6
7
+ data.tar.gz: 16174ffa4a4e9c627c4e3be9172123c02f307e84c9c9409edd2290a9574ef6dfa8ab69fcab2410e1b25df39a3585d33a2b9cbab6068e33cb792854194ea24245
@@ -3,7 +3,13 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
5
5
 
6
- ## [Unreleased](https://github.com/veeqo/activejob-uniqueness/compare/v0.1.3...HEAD)
6
+ ## [Unreleased](https://github.com/veeqo/activejob-uniqueness/compare/v0.1.4...HEAD)
7
+
8
+ ## [0.1.4](https://github.com/veeqo/activejob-uniqueness/compare/v0.1.3...v0.1.4) - 2020-09-22
9
+
10
+ ### Fixed
11
+ - [#11](https://github.com/veeqo/activejob-uniqueness/pull/11) Fix deprecation warnings for ruby 2.7 by [@DanAndreasson](https://github.com/DanAndreasson)
12
+ - [#13](https://github.com/veeqo/activejob-uniqueness/pull/13) Fix deprecation warnings for ruby 2.7
7
13
 
8
14
  ## [0.1.3](https://github.com/veeqo/activejob-uniqueness/compare/v0.1.2...v0.1.3) - 2020-08-17
9
15
 
@@ -40,8 +40,8 @@ module ActiveJob
40
40
  @lock_manager ||= ActiveJob::Uniqueness::LockManager.new(config.redlock_servers, config.redlock_options)
41
41
  end
42
42
 
43
- def unlock!(*args)
44
- lock_manager.delete_locks(ActiveJob::Uniqueness::LockKey.new(*args).wildcard_key)
43
+ def unlock!(**args)
44
+ lock_manager.delete_locks(ActiveJob::Uniqueness::LockKey.new(**args).wildcard_key)
45
45
  end
46
46
 
47
47
  def test_mode!
@@ -12,7 +12,7 @@ module ActiveJob
12
12
  attr_reader :runtime_lock_ttl, :on_runtime_conflict
13
13
 
14
14
  def initialize(runtime_lock_ttl: nil, on_runtime_conflict: nil, **params)
15
- super(params)
15
+ super(**params)
16
16
  @runtime_lock_ttl = runtime_lock_ttl.present? ? runtime_lock_ttl.to_i * 1000 : lock_ttl
17
17
  @on_runtime_conflict = on_runtime_conflict || on_conflict
18
18
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveJob
4
4
  module Uniqueness
5
- VERSION = '0.1.3'
5
+ VERSION = '0.1.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activejob-uniqueness
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Sharshenov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-17 00:00:00.000000000 Z
11
+ date: 2020-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.0.6
161
+ rubygems_version: 3.1.4
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Ensure uniqueness of your ActiveJob jobs