magentor 0.2.11 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.11
1
+ 0.2.12
data/lib/magento/base.rb CHANGED
@@ -52,4 +52,6 @@ module Magento
52
52
  include InstanceMethods
53
53
  extend ClassMethods
54
54
  end
55
+
56
+ class ApiError < StandardError; end
55
57
  end
@@ -18,6 +18,7 @@ module Magento
18
18
  @client.call("call", @session, method, args)
19
19
  rescue XMLRPC::FaultException => e
20
20
  @logger.debug "exception: #{e.faultCode} -> #{e.faultString}"
21
+ raise ApiError, "#{e.faultCode} -> #{e.faultString}"
21
22
  end
22
23
  end
23
24
  end
data/magentor.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{magentor}
8
- s.version = "0.2.11"
8
+ s.version = "0.2.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Preston Stuteville"]
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: 1
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 11
10
- version: 0.2.11
9
+ - 12
10
+ version: 0.2.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Preston Stuteville