laserlemon-vestal_versions 0.2.6 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('vestal_versions', '0.2.6') do |g|
5
+ Echoe.new('vestal_versions', '0.3.0') do |g|
6
6
  g.description = %(Keep a DRY history of your ActiveRecord models' changes)
7
7
  g.url = 'http://github.com/laserlemon/vestal_versions'
8
8
  g.author = 'Steve Richert'
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
- :minor: 2
4
- :patch: 6
3
+ :minor: 3
4
+ :patch: 0
@@ -76,6 +76,14 @@ module LaserLemon
76
76
  def revert_to!(value)
77
77
  revert_to(value) && save
78
78
  end
79
+
80
+ def last_changes
81
+ versions.at(version).changes
82
+ end
83
+
84
+ def last_changed
85
+ last_changes.keys
86
+ end
79
87
  end
80
88
  end
81
89
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{vestal_versions}
5
- s.version = "0.2.6"
5
+ s.version = "0.3.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steve Richert"]
9
- s.date = %q{2009-07-10}
9
+ s.date = %q{2009-08-11}
10
10
  s.description = %q{Keep a DRY history of your ActiveRecord models' changes}
11
11
  s.email = %q{steve@laserlemon.com}
12
12
  s.extra_rdoc_files = ["lib/version.rb", "lib/vestal_versions.rb", "README.rdoc", "tasks/vestal_versions_tasks.rake"]
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Vestal_versions", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{vestal_versions}
18
- s.rubygems_version = %q{1.3.4}
18
+ s.rubygems_version = %q{1.3.5}
19
19
  s.summary = %q{Keep a DRY history of your ActiveRecord models' changes}
20
20
  s.test_files = ["test/test_helper.rb", "test/vestal_versions_test.rb"]
21
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laserlemon-vestal_versions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Richert
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-10 00:00:00 -07:00
12
+ date: 2009-08-11 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -41,6 +41,7 @@ files:
41
41
  - vestal_versions.gemspec
42
42
  has_rdoc: false
43
43
  homepage: http://github.com/laserlemon/vestal_versions
44
+ licenses:
44
45
  post_install_message:
45
46
  rdoc_options:
46
47
  - --line-numbers
@@ -66,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
67
  requirements: []
67
68
 
68
69
  rubyforge_project: vestal_versions
69
- rubygems_version: 1.2.0
70
+ rubygems_version: 1.3.5
70
71
  signing_key:
71
72
  specification_version: 3
72
73
  summary: Keep a DRY history of your ActiveRecord models' changes