magentor 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/magento/order.rb +3 -0
- data/magentor.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.13
|
data/lib/magento/order.rb
CHANGED
@@ -96,6 +96,9 @@ module Magento
|
|
96
96
|
filters = {}
|
97
97
|
options.each_pair { |k, v| filters[k] = {:eq => v} }
|
98
98
|
results = list(filters)
|
99
|
+
|
100
|
+
raise ApiError "100 -> Requested order not exists." if results.blank?
|
101
|
+
|
99
102
|
if find_type == :first
|
100
103
|
info(results.first.increment_id)
|
101
104
|
else
|
data/magentor.gemspec
CHANGED
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:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 13
|
10
|
+
version: 0.2.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Preston Stuteville
|