caboose-cms 0.5.113 → 0.5.114

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
- MzAyYTgwZTFiYWRkY2ZlZmZhZTAyZmYwZGZlYzE0MWQ3ZmY0MjE2OA==
4
+ NmU2YjI4YmE2YzNjZTc2OGJkZjBhMjZhZWZjZDUzYzgyZGYyNDA3Ng==
5
5
  data.tar.gz: !binary |-
6
- OGU1OTZhNDljNzE4MTM3ZGI0NzZlNWMzZTg3MThkOGQ3ODAwOGY1ZA==
6
+ Y2EyYzJkYTJiMDRhZjliOTQxNjc0ZTQxYWI2Mjk1NjE1YzQ0NTY0Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWFmM2FmN2JiY2E0N2JhNjBiNWRiNjhhMDY5NDQwMzdjZDEwMTIwMDg2ODNm
10
- MjNjNGI1NjU2NzRmYTllMzA0ZTUxMmIxZGUyMzQ5NjQ0YmRmMzUyNjBiNTMx
11
- MTI4NzY4NGVjY2Q3M2JiOWZkNGQyNzJjMjIxM2E0MzU3NzQ2YWQ=
9
+ YjlhYjczYzQ3MjI0NWVmMGNmYjFmYzY2NTA4ZjMwYjFhNjUxZWYxYjk2NDRm
10
+ NmE5ODA5NmJkNThhYmUxMGQyYjFiOTcyODAzZWZlMDYzOWUxMjVhZTdmMzNi
11
+ YmI2NWVhMjE2ZjJhZDViYjJjN2M2MjAxMWQ3YTliY2NmMWNkYjY=
12
12
  data.tar.gz: !binary |-
13
- NTJkNjc3MGEzNmQ4ZDhlNmRjMzU4ZGZmYmRmOGYwNDBkY2NhNjE3YTE3NWM0
14
- YzEwMDkxNDUyODc3OWM0ZjUwNzZiODI1YTIzMTk3NjEzZWVjY2NjODM0MDE1
15
- YjQ2YmYwZjRlZTVjNmFkZWJmYTdhZGNiMDU1MjA0MTVlMzFjY2M=
13
+ NGY5NDhiOWY2ZTllYzc3ZjAxOWUwODc0Yzk4NzQ1MzRhMjMxNDBjNjdlNDE2
14
+ NDc1MGE4MWYyZGZhNDJkMjdkMWZjYWI5ZTJjODAyNWFjNjVmOWE3OGMyYTk1
15
+ ZDE3MTM0YWM2MTQ0YWQzOTBhZDE2MTA4OTFkOWEzNDU3MjNmNmE=
@@ -144,7 +144,7 @@ module Caboose
144
144
  def calculate_subtotal
145
145
  return 0.0 if self.line_items.empty?
146
146
  x = 0.0
147
- self.line_items.each{ |li| x = x + li.variant.price }
147
+ self.line_items.each{ |li| x = x + (li.variant.price * li.quantity) } # Fixed issue with quantity
148
148
  return x
149
149
  end
150
150
 
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.113'
2
+ VERSION = '0.5.114'
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.5.113
4
+ version: 0.5.114
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-23 00:00:00.000000000 Z
11
+ date: 2015-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg