evoke_client 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/evoke_client.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "evoke_client"
3
- s.version = "0.2.2"
4
- s.date = "2009-10-07"
3
+ s.version = "0.2.3"
4
+ s.date = "2009-10-08"
5
5
  s.summary = "Tool for interfacing with the Evoke web service"
6
6
  s.email = %w[gus@gusg.us]
7
7
  s.homepage = "http://github.com/thumblemonks/evoke_client"
@@ -36,9 +36,15 @@ module Evoke
36
36
  def self.delete(path, query={}) router("delete").maps(path, query); end
37
37
 
38
38
  class Router
39
- def initialize; @routes = {}; end
40
- def maps(*args) @routes[args.inspect] = Responder.new; end
41
- def dispatch(*args) @routes[args.inspect].process; end
39
+ def initialize; @responder_routes = {}; end
40
+ def maps(*args) @responder_routes[args.inspect] = Responder.new; end
41
+ def dispatch(*args)
42
+ (@responder_routes[args.inspect] || NilResponder).process
43
+ end
44
+ end
45
+
46
+ class NilResponder
47
+ def self.process; ""; end
42
48
  end
43
49
 
44
50
  class Responder
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evoke_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Knowlden
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-07 00:00:00 -05:00
12
+ date: 2009-10-08 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency