datescope 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -26,9 +26,12 @@ Or install it yourself as:
26
26
 
27
27
  end
28
28
 
29
- User.registered.today.count
30
- User.registered.last_month.all
31
- User.registered.
29
+ User.registered.today
30
+ User.registered.this_week
31
+ User.registered.this_month
32
+ User.registered.last_month
33
+ User.registered.month_before_last_month
34
+ User.registered.this_year
32
35
 
33
36
 
34
37
  ## Contributing
@@ -14,11 +14,11 @@ module DateScope
14
14
  end
15
15
 
16
16
  def last_month
17
- where("created_at >= ? and created_ay <= ?", 1.month.ago.beginning_of_month, 1.month.ago.end_of_month)
17
+ where("created_at >= ? and created_at <= ?", 1.month.ago.beginning_of_month, 1.month.ago.end_of_month)
18
18
  end
19
19
 
20
20
  def month_before_last_month
21
- where("created_at >= ? and created_ay <= ?", 2.month.ago.beginning_of_month, 2.month.ago.end_of_month)
21
+ where("created_at >= ? and created_at <= ?", 2.month.ago.beginning_of_month, 2.month.ago.end_of_month)
22
22
  end
23
23
 
24
24
  def this_year
@@ -1,3 +1,3 @@
1
1
  module Datescope
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: datescope
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Laszlo Papp