church_community_builder 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/church_community_builder.gemspec +1 -1
- data/lib/church_community_builder/client.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec015b8cb9d116d32e648eec4833651f3760a2db
|
4
|
+
data.tar.gz: 68ac6d382e242b122ce0a2f8a18caeb627813a25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 417a7de18d4344da16090bc2b86b8e406e2362ae71ed226ccf690ba465a2dcd42fbaa5d5f488f3cf5b6b6b3bba665aa2ab7be48417c7e3c542ef6aacb932a02b
|
7
|
+
data.tar.gz: bbbc3d6aa4c142e02b59231c2ccfabee3ace15bd497d1662be02e0fafc605272f468e6c7df40023cd8817ff069fbffd4c3219e18a4e5ae7780cf668938304425
|
@@ -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.14"
|
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"
|
@@ -13,12 +13,13 @@ module ChurchCommunityBuilder
|
|
13
13
|
include resource
|
14
14
|
end
|
15
15
|
|
16
|
-
attr_reader :subdomain, :username, :password
|
16
|
+
attr_reader :subdomain, :username, :password, :logger
|
17
17
|
|
18
|
-
def initialize(subdomain, username, password)
|
18
|
+
def initialize(subdomain, username, password, logger = false)
|
19
19
|
@subdomain = subdomain
|
20
20
|
@username = username
|
21
21
|
@password = password
|
22
|
+
@logger = logger
|
22
23
|
end
|
23
24
|
|
24
25
|
def get(path)
|
@@ -39,7 +40,7 @@ module ChurchCommunityBuilder
|
|
39
40
|
def connection
|
40
41
|
Faraday.new(url: "https://#{subdomain}.ccbchurch.com/api.php") do |connection|
|
41
42
|
connection.basic_auth username, password
|
42
|
-
connection.response :logger
|
43
|
+
connection.response :logger if logger
|
43
44
|
connection.response :xml
|
44
45
|
connection.adapter Faraday.default_adapter
|
45
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: church_community_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|