action_kit_api 0.1.6 → 0.1.7

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.
@@ -7,11 +7,11 @@ Gem::Specification.new do |s|
7
7
  s.version = ActionKitApi::VERSION
8
8
  s.authors = ["Sam Stelfox"]
9
9
  s.email = ["sstelfox@democracyforamerica.com"]
10
- s.homepage = "http://democracyforamerica.com/"
10
+ s.homepage = "http://code.democracyforamerica.com/"
11
11
  s.license = "MIT"
12
12
 
13
13
  s.summary = "Wrapper for the ActionKit API"
14
- s.description = "Provides encapsulated object access through the ActionKit API"
14
+ s.description = "Provides encapsulated object access through the ActionKit API."
15
15
 
16
16
  s.rubyforge_project = "action_kit_api"
17
17
 
@@ -16,7 +16,10 @@ module ActionKitApi
16
16
 
17
17
  raise MissingRequiredAttributeException "Unable to save incomplete object" unless self.valid?
18
18
 
19
- response = ActionKitApi::Connection.call("#{class_name}.save_or_create", self.to_hash)
19
+ # TODO: Add blacklisting to the model to prevent read-only attributes from syncing
20
+ # this is a temporary fix.
21
+ hash = self.to_hash.delete("subscription_status")
22
+ response = ActionKitApi::Connection.call("#{class_name}.save_or_create", hash)
20
23
 
21
24
  # Update ourselves to include the data that the server populated
22
25
  self.update(response)
@@ -1,3 +1,3 @@
1
1
  module ActionKitApi
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 6
9
- version: 0.1.6
8
+ - 7
9
+ version: 0.1.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sam Stelfox
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-02-24 00:00:00 -05:00
17
+ date: 2012-02-27 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -41,7 +41,7 @@ dependencies:
41
41
  version: "0"
42
42
  type: :development
43
43
  version_requirements: *id002
44
- description: Provides encapsulated object access through the ActionKit API
44
+ description: Provides encapsulated object access through the ActionKit API.
45
45
  email:
46
46
  - sstelfox@democracyforamerica.com
47
47
  executables: []
@@ -82,7 +82,7 @@ files:
82
82
  - spec/remote_certificates_spec.rb
83
83
  - spec/spec_helper.rb
84
84
  has_rdoc: true
85
- homepage: http://democracyforamerica.com/
85
+ homepage: http://code.democracyforamerica.com/
86
86
  licenses:
87
87
  - MIT
88
88
  post_install_message: