trusty-festivity-extension 2.2.6 → 2.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjUyYTY5YTdhOTQyYjY4M2ZlMGM3MGFhZmJkYTJmY2Y2YTk3OTZkZQ==
4
+ NjM0ZGQwODNmMzNlMDg0ZmE5YjRiNDczYzU5NWQ2YWFlYjZiYjEwNA==
5
5
  data.tar.gz: !binary |-
6
- YjM2OTY4YWI5NTkyZGU2NTM0NzBkZWE2Yjc0MDk4MDViMGFjNWQ4MQ==
6
+ ZjViN2U5YzBmNjYwNzNiNzY5ZjgyOThjNzRjMGY3NjY4MjcxMjk0Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTU3N2U5YWIzM2EwY2VlMTU4ZjA3MzEzZTBkODNiZDkwNDc2MzM1NWI3MjJk
10
- YzRjYjhjMjkxNTkxZGFkMWE5ZDlkNzQ3YWU3NGUzYWI3MDkxZjFkMzRhMDJk
11
- NzcwMGNmMmY2NmQ2NmM3ZGZhNjJmMjM2N2ViNTJiNGM2Nzk0ZDQ=
9
+ ZTc0NmFmZDdhNDQ0MzllZGVjNWM0ZjI4M2FkMjRjNTM3NDIyNmIwNDU1Nzg0
10
+ YjdkMmY5YTA4NjFjMTg3MTA5NDVjZTliMWRkNWM3MjlmODFiZjJlMmE5OTMw
11
+ NmY3Y2UxYmI2ZjI3ZWZkN2Q5MDk3NDdhNDJkNDRlNzM2ODQxMWY=
12
12
  data.tar.gz: !binary |-
13
- M2Y0NDQ0YTNjMTU3ZTA1MTM3ZTRlMzQzYzAzMTFlMTFkMjNlMmZkYmI4YzAy
14
- NzQ2ODE1ODVjYjM4ZjY5MTYxZDFjZDM2ZTc1YjEyNGUxODFlYmRjZjNkNjc3
15
- NTE0YThjYThkNWEwMjlmNTA5NjczY2ZkMTc3ZjY4M2NmOWQ3MDU=
13
+ ZjdmMThjMDFjMTY0NjhmNDhjMGNhNGJlZmRkYjY2YjlhMzhlYjE1NDUzZjkz
14
+ N2JiZmM1YWNlOGE0NjkyZTk4MjVlMmQwYzVkMjQxMjhkN2EzYjQyMWY1ZWU0
15
+ ZDgxNjEzMDYyMzQ3ZTdmMTU1NDk3M2FiMmM2ZWUzM2EzMWY2OTc=
@@ -62,8 +62,8 @@ class FestivityEventsController < ApplicationController
62
62
 
63
63
  def collect_festival_dates
64
64
  festival_dates = current_site.festival_datetimes
65
- if current_site.date_during_festival?(DateTime.now)
66
- festival_dates = festival_dates.select{ |date| date == DateTime.now }
65
+ if current_site.date_during_festival?(Time.now)
66
+ festival_dates = festival_dates.select{ |date| date.datetime == Time.now }
67
67
  end
68
68
 
69
69
  festival_dates.map{ |date| date.to_s }
@@ -24,7 +24,7 @@ module Festivity
24
24
  end
25
25
 
26
26
  def date_during_festival?(date)
27
- self.festival_datetimes.include?(date)
27
+ self.festival_datetimes.any? {|festival_date| festival_date.datetime == date}
28
28
  end
29
29
 
30
30
  def festival_datetimes
@@ -1,5 +1,5 @@
1
1
  module TrustyFestivityExtension
2
- VERSION = "2.2.6"
2
+ VERSION = "2.2.7"
3
3
  SUMMARY = "Festival microsite engine for Trusty CMS"
4
4
  DESCRIPTION = "Event management for arts festivals."
5
5
  URL = "http://github.com/pgharts/trusty-festivity-extension"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-festivity-extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Sipple