MissionHub 1.0rc4 → 1.0rc5

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module MissionHub
23
23
  end
24
24
 
25
25
  def create_person(person)
26
- raise "Not Authenticated" if @access_token.empty?
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.parsed_response['id'].to_i
39
+ response
40
40
  end
41
41
  end
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module MissionHub
2
- VERSION = "1.0rc4"
2
+ VERSION = "1.0rc5"
3
3
  end
@@ -85,7 +85,7 @@ describe MissionHub::API do
85
85
  person.set_answer(4954, hash_answer)
86
86
  person.phone = "021021021"
87
87
  response = api.create_person(person)
88
- response.must_be_instance_of Fixnum
88
+ response.must_be_instance_of Hash
89
89
  end
90
90
  end
91
91
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: MissionHub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0rc4
4
+ version: 1.0rc5
5
5
  prerelease: 3
6
6
  platform: ruby
7
7
  authors: