sequel_bitemporal 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -127,7 +127,10 @@ module Sequel
127
127
 
128
128
  def attributes=(attributes)
129
129
  if !new? && attributes.delete(:partial_update) && current_version
130
- current_attributes = current_version.values.dup
130
+ current_attributes = current_version.keys.inject({}) do |hash, key|
131
+ hash[key] = current_version.send key
132
+ hash
133
+ end
131
134
  current_attributes.delete :valid_from
132
135
  current_attributes.delete :valid_to
133
136
  attributes = current_attributes.merge attributes
@@ -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.3.0"
6
+ s.version = "0.3.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.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-11-25 00:00:00.000000000 Z
13
+ date: 2011-11-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sequel
17
- requirement: &2156745800 !ruby/object:Gem::Requirement
17
+ requirement: &2154462680 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2156745800
25
+ version_requirements: *2154462680
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: sqlite3
28
- requirement: &2156745360 !ruby/object:Gem::Requirement
28
+ requirement: &2154461840 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2156745360
36
+ version_requirements: *2154461840
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rspec
39
- requirement: &2156744860 !ruby/object:Gem::Requirement
39
+ requirement: &2154461340 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 2.8.0.rc1
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2156744860
47
+ version_requirements: *2154461340
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: timecop
50
- requirement: &2156744440 !ruby/object:Gem::Requirement
50
+ requirement: &2154460800 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2156744440
58
+ version_requirements: *2154460800
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rake
61
- requirement: &2156743920 !ruby/object:Gem::Requirement
61
+ requirement: &2154460340 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *2156743920
69
+ version_requirements: *2154460340
70
70
  description: Bitemporal versioning for sequel, fully tested.
71
71
  email:
72
72
  - joseph.halter@thetalentbox.com
@@ -99,12 +99,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
99
  - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
+ segments:
103
+ - 0
104
+ hash: -3713605019709846076
102
105
  required_rubygems_version: !ruby/object:Gem::Requirement
103
106
  none: false
104
107
  requirements:
105
108
  - - ! '>='
106
109
  - !ruby/object:Gem::Version
107
110
  version: '0'
111
+ segments:
112
+ - 0
113
+ hash: -3713605019709846076
108
114
  requirements: []
109
115
  rubyforge_project:
110
116
  rubygems_version: 1.8.10