magento-rb 0.1.2 → 0.1.3
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.
- data/VERSION +1 -1
- data/lib/magento/api_error.rb +18 -0
- data/magento-rb.gemspec +4 -3
- metadata +6 -5
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.3
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
module Magento
|
|
3
|
+
|
|
4
|
+
class ApiError < StandardError
|
|
5
|
+
attr_reader :message, :error_code, :original_exception
|
|
6
|
+
|
|
7
|
+
def initialize(message, error_code = nil, original_exception = nil)
|
|
8
|
+
@message = message
|
|
9
|
+
@error_code = error_code
|
|
10
|
+
@original_exception = original_exception
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def to_s
|
|
14
|
+
"#{message} (error code: #{error_code})"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
data/magento-rb.gemspec
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "magento-rb"
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Joel Van Horn"]
|
|
12
12
|
s.date = "2012-06-08"
|
|
13
|
-
s.description = "Magento API libraries and other helpful Ruby code"
|
|
13
|
+
s.description = "Magento API libraries and other helpful Ruby code. For ruby 1.8.7"
|
|
14
14
|
s.email = "joeldvanhorn@gmail.com"
|
|
15
15
|
s.extra_rdoc_files = [
|
|
16
16
|
"LICENSE.txt",
|
|
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
|
|
|
28
28
|
"lib/magento/savon.rb",
|
|
29
29
|
"lib/magento/soap_api_v2.rb",
|
|
30
30
|
"lib/magento/xml_api.rb",
|
|
31
|
+
"lib/magento/api_error.rb",
|
|
31
32
|
"magento-rb.gemspec",
|
|
32
33
|
"test/helper.rb",
|
|
33
34
|
"test/test_magento-rb.rb"
|
|
@@ -36,7 +37,7 @@ Gem::Specification.new do |s|
|
|
|
36
37
|
s.licenses = ["MIT"]
|
|
37
38
|
s.require_paths = ["lib"]
|
|
38
39
|
s.rubygems_version = "1.8.24"
|
|
39
|
-
s.summary = "Magento API libraries and other helpful Ruby code"
|
|
40
|
+
s.summary = "Magento API libraries and other helpful Ruby code. For ruby 1.8.7"
|
|
40
41
|
|
|
41
42
|
if s.respond_to? :specification_version then
|
|
42
43
|
s.specification_version = 3
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: magento-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 29
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.1.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Joel Van Horn
|
|
@@ -107,7 +107,7 @@ dependencies:
|
|
|
107
107
|
version: "0"
|
|
108
108
|
type: :development
|
|
109
109
|
version_requirements: *id006
|
|
110
|
-
description: Magento API libraries and other helpful Ruby code
|
|
110
|
+
description: Magento API libraries and other helpful Ruby code. For ruby 1.8.7
|
|
111
111
|
email: joeldvanhorn@gmail.com
|
|
112
112
|
executables: []
|
|
113
113
|
|
|
@@ -128,6 +128,7 @@ files:
|
|
|
128
128
|
- lib/magento/savon.rb
|
|
129
129
|
- lib/magento/soap_api_v2.rb
|
|
130
130
|
- lib/magento/xml_api.rb
|
|
131
|
+
- lib/magento/api_error.rb
|
|
131
132
|
- magento-rb.gemspec
|
|
132
133
|
- test/helper.rb
|
|
133
134
|
- test/test_magento-rb.rb
|
|
@@ -164,6 +165,6 @@ rubyforge_project:
|
|
|
164
165
|
rubygems_version: 1.6.2
|
|
165
166
|
signing_key:
|
|
166
167
|
specification_version: 3
|
|
167
|
-
summary: Magento API libraries and other helpful Ruby code
|
|
168
|
+
summary: Magento API libraries and other helpful Ruby code. For ruby 1.8.7
|
|
168
169
|
test_files: []
|
|
169
170
|
|