caboose-cms 0.7.52 → 0.7.53

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: e0e0f4aa92fbb65aaabac75ba5f3884b9e192c24
4
- data.tar.gz: d839b63800e699bd9a22c5fa69daf9c897f9df7f
3
+ metadata.gz: e1c25efdd92fb196e5661e1c86472abaf5e79e16
4
+ data.tar.gz: 13b850bc5278f2830e4f161dcb0daeaf6e7fa04e
5
5
  SHA512:
6
- metadata.gz: 17155c48bf2b85ccc7a2dc5f75cd3edd8a9c56d6f5970834c1bca06eaebdeb2d1083d6c3566f974b5b68a8a1eedc743e17ef5b5186007075b29b8969870d4d1a
7
- data.tar.gz: 33de8ef3a691c39ac3ee880e65d55ac9cbd0658c4fa5736e0eb76e2eddda9acdda0e114b5c53bcee58bbdee8f87e5c23926984f0732e4cd67de05d70e01fc49a
6
+ metadata.gz: 06cfd11597bc1334919febeb206504ffef3ea4642b4f3a8821ae7b41898a41548aece70d8c3f9e6f5ce014b1f911cb3c7c4d5558e0e36bec812b0e26f4ba1e7d
7
+ data.tar.gz: 88880a095e686f5e7a6e5fe26d72522dbe0adf73426d9922709f3f89fe07554514e02a785ca2ac590497f4a54daab25cb17ec0bf9a75c0363afd113a5c681833
@@ -10,6 +10,7 @@ module Caboose
10
10
  def self.tax(order)
11
11
  return 0.00 if !order.shipping_address
12
12
  return 0.00 if !order.has_taxable_items?
13
+ return 0.00 if !order.has_shippable_items?
13
14
 
14
15
  sc = order.site.store_config
15
16
  return self.custom_tax(sc, order) if !sc.auto_calculate_tax
@@ -95,4 +95,61 @@ class Caboose::User < ActiveRecord::Base
95
95
  end
96
96
  return nil
97
97
  end
98
+
99
+ def marshal_dump
100
+ [
101
+ self.id ,
102
+ self.site_id ,
103
+ self.first_name ,
104
+ self.last_name ,
105
+ self.username ,
106
+ self.email ,
107
+ self.address ,
108
+ self.address2 ,
109
+ self.city ,
110
+ self.state ,
111
+ self.zip ,
112
+ self.phone ,
113
+ self.fax ,
114
+ self.timezone ,
115
+ self.password ,
116
+ self.password_reset_id ,
117
+ self.password_reset_sent ,
118
+ self.token ,
119
+ self.date_created ,
120
+ self.image ,
121
+ self.is_guest ,
122
+ self.customer_profile_id ,
123
+ self.payment_profile_id ,
124
+ self.locked
125
+ ]
126
+ end
127
+
128
+ def marshal_load array
129
+ self.id ,
130
+ self.site_id ,
131
+ self.first_name ,
132
+ self.last_name ,
133
+ self.username ,
134
+ self.email ,
135
+ self.address ,
136
+ self.address2 ,
137
+ self.city ,
138
+ self.state ,
139
+ self.zip ,
140
+ self.phone ,
141
+ self.fax ,
142
+ self.timezone ,
143
+ self.password ,
144
+ self.password_reset_id ,
145
+ self.password_reset_sent ,
146
+ self.token ,
147
+ self.date_created ,
148
+ self.image ,
149
+ self.is_guest ,
150
+ self.customer_profile_id ,
151
+ self.payment_profile_id ,
152
+ self.locked = array
153
+ end
154
+
98
155
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.7.52'
2
+ VERSION = '0.7.53'
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.7.52
4
+ version: 0.7.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-01 00:00:00.000000000 Z
11
+ date: 2016-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg