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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 461cfb32bfff9406db2e4d02f80a70251c62da2d
|
|
4
|
+
data.tar.gz: 859ca100893d10d4b95285cc299f3d61d69b8a21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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
|
|
6
|
+
response = post("?srv=create_individual", Addressable::URI.form_encode(person_params))
|
|
7
7
|
::Person.new(response).parse
|
|
8
8
|
end
|
|
9
9
|
|