caboose-cms 0.9.43 → 0.9.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/caboose/checkout_controller.rb +1 -0
- data/lib/caboose/version.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: 6fbbd00c48eed01800eb9778a028c755fea1c8c7
|
4
|
+
data.tar.gz: 8351b765c406a3c786178389be493728e8012b0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f606ef52d93d62c70270e58b732cb7461caf1cfc5e48bf6b5c03244a83ea93a3d6d9a26e79b549f68a7d0387ef917bfbe8430415a7e69b66b35c14fdb29a0577
|
7
|
+
data.tar.gz: 2d905019b06a99aca52bb2d029299724fd88f4a270961fe26f6881a09e16132cab69d5cb59f3dc6b9e734de742556594cb8d12d685829cc470e065d81f036e8a
|
@@ -200,6 +200,7 @@ module Caboose
|
|
200
200
|
def confirm
|
201
201
|
render :json => { :error => 'Not logged in.' } and return if !logged_in?
|
202
202
|
#render :json => { :error => 'Invalid billing address.' } and return if @invoice.billing_address.nil?
|
203
|
+
render :json => { :error => 'Cart is empty.' } and return if @invoice.line_items.nil? or @invoice.line_items.count == 0
|
203
204
|
if !@invoice.instore_pickup && @invoice.has_shippable_items?
|
204
205
|
render :json => { :error => 'Invalid shipping address.' } and return if @invoice.shipping_address.nil?
|
205
206
|
render :json => { :error => 'Invalid shipping methods.' } and return if @invoice.has_empty_shipping_methods?
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.44
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|