sequel_bitemporal 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/README.md +2 -5
- data/lib/sequel/plugins/bitemporal.rb +5 -1
- data/sequel_bitemporal.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 554909923b667984c848e6f59286a6aead7de665
|
4
|
+
data.tar.gz: 553118fd0855faac909058590ef73120cc22ea8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5a296a67f9f23e0d36cfc59508caaa111a9713180feca7528cd1be46b3fcb9e2a8f561a810d4bad5b3fcb3f3b2a89a59ab9d15ee632fa0f46c6427a231132e3
|
7
|
+
data.tar.gz: af80c33d324037c0c54b18c171fc00a9aa6d1c20a699980272f676478af715bd65ae1880815fd5ab442baee54620ba6bac062e0ea558e8e3b563ee625629c5b9
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.1.0
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
sequel_bitemporal
|
2
2
|
=================
|
3
3
|
|
4
|
+
[![Build Status](https://travis-ci.org/TalentBox/sequel_bitemporal.png?branch=master)](https://travis-ci.org/TalentBox/sequel_bitemporal)
|
5
|
+
|
4
6
|
Bitemporal versioning for sequel.
|
5
7
|
|
6
8
|
Dependencies
|
@@ -36,11 +38,6 @@ Usage
|
|
36
38
|
|
37
39
|
* Look at the specs for more usage patterns.
|
38
40
|
|
39
|
-
Build Status
|
40
|
-
------------
|
41
|
-
|
42
|
-
[![Build Status](https://travis-ci.org/TalentBox/sequel_bitemporal.png?branch=master)](https://travis-ci.org/TalentBox/sequel_bitemporal)
|
43
|
-
|
44
41
|
License
|
45
42
|
-------
|
46
43
|
|
@@ -292,7 +292,6 @@ module Sequel
|
|
292
292
|
def update_attributes(attributes={})
|
293
293
|
self.attributes = attributes
|
294
294
|
if save raise_on_failure: false
|
295
|
-
_refresh_set_values @values
|
296
295
|
self
|
297
296
|
else
|
298
297
|
false
|
@@ -320,6 +319,11 @@ module Sequel
|
|
320
319
|
super
|
321
320
|
end
|
322
321
|
|
322
|
+
def after_save
|
323
|
+
super
|
324
|
+
_refresh_set_values @values
|
325
|
+
end
|
326
|
+
|
323
327
|
def destroy
|
324
328
|
point_in_time = ::Sequel::Plugins::Bitemporal.point_in_time
|
325
329
|
versions_dataset.where(expired_at: nil).where("valid_to>valid_from").update expired_at: point_in_time
|
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.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.7.
|
4
|
+
version: 0.7.1
|
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-
|
12
|
+
date: 2014-02-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sequel
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.2.
|
123
|
+
rubygems_version: 2.2.0
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Bitemporal versioning for sequel.
|