church_community_builder 0.0.13 → 0.0.14

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: e52f5a807cdfbad48295dbab5ad05d5c35e158ef
4
- data.tar.gz: 326067c175be2005e91f8a5d09bd388b39190d33
3
+ metadata.gz: ec015b8cb9d116d32e648eec4833651f3760a2db
4
+ data.tar.gz: 68ac6d382e242b122ce0a2f8a18caeb627813a25
5
5
  SHA512:
6
- metadata.gz: c797f0571678f02381cc4c6f5e95bcf3f7bca7db809785f764325ec21f1c76fc71acf0e44216876cac2ce27938d3bee0a510ebd3177fc4229bd842a5b4695172
7
- data.tar.gz: 0a1c6181d2b5556e147e9c874320aa2fb221ce3e7505a86563bdfcb04163c732356c852404aa62da5559abb4c26864adc4157a0fd1909c020ed2fa99865bebaf
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.13"
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.13
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-01-15 00:00:00.000000000 Z
11
+ date: 2016-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler