church_community_builder 0.0.18 → 0.1.0

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
  SHA256:
3
- metadata.gz: 401251c8b4bc9de5d2ae50bd6b472f1c568e4770655917ece1773e0ad3354b88
4
- data.tar.gz: aae254e82e100a10110797a849399a0d05b681c60f76676a14e810a07fbbe9b4
3
+ metadata.gz: 52463b96e7f5e1132c0d5c7397659f681d7e86ba7ccd278496a5a926f44eaa04
4
+ data.tar.gz: ac9357462e141cf351d5f62240f370bf2b43e7f638a58a933fd01020e06616c1
5
5
  SHA512:
6
- metadata.gz: bc6489dea6ce7ec3f60bd2fbed429dfe158d551b85e97d32223bb0320596cd491b98c086be0d0c3720845a50afd217859c70fdd1f2f9aa2ae10f6be05fe9f103
7
- data.tar.gz: 180ab9d7e5e1ad9ff02feed638d90eeeb1cb8ff85044d5f1080ba678e29c25e818cd69b8db9a3beeb052057b4eefd7532c4de4622ac4f615154f0581ef884f58
6
+ metadata.gz: c14f8c95984a7b3c1fff4018e5b211cadb044f88504c9f7cfb3a7482f194788f1f64dd200329dd66fa79ac70d4ad080ca3e8c499157de41d91b36eca44b68fb7
7
+ data.tar.gz: fa6a52c59d4342433842ae6463374e566c717eb0ff351d1938121934f2df5801ddd8ec1828808c288013c3a42087845c2ed7990218db0d13569b8b25fbad3e3b
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  *.gem
2
+ Gemfile.lock
@@ -5,7 +5,7 @@ require 'base64'
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'church_community_builder'
8
- s.version = '0.0.18'
8
+ s.version = '0.1.0'
9
9
  s.authors = ['Taylor Brooks']
10
10
  s.email = ['dGJyb29rc0BnbWFpbC5jb20='].map { |e| Base64.decode64(e) }
11
11
  s.homepage = 'https://github.com/taylorbrooks/church_community_builder'
@@ -22,9 +22,8 @@ Gem::Specification.new do |s|
22
22
  s.add_development_dependency 'webmock'
23
23
 
24
24
  s.add_runtime_dependency 'addressable'
25
- s.add_runtime_dependency 'faraday'
26
- s.add_runtime_dependency 'faraday_middleware'
27
- s.add_runtime_dependency 'multi_xml'
25
+ s.add_runtime_dependency 'faraday', '> 2.0'
26
+ s.add_runtime_dependency 'faraday-decode_xml'
28
27
 
29
28
  s.files = `git ls-files`.split($/)
30
29
  s.test_files = s.files.grep(%r{^(test)/})
@@ -1,9 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'faraday'
4
- require 'faraday_middleware'
4
+ require 'faraday/decode_xml'
5
5
  require 'addressable/uri'
6
- require 'json'
7
6
 
8
7
  Dir[File.expand_path('../resources/*.rb', __FILE__)].each { |f| require f }
9
8
  Dir[File.expand_path('../response/*.rb', __FILE__)].each { |f| require f }
@@ -36,7 +35,7 @@ module ChurchCommunityBuilder
36
35
 
37
36
  def connection
38
37
  Faraday.new(url: "https://#{subdomain}.ccbchurch.com/api.php") do |conn|
39
- conn.basic_auth username, password
38
+ conn.request :authorization, :basic, username, password
40
39
  conn.response :logger if logger
41
40
  conn.response :xml
42
41
  conn.use FaradayMiddleware::ChurchCommunityBuilderErrorHandler
@@ -6,7 +6,7 @@ end
6
6
 
7
7
  require 'faraday'
8
8
  module FaradayMiddleware
9
- class ChurchCommunityBuilderErrorHandler < Faraday::Response::Middleware
9
+ class ChurchCommunityBuilderErrorHandler < Faraday::Middleware
10
10
  ERROR_STATUSES = 400..600
11
11
 
12
12
  def on_complete(env)
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.18
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-27 00:00:00.000000000 Z
11
+ date: 2023-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -84,32 +84,18 @@ dependencies:
84
84
  name: faraday
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ">"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '2.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: faraday_middleware
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
94
+ - - ">"
102
95
  - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
96
+ version: '2.0'
111
97
  - !ruby/object:Gem::Dependency
112
- name: multi_xml
98
+ name: faraday-decode_xml
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - ">="
@@ -131,7 +117,6 @@ extra_rdoc_files: []
131
117
  files:
132
118
  - ".gitignore"
133
119
  - Gemfile
134
- - Gemfile.lock
135
120
  - README.md
136
121
  - Rakefile
137
122
  - church_community_builder.gemspec
@@ -167,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
152
  - !ruby/object:Gem::Version
168
153
  version: '0'
169
154
  requirements: []
170
- rubygems_version: 3.0.3
155
+ rubygems_version: 3.1.6
171
156
  signing_key:
172
157
  specification_version: 4
173
158
  summary: Ruby gem/plugin to interact with the Church Community Builder API (https://support.churchcommunitybuilder.com/customer/portal/articles/640589-api-documentation).
data/Gemfile.lock DELETED
@@ -1,42 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- church_community_builder (0.0.7)
5
- addressable
6
- faraday
7
- faraday_middleware
8
- multi_xml
9
-
10
- GEM
11
- remote: http://rubygems.org/
12
- specs:
13
- addressable (2.3.7)
14
- crack (0.4.2)
15
- safe_yaml (~> 1.0.0)
16
- faraday (0.9.2)
17
- multipart-post (>= 1.2, < 3)
18
- faraday_middleware (0.10.0)
19
- faraday (>= 0.7.4, < 0.10)
20
- minitest (5.5.1)
21
- multi_xml (0.5.5)
22
- multipart-post (2.0.0)
23
- rake (10.4.2)
24
- safe_yaml (1.0.4)
25
- vcr (2.9.3)
26
- webmock (1.20.4)
27
- addressable (>= 2.3.6)
28
- crack (>= 0.3.2)
29
-
30
- PLATFORMS
31
- ruby
32
-
33
- DEPENDENCIES
34
- bundler
35
- church_community_builder!
36
- minitest
37
- rake
38
- vcr
39
- webmock
40
-
41
- BUNDLED WITH
42
- 1.10.6