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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f15fe7bfab329bcdac169e462ecfdb78af6c49a18e851c904ef9e16a8b33ac4c
4
- data.tar.gz: 60a6488ec7540f1b7ea60173126a4817b9ae139058cddfec0e34999adac33244
3
+ metadata.gz: 49732162b7408905bf8df338339f939127bc749d307fcf6639d52f173c645372
4
+ data.tar.gz: 1e2358023c22551afb02a430d5bb43c4f1908d867616f30e52754564cfb93b27
5
5
  SHA512:
6
- metadata.gz: 2ad18e622600bd8ba978d998f24ab6b5aa25cd9763159d290b27e9e6b8003715229239da507364ddb083bbc0a03e9ecaa87acc947743aa16e9087ae36dee4853
7
- data.tar.gz: f32382da136939d9cad3d9bce663886ae116e6006b0235d7196a567f4830e67ececc1af2bef838f96ec7d386b604195e4c92549a1ad7155ac54d8282531bbb58
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OperatorRecordable
4
- VERSION = "1.3.0"
4
+ VERSION = "1.3.1"
5
5
  end
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.0
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-01 00:00:00.000000000 Z
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.1.6
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.