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 +4 -4
- data/app/models/caboose/tax_calculator.rb +1 -0
- data/app/models/caboose/user.rb +57 -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: e1c25efdd92fb196e5661e1c86472abaf5e79e16
|
4
|
+
data.tar.gz: 13b850bc5278f2830e4f161dcb0daeaf6e7fa04e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/app/models/caboose/user.rb
CHANGED
@@ -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
|
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.7.
|
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-
|
11
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|