sequel_bitemporal 0.5.0 → 0.5.1
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.
- data/lib/sequel/plugins/bitemporal.rb +11 -8
- data/sequel_bitemporal.gemspec +1 -1
- metadata +3 -3
@@ -258,7 +258,7 @@ module Sequel
|
|
258
258
|
|
259
259
|
excluded_columns = Sequel::Plugins::Bitemporal.bitemporal_version_columns + [:id]
|
260
260
|
to_check_columns = self.class.version_class.columns - excluded_columns
|
261
|
-
updated_by = send(self.class.audit_updated_by_method) if audited?
|
261
|
+
updated_by = (send(self.class.audit_updated_by_method) if audited?)
|
262
262
|
previous_values = @current_version_values
|
263
263
|
current_version_values = pending_version.values
|
264
264
|
|
@@ -295,13 +295,16 @@ module Sequel
|
|
295
295
|
pending_version.valid_to ||= Time.utc 9999
|
296
296
|
success = add_version pending_version
|
297
297
|
if success
|
298
|
-
|
299
|
-
self
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
298
|
+
if audited?
|
299
|
+
updated_by = send(self.class.audit_updated_by_method)
|
300
|
+
self.class.audit_class.audit(
|
301
|
+
self,
|
302
|
+
current_values_for_audit,
|
303
|
+
pending_version.values,
|
304
|
+
pending_version.valid_from,
|
305
|
+
updated_by
|
306
|
+
) if updated_by
|
307
|
+
end
|
305
308
|
propagate_changes_to_future_versions
|
306
309
|
@current_version_values = nil
|
307
310
|
@pending_version = nil
|
data/sequel_bitemporal.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "sequel_bitemporal"
|
6
|
-
s.version = "0.5.
|
6
|
+
s.version = "0.5.1"
|
7
7
|
s.authors = ["Joseph HALTER", "Jonathan TRON"]
|
8
8
|
s.email = ["joseph.halter@thetalentbox.com", "jonathan.tron@thetalentbox.com"]
|
9
9
|
s.homepage = "https://github.com/TalentBox/sequel_bitemporal"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel_bitemporal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
segments:
|
129
129
|
- 0
|
130
|
-
hash:
|
130
|
+
hash: 1918973659452831064
|
131
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
132
|
none: false
|
133
133
|
requirements:
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
segments:
|
138
138
|
- 0
|
139
|
-
hash:
|
139
|
+
hash: 1918973659452831064
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
142
|
rubygems_version: 1.8.24
|