iformat 0.0.2 → 0.1.0
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/lib/iformat/client.rb +3 -4
- data/lib/iformat/version.rb +1 -1
- metadata +4 -6
data/lib/iformat/client.rb
CHANGED
|
@@ -43,10 +43,9 @@ module IFormat
|
|
|
43
43
|
|
|
44
44
|
if status < 1
|
|
45
45
|
case status
|
|
46
|
-
when IFormat::Error::BAD_SESSION_ID_STATUS
|
|
47
|
-
|
|
48
|
-
else
|
|
49
|
-
raise IFormat::Error.new(msg, status)
|
|
46
|
+
when IFormat::Error::BAD_SESSION_ID_STATUS then raise IFormat::Error::BadSessionId.new(msg, status)
|
|
47
|
+
when IFormat::Error::ORDER_WAITING_FOR_LINKS_STATUS then raise IFormat::Error::OrderWaitingForLinks.new(msg, status)
|
|
48
|
+
else raise IFormat::Error.new(msg, status)
|
|
50
49
|
end
|
|
51
50
|
|
|
52
51
|
end
|
data/lib/iformat/version.rb
CHANGED
metadata
CHANGED
|
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
+
- 1
|
|
8
9
|
- 0
|
|
9
|
-
|
|
10
|
-
version: 0.0.2
|
|
10
|
+
version: 0.1.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Karol Sarnacki
|
|
@@ -15,8 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-03-
|
|
19
|
-
default_executable:
|
|
18
|
+
date: 2012-03-20 00:00:00 Z
|
|
20
19
|
dependencies:
|
|
21
20
|
- !ruby/object:Gem::Dependency
|
|
22
21
|
name: savon
|
|
@@ -129,7 +128,6 @@ files:
|
|
|
129
128
|
- test/helper.rb
|
|
130
129
|
- test/test_client.rb
|
|
131
130
|
- test/test_iformat.rb
|
|
132
|
-
has_rdoc: true
|
|
133
131
|
homepage: https://github.com/sodercober/iformat
|
|
134
132
|
licenses: []
|
|
135
133
|
|
|
@@ -159,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
159
157
|
requirements: []
|
|
160
158
|
|
|
161
159
|
rubyforge_project:
|
|
162
|
-
rubygems_version: 1.
|
|
160
|
+
rubygems_version: 1.8.19
|
|
163
161
|
signing_key:
|
|
164
162
|
specification_version: 3
|
|
165
163
|
summary: iFormat API wrapper
|