by_star 0.7.0 → 0.7.1

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.
Files changed (5) hide show
  1. data/README.markdown +5 -0
  2. data/VERSION +1 -1
  3. data/by_star.gemspec +2 -2
  4. data/init.rb +2 -1
  5. metadata +3 -3
@@ -11,10 +11,15 @@ by_* (byStar) is a plugin that allows you to find ActiveRecord objects given cer
11
11
  * A given day
12
12
  * The current weekend
13
13
  * The current work week
14
+ * The Past
15
+ * The Future
14
16
  * Between certain times
15
17
  * As of a certain time
16
18
  * Up to a certain time
19
+ * Before a specific record
20
+ * After a specific record
17
21
 
22
+ All methods return scopes. I love these. You love these. Everybody loves these.
18
23
 
19
24
  It also allows you to do nested finds on the records returned which I personally think is the coolest feature of the whole plugin:
20
25
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{by_star}
8
- s.version = "0.7.0"
8
+ s.version = "0.7.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Bigg", "Mislav Marohni\304\207"]
12
- s.date = %q{2010-03-25}
12
+ s.date = %q{2010-04-08}
13
13
  s.description = %q{ActiveRecord extension for easier date scopes and time ranges}
14
14
  s.email = %q{radarlistener@gmail.com}
15
15
  s.extra_rdoc_files = [
data/init.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  require 'by_star'
2
- ActiveRecord::Base.send :include, ByStar
2
+ ActiveRecord::Base.send :include, ByStar
3
+ ActiveRecord::Relation.send :include, ByStar if ActiveRecord.const_defined?("Relation")
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 0
9
- version: 0.7.0
8
+ - 1
9
+ version: 0.7.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ryan Bigg
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-03-25 00:00:00 +00:00
18
+ date: 2010-04-08 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency