with_transactional_lock 2.2.0 → 2.3.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: d8147bfe089c9fa8afbb4b8752140c15e650d002eb28cc13f57f01ad19b324a1
4
- data.tar.gz: b7196af8ba019c67185b62a3362da2e112cccbf8fba68966117b5477f8a8d1c7
3
+ metadata.gz: 5e23e87e0f583421cd8059c2357cb938189754803f981411f6dac9111ba128df
4
+ data.tar.gz: 7294f251168099acfad4122609c6a0d5b2debb17edb6a66ebc65e5ea87f1efdb
5
5
  SHA512:
6
- metadata.gz: 18e0b1d67b273851c4f31135c2531b72cc1a1ebcf4deed90d2dcae1bcb45ac1e46466932fc0aaa03cbc6d49592a0969c7980f198dd75b7b6db1075c0dd4dc48b
7
- data.tar.gz: 13457b7faf99b4ab331d6e1fe494b935323c3793eaac5d503e102729a721b8b76b5a111b7e0c64de42e0d761e27b472381d756e7ce0e477ccd9ad5ee28871021
6
+ metadata.gz: 1e4984a3ea1ceda7c6a163b99eff34f6364ab37038da8a26e15ed01d5527a8775ac70b33db4c6dcbb8a8385528a62bdadb39a2983e05036a269f630a94b72338
7
+ data.tar.gz: 7f1a85d1c4372eaee6406cb95a8c3c7b45bd35b8ac3248d321c212e06b37f033a4628a4d29ce358d6fcef200e90a671405c9537b3bcf791f0f56f3d787aa5a0b
@@ -23,12 +23,12 @@ module WithTransactionalLock
23
23
  def self.locate(connection)
24
24
  adapter = connection.adapter_name.downcase.to_sym
25
25
  case adapter
26
- when :mysql, :mysql2
27
- MySqlAdvisoryLock
28
- when :postgresql
29
- PostgresAdvisoryLock
30
- else
31
- raise "adapter not supported: #{adapter}"
26
+ when :mysql, :mysql2
27
+ MySqlAdvisoryLock
28
+ when :postgresql
29
+ PostgresAdvisoryLock
30
+ else
31
+ raise "adapter not supported: #{adapter}"
32
32
  end
33
33
  end
34
34
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WithTransactionalLock
4
- VERSION = "2.2.0"
4
+ VERSION = "2.3.0"
5
5
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: with_transactional_lock
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-22 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -31,35 +31,41 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: '7.2'
33
33
  - !ruby/object:Gem::Dependency
34
- name: appraisal
34
+ name: railties
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 2.2.0
40
- type: :development
39
+ version: '7.0'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '7.2'
43
+ type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
- - - "~>"
47
+ - - ">="
45
48
  - !ruby/object:Gem::Version
46
- version: 2.2.0
49
+ version: '7.0'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '7.2'
47
53
  - !ruby/object:Gem::Dependency
48
- name: betterlint
54
+ name: appraisal
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
- - - ">="
57
+ - - "~>"
52
58
  - !ruby/object:Gem::Version
53
- version: '0'
59
+ version: 2.2.0
54
60
  type: :development
55
61
  prerelease: false
56
62
  version_requirements: !ruby/object:Gem::Requirement
57
63
  requirements:
58
- - - ">="
64
+ - - "~>"
59
65
  - !ruby/object:Gem::Version
60
- version: '0'
66
+ version: 2.2.0
61
67
  - !ruby/object:Gem::Dependency
62
- name: database_cleaner
68
+ name: betterlint
63
69
  requirement: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - ">="
@@ -73,7 +79,7 @@ dependencies:
73
79
  - !ruby/object:Gem::Version
74
80
  version: '0'
75
81
  - !ruby/object:Gem::Dependency
76
- name: mime-types
82
+ name: database_cleaner
77
83
  requirement: !ruby/object:Gem::Requirement
78
84
  requirements:
79
85
  - - ">="
@@ -118,16 +124,16 @@ dependencies:
118
124
  name: rspec-rails
119
125
  requirement: !ruby/object:Gem::Requirement
120
126
  requirements:
121
- - - "~>"
127
+ - - ">="
122
128
  - !ruby/object:Gem::Version
123
- version: '3.1'
129
+ version: '0'
124
130
  type: :development
125
131
  prerelease: false
126
132
  version_requirements: !ruby/object:Gem::Requirement
127
133
  requirements:
128
- - - "~>"
134
+ - - ">="
129
135
  - !ruby/object:Gem::Version
130
- version: '3.1'
136
+ version: '0'
131
137
  - !ruby/object:Gem::Dependency
132
138
  name: rspec-retry
133
139
  requirement: !ruby/object:Gem::Requirement
@@ -142,20 +148,6 @@ dependencies:
142
148
  - - ">="
143
149
  - !ruby/object:Gem::Version
144
150
  version: '0'
145
- - !ruby/object:Gem::Dependency
146
- name: sprockets
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '3.0'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '3.0'
159
151
  description: Advisory locking support for MySQL and Postgresql done right.
160
152
  email:
161
153
  - sam@betterment.com
@@ -169,7 +161,6 @@ files:
169
161
  - lib/generators/with_transactional_lock/install/install_generator.rb
170
162
  - lib/generators/with_transactional_lock/install/templates/README
171
163
  - lib/generators/with_transactional_lock/install/templates/db/migrate/create_transactional_advisory_locks.rb
172
- - lib/tasks/with_transactional_lock_tasks.rake
173
164
  - lib/with_transactional_lock.rb
174
165
  - lib/with_transactional_lock/engine.rb
175
166
  - lib/with_transactional_lock/mixin.rb
@@ -196,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
187
  - !ruby/object:Gem::Version
197
188
  version: '0'
198
189
  requirements: []
199
- rubygems_version: 3.5.6
190
+ rubygems_version: 3.5.23
200
191
  signing_key:
201
192
  specification_version: 4
202
193
  summary: Transactional advisory locks for ActiveRecord
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # desc "Explaining what the task does"
4
- # task :with_transactional_lock do
5
- # # Task goes here
6
- # end