dm-is-temporal 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ begin
4
4
 
5
5
  Jeweler::Tasks.new do |gem|
6
6
  gem.name = 'dm-is-temporal'
7
- gem.version = '0.7.0'
7
+ gem.version = '0.7.1'
8
8
  gem.summary = 'DataMapper plugin implementing temporal patterns'
9
9
  gem.description = gem.summary
10
10
  gem.email = 'jpkutner [a] gmail [d] com'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -161,8 +161,10 @@ module DataMapper
161
161
  options.delete_if {|k,v| t_opts.keys.include?(k) }
162
162
 
163
163
  base = super(options)
164
- base.temporal_versions << TemporalVersion.create(t_opts) if t_opts.size > 0
165
- base.save
164
+ if base.save and t_opts.size > 0
165
+ base.temporal_versions << TemporalVersion.create(t_opts)
166
+ base.save
167
+ end
166
168
  base
167
169
  end
168
170
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dm-is-temporal
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.0
5
+ version: 0.7.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Joe Kutner
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-15 00:00:00 -05:00
13
+ date: 2011-06-17 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency