jsonrpc2.0 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/jsonrpc2.0.gemspec CHANGED
@@ -1,9 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jsonrpc2.0'
3
- s.version = '0.1.0'
4
- s.date = '2011-06-06'
3
+ s.version = '0.1.1'
5
4
  s.summary = 'A server and client implementation of the JsonRpc 2.0 protocol.'
6
5
  s.authors = ['Jannik Theiß']
6
+ s.email = 'dev@coldsun.org'
7
+ s.homepage = 'https://github.com/jtee/jsonrpc2.0'
7
8
  s.files = ['jsonrpc2.0.gemspec', 'lib/jsonrpc2.0.rb', 'lib/jsonrpc2.0/Client.rb', 'lib/jsonrpc2.0/Constants.rb', 'lib/jsonrpc2.0/Errors.rb', 'lib/jsonrpc2.0/Server.rb']
8
9
  s.required_ruby_version = '>= 1.9.2'
9
10
  end
@@ -10,7 +10,7 @@ class JsonRpcClient
10
10
  if (inMethod.to_s[(0..1)] == 'r_')
11
11
  fire_request(inMethod.to_s[(2..-1)].to_sym, *inParams)
12
12
  else
13
- raise(NameError, inMethod.to_s, caller)
13
+ super(inMethod, *inParams)
14
14
  end
15
15
  end
16
16
 
@@ -32,6 +32,9 @@ class JsonRpcClient
32
32
  nil
33
33
  end
34
34
 
35
+
36
+ private
37
+
35
38
  def create_message(inMethod, *inParams)
36
39
  message = {}
37
40
  message['jsonrpc'] = VERSION
@@ -31,6 +31,9 @@ class JsonRpcServer
31
31
  end
32
32
  end
33
33
 
34
+
35
+ private
36
+
34
37
  def handle_request(inRequest)
35
38
  raise InvalidRequest if (inRequest.class != Hash)
36
39
  raise InvalidRequest if (inRequest['jsonrpc'] != VERSION)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonrpc2.0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,10 +9,10 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-06-06 00:00:00.000000000Z
12
+ date: 2011-06-07 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description:
15
- email:
15
+ email: dev@coldsun.org
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
@@ -23,7 +23,7 @@ files:
23
23
  - lib/jsonrpc2.0/Constants.rb
24
24
  - lib/jsonrpc2.0/Errors.rb
25
25
  - lib/jsonrpc2.0/Server.rb
26
- homepage:
26
+ homepage: https://github.com/jtee/jsonrpc2.0
27
27
  licenses: []
28
28
  post_install_message:
29
29
  rdoc_options: []