Permalink
Browse files

Fix typo: "Unkown" => "Unknown". closes #2

  • Loading branch information...
1 parent 236e412 commit 3e0ee9166b8bea17ea1935c2cbc3b91a201619c6 @leobessa committed Oct 14, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.md
  2. +1 −1 lib/simple_gcm/error.rb
  3. +2 −2 lib/simple_gcm/result_middleware.rb
View
@@ -31,7 +31,7 @@ rescue SimpleGCM::Error::NotRegistered => e; puts e
rescue SimpleGCM::Error::MessageTooBig => e; puts e
rescue SimpleGCM::Error::AuthenticationError => e; puts e
rescue SimpleGCM::Error::ServerUnavailable => e; puts e
-rescue SimpleGCM::Error::Unkown => e; puts e
+rescue SimpleGCM::Error::Unknown => e; puts e
rescue Exception => e
end
```
View
@@ -36,5 +36,5 @@ class NotRegistered < BaseError; end
class MessageTooBig < BaseError; end
class AuthenticationError < BaseError; end
class ServerUnavailable < BaseError; end
- class Unkown < BaseError; end
+ class Unknown < BaseError; end
end
@@ -8,7 +8,7 @@ def on_complete(env)
if Error.constants.include?(values[:error].to_sym)
raise Error.const_get(values[:error]), values
else
- raise Error::Unkown, values
+ raise Error::Unknown, values
end
else
result = Result.new
@@ -21,7 +21,7 @@ def on_complete(env)
when 500,503
raise Error::ServerUnavailable, response_values(env)
when 400...600
- raise Error::Unkown, response_values(env)
+ raise Error::Unknown, response_values(env)
end
end

0 comments on commit 3e0ee91

Please sign in to comment.