church_community_builder 0.0.8 → 0.0.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 728289c1906542f89ef72d0171300c76337d9993
4
- data.tar.gz: 7e6a4a7a24cf22def6eb604ee7e0ed87630a4df6
3
+ metadata.gz: 461cfb32bfff9406db2e4d02f80a70251c62da2d
4
+ data.tar.gz: 859ca100893d10d4b95285cc299f3d61d69b8a21
5
5
  SHA512:
6
- metadata.gz: 43ea106190976722a9bb5ee4d2e796ca341c3660eac3f8903408a0ad00c8220f92e4cd7a8f12cd3e113d017cf0e6dc4ef719919b64ec02ab3341cfc52a3301ea
7
- data.tar.gz: 2edeb08a54b09aeba70b035fadb107ac3e44411a3ce099c0e8264950a08b256f3d4e2f82f4c47ffb82cacef734df8f75cf8dd044c691334cb2bb1b1ebb0995b5
6
+ metadata.gz: 649968e5adb593b709e7940e57929b1e0cf6d8ce89b5aa2f9f04881c0c6bb3bd14f2dbfe6072f31158fb9fee2e0340d263e2d805158ae28d87da12fcf454c414
7
+ data.tar.gz: 4d4e7cda0d37a9ae41cb6fca2be9f2b5bc444832b6239951e48139c995c53cf8f3198b108dbced22ab62b9da9d93772c9f17a3b73fb42a2ff72499463b09578b
@@ -3,7 +3,7 @@ require "base64"
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "church_community_builder"
6
- s.version = "0.0.8"
6
+ s.version = "0.0.9"
7
7
  s.authors = ['Taylor Brooks']
8
8
  s.email = ["dGJyb29rc0BnbWFpbC5jb20="].map{ |e| Base64.decode64(e) }
9
9
  s.homepage = "https://github.com/taylorbrooks/church_community_builder"
@@ -26,10 +26,10 @@ module ChurchCommunityBuilder
26
26
  end.body
27
27
  end
28
28
 
29
- def post(path)
29
+ def post(path, body)
30
30
  connection.post do |req|
31
31
  req.url(path)
32
- req.headers["content/type"] = "application/x-www-form-urlencoded"
32
+ req.body = body if body
33
33
  end.body
34
34
  end
35
35
 
@@ -3,7 +3,7 @@ module ChurchCommunityBuilder
3
3
  module Contribution
4
4
 
5
5
  def create_contribution(contribution_params)
6
- response = post("?srv=online_giving_insert_gift&#{Addressable::URI.form_encode(contribution_params)}")
6
+ response = post("?srv=online_giving_insert_gift&#{Addressable::URI.form_encode(contribution_params)}", nil)
7
7
  ::Contribution.new(response).parse
8
8
  end
9
9
 
@@ -3,7 +3,7 @@ module ChurchCommunityBuilder
3
3
  module Person
4
4
 
5
5
  def create_person(person_params)
6
- response = post("?srv=create_individual&#{Addressable::URI.form_encode(person_params)}")
6
+ response = post("?srv=create_individual", Addressable::URI.form_encode(person_params))
7
7
  ::Person.new(response).parse
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: church_community_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks