magentor 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/magento/shipment.rb +8 -2
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -116,11 +116,17 @@ module Magento
116
116
  filters = {}
117
117
  options.each_pair { |k, v| filters[k] = {:eq => v} }
118
118
  results = list(filters)
119
+
120
+ raise Magento::ApiError, "100 Requested shipment not exists." if results.blank?
121
+
119
122
  if find_type == :first
120
- results.first
123
+ info(results.first.increment_id)
121
124
  else
122
- results
125
+ results.collect do |s|
126
+ info(s.increment_id)
127
+ end
123
128
  end
129
+
124
130
  end
125
131
 
126
132
  def api_path
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magentor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Preston Stuteville