json-rpc-objects 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +3 -0
- data/VERSION +1 -1
- data/json-rpc-objects.gemspec +2 -2
- data/lib/json-rpc-objects/v10/error.rb +3 -2
- data/lib/json-rpc-objects/v10/request.rb +7 -4
- data/lib/json-rpc-objects/v10/response.rb +6 -3
- data/lib/json-rpc-objects/v11/wd/error.rb +6 -3
- data/lib/json-rpc-objects/v11/wd/extensions.rb +2 -1
- data/lib/json-rpc-objects/v11/wd/procedure-call.rb +2 -1
- data/lib/json-rpc-objects/v11/wd/procedure-parameter-description.rb +4 -2
- data/lib/json-rpc-objects/v11/wd/service-description.rb +14 -7
- data/lib/json-rpc-objects/v11/wd/service-procedure-description.rb +12 -6
- metadata +3 -3
data/CHANGES.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/json-rpc-objects.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{json-rpc-objects}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Martin Kozák"]
|
12
|
-
s.date = %q{2011-02-
|
12
|
+
s.date = %q{2011-02-04}
|
13
13
|
s.email = %q{martinkozak@martinkozak.net}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE.txt",
|
@@ -28,24 +28,27 @@ module JsonRpcObjects
|
|
28
28
|
|
29
29
|
##
|
30
30
|
# Holds request method name.
|
31
|
+
# @return [Symbol]
|
31
32
|
#
|
32
33
|
|
33
|
-
@method
|
34
34
|
attr_accessor :method
|
35
|
+
@method
|
35
36
|
|
36
37
|
##
|
37
38
|
# Holds params for requested method.
|
39
|
+
# @return [Array]
|
38
40
|
#
|
39
41
|
|
40
|
-
@params
|
41
42
|
attr_accessor :params
|
43
|
+
@params
|
42
44
|
|
43
45
|
##
|
44
|
-
# Call ID.
|
46
|
+
# Call (client) ID.
|
47
|
+
# @return [Object]
|
45
48
|
#
|
46
49
|
|
47
|
-
@id
|
48
50
|
attr_accessor :id
|
51
|
+
@id
|
49
52
|
|
50
53
|
##
|
51
54
|
# Creates new one.
|
@@ -35,24 +35,27 @@ module JsonRpcObjects
|
|
35
35
|
|
36
36
|
##
|
37
37
|
# Holds result data.
|
38
|
+
# @return [Object]
|
38
39
|
#
|
39
40
|
|
40
|
-
@result
|
41
41
|
attr_accessor :result
|
42
|
+
@result
|
42
43
|
|
43
44
|
##
|
44
45
|
# Holds error data.
|
46
|
+
# @return [JsonRpcObjects::V10::Error]
|
45
47
|
#
|
46
48
|
|
47
|
-
@error
|
48
49
|
attr_accessor :error
|
50
|
+
@error
|
49
51
|
|
50
52
|
##
|
51
53
|
# Call ID.
|
54
|
+
# @return [String]
|
52
55
|
#
|
53
56
|
|
54
|
-
@id
|
55
57
|
attr_accessor :id
|
58
|
+
@id
|
56
59
|
|
57
60
|
##
|
58
61
|
# Creates new one.
|
@@ -45,24 +45,27 @@ module JsonRpcObjects
|
|
45
45
|
|
46
46
|
##
|
47
47
|
# Holds error code.
|
48
|
+
# @return [Integer]
|
48
49
|
#
|
49
50
|
|
50
|
-
@code
|
51
51
|
attr_accessor :code
|
52
|
+
@code
|
52
53
|
|
53
54
|
##
|
54
55
|
# Holds error message.
|
56
|
+
# @return [String]
|
55
57
|
#
|
56
58
|
|
57
|
-
@message
|
58
59
|
attr_accessor :message
|
60
|
+
@message
|
59
61
|
|
60
62
|
##
|
61
63
|
# Holds error data.
|
64
|
+
# @return [Object]
|
62
65
|
#
|
63
66
|
|
64
|
-
@data
|
65
67
|
attr_accessor :data
|
68
|
+
@data
|
66
69
|
|
67
70
|
##
|
68
71
|
# Creates new one.
|
@@ -64,17 +64,19 @@ module JsonRpcObjects
|
|
64
64
|
|
65
65
|
##
|
66
66
|
# Holds parameter name.
|
67
|
+
# @return [Symbol]
|
67
68
|
#
|
68
69
|
|
69
|
-
@name
|
70
70
|
attr_accessor :name
|
71
|
+
@name
|
71
72
|
|
72
73
|
##
|
73
74
|
# Holds parameter type.
|
75
|
+
# @return [Class]
|
74
76
|
#
|
75
77
|
|
76
|
-
@type
|
77
78
|
attr_accessor :type
|
79
|
+
@type
|
78
80
|
|
79
81
|
##
|
80
82
|
# Creates new one.
|
@@ -49,52 +49,59 @@ module JsonRpcObjects
|
|
49
49
|
|
50
50
|
##
|
51
51
|
# Holds service name.
|
52
|
+
# @return [Symbol]
|
52
53
|
#
|
53
54
|
|
54
|
-
@name
|
55
55
|
attr_accessor :name
|
56
|
+
@name
|
56
57
|
|
57
58
|
##
|
58
59
|
# Holds service identifier.
|
60
|
+
# @return [Addressable::URI]
|
59
61
|
#
|
60
62
|
|
61
|
-
@id
|
62
63
|
attr_accessor :id
|
64
|
+
@id
|
63
65
|
|
64
66
|
##
|
65
67
|
# Holds service version.
|
68
|
+
# @return [String]
|
66
69
|
#
|
67
70
|
|
68
|
-
@version
|
69
71
|
attr_accessor :version
|
72
|
+
@version
|
70
73
|
|
71
74
|
##
|
72
75
|
# Holds service summary.
|
76
|
+
# @return [String]
|
73
77
|
#
|
74
78
|
|
75
|
-
@summary
|
76
79
|
attr_accessor :summary
|
80
|
+
@summary
|
77
81
|
|
78
82
|
##
|
79
83
|
# Holds service help URL.
|
84
|
+
# @return [Addressable::URI]
|
80
85
|
#
|
81
86
|
|
82
|
-
@help
|
83
87
|
attr_accessor :url
|
88
|
+
@help
|
84
89
|
|
85
90
|
##
|
86
91
|
# Holds service address.
|
92
|
+
# @return [Addressable::URI]
|
87
93
|
#
|
88
94
|
|
89
|
-
@address
|
90
95
|
attr_accessor :address
|
96
|
+
@address
|
91
97
|
|
92
98
|
##
|
93
99
|
# Holds procedure descriptions.
|
100
|
+
# @return [Array]
|
94
101
|
#
|
95
102
|
|
96
|
-
@procs
|
97
103
|
attr_accessor :procs
|
104
|
+
@procs
|
98
105
|
|
99
106
|
##
|
100
107
|
# Creates new one.
|
@@ -45,45 +45,51 @@ module JsonRpcObjects
|
|
45
45
|
|
46
46
|
##
|
47
47
|
# Holds procedure name.
|
48
|
+
# @return [Symbol]
|
48
49
|
#
|
49
50
|
|
50
|
-
@name
|
51
51
|
attr_accessor :name
|
52
|
+
@name
|
52
53
|
|
53
54
|
##
|
54
55
|
# Holds procedure summary.
|
56
|
+
# @return [String]
|
55
57
|
#
|
56
58
|
|
57
|
-
@summary
|
58
59
|
attr_accessor :summary
|
60
|
+
@summary
|
59
61
|
|
60
62
|
##
|
61
63
|
# Holds procedure help URL.
|
64
|
+
# @return [Addressable::URI]
|
62
65
|
#
|
63
66
|
|
64
|
-
@help
|
65
67
|
attr_accessor :url
|
68
|
+
@help
|
66
69
|
|
67
70
|
##
|
68
71
|
# Indicates procedure idempotency.
|
72
|
+
# @return [Boolean]
|
69
73
|
#
|
70
74
|
|
71
|
-
@idempotent
|
72
75
|
attr_accessor :idempotent
|
76
|
+
@idempotent
|
73
77
|
|
74
78
|
##
|
75
79
|
# Holds procedure params specification.
|
80
|
+
# @return [Array]
|
76
81
|
#
|
77
82
|
|
78
|
-
@params
|
79
83
|
attr_accessor :params
|
84
|
+
@params
|
80
85
|
|
81
86
|
##
|
82
87
|
# Holds procedure return value specification.
|
88
|
+
# @return [Class]
|
83
89
|
#
|
84
90
|
|
85
|
-
@return
|
86
91
|
attr_accessor :return
|
92
|
+
@return
|
87
93
|
|
88
94
|
##
|
89
95
|
# Creates new one.
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: json-rpc-objects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- "Martin Koz\xC3\xA1k"
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-02-
|
13
|
+
date: 2011-02-04 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
164
|
requirements:
|
165
165
|
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
hash:
|
167
|
+
hash: 4421468574076853557
|
168
168
|
segments:
|
169
169
|
- 0
|
170
170
|
version: "0"
|