oass 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/oass/client.rb +6 -3
- data/lib/oass/errors.rb +9 -1
- data/lib/oass/version.rb +1 -1
- metadata +4 -4
data/lib/oass/client.rb
CHANGED
@@ -51,11 +51,14 @@ module Oass
|
|
51
51
|
def raise_errors(response)
|
52
52
|
return if (error = response.css("Exception")).empty?
|
53
53
|
|
54
|
-
|
54
|
+
code = error.attribute("errorCode").value.to_i
|
55
|
+
message = error.first.content
|
56
|
+
|
57
|
+
case code
|
55
58
|
when 545
|
56
|
-
raise Oass::NotFoundError.new
|
59
|
+
raise Oass::NotFoundError.new message, :code => code
|
57
60
|
else
|
58
|
-
raise Oass::OASError.new
|
61
|
+
raise Oass::OASError.new message, :code => code
|
59
62
|
end
|
60
63
|
end
|
61
64
|
end
|
data/lib/oass/errors.rb
CHANGED
data/lib/oass/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oass
|
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
|
- Rodrigo Navarro
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-01 00:00:00 -03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|