MissionHub 1.0rc4 → 1.0rc5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/missionhub/api.rb +2 -2
- data/lib/missionhub/version.rb +1 -1
- data/spec/lib/missionhub/api_spec.rb +1 -1
- metadata +1 -1
data/lib/missionhub/api.rb
CHANGED
@@ -23,7 +23,7 @@ module MissionHub
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def create_person(person)
|
26
|
-
raise "Not Authenticated" if @access_token.
|
26
|
+
raise "Not Authenticated" if @access_token.nil?
|
27
27
|
raise "Scope doesn't allow for contact creation" unless @scope.include?("contacts")
|
28
28
|
raise "Peron must be a MissionHub::Person" unless person.kind_of? MissionHub::Person
|
29
29
|
raise "First name must be set to create person" if person.first_name.nil?
|
@@ -36,7 +36,7 @@ module MissionHub
|
|
36
36
|
if !response.parsed_response['error'].nil?
|
37
37
|
raise response.parsed_response['error']
|
38
38
|
else
|
39
|
-
response
|
39
|
+
response
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
data/lib/missionhub/version.rb
CHANGED