activerecord-transactionable 3.0.3 → 3.0.4
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +133 -0
- data/LICENSE.md +11 -0
- data/README.md +394 -246
- data/lib/activerecord/transactionable/result.rb +2 -2
- data/lib/activerecord/transactionable/version.rb +5 -1
- data/lib/activerecord/transactionable.rb +9 -9
- data/sig/activerecord/transactionable.rbs +8 -0
- data.tar.gz.sig +0 -0
- metadata +231 -60
- metadata.gz.sig +0 -0
- data/CODE_OF_CONDUCT.md +0 -84
- data/CONTRIBUTING.md +0 -47
- data/LICENSE.txt +0 -21
- data/SECURITY.md +0 -16
|
@@ -29,7 +29,7 @@ module Activerecord
|
|
|
29
29
|
type: type,
|
|
30
30
|
context: context,
|
|
31
31
|
nested: nested,
|
|
32
|
-
attempt: attempt
|
|
32
|
+
attempt: attempt
|
|
33
33
|
}
|
|
34
34
|
if !skip_error && error
|
|
35
35
|
diagnostic_data[:error] = error.class.to_s
|
|
@@ -39,7 +39,7 @@ module Activerecord
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def to_s(skip_error: nil)
|
|
42
|
-
to_h(skip_error: skip_error).
|
|
42
|
+
to_h(skip_error: skip_error).map { |key, value| "#{key.inspect}=>#{value.inspect}" }.join(", ").prepend("{").concat("}")
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
end
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
module Activerecord
|
|
4
4
|
module Transactionable
|
|
5
|
+
# Version namespace for this gem.
|
|
5
6
|
module Version
|
|
6
|
-
|
|
7
|
+
# Current gem version.
|
|
8
|
+
VERSION = "3.0.4"
|
|
7
9
|
end
|
|
10
|
+
# Current gem version exposed at the traditional constant location.
|
|
11
|
+
VERSION = Version::VERSION # Traditional Constant Location
|
|
8
12
|
end
|
|
9
13
|
end
|
|
@@ -7,8 +7,8 @@ require "active_record"
|
|
|
7
7
|
require "active_record/validations"
|
|
8
8
|
|
|
9
9
|
# This gem
|
|
10
|
-
require "activerecord/transactionable/version"
|
|
11
10
|
require "activerecord/transactionable/result"
|
|
11
|
+
require_relative "transactionable/version"
|
|
12
12
|
|
|
13
13
|
# Note lowercase "r" in Activerecord (different namespace than rails' module)
|
|
14
14
|
module Activerecord
|
|
@@ -28,7 +28,7 @@ module Activerecord
|
|
|
28
28
|
ERRORS_TO_DISALLOW_INSIDE_TRANSACTION = [
|
|
29
29
|
ActiveRecord::RecordInvalid,
|
|
30
30
|
ActiveRecord::StatementInvalid,
|
|
31
|
-
ActiveRecord::RecordNotUnique
|
|
31
|
+
ActiveRecord::RecordNotUnique
|
|
32
32
|
].freeze
|
|
33
33
|
# http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/DatabaseStatements.html#method-i-transaction
|
|
34
34
|
TRANSACTION_METHOD_ARG_NAMES = %i[
|
|
@@ -83,14 +83,14 @@ module Activerecord
|
|
|
83
83
|
error_handler_outside_transaction(
|
|
84
84
|
object: object,
|
|
85
85
|
transaction_open: transaction_open,
|
|
86
|
-
**outside_args
|
|
86
|
+
**outside_args
|
|
87
87
|
) do |outside_is_retry|
|
|
88
88
|
run_inside_transaction_block(
|
|
89
89
|
transaction_args: transaction_args,
|
|
90
90
|
inside_args: inside_args,
|
|
91
91
|
lock: lock,
|
|
92
92
|
transaction_open: transaction_open,
|
|
93
|
-
object: object
|
|
93
|
+
object: object
|
|
94
94
|
) do |is_retry|
|
|
95
95
|
# regardless of the retry being inside or outside the transaction, it is still a retry.
|
|
96
96
|
yield outside_is_retry || is_retry
|
|
@@ -217,7 +217,7 @@ module Activerecord
|
|
|
217
217
|
result: nil,
|
|
218
218
|
attempt: attempt,
|
|
219
219
|
add_to: nil,
|
|
220
|
-
additional_message: " [#{
|
|
220
|
+
additional_message: " [#{"nested " if transaction_open}#{local_context} re-raising!]"
|
|
221
221
|
)
|
|
222
222
|
raise e
|
|
223
223
|
rescue *retriable_errors => e
|
|
@@ -230,7 +230,7 @@ module Activerecord
|
|
|
230
230
|
object: object,
|
|
231
231
|
error: e,
|
|
232
232
|
result: result,
|
|
233
|
-
additional_message: " [#{
|
|
233
|
+
additional_message: " [#{"nested " if transaction_open}#{local_context}]"
|
|
234
234
|
)
|
|
235
235
|
result
|
|
236
236
|
else
|
|
@@ -243,7 +243,7 @@ module Activerecord
|
|
|
243
243
|
result: nil,
|
|
244
244
|
attempt: attempt,
|
|
245
245
|
add_to: nil,
|
|
246
|
-
additional_message: " [#{
|
|
246
|
+
additional_message: " [#{"nested " if transaction_open}#{local_context}]"
|
|
247
247
|
)
|
|
248
248
|
retry
|
|
249
249
|
end
|
|
@@ -254,7 +254,7 @@ module Activerecord
|
|
|
254
254
|
object: nil,
|
|
255
255
|
error: e,
|
|
256
256
|
result: result,
|
|
257
|
-
additional_message: " [#{
|
|
257
|
+
additional_message: " [#{"nested " if transaction_open}#{local_context}]"
|
|
258
258
|
)
|
|
259
259
|
result
|
|
260
260
|
rescue *needing_added_to_self => e
|
|
@@ -263,7 +263,7 @@ module Activerecord
|
|
|
263
263
|
object: object,
|
|
264
264
|
error: e,
|
|
265
265
|
result: result,
|
|
266
|
-
additional_message: " [#{
|
|
266
|
+
additional_message: " [#{"nested " if transaction_open}#{local_context}]"
|
|
267
267
|
)
|
|
268
268
|
result
|
|
269
269
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-transactionable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Peter Boling
|
|
8
|
-
|
|
7
|
+
- Peter H. Boling
|
|
8
|
+
- Annibelle Boling
|
|
9
9
|
bindir: exe
|
|
10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-----
|
|
39
|
-
date:
|
|
39
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
40
40
|
dependencies:
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: activemodel
|
|
@@ -75,7 +75,7 @@ dependencies:
|
|
|
75
75
|
version: '1.1'
|
|
76
76
|
- - ">="
|
|
77
77
|
- !ruby/object:Gem::Version
|
|
78
|
-
version: 1.1.
|
|
78
|
+
version: 1.1.17
|
|
79
79
|
type: :runtime
|
|
80
80
|
prerelease: false
|
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -85,7 +85,41 @@ dependencies:
|
|
|
85
85
|
version: '1.1'
|
|
86
86
|
- - ">="
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: 1.1.
|
|
88
|
+
version: 1.1.17
|
|
89
|
+
- !ruby/object:Gem::Dependency
|
|
90
|
+
name: kettle-dev
|
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
|
+
- - "~>"
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: '3.1'
|
|
96
|
+
- - ">="
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: 3.1.29
|
|
99
|
+
type: :development
|
|
100
|
+
prerelease: false
|
|
101
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
102
|
+
requirements:
|
|
103
|
+
- - "~>"
|
|
104
|
+
- !ruby/object:Gem::Version
|
|
105
|
+
version: '3.1'
|
|
106
|
+
- - ">="
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: 3.1.29
|
|
109
|
+
- !ruby/object:Gem::Dependency
|
|
110
|
+
name: bundler-audit
|
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
|
112
|
+
requirements:
|
|
113
|
+
- - "~>"
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: 0.9.3
|
|
116
|
+
type: :development
|
|
117
|
+
prerelease: false
|
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
- - "~>"
|
|
121
|
+
- !ruby/object:Gem::Version
|
|
122
|
+
version: 0.9.3
|
|
89
123
|
- !ruby/object:Gem::Dependency
|
|
90
124
|
name: rake
|
|
91
125
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -101,53 +135,159 @@ dependencies:
|
|
|
101
135
|
- !ruby/object:Gem::Version
|
|
102
136
|
version: '13.1'
|
|
103
137
|
- !ruby/object:Gem::Dependency
|
|
104
|
-
name:
|
|
138
|
+
name: require_bench
|
|
105
139
|
requirement: !ruby/object:Gem::Requirement
|
|
106
140
|
requirements:
|
|
107
141
|
- - "~>"
|
|
108
142
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '
|
|
143
|
+
version: '1.0'
|
|
144
|
+
- - ">="
|
|
145
|
+
- !ruby/object:Gem::Version
|
|
146
|
+
version: 1.0.4
|
|
110
147
|
type: :development
|
|
111
148
|
prerelease: false
|
|
112
149
|
version_requirements: !ruby/object:Gem::Requirement
|
|
113
150
|
requirements:
|
|
114
151
|
- - "~>"
|
|
115
152
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: '
|
|
153
|
+
version: '1.0'
|
|
154
|
+
- - ">="
|
|
155
|
+
- !ruby/object:Gem::Version
|
|
156
|
+
version: 1.0.4
|
|
117
157
|
- !ruby/object:Gem::Dependency
|
|
118
|
-
name:
|
|
158
|
+
name: anonymous_loader
|
|
119
159
|
requirement: !ruby/object:Gem::Requirement
|
|
120
160
|
requirements:
|
|
121
161
|
- - "~>"
|
|
122
162
|
- !ruby/object:Gem::Version
|
|
123
|
-
version: '0.
|
|
163
|
+
version: '0.1'
|
|
124
164
|
- - ">="
|
|
125
165
|
- !ruby/object:Gem::Version
|
|
126
|
-
version: 0.
|
|
166
|
+
version: 0.1.5
|
|
127
167
|
type: :development
|
|
128
168
|
prerelease: false
|
|
129
169
|
version_requirements: !ruby/object:Gem::Requirement
|
|
130
170
|
requirements:
|
|
131
171
|
- - "~>"
|
|
132
172
|
- !ruby/object:Gem::Version
|
|
133
|
-
version: '0.
|
|
173
|
+
version: '0.1'
|
|
134
174
|
- - ">="
|
|
135
175
|
- !ruby/object:Gem::Version
|
|
136
|
-
version: 0.
|
|
176
|
+
version: 0.1.5
|
|
177
|
+
- !ruby/object:Gem::Dependency
|
|
178
|
+
name: appraisal2
|
|
179
|
+
requirement: !ruby/object:Gem::Requirement
|
|
180
|
+
requirements:
|
|
181
|
+
- - "~>"
|
|
182
|
+
- !ruby/object:Gem::Version
|
|
183
|
+
version: '3.2'
|
|
184
|
+
- - ">="
|
|
185
|
+
- !ruby/object:Gem::Version
|
|
186
|
+
version: 3.2.6
|
|
187
|
+
type: :development
|
|
188
|
+
prerelease: false
|
|
189
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
190
|
+
requirements:
|
|
191
|
+
- - "~>"
|
|
192
|
+
- !ruby/object:Gem::Version
|
|
193
|
+
version: '3.2'
|
|
194
|
+
- - ">="
|
|
195
|
+
- !ruby/object:Gem::Version
|
|
196
|
+
version: 3.2.6
|
|
137
197
|
- !ruby/object:Gem::Dependency
|
|
138
|
-
name:
|
|
198
|
+
name: kettle-test
|
|
139
199
|
requirement: !ruby/object:Gem::Requirement
|
|
140
200
|
requirements:
|
|
141
201
|
- - "~>"
|
|
142
202
|
- !ruby/object:Gem::Version
|
|
143
|
-
version: '
|
|
203
|
+
version: '2.0'
|
|
204
|
+
- - ">="
|
|
205
|
+
- !ruby/object:Gem::Version
|
|
206
|
+
version: 2.0.30
|
|
144
207
|
type: :development
|
|
145
208
|
prerelease: false
|
|
146
209
|
version_requirements: !ruby/object:Gem::Requirement
|
|
147
210
|
requirements:
|
|
148
211
|
- - "~>"
|
|
149
212
|
- !ruby/object:Gem::Version
|
|
150
|
-
version: '
|
|
213
|
+
version: '2.0'
|
|
214
|
+
- - ">="
|
|
215
|
+
- !ruby/object:Gem::Version
|
|
216
|
+
version: 2.0.30
|
|
217
|
+
- !ruby/object:Gem::Dependency
|
|
218
|
+
name: turbo_tests2
|
|
219
|
+
requirement: !ruby/object:Gem::Requirement
|
|
220
|
+
requirements:
|
|
221
|
+
- - "~>"
|
|
222
|
+
- !ruby/object:Gem::Version
|
|
223
|
+
version: '4.0'
|
|
224
|
+
- - ">="
|
|
225
|
+
- !ruby/object:Gem::Version
|
|
226
|
+
version: 4.0.2
|
|
227
|
+
type: :development
|
|
228
|
+
prerelease: false
|
|
229
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
230
|
+
requirements:
|
|
231
|
+
- - "~>"
|
|
232
|
+
- !ruby/object:Gem::Version
|
|
233
|
+
version: '4.0'
|
|
234
|
+
- - ">="
|
|
235
|
+
- !ruby/object:Gem::Version
|
|
236
|
+
version: 4.0.2
|
|
237
|
+
- !ruby/object:Gem::Dependency
|
|
238
|
+
name: ruby-progressbar
|
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
|
240
|
+
requirements:
|
|
241
|
+
- - "~>"
|
|
242
|
+
- !ruby/object:Gem::Version
|
|
243
|
+
version: '1.13'
|
|
244
|
+
type: :development
|
|
245
|
+
prerelease: false
|
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
247
|
+
requirements:
|
|
248
|
+
- - "~>"
|
|
249
|
+
- !ruby/object:Gem::Version
|
|
250
|
+
version: '1.13'
|
|
251
|
+
- !ruby/object:Gem::Dependency
|
|
252
|
+
name: stone_checksums
|
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
|
254
|
+
requirements:
|
|
255
|
+
- - "~>"
|
|
256
|
+
- !ruby/object:Gem::Version
|
|
257
|
+
version: '1.0'
|
|
258
|
+
- - ">="
|
|
259
|
+
- !ruby/object:Gem::Version
|
|
260
|
+
version: 1.0.11
|
|
261
|
+
type: :development
|
|
262
|
+
prerelease: false
|
|
263
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
264
|
+
requirements:
|
|
265
|
+
- - "~>"
|
|
266
|
+
- !ruby/object:Gem::Version
|
|
267
|
+
version: '1.0'
|
|
268
|
+
- - ">="
|
|
269
|
+
- !ruby/object:Gem::Version
|
|
270
|
+
version: 1.0.11
|
|
271
|
+
- !ruby/object:Gem::Dependency
|
|
272
|
+
name: gitmoji-regex
|
|
273
|
+
requirement: !ruby/object:Gem::Requirement
|
|
274
|
+
requirements:
|
|
275
|
+
- - "~>"
|
|
276
|
+
- !ruby/object:Gem::Version
|
|
277
|
+
version: '2.0'
|
|
278
|
+
- - ">="
|
|
279
|
+
- !ruby/object:Gem::Version
|
|
280
|
+
version: 2.0.16
|
|
281
|
+
type: :development
|
|
282
|
+
prerelease: false
|
|
283
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
284
|
+
requirements:
|
|
285
|
+
- - "~>"
|
|
286
|
+
- !ruby/object:Gem::Version
|
|
287
|
+
version: '2.0'
|
|
288
|
+
- - ">="
|
|
289
|
+
- !ruby/object:Gem::Version
|
|
290
|
+
version: 2.0.16
|
|
151
291
|
- !ruby/object:Gem::Dependency
|
|
152
292
|
name: factory_bot
|
|
153
293
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -162,6 +302,20 @@ dependencies:
|
|
|
162
302
|
- - '='
|
|
163
303
|
- !ruby/object:Gem::Version
|
|
164
304
|
version: 6.4.4
|
|
305
|
+
- !ruby/object:Gem::Dependency
|
|
306
|
+
name: kramdown
|
|
307
|
+
requirement: !ruby/object:Gem::Requirement
|
|
308
|
+
requirements:
|
|
309
|
+
- - "~>"
|
|
310
|
+
- !ruby/object:Gem::Version
|
|
311
|
+
version: '2.4'
|
|
312
|
+
type: :development
|
|
313
|
+
prerelease: false
|
|
314
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
315
|
+
requirements:
|
|
316
|
+
- - "~>"
|
|
317
|
+
- !ruby/object:Gem::Version
|
|
318
|
+
version: '2.4'
|
|
165
319
|
- !ruby/object:Gem::Dependency
|
|
166
320
|
name: rspec
|
|
167
321
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -230,14 +384,14 @@ dependencies:
|
|
|
230
384
|
requirements:
|
|
231
385
|
- - ">="
|
|
232
386
|
- !ruby/object:Gem::Version
|
|
233
|
-
version:
|
|
387
|
+
version: 0.1.28
|
|
234
388
|
type: :development
|
|
235
389
|
prerelease: false
|
|
236
390
|
version_requirements: !ruby/object:Gem::Requirement
|
|
237
391
|
requirements:
|
|
238
392
|
- - ">="
|
|
239
393
|
- !ruby/object:Gem::Version
|
|
240
|
-
version:
|
|
394
|
+
version: 0.1.28
|
|
241
395
|
- !ruby/object:Gem::Dependency
|
|
242
396
|
name: silent_stream
|
|
243
397
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -253,48 +407,66 @@ dependencies:
|
|
|
253
407
|
- !ruby/object:Gem::Version
|
|
254
408
|
version: '1'
|
|
255
409
|
- !ruby/object:Gem::Dependency
|
|
256
|
-
name:
|
|
410
|
+
name: yard
|
|
257
411
|
requirement: !ruby/object:Gem::Requirement
|
|
258
412
|
requirements:
|
|
259
413
|
- - "~>"
|
|
260
414
|
- !ruby/object:Gem::Version
|
|
261
|
-
version: '
|
|
415
|
+
version: '0.9'
|
|
416
|
+
- - ">="
|
|
417
|
+
- !ruby/object:Gem::Version
|
|
418
|
+
version: 0.9.34
|
|
262
419
|
type: :development
|
|
263
420
|
prerelease: false
|
|
264
421
|
version_requirements: !ruby/object:Gem::Requirement
|
|
265
422
|
requirements:
|
|
266
423
|
- - "~>"
|
|
267
424
|
- !ruby/object:Gem::Version
|
|
268
|
-
version: '
|
|
269
|
-
|
|
425
|
+
version: '0.9'
|
|
426
|
+
- - ">="
|
|
427
|
+
- !ruby/object:Gem::Version
|
|
428
|
+
version: 0.9.34
|
|
429
|
+
description: "\U0001F4B1 Getting transactions right is hard, and this gem makes it
|
|
430
|
+
easier."
|
|
270
431
|
email:
|
|
271
|
-
-
|
|
432
|
+
- floss@galtzo.com
|
|
272
433
|
executables: []
|
|
273
434
|
extensions: []
|
|
274
435
|
extra_rdoc_files: []
|
|
275
436
|
files:
|
|
276
|
-
-
|
|
277
|
-
-
|
|
278
|
-
- LICENSE.txt
|
|
437
|
+
- CHANGELOG.md
|
|
438
|
+
- LICENSE.md
|
|
279
439
|
- README.md
|
|
280
|
-
- SECURITY.md
|
|
281
440
|
- lib/activerecord/transactionable.rb
|
|
282
441
|
- lib/activerecord/transactionable/result.rb
|
|
283
442
|
- lib/activerecord/transactionable/version.rb
|
|
284
|
-
|
|
443
|
+
- sig/activerecord/transactionable.rbs
|
|
444
|
+
homepage: https://github.com/galtzo-floss/activerecord-transactionable
|
|
285
445
|
licenses:
|
|
286
446
|
- MIT
|
|
287
447
|
metadata:
|
|
288
448
|
homepage_uri: https://github.com/pboling/activerecord-transactionable
|
|
289
|
-
source_code_uri: https://github.com/
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
funding_uri: https://
|
|
449
|
+
source_code_uri: https://github.com/galtzo-floss/activerecord-transactionable/tree/v3.0.4
|
|
450
|
+
changelog_uri: https://github.com/galtzo-floss/activerecord-transactionable/blob/v3.0.4/CHANGELOG.md
|
|
451
|
+
bug_tracker_uri: https://github.com/galtzo-floss/activerecord-transactionable/issues
|
|
452
|
+
documentation_uri: https://www.rubydoc.info/gems/activerecord-transactionable/3.0.4
|
|
453
|
+
funding_uri: https://github.com/sponsors/pboling
|
|
454
|
+
wiki_uri: https://github.com/galtzo-floss/activerecord-transactionable/wiki
|
|
294
455
|
news_uri: https://www.railsbling.com/tags/activerecord-transactionable
|
|
456
|
+
discord_uri: https://discord.gg/3qme4XHNKN
|
|
457
|
+
mailing_list_uri: https://www.rubyforum.org/tag/galtzo-floss
|
|
295
458
|
rubygems_mfa_required: 'true'
|
|
296
|
-
|
|
297
|
-
|
|
459
|
+
rdoc_options:
|
|
460
|
+
- "--title"
|
|
461
|
+
- "activerecord-transactionable - \U0001F4B1 Do ActiveRecord transactions the right
|
|
462
|
+
way."
|
|
463
|
+
- "--main"
|
|
464
|
+
- README.md
|
|
465
|
+
- "--exclude"
|
|
466
|
+
- "^sig/"
|
|
467
|
+
- "--line-numbers"
|
|
468
|
+
- "--inline-source"
|
|
469
|
+
- "--quiet"
|
|
298
470
|
require_paths:
|
|
299
471
|
- lib
|
|
300
472
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
@@ -308,8 +480,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
308
480
|
- !ruby/object:Gem::Version
|
|
309
481
|
version: '0'
|
|
310
482
|
requirements: []
|
|
311
|
-
rubygems_version:
|
|
312
|
-
signing_key:
|
|
483
|
+
rubygems_version: 4.0.24
|
|
313
484
|
specification_version: 4
|
|
314
|
-
summary: Do ActiveRecord transactions the right way.
|
|
485
|
+
summary: "\U0001F4B1 Do ActiveRecord transactions the right way."
|
|
315
486
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|
data/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
6
|
-
|
|
7
|
-
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
8
|
-
|
|
9
|
-
## Our Standards
|
|
10
|
-
|
|
11
|
-
Examples of behavior that contributes to a positive environment for our community include:
|
|
12
|
-
|
|
13
|
-
* Demonstrating empathy and kindness toward other people
|
|
14
|
-
* Being respectful of differing opinions, viewpoints, and experiences
|
|
15
|
-
* Giving and gracefully accepting constructive feedback
|
|
16
|
-
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
17
|
-
* Focusing on what is best not just for us as individuals, but for the overall community
|
|
18
|
-
|
|
19
|
-
Examples of unacceptable behavior include:
|
|
20
|
-
|
|
21
|
-
* The use of sexualized language or imagery, and sexual attention or
|
|
22
|
-
advances of any kind
|
|
23
|
-
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
24
|
-
* Public or private harassment
|
|
25
|
-
* Publishing others' private information, such as a physical or email
|
|
26
|
-
address, without their explicit permission
|
|
27
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
28
|
-
professional setting
|
|
29
|
-
|
|
30
|
-
## Enforcement Responsibilities
|
|
31
|
-
|
|
32
|
-
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
33
|
-
|
|
34
|
-
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
35
|
-
|
|
36
|
-
## Scope
|
|
37
|
-
|
|
38
|
-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
39
|
-
|
|
40
|
-
## Enforcement
|
|
41
|
-
|
|
42
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at peter.boling@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
|
43
|
-
|
|
44
|
-
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
45
|
-
|
|
46
|
-
## Enforcement Guidelines
|
|
47
|
-
|
|
48
|
-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
49
|
-
|
|
50
|
-
### 1. Correction
|
|
51
|
-
|
|
52
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
53
|
-
|
|
54
|
-
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
55
|
-
|
|
56
|
-
### 2. Warning
|
|
57
|
-
|
|
58
|
-
**Community Impact**: A violation through a single incident or series of actions.
|
|
59
|
-
|
|
60
|
-
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
61
|
-
|
|
62
|
-
### 3. Temporary Ban
|
|
63
|
-
|
|
64
|
-
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
|
65
|
-
|
|
66
|
-
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
67
|
-
|
|
68
|
-
### 4. Permanent Ban
|
|
69
|
-
|
|
70
|
-
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
71
|
-
|
|
72
|
-
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
|
73
|
-
|
|
74
|
-
## Attribution
|
|
75
|
-
|
|
76
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
|
77
|
-
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
78
|
-
|
|
79
|
-
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
|
80
|
-
|
|
81
|
-
[homepage]: https://www.contributor-covenant.org
|
|
82
|
-
|
|
83
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
|
84
|
-
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|