que-unique 0.1.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/que/unique/transaction_class_methods.rb +3 -14
- data/lib/que/unique/version.rb +1 -1
- data/lib/que/unique.rb +1 -0
- metadata +92 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea8fcf7460687578d7e50d3d3535553ba829579d61fdbe081908a8d45b31284e
|
4
|
+
data.tar.gz: 4b822366ff0088d4670a4b6aafa70ee2a9a7a56cb5a5465c68949d80bf7337d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18f4717b0b0d33529aacf8bed1573517f95848a1df0f9fb5a354e381a52b2a8b48cad3bda63edb07f049a47f6647710d934737d79960fae60168f2c1c7bfa125
|
7
|
+
data.tar.gz: c039e4c58d44fae4e06a81a021202870fc0e0e2915a01fbd1945d83b46448b6c2cd186d96110ecb2a089ddbc8c2dc2d89d51169bec61dcb91ed7ba761be2a875
|
@@ -8,24 +8,13 @@ require_relative "constants"
|
|
8
8
|
module Que
|
9
9
|
module Unique
|
10
10
|
module TransactionClassMethods
|
11
|
-
def
|
11
|
+
def transaction(...)
|
12
12
|
start_que_unique_handled_transaction
|
13
|
-
|
13
|
+
super(...)
|
14
14
|
ensure
|
15
15
|
end_que_unique_handled_transaction
|
16
16
|
end
|
17
17
|
|
18
|
-
class << self
|
19
|
-
def extended(base)
|
20
|
-
base.class_eval do
|
21
|
-
class << self
|
22
|
-
alias_method :transaction_without_unique_que, :transaction
|
23
|
-
alias_method :transaction, :transaction_with_unique_que
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
18
|
private
|
30
19
|
|
31
20
|
def start_que_unique_handled_transaction
|
@@ -49,4 +38,4 @@ module Que
|
|
49
38
|
end
|
50
39
|
end
|
51
40
|
|
52
|
-
ActiveRecord::
|
41
|
+
ActiveRecord::ConnectionAdapters::DatabaseStatements.prepend Que::Unique::TransactionClassMethods
|
data/lib/que/unique/version.rb
CHANGED
data/lib/que/unique.rb
CHANGED
metadata
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: que-unique
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bamboo Engineering
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '8.0'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '6.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '8.0'
|
@@ -34,16 +34,36 @@ dependencies:
|
|
34
34
|
name: que
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.14'
|
40
|
+
- - "<"
|
38
41
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
42
|
+
version: 3.0.0
|
40
43
|
type: :runtime
|
41
44
|
prerelease: false
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
43
46
|
requirements:
|
44
|
-
- - "
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.14'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 3.0.0
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: appraisal
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
type: :development
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
45
65
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0
|
66
|
+
version: '0'
|
47
67
|
- !ruby/object:Gem::Dependency
|
48
68
|
name: combustion
|
49
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,6 +78,34 @@ dependencies:
|
|
58
78
|
- - ">="
|
59
79
|
- !ruby/object:Gem::Version
|
60
80
|
version: '0'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: database_cleaner
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: fasterer
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
61
109
|
- !ruby/object:Gem::Dependency
|
62
110
|
name: pg
|
63
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,6 +148,20 @@ dependencies:
|
|
100
148
|
- - ">="
|
101
149
|
- !ruby/object:Gem::Version
|
102
150
|
version: '0'
|
151
|
+
- !ruby/object:Gem::Dependency
|
152
|
+
name: reek
|
153
|
+
requirement: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
type: :development
|
159
|
+
prerelease: false
|
160
|
+
version_requirements: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
103
165
|
- !ruby/object:Gem::Dependency
|
104
166
|
name: rspec
|
105
167
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,7 +204,21 @@ dependencies:
|
|
142
204
|
- - ">="
|
143
205
|
- !ruby/object:Gem::Version
|
144
206
|
version: '0'
|
145
|
-
|
207
|
+
- !ruby/object:Gem::Dependency
|
208
|
+
name: rubocop-rspec
|
209
|
+
requirement: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - ">="
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '0'
|
214
|
+
type: :development
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
description:
|
146
222
|
email:
|
147
223
|
- dev@bambooloans.com
|
148
224
|
executables: []
|
@@ -160,7 +236,8 @@ metadata:
|
|
160
236
|
homepage_uri: https://github.com/bambooengineering/que-unique
|
161
237
|
source_code_uri: https://github.com/bambooengineering/que-unique
|
162
238
|
changelog_uri: https://github.com/bambooengineering/que-unique/CHANGELOG.md
|
163
|
-
|
239
|
+
rubygems_mfa_required: 'true'
|
240
|
+
post_install_message:
|
164
241
|
rdoc_options: []
|
165
242
|
require_paths:
|
166
243
|
- lib
|
@@ -168,15 +245,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
168
245
|
requirements:
|
169
246
|
- - ">="
|
170
247
|
- !ruby/object:Gem::Version
|
171
|
-
version: '0'
|
248
|
+
version: '3.0'
|
172
249
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
250
|
requirements:
|
174
251
|
- - ">="
|
175
252
|
- !ruby/object:Gem::Version
|
176
253
|
version: '0'
|
177
254
|
requirements: []
|
178
|
-
rubygems_version: 3.
|
179
|
-
signing_key:
|
255
|
+
rubygems_version: 3.3.26
|
256
|
+
signing_key:
|
180
257
|
specification_version: 4
|
181
258
|
summary: A gem that removes duplicates when multiple copies of a que job are enqueued.
|
182
259
|
test_files: []
|