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.
Files changed (2) hide show
  1. data/lib/airgram.rb +2 -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.parsed_response['status'] == "ok"
45
+ response.code == 200
46
46
  end
47
47
 
48
48
  def check_auth_details!
49
- unless @auth.has_key?(:username) && @auth.has_key?(:username)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb-airgram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: