caboose-cms 0.5.124 → 0.5.125

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
- NGY5NjcwMmI1ZWJmYWI4NmZkNGE1ZGY2N2M3OWU4NzQ0NTkwOWI2MQ==
4
+ ZjMxMTI2ZDVkYmZiYjMwOTUwMzM3OTgzM2M4NDIwZjhiNmMyNWM2OQ==
5
5
  data.tar.gz: !binary |-
6
- MGE2ZmE4MTZjZjkxNWY3YmJmYTQzZmIyYjRjOWY2ZWI3OWExMjBmZg==
6
+ YTgyNjNlYzllMDgyOTViNzlkYjcxN2Q0NzNlMGE5ZTQ3Zjk5ZTFhOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzljNTMwODgxMTgxMjIxN2VjMmM0ZGRjMTA1MGUzZTlhZjFmZDQ5NTRmOWY4
10
- ZmRmM2EyNmUxOTE1ODUzZGNhZDAwNjQ5OTQyNmFjNDNkOTJiYjk1NDE0M2Ew
11
- MjQ4NDJhNGM1NjMwMTdiNWNkYTRmODlkMDBiOTg4NDFjNTZlYmQ=
9
+ MzNmYTYyNDVkYzkwZmJkYzVmODhkMmZkZGNlMDM4YjJmNTVkYjY2Y2NiMTVi
10
+ NzQyMTlhNDU3OTIyNWM5NWUxYmI5NDU2NTgwNWIwMGQxZjc5YjZhNTQzZmJj
11
+ MTk5NDlkYmZhMTYwYmY2YzAxODcxODFmNDQ0ZDk1ODRkZTI2YTY=
12
12
  data.tar.gz: !binary |-
13
- NDc3OWE3ODYzYWRmNjkyYTdmZmUyM2IxMmQ1ODQwYmQ1MzAzNTRjMDU5MjQ1
14
- YTJmYjA1MWJhYmVlMjQyMGQ2ZDlkOGYyZTFiMTU5ODk5YTMwYjkwOTgwZjI0
15
- OGY3Yzc3ZjJmNGY1MDk2Y2U0YTgwZTA5MmU5NmI0YzE0Njg3N2U=
13
+ YWY0YmI0YjQzNjI5NmE1NjAxZjg5YWIyYzZlOGM3ZDU4YTNlYzFhOGFkNGZi
14
+ NmJiN2I4OWZkMTc5OTdjYmI1YWNjMTcwMjY4MzA0YmQ1MTg4NmNjMzY3MmJl
15
+ MzhjYjE4ZDBhMGY5MjJjNTRmNGNjZGFmOTI0OGQ0NDBlM2QxZjQ=
@@ -141,10 +141,12 @@ module Caboose
141
141
  v.product.delay(:run_at => 3.seconds.from_now).update_on_sale
142
142
  when 'date_sale_starts'
143
143
  v.date_sale_starts = ModelBinder.local_datetime_to_utc(value, @logged_in_user.timezone)
144
- v.product.delay(:run_at => v.date_sale_starts).update_on_sale
144
+ v.product.delay(:run_at => v.date_sale_starts).update_on_sale
145
+ v.product.delay(:run_at => 3.seconds.from_now).update_on_sale
145
146
  when 'date_sale_ends'
146
147
  v.date_sale_ends = ModelBinder.local_datetime_to_utc(value, @logged_in_user.timezone)
147
- v.product.delay(:run_at => v.date_sale_ends).update_on_sale
148
+ v.product.delay(:run_at => v.date_sale_ends).update_on_sale
149
+ v.product.delay(:run_at => 3.seconds.from_now).update_on_sale
148
150
  end
149
151
  end
150
152
  resp.success = save && v.save
@@ -107,7 +107,7 @@ module Caboose
107
107
 
108
108
  self.variants.each do |variant|
109
109
  next if variant.nil? || variant.price.nil? || variant.price <= 0
110
- price = variant.on_sale? ? v.sale_price : v.price
110
+ price = variant.on_sale? ? variant.sale_price : variant.price
111
111
  min = price if price < min
112
112
  max = price if price > max
113
113
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.124'
2
+ VERSION = '0.5.125'
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.124
4
+ version: 0.5.125
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry