piggybak 0.6.27 → 0.6.28

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- piggybak (0.6.27)
4
+ piggybak (0.6.28)
5
5
  activemerchant
6
6
  countries
7
7
  devise
@@ -71,7 +71,7 @@ module Piggybak
71
71
  if !self._destroy
72
72
  if (self.new_record? || self.shipment.status != 'shipped') && self.shipment && self.shipment.shipping_method
73
73
  calculator = self.shipment.shipping_method.klass.constantize
74
- self.price = calculator.rate(self.shipment.shipping_method, self)
74
+ self.price = calculator.rate(self.shipment.shipping_method, self.order)
75
75
  self.price = ((self.price*100).to_i).to_f/100
76
76
  self.description = self.shipment.shipping_method.description
77
77
  end
@@ -44,9 +44,9 @@ module Piggybak
44
44
  rate = klass.rate(method, cart)
45
45
  arr << {
46
46
  :label => "#{method.description} $#{"%.2f" % rate}",
47
- :id => method.id,
47
+ :id => method.id,
48
48
  :rate => rate }
49
- end
49
+ end
50
50
  arr
51
51
  end
52
52
 
@@ -1,3 +1,3 @@
1
1
  module Piggybak
2
- VERSION = "0.6.27"
2
+ VERSION = "0.6.28"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.27
4
+ version: 0.6.28
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-03-22 00:00:00.000000000 Z
14
+ date: 2013-04-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -235,7 +235,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
235
235
  version: '0'
236
236
  segments:
237
237
  - 0
238
- hash: 2870291958582205091
238
+ hash: -95188709892578346
239
239
  required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  none: false
241
241
  requirements:
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  version: '0'
245
245
  segments:
246
246
  - 0
247
- hash: 2870291958582205091
247
+ hash: -95188709892578346
248
248
  requirements: []
249
249
  rubyforge_project:
250
250
  rubygems_version: 1.8.23