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.
@@ -5,5 +5,5 @@ require 'cps-client/client'
5
5
  require 'cps-client/contact'
6
6
  require 'cps-client/domain'
7
7
  require 'cps-client/core_ext'
8
- #require 'cps-client/validator'
9
- #require 'cps-client/errors'
8
+ require 'cps-client/errors'
9
+ #require 'cps-client/validator'
@@ -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.',
@@ -7,7 +7,7 @@ module CPS
7
7
  module Version
8
8
  MAJOR = 0
9
9
  MINOR = 0
10
- PATCH = 7
10
+ PATCH = 8
11
11
  BUILD = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
data/test.rb CHANGED
@@ -1,8 +1,13 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require File.dirname(__FILE__) + '/lib/cps-client.rb'
3
+ # For ruby uft8-support
4
+ require 'jcode'
5
+ $KCODE = 'u'
4
6
 
5
- DELETE_DOMAIN == false
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cps-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - jfqd