sequel_bitemporal 0.7.3 → 0.7.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
- data/lib/sequel/plugins/bitemporal.rb +1 -0
- data/sequel_bitemporal.gemspec +1 -1
- data/spec/bitemporal_date_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3da00a0fbebc057ceef2fac9ff034f84ff72ac8
|
|
4
|
+
data.tar.gz: 6cad91c39130b5ca76f9e969d0dbb6d514163668
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6cac6a6424ba8f3a966f453644e3099c2ff2cfe2d4fdfb4d0c0e85b886fa80f47a6aa755a031871f59c273086534b4efe941be051fb0eae5ddace10487ecda3c
|
|
7
|
+
data.tar.gz: a28780d32a14df07666afe8e7fe242488a7eb1384effdee3a2a2441b1c9f052eda666e820405b3925f5934f70d5c21b2fe32060f95bd395ec6e36cb63a0f231c
|
|
@@ -333,6 +333,7 @@ module Sequel
|
|
|
333
333
|
now = ::Sequel::Plugins::Bitemporal.now
|
|
334
334
|
point_in_time = ::Sequel::Plugins::Bitemporal.point_in_time
|
|
335
335
|
return false if version.valid_to.to_datetime<=now
|
|
336
|
+
associations.delete :current_version
|
|
336
337
|
model.db.transaction do
|
|
337
338
|
success = true
|
|
338
339
|
version_was_valid = now>=version.valid_from.to_datetime
|
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.7.
|
|
6
|
+
s.version = "0.7.4"
|
|
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"
|
|
@@ -233,6 +233,7 @@ describe "Sequel::Plugins::Bitemporal" do
|
|
|
233
233
|
| Single Standard | 94 | 2009-11-28 | | 2009-11-30 | MAX DATE | |
|
|
234
234
|
| Single Standard | 98 | 2009-11-29 | | 2009-11-28 | 2009-11-29 | |
|
|
235
235
|
}
|
|
236
|
+
master.should be_deleted
|
|
236
237
|
end
|
|
237
238
|
it "allows deleting current version to restore the previous one" do
|
|
238
239
|
master = @master_class.new
|
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.7.
|
|
4
|
+
version: 0.7.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joseph HALTER
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-05-
|
|
12
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sequel
|