spree_temando 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -95,7 +95,9 @@ private
95
95
  begin
96
96
  request = Temando::Request.new
97
97
  line_items.reject { |i| i.quantity < 1 }.each do |item|
98
- request.items << item.to_temando_item
98
+ item = item.to_temando_item
99
+ return nil if item.nil?
100
+ request.items << item
99
101
  end
100
102
 
101
103
  request.quotes_for(delivery)
@@ -2,6 +2,7 @@ module SpreeTemando
2
2
  module LineItemShippingDecorator
3
3
  def to_temando_item
4
4
  item = self.variant.to_temando_item
5
+ return nil if item.nil?
5
6
  item.quantity = self.quantity
6
7
  item
7
8
  end
@@ -1,3 +1,3 @@
1
1
  module SpreeTemando
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_temando
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-05 00:00:00.000000000 Z
12
+ date: 2012-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_core