operator_recordable 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/operator_recordable/recorder.rb +0 -4
- data/lib/operator_recordable/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49732162b7408905bf8df338339f939127bc749d307fcf6639d52f173c645372
|
4
|
+
data.tar.gz: 1e2358023c22551afb02a430d5bb43c4f1908d867616f30e52754564cfb93b27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4453ea3b593441f2761abacdcf3407a9612adbe3d38758a3c6852c0a34b9147fb90d587aea8f95be986aa749611170d8547e5bbe4ab76ea05824a2cd80b11f93
|
7
|
+
data.tar.gz: f8833708e12cae1002924cb2d682936f0b5b43d10f65ee7fc4a92b1b2462ce0c1d01adb5431c57236c7064ddb38bf98a970232df3df181b5f97ec97454afed46
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
## Unreleased
|
2
2
|
|
3
3
|
|
4
|
+
## 1.3.1 (2022-06-20)
|
5
|
+
|
6
|
+
### Bug fixes
|
7
|
+
|
8
|
+
* Fix recording discarded_by if the target table uses optimistic lock
|
9
|
+
+ [PR#34](https://github.com/yujideveloper/operator_recordable/pull/34)
|
10
|
+
|
11
|
+
|
4
12
|
## 1.3.0 (2022-06-01)
|
5
13
|
|
6
14
|
### Changes
|
@@ -109,10 +109,6 @@ module OperatorRecordable
|
|
109
109
|
return if self.frozen? # return if self.frozen?
|
110
110
|
return unless (op = OperatorRecordable.operator) # return unless (op = OperatorRecordable.operator)
|
111
111
|
#
|
112
|
-
self # self
|
113
|
-
.class # .class
|
114
|
-
.where(self.class.primary_key => id) # .where(self.class.primary_key => id)
|
115
|
-
.update_all('#{config.discarder_column_name}' => op.id) # .update_all('discarded_by' => op.id)
|
116
112
|
self.#{config.discarder_column_name} = op.id # self.discarded_by = op.id
|
117
113
|
end # end
|
118
114
|
END_OF_DEF
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: operator_recordable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuji Hanamura
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -185,7 +185,7 @@ metadata:
|
|
185
185
|
source_code_uri: https://github.com/yujideveloper/operator_recordable
|
186
186
|
changelog_uri: https://github.com/yujideveloper/operator_recordable/tree/master/CHANGELOG.md
|
187
187
|
rubygems_mfa_required: 'true'
|
188
|
-
post_install_message:
|
188
|
+
post_install_message:
|
189
189
|
rdoc_options: []
|
190
190
|
require_paths:
|
191
191
|
- lib
|
@@ -200,8 +200,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
|
-
rubygems_version: 3.
|
204
|
-
signing_key:
|
203
|
+
rubygems_version: 3.3.7
|
204
|
+
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: OperatorRecordable is a Rails plugin to set created_by, updated_by, and deleted_by
|
207
207
|
to ActiveRecord objects.
|