shop_bunny 0.7.4.4 → 0.7.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/shop_bunny/cart_module.rb +4 -5
  2. metadata +4 -4
@@ -29,12 +29,11 @@ module ShopBunny
29
29
  def item_sum
30
30
  begin
31
31
  self.cart_items.inject(0) do |sum,e|
32
- logger.warn "#{e.item.nil?}: #{e.inspect}"
33
- sum += e.quantity*e.item.price
32
+ sum += e.quantity*e.item.price unless e.item.nil?
34
33
  end
35
- rescue
36
- logger.warn "item_sum could not be calculated"
37
- t('shop_bunny.incalculatable')
34
+ rescue Exception => err
35
+ logger.warn "item_sum could not be calculated: #{err}"
36
+ "error: item not processible"
38
37
  end
39
38
  end
40
39
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shop_bunny
3
3
  version: !ruby/object:Gem::Version
4
- hash: 111
4
+ hash: 109
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 4
10
- - 4
11
- version: 0.7.4.4
10
+ - 5
11
+ version: 0.7.4.5
12
12
  platform: ruby
13
13
  authors:
14
14
  - kopfmaschine.com
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-22 00:00:00 +02:00
19
+ date: 2010-10-27 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies: []
22
22