church_community_builder 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1d6e1598a16feafba1eae793ea63cbdc638dbda
4
- data.tar.gz: 8116ac63b782b9fa663e7b0cdd7c64b383aa9b12
3
+ metadata.gz: 01f9b5543a26f5cc6525a00d1f7fdbb43c6a535a
4
+ data.tar.gz: 0ee7f1bb24763db605f3d87f7cc12822cef9dac7
5
5
  SHA512:
6
- metadata.gz: 5fe5add12907467dad29d4b489e678173a78363805fa621e840b1e0589076efc6456caaca4d76b00c67e33b08a9b0154c95b94024388eb4deeaa75caaf7f38ec
7
- data.tar.gz: 0b7fd1672f61d9332b53fe0862d48c6fa484146915c7ee6a7ec8c7c73f2dcb86821c8aa5ace018510b2f6011d721bfff36ada244938f77a2c60123497408b722
6
+ metadata.gz: 1491ca8f48d10ff6c5eaf91a9be9200f053fae37db151f93cd3cb8b0b899584c5d9fcd623e908eea459574c1379f6445809c04132618adb1977a1e573b7afbf0
7
+ data.tar.gz: 1a6466b2ea0b14b03dee35939cb5bb5e8c56cb6bf9e6586c7e7c0486f18f07de6825deb972b7c2f229dd837bdb6b95f3702f65d0969d5bb6b597f3c624347ca6
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fellowshipone (1.0.0)
4
+ church_community_builder (0.0.7)
5
+ addressable
5
6
  faraday
6
7
  faraday_middleware
7
- json
8
- simple_oauth
8
+ multi_xml
9
9
 
10
10
  GEM
11
11
  remote: http://rubygems.org/
@@ -13,16 +13,15 @@ GEM
13
13
  addressable (2.3.7)
14
14
  crack (0.4.2)
15
15
  safe_yaml (~> 1.0.0)
16
- faraday (0.9.1)
16
+ faraday (0.9.2)
17
17
  multipart-post (>= 1.2, < 3)
18
- faraday_middleware (0.9.1)
18
+ faraday_middleware (0.10.0)
19
19
  faraday (>= 0.7.4, < 0.10)
20
- json (1.8.2)
21
20
  minitest (5.5.1)
21
+ multi_xml (0.5.5)
22
22
  multipart-post (2.0.0)
23
23
  rake (10.4.2)
24
24
  safe_yaml (1.0.4)
25
- simple_oauth (0.3.1)
26
25
  vcr (2.9.3)
27
26
  webmock (1.20.4)
28
27
  addressable (>= 2.3.6)
@@ -33,8 +32,11 @@ PLATFORMS
33
32
 
34
33
  DEPENDENCIES
35
34
  bundler
36
- fellowshipone!
35
+ church_community_builder!
37
36
  minitest
38
37
  rake
39
38
  vcr
40
39
  webmock
40
+
41
+ BUNDLED WITH
42
+ 1.10.6
@@ -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"
6
+ s.version = "0.0.7"
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"
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.add_runtime_dependency "faraday"
22
22
  s.add_runtime_dependency "faraday_middleware"
23
23
  s.add_runtime_dependency "multi_xml"
24
+ s.add_runtime_dependency "addressable"
24
25
 
25
26
  s.files = `git ls-files`.split("\n").delete_if { |f| !(f =~ /^examples/).nil? }
26
27
  s.test_files = `git ls-files -- {test,features}/*`.split("\n")
@@ -1,6 +1,7 @@
1
- require 'faraday'
2
- require 'faraday_middleware'
3
- require 'json'
1
+ require "faraday"
2
+ require "faraday_middleware"
3
+ require "addressable/uri"
4
+ require "json"
4
5
 
5
6
  Dir[File.expand_path('../resources/*.rb', __FILE__)].each{|f| require f}
6
7
  Dir[File.expand_path('../response/*.rb', __FILE__)].each{|f| require f}
@@ -44,11 +45,3 @@ module ChurchCommunityBuilder
44
45
 
45
46
  end
46
47
  end
47
-
48
- class Hash
49
- def to_url
50
- self.collect do |key,val|
51
- "#{CGI.escape(key.to_s)}=#{val}"
52
- end.join('&')
53
- end
54
- end
@@ -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&#{contribution_params.to_url}")
6
+ response = post("?srv=online_giving_insert_gift&#{Addressable::URI.form_encode(contribution_params)}")
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&#{person_params.to_url}")
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: addressable
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
125
139
  description: Ruby gem/plugin to interact with the Church Community Builder API (https://support.churchcommunitybuilder.com/customer/portal/articles/640589-api-documentation).
126
140
  Checkout the project on github for more detail.
127
141
  email: