trusty-festivity-extension 2.5.9 → 2.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/models/festivity_event_list.rb +4 -3
- data/lib/trusty-festivity-extension.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44383c49334ea5a2c25ae9728bae5be584603a68
|
4
|
+
data.tar.gz: 5ecae9f15afd3811836a2f9f8ca6fe5ef34f76b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 431e0e613a82bd487bd5c790e3073c3304d01cdd5cf9456ba74cd43346a2845e3db2b2a7bc36da68f85b295cfa8100a5c0f8748c62255457ffdddc6705a2c0d0
|
7
|
+
data.tar.gz: 3d7b3f8e6ff8a1b6e94008c068a5af3c8067cd758cb47d19dff8219f2443f9c4dff26029b082ac53e6d24a99aa2e53f622ab69e188e9e45bf560699a93e35be3
|
data/Gemfile.lock
CHANGED
@@ -33,10 +33,11 @@ class FestivityEventList
|
|
33
33
|
current_site = Page.current_site
|
34
34
|
festival_date_times = FestivityEventList.collect_festival_dates(current_site)
|
35
35
|
festival_dates = festival_date_times.map! {|date| date.to_date}
|
36
|
+
now = DateTime.now.in_time_zone("Eastern Time (US & Canada)")
|
36
37
|
|
37
|
-
if festival_dates.include?(
|
38
|
-
FestivityPerformance.where(start_date:
|
39
|
-
elsif festival_dates.first >
|
38
|
+
if festival_dates.include?(now.to_date)
|
39
|
+
FestivityPerformance.where(start_date: now...now + 1.day).includes(:festivity_event_page).where(pages: {status_id: 100, site_id: Page.current_site.id, layout_id: nil}).compact.sort_by{|e| e[:date]}.first(3)
|
40
|
+
elsif festival_dates.first > now.to_date
|
40
41
|
FestivityPerformance.includes(:festivity_event_page).where(pages: {status_id: 100, site_id: current_site.id, layout_id: nil}).compact.sort_by{|e| e[:date]}.first(3)
|
41
42
|
else
|
42
43
|
FestivityPerformance.includes(:festivity_event_page).where(pages: {status_id: 100, site_id: current_site.id, layout_id: nil}).compact.sort_by{|e| e[:date]}.last(3)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-festivity-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Sipple, Danielle Greaves, Brittany Martin, Patrick FitzGerald
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trusty-cms
|