date_scopes 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -2,5 +2,4 @@ pkg/*
2
2
  *.gem
3
3
  .bundle
4
4
  .yardoc
5
- doc
6
- spec/support/*.sqlite3
5
+ doc
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- date_scopes (0.1.2)
11
+ date_scopes (0.1.4)
12
12
  activerecord (~> 3)
13
13
 
14
14
  GEM
@@ -1,3 +1,3 @@
1
1
  module DateScopes
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/date_scopes.rb CHANGED
@@ -27,7 +27,7 @@ module DateScopes
27
27
  options.to_options!.reverse_merge! :column => 'published'
28
28
  column_name = "#{options[:column]}_at"
29
29
 
30
- raise new ActiveRecordError("Could not find the #{column_name} column on the #{table_name} table") unless column_names.include? column_name
30
+ raise ActiveRecord::ActiveRecordError, "Could not find the #{column_name} column on the #{table_name} table" unless column_names.include? column_name
31
31
 
32
32
  on_scope_sql = "#{table_name}.#{column_name} <= ?"
33
33
 
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_scopes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonathan Davies
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-01-27 00:00:00 +00:00
19
+ date: 2011-01-28 00:00:00 +00:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -115,6 +115,7 @@ files:
115
115
  - spec.watchr
116
116
  - spec/date_scopes_spec.rb
117
117
  - spec/spec_helper.rb
118
+ - spec/support/test.sqlite3
118
119
  has_rdoc: yard
119
120
  homepage: https://github.com/ThroughTheNet/date_scopes
120
121
  licenses: