caboose-cms 0.5.98 → 0.5.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmFmYWY5ZTU4MmZiNzU5M2M2NTc2NmU2ZDZiZWEwZmRhNmFiMWMzNQ==
4
+ ZWZiNWY5N2FmMjRmZjJkZjRiYmEwNThhMDgyZjVhYzBiZGY0YjllOQ==
5
5
  data.tar.gz: !binary |-
6
- Yzc3M2VmMmQyNGE5YmNhMWQ0YWM1M2UxYTgwODU0ZTAwNzRiYTAyMw==
6
+ NzRmNTI1NzMzNjY1OGRlZDRlZTQ1N2I5NzRjYTkyYWZmNTYyYTM5Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWI0ZTdiY2EwZTZiMTgxYjAxODhiNjU2N2U5NTZkODM2OWZlNTYwNjUxMjJk
10
- NTA4YzJjMzZiNjE4MTNlYzYxODQxZGNhNTk2NDA4YWZiN2U4ZjUwZDYxYWQ5
11
- ODU1NDYyMjA3ODcyMjg5ZDcwNjkxZmUxYjVhZWYxN2RiYjNmYTY=
9
+ YmZkOTAzMDhhYzEzZGI3ZGRlMGI0MDc5Zjk4MWY3YWY4ZDg3OTJjMTc2NDIy
10
+ Mzk3MDI2ZDI2ODdkZTVkZjM0N2FjNzNmYjAxYzBmYTJjNmVmMGZmYjBkOWM2
11
+ NmQ4OWIxMDk1MjYxNzUwMDllNjY1MDJmZTE1OGFmZDQ3N2U3MTY=
12
12
  data.tar.gz: !binary |-
13
- OGU0ZTVlMTJhZWZiZGQxZjBiYTNkOTQ4NzI0Zjk5ZDIyNWU4NzA2M2I4OTQ3
14
- ODk1Y2Y5NmNkYTZiYmE1ZGYzZDU2NGZkNDZjOGFjYTE1NTBjMzcxY2ZjNGM3
15
- MzYxYjY1NzllOTZmMDhlMjM2YTYyZmUwYjA1MTQ2M2EzOTc4ZDQ=
13
+ NzZmMTI4NWE4YTc5OGZiNzJmOGMxMTE1ODk3MjQzNTQ1OWRmMzc2MjZmYWNm
14
+ OGIwMmQ5OGM1NmZhODg0MGMxNWQwOGNmZDhlODk3MjcxODE2NDI2MzA2ZGFl
15
+ MDc2OTZiYjFiZTY1ZmFjNGJkYzcyYjY1MjRlODk2YzQ1MmE0ZjE=
@@ -63,9 +63,8 @@ module Caboose
63
63
  create_new_order = true
64
64
  end
65
65
 
66
- if create_new_order # Create an order to associate with the session
67
- Caboose.log(@order)
68
- @order = Caboose::Order.new
66
+ if create_new_order # Create an order to associate with the session
67
+ @order = Caboose::Order.new
69
68
  @order.site_id = @site ? @site.id : nil
70
69
  @order.status = Caboose::Order::STATUS_CART
71
70
  @order.financial_status = Caboose::Order::STATUS_PENDING
@@ -9,10 +9,10 @@ module Caboose
9
9
 
10
10
  belongs_to :site
11
11
  belongs_to :customer, :class_name => 'Caboose::User'
12
- belongs_to :shipping_address, :class_name => 'Address'
13
- belongs_to :billing_address, :class_name => 'Address'
12
+ belongs_to :shipping_address, :class_name => 'Caboose::Address'
13
+ belongs_to :billing_address, :class_name => 'Caboose::Address'
14
14
  has_many :discounts
15
- has_many :line_items, :after_add => :line_item_added, :after_remove => :line_item_removed, :order => :id
15
+ has_many :line_items, :order => :id
16
16
  has_many :order_packages, :class_name => 'Caboose::OrderPackage'
17
17
  has_many :order_transactions
18
18
 
@@ -156,13 +156,13 @@ module Caboose
156
156
  PaymentProcessor.void(self)
157
157
  end
158
158
 
159
- def line_item_added(line_item)
160
- self.calculate
161
- end
162
-
163
- def line_item_removed(line_item)
164
- self.calculate
165
- end
159
+ #def line_item_added(line_item)
160
+ # self.calculate
161
+ #end
162
+ #
163
+ #def line_item_removed(line_item)
164
+ # self.calculate
165
+ #end
166
166
 
167
167
  def calculate
168
168
  self.update_column(:subtotal , self.calculate_subtotal )
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.98'
2
+ VERSION = '0.5.99'
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.98
4
+ version: 0.5.99
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry