acts_as_historical 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_historical}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["hasclass"]
12
- s.date = %q{2010-01-11}
12
+ s.date = %q{2010-02-19}
13
13
  s.description = %q{}
14
14
  s.email = %q{sebastian.burkhard@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -38,15 +38,13 @@ module ActsAsHistorical
38
38
  order_desc = "#{self.historical_date_col_sql} DESC"
39
39
  order_asc = "#{self.historical_date_col_sql} ASC"
40
40
 
41
- default_scope :order => order_desc
42
-
43
41
  # named_scopes - sortings
44
42
  named_scope :asc, :order => order_asc
45
43
  named_scope :desc, :order => order_desc
46
44
 
47
45
  named_scope :oldest, :limit => 1, :order => order_asc
48
- named_scope :newest, :limit => 1
49
- named_scope :newest_two, :limit => 2
46
+ named_scope :newest, :limit => 1, :order => order_desc
47
+ named_scope :newest_two, :limit => 2, :order => order_desc
50
48
 
51
49
  # one snapshot per week (every wednesday)
52
50
  named_scope :weekly,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_historical
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - hasclass
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-11 00:00:00 +01:00
12
+ date: 2010-02-19 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency