rack-bert-rpc 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,9 @@ module Rack
19
19
 
20
20
  def handle(input)
21
21
  rpc = read_rpc(input)
22
+ if rpc.nil?
23
+ return error_response(:server, "Invalid request: unrecognized")
24
+ end
22
25
 
23
26
  if rpc.size == 4 && rpc[0] == :call
24
27
  begin
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class BertRpc
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
data/lib/rack/bert_rpc.rb CHANGED
@@ -4,7 +4,7 @@ module Rack
4
4
  class BertRpc
5
5
  class << self
6
6
  def expose(sym, mod)
7
- @exposed_modules << [sym, mod]
7
+ exposed_modules << [sym, mod]
8
8
  end
9
9
 
10
10
  def exposed_modules
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ryan Burrows