SFEley-acts_as_icontact 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.3
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{acts_as_icontact}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Stephen Eley"]
@@ -57,8 +57,7 @@ module ActsAsIcontact
57
57
  def save
58
58
  if new_record?
59
59
  result_type = self.class.collection_name
60
- payload = {self.class.collection_name => [create_fields]}
61
- response = self.class.connection.post(payload.to_json)
60
+ response = self.class.connection.post([create_fields].to_json)
62
61
  else
63
62
  result_type = self.class.resource_name
64
63
  response = connection.post(update_fields.to_json)
@@ -3,5 +3,9 @@ module ActsAsIcontact
3
3
  def self.required_on_create
4
4
  ['email']
5
5
  end
6
+
7
+ def self.base
8
+ ActsAsIcontact::client
9
+ end
6
10
  end
7
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SFEley-acts_as_icontact
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Eley