caboose-cms 0.5.143 → 0.5.144

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjhkYWRkNDJiYjlhYTgxNzU1NWQwZTU1ZDNmNzM0NWJkOGM3NzVlYQ==
4
+ ZTBkNjY5NmJkMWRmNjljM2I1NjU2NTFkNDZlN2IyZGIzZDg1YTgyNg==
5
5
  data.tar.gz: !binary |-
6
- YTNmZWM1YjEzNmU2ZGNhMmYwMTI0MGQzZmYxZjAyOTdhYTc0ZGEwYw==
6
+ NDEwNmU1MjUwNjkxYTQ5NGYzOWUzYWE4YzNlZjliNjI2YjViODAxMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTExNjdkZTA0YmIwNTc0ZDk2NjU3NGU2NmU1M2RkOGMwYjE1NTBhYjM4NjVi
10
- NzZiNTNkYmUxZDdiNzVkMzc0MTI1M2ZkMTlmYTRmZWM4Y2ZjZDZkNDk0N2Vk
11
- YzY3NDVhZjUyYjI1ZGE0MzFhMWZkYjQ5ZmMyOWM1ZTVjYTY4NDY=
9
+ ZDM3YWY0MGNjMmJhYThiMmRlNTlkZDAyOTk3ZTZkODdhODRjNzg3NTljNzli
10
+ OWE0ODk5NzYyOTU3NTA4YzFlZTQyYTg1NDk4ODdhN2JjMzgyMjJhMzI2NWVm
11
+ Mzg3OWFmOTY4MzllYmRhYTdiNTJkMDU3MDk5ODFlOTlkNjdlZTE=
12
12
  data.tar.gz: !binary |-
13
- NjUxODYzNzk2MTc5MjZhMjg1OTRkNTM0NThkMjY5YjJiZDEzNWJlMTBjZDhj
14
- Zjk4ODY2MzNkOTFjNTg0YTRkNDdjZjEwZjUyZTNkMmUyZDUxMjgyMTE5NDkx
15
- ZDBmYzQwNjg2OTRmNWRhNTc2ZDdjMzFmNWI1YjM4MmM2NmY3ZGM=
13
+ NjI1MWEwNDRmOTU2NDYwYTg0YWJjYzJmMTBmNmU2NWM2NzM3MzJhNWUzNjRh
14
+ NWMyMTM5NGI3YTA5MTBjMDMyNmJhNmUzYWJkNzYzMGU1OGQzNjVkZmMxYTE2
15
+ YTVlZDBjMjQ0NjM1OTU4ZjQ0YjU0YTZjNTVlZDc0Zjk2MjE1OWM=
@@ -283,15 +283,15 @@ module Caboose
283
283
  save = true
284
284
  params.each do |name,value|
285
285
  case name
286
- when 'tax' then order.tax = value
287
- when 'shipping' then order.shipping = value
288
- when 'handling' then order.handling = value
289
- when 'discount' then order.discount = value
290
- when 'status' then order.status = value
291
- when 'customer_id' then order.customer_id = value
286
+ when 'tax' then order.tax = value
287
+ when 'shipping' then order.shipping = value
288
+ when 'handling' then order.handling = value
289
+ when 'custom_discount' then order.custom_discount = value
290
+ when 'status' then order.status = value
291
+ when 'customer_id' then order.customer_id = value
292
292
  end
293
293
  end
294
- order.calculate_total
294
+ order.calculate
295
295
  resp.success = save && order.save
296
296
  render :json => resp
297
297
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.143'
2
+ VERSION = '0.5.144'
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.143
4
+ version: 0.5.144
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry