sequel_bitemporal 0.7.3 → 0.7.4

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
  SHA1:
3
- metadata.gz: 4a92636e68d57dc21742b7f664b9ba4f1042aa37
4
- data.tar.gz: 42a33f9d3da3ca8e286ed3d95290a07471704173
3
+ metadata.gz: a3da00a0fbebc057ceef2fac9ff034f84ff72ac8
4
+ data.tar.gz: 6cad91c39130b5ca76f9e969d0dbb6d514163668
5
5
  SHA512:
6
- metadata.gz: 579fdd010ee26ef0ac9a2893b1f9f7a17a9f29a075e6a84f9554e745214c239bc510f0bad390645ce164778dfe55621b8f0f3c0a0c65db2322368d8037e9aadb
7
- data.tar.gz: 8668c8274359b5ca91cdd4a46845486e6e3ef5a03d7078a9401a280d24ed7149dae907911c11d476bed390c07808b1dedf2a742b0295566263d3b722faef603d
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
@@ -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.3"
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.3
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-14 00:00:00.000000000 Z
12
+ date: 2014-05-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel