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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e987b3a2da09d4d80f8eb058e079ac0b96f83e8
4
- data.tar.gz: a0e2ebc665b8c901b6fae8ddf739d99a76806a66
3
+ metadata.gz: 6fbbd00c48eed01800eb9778a028c755fea1c8c7
4
+ data.tar.gz: 8351b765c406a3c786178389be493728e8012b0a
5
5
  SHA512:
6
- metadata.gz: 3004576eb37249e30263ab74652a03fc97534a771098317cfe1977ef8e0bb36deb22be7dd2e27c9d6981957e75cdcf4eb329e1491c539426a33f2053fd597c6f
7
- data.tar.gz: 48fa1bd9ec01814d31abfc55643b9359d784ea766046bd5398aee7ea6e8e98a2087090b6c51f502f0584a10f784e2895319571132f7217db3fa8f946229ee572
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?
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.43'
2
+ VERSION = '0.9.44'
3
3
  end
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.43
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-31 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg