revisions 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -92,6 +92,8 @@ There are a few things on the to-do list, among them:
92
92
  0.1.1
93
93
  - Added updated_at to unrevised attributes to fix a bug in pending_revisions? on a revision.
94
94
 
95
+ 0.3.1
96
+ - Added support for Rails 3.0 and 3.1
95
97
 
96
98
 
97
99
  ==Author
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/lib/revisions.rb CHANGED
@@ -44,6 +44,7 @@ module Revisions
44
44
  new_copy.created_at = new_copy.updated_at = Time.zone.now
45
45
  new_copy.status = 'revision'
46
46
  new_copy.revision_of = self.id
47
+ new_copy.id = nil # makes it compatible with rails 3.0, which dupes the id.
47
48
  if new_copy.save
48
49
  true
49
50
  else
data/revisions.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{revisions}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Brian Hamman}]
12
- s.date = %q{2011-10-12}
12
+ s.date = %q{2011-10-26}
13
13
  s.description = %q{Save and apply revisions to a model, while keeping track of old revisiions}
14
14
  s.email = %q{hamman@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revisions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Hamman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-12 00:00:00 Z
18
+ date: 2011-10-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: thoughtbot-shoulda