calendar_sniper 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fb8a0724727a39f5eb81e8f032387369655446d
4
- data.tar.gz: 7b4cbe5a588b28781b1c824088e84fb20587ec12
3
+ metadata.gz: 2a643990fd3e526ea5589431a2c219ea7f769c46
4
+ data.tar.gz: 0ee2f43c4afabdc0baa0a4cbc0902c2ee8667921
5
5
  SHA512:
6
- metadata.gz: 73d80d092a4794adf7b819f14fb69da71e0f3e9d4c4c298c855ff05e5bd843036d8f2dec51640d90684a06af9e8f37c48d85d6da61367c5e873eec3cb6f6c618
7
- data.tar.gz: 7cd9ef2435ede7d8954f01126d4f9686ef6eb32227bcb1d1a1766da302a260b84f828d4ad0b7b6a8cd99ffe3b14f8f8117c4831e7709adbc9727957ebc20696d
6
+ metadata.gz: c78f91f0375c5630566cbee8621377c13dddae522e1f3028edea7e4272b1b30cec5ac01d5af2ea38b5d8b87f330820ccaadcb9bf36e4f5f5057454a12191ff55
7
+ data.tar.gz: d224f0d54c09ace2862dc518223238ec46223d8e27dfdfef918a7e0dae4530ca923692f7a11c0718d4aaad128b1cf1a26a6521e021f3a25254d56a69140cb1b2
@@ -1,3 +1,3 @@
1
1
  module CalendarSniper
2
- VERSION = "1.1.5"
2
+ VERSION = "1.1.6"
3
3
  end
@@ -13,11 +13,11 @@ module CalendarSniper
13
13
  when /\A\d+(?:\.\d+)?\z/
14
14
  with_from_date(num_days.to_f.days.ago)
15
15
  when 'today'
16
- where(started: Date.today.beginning_of_day..Time.now)
16
+ where(created_at: Date.today.beginning_of_day..Time.now)
17
17
  when 'yesterday'
18
- where(started: Date.yesterday.beginning_of_day..Date.yesterday.end_of_day)
18
+ where(created_at: Date.yesterday.beginning_of_day..Date.yesterday.end_of_day)
19
19
  when 'last_month'
20
- where(started: 1.month.ago.beginning_of_month..1.month.ago.end_of_month)
20
+ where(created_at: 1.month.ago.beginning_of_month..1.month.ago.end_of_month)
21
21
  else
22
22
  fail "Unknown date range for filtering: #{num_days}"
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calendar_sniper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris MacNaughton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-04 00:00:00.000000000 Z
12
+ date: 2017-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport