shop_bunny 0.7.4.6 → 0.7.4.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,9 +20,9 @@ module ShopBunny
20
20
  self.cart_items.inject(0) {|sum,e| sum += e.quantity}
21
21
  end
22
22
 
23
- def shipping_costs
23
+ def shipping_costs(options = {})
24
24
  return 0 if coupons.any?(&:removes_shipping_cost)
25
- shipping_cost_calculator.costs_for(self)
25
+ shipping_cost_calculator.costs_for(self, options)
26
26
  end
27
27
 
28
28
  # Calculates the sum of all cart_items, excluding the coupons discount!
@@ -1,6 +1,6 @@
1
1
  # The default shipping cost calculator
2
2
  class ShopBunny::ShippingCostCalculator
3
- def self.costs_for(cart)
3
+ def self.costs_for(cart, options = {})
4
4
  8.90
5
5
  end
6
6
  end
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: 107
4
+ hash: 105
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 4
10
- - 6
11
- version: 0.7.4.6
10
+ - 7
11
+ version: 0.7.4.7
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-11-04 00:00:00 +01:00
19
+ date: 2010-11-18 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies: []
22
22