twiddla 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/twiddla/api.rb +1 -1
- data/lib/twiddla/version.rb +1 -1
- metadata +1 -1
data/lib/twiddla/api.rb
CHANGED
@@ -50,7 +50,7 @@ module Twiddla
|
|
50
50
|
{ username: @username, password: @password }
|
51
51
|
end
|
52
52
|
|
53
|
-
LEADING_NEGATIVE_INTEGER =
|
53
|
+
LEADING_NEGATIVE_INTEGER = /^-\d/
|
54
54
|
def check_for_errors_and_return(response_body)
|
55
55
|
raise APIError.new(response_body) if response_body.match(LEADING_NEGATIVE_INTEGER)
|
56
56
|
response_body
|
data/lib/twiddla/version.rb
CHANGED