jsonrpc2.0 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/jsonrpc2.0.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jsonrpc2.0'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
4
4
  s.summary = 'A server and client implementation of the JsonRpc 2.0 protocol.'
5
5
  s.authors = ['Jannik Theiß']
6
6
  s.email = 'dev@coldsun.org'
@@ -42,7 +42,7 @@ class JsonRpcServer
42
42
  begin
43
43
  method = method('r_' + inRequest['method'])
44
44
 
45
- unless method == restrictMethod
45
+ unless restrictMethod == nil and method == restrictMethod
46
46
  raise MethodNotAllowed
47
47
  end
48
48
 
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.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: