rb-airgram 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/airgram.rb +2 -2
- metadata +1 -1
data/lib/airgram.rb
CHANGED
@@ -42,11 +42,11 @@ private
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def request_successful?(response)
|
45
|
-
response.
|
45
|
+
response.code == 200
|
46
46
|
end
|
47
47
|
|
48
48
|
def check_auth_details!
|
49
|
-
unless @auth.has_key?(:username) && @auth.has_key?(:
|
49
|
+
unless @auth.has_key?(:username) && @auth.has_key?(:password)
|
50
50
|
raise AuthenticationError, "Calling a method that requires authentication with no Service Key or Service Secret!"
|
51
51
|
end
|
52
52
|
end
|