cps-client 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cps-client.rb +2 -2
- data/lib/cps-client/errors.rb +5 -0
- data/lib/cps-client/version.rb +1 -1
- data/test.rb +7 -2
- metadata +3 -3
data/lib/cps-client.rb
CHANGED
data/lib/cps-client/errors.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
module CPS
|
2
2
|
|
3
3
|
class Errors
|
4
|
+
|
5
|
+
def self.description(error)
|
6
|
+
ERRORS[error.to_s] rescue nil
|
7
|
+
end
|
8
|
+
|
4
9
|
ERRORS = {
|
5
10
|
'1000' => 'Action was successfully completed.',
|
6
11
|
'1001' => 'Action was successfully transfered to the sub system. A status update will follow soon.',
|
data/lib/cps-client/version.rb
CHANGED
data/test.rb
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
3
|
+
# For ruby uft8-support
|
4
|
+
require 'jcode'
|
5
|
+
$KCODE = 'u'
|
4
6
|
|
5
|
-
|
7
|
+
require 'rubygems'
|
8
|
+
require 'cps-client'
|
9
|
+
|
10
|
+
DELETE_DOMAIN = false
|
6
11
|
|
7
12
|
CID = 'your-cid'
|
8
13
|
UID = 'your-uid'
|
metadata
CHANGED