cps-client 0.0.7 → 0.0.8
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/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