church_community_builder 0.0.19 → 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: e573525f18e1ba8736878d42c25d4c2e7ea42f6b25758441bc9a583bf09c38ad
4
- data.tar.gz: 55519ee1be6a6c5e7e891cff02d20bd184a6cf1666c3182b1819dafceac09b5c
3
+ metadata.gz: 52463b96e7f5e1132c0d5c7397659f681d7e86ba7ccd278496a5a926f44eaa04
4
+ data.tar.gz: ac9357462e141cf351d5f62240f370bf2b43e7f638a58a933fd01020e06616c1
5
5
  SHA512:
6
- metadata.gz: '085e1724dbb24a3ac217eb52ecafd95e8fd2bf3c29ff7f441342e8fb8b166fd10fd66d4ef8918b4f7f6923c6ae82fdbb380b25e69f323ffe5aae921896895139'
7
- data.tar.gz: ea04892b8e5d6693e3b5ca7aa36c634e09bfdb4a72b5db635a60782a9742ac7ed723b8501d2a244f2f4c734aa5d3669d9c95f7017288c7c1645b530f088475cd
6
+ metadata.gz: c14f8c95984a7b3c1fff4018e5b211cadb044f88504c9f7cfb3a7482f194788f1f64dd200329dd66fa79ac70d4ad080ca3e8c499157de41d91b36eca44b68fb7
7
+ data.tar.gz: fa6a52c59d4342433842ae6463374e566c717eb0ff351d1938121934f2df5801ddd8ec1828808c288013c3a42087845c2ed7990218db0d13569b8b25fbad3e3b
@@ -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.19'
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.19
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: 2022-08-05 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
  - - ">="