laserlemon-vestal_versions 0.1.0 → 0.2.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.1.0') do |g|
5
+ Echoe.new('vestal_versions', '0.2.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: 1
3
+ :minor: 2
4
4
  :patch: 0
@@ -14,6 +14,7 @@ module LaserLemon
14
14
  def at(value)
15
15
  case value
16
16
  when Version: value
17
+ when Symbol: send(value)
17
18
  when Numeric: first(:conditions => {:number => value.floor})
18
19
  when Date, Time: last(:conditions => ['versions.created_at <= ?', value.to_time])
19
20
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{vestal_versions}
5
- s.version = "0.1.0"
5
+ s.version = "0.2.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"]
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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Richert