Permalink
Browse files

minor bug correction in checking method name (should allow strings)

  • Loading branch information...
1 parent bbb889d commit 6773e77c57f3750b8cee091651b4251e304e6ce3 @martinkozak committed Oct 20, 2011
Showing with 4 additions and 2 deletions.
  1. +3 −1 Gemfile.lock
  2. +1 −1 lib/json-rpc-objects/v10/request.rb
View
4 Gemfile.lock
@@ -4,7 +4,8 @@ GEM
abstract (1.0.0)
addressable (2.2.6)
git (1.2.5)
- hash-utils (0.18.1)
+ hash-utils (1.1.0)
+ ruby-version
jeweler (1.6.4)
bundler (~> 1.0)
git (>= 1.2.5)
@@ -13,6 +14,7 @@ GEM
multi_json
multi_json (1.0.3)
rake (0.9.2)
+ ruby-version (0.3.1)
PLATFORMS
ruby
View
2 lib/json-rpc-objects/v10/request.rb
@@ -134,7 +134,7 @@ def normalize!
#
def __check_method
- if not @method.symbol?
+ if not (@method.symbol? or @method.string?)
raise Exception::new("Service name must be Symbol or convertable to Symbol.")
end
end

0 comments on commit 6773e77

Please sign in to comment.