caboose-cms 0.5.126 → 0.5.127

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
- MDExZjI0NmIzNDc3YmVhMzJiODJmZGJhMmY3OWNkNmI5OGZjZTZkNQ==
4
+ MjhhNzA1NGZjMjA4ZjA3OWUzOTI0OGEwZjY2MGE1YWUxZGU0OGE4ZA==
5
5
  data.tar.gz: !binary |-
6
- YmIyMWViMTNmM2E1NGY2OGY4NjEzOTZmMDAxMmJjOTllYWRjYWQ4NA==
6
+ NGQxMjg5ZDA4Njg4NmU5MjU1ZTY4YTM5MTk2NWVlODA4Zjg0NzdiMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTNiOTQyNTNkZWM5NzIyNzJmN2Q3ZDJiZjBkYmEyNDcxNDA1OTdlNGI1ZDZh
10
- NGE0ZDI2NDhmMzI3ODMyZWYwN2Y3MWRjYTI4ODA3ZWU0YWM1ZTYyYzZhZDEw
11
- YTc4OTFhMDczZTVhZjRkZDY3YmIzNjI1NWI4ODI5YTlkMWViN2U=
9
+ NjRmOTlmZGI0NzVmOTdmYTJjNjEwN2QyZThjYzllZDdhMGE0ODYxMTJjMzk2
10
+ ZjUyNmNhMTkyOGEzNjVjZDIyODJlZjBlZmE0NzA5YThmMzhlOWZlZjE5ZTI1
11
+ YzVhYWYyOGY3NDY2YWJkZjY4MDNiMGFjM2U2ZWE5ZWI5ZGQ3N2U=
12
12
  data.tar.gz: !binary |-
13
- ODZlNDlmNTRmNWYxMGM5OTkxNjcwNjkzOWU2YmRjMzEwZTRmOTNjYWQwYmZl
14
- MmE3Nzc5ZGRhMjAzYzkwY2Y1MzczNDdiN2E4Y2FmY2FhMjc2ODkzNmQxNDlm
15
- ZjZhNDFiYjA4MjJhNDM2ZTI4M2Q3M2MxYjRlYjRhNzY2Y2Q5NDQ=
13
+ YTdmOWYzYzE3NjFhNzYxNTBkMTU1Njg2N2YyNTM2YWM4YzA0YzU5MmJlMGZl
14
+ NzJjOTA4MGE5MDlmOWQ0YzUzZDM2ODk1YmE4OGU5ODQ1YjIzMDYzYzllZDk3
15
+ Y2MxNmQwYzg5MzNjNDNmN2EyNWY2MWFjMTUxYmFiM2I1Y2NhNDU=
@@ -110,7 +110,7 @@ module Caboose
110
110
  end
111
111
 
112
112
  def on_sale?
113
- return false if self.sale_price.nil?
113
+ return false if self.sale_price.nil? || self.sale_price == 0.0
114
114
  d = DateTime.now.utc
115
115
  return false if self.date_sale_starts && d < self.date_sale_starts
116
116
  return false if self.date_sale_ends && d > self.date_sale_ends
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.126'
2
+ VERSION = '0.5.127'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.126
4
+ version: 0.5.127
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry