setsuzoku 0.15.3 → 0.15.5

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
  SHA256:
3
- metadata.gz: 310804810829fb3a37a2851c532d72049bc36a25cf535c57fa357602595ca4d1
4
- data.tar.gz: 5dfccffc4a2c10abfbb9ca54452fa30c49b5fd2c6d99f04edf3be7b6aa669c38
3
+ metadata.gz: d96415c7bf9bbd2ac52f72e9460277d1fceb768f85a504fc786206d823113fdc
4
+ data.tar.gz: cb0d401f5f761ff2e8b83ab78924bb301e795338728f762bd699d08b8736a968
5
5
  SHA512:
6
- metadata.gz: f413927d896b78de9667f110df2a75d3c1315a8f7a005561d5ba814078a430d01b4f1ef61e16f8e18ec1ddae0ecf9109ba1bed8e9261b2e79c52bab515850982
7
- data.tar.gz: 4d441ef32479350aa9e349a2d096bdde5c99b8765ad63c3cc6bd00a1395f1ae6524c7d1610cc4c062dd93bfe900e9cd40ff3ba8096fc324a6e13fa2d7bda1e5b
6
+ metadata.gz: a4db4159146b7cc977f81d11eb4bf4bf81adfafe5f7de1ac6f25bca74d277658799b068692595ccc7c44e95ab9e089a15413782050cad2c25bd459cd0deed3ea
7
+ data.tar.gz: c56da6f3d62467b6c23ec698701500823c2ae715bafd7881f4132c5658c6fd95b7cfef44154d577b7bf6a2c14661e7aaca356bad75ecf9a74c1aeb45d6ccf76e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- setsuzoku (0.15.2)
4
+ setsuzoku (0.15.5)
5
5
  activesupport (>= 5.0, < 7)
6
6
  faraday (>= 2.7.10, < 3.0)
7
7
  nokogiri (>= 1.10, < 2.0)
@@ -31,7 +31,7 @@ GEM
31
31
  concurrent-ruby (~> 1.0)
32
32
  mini_portile2 (2.8.4)
33
33
  minitest (5.19.0)
34
- nokogiri (1.15.3)
34
+ nokogiri (1.15.4)
35
35
  mini_portile2 (~> 2.8.2)
36
36
  racc (~> 1.4)
37
37
  public_suffix (4.0.5)
@@ -54,7 +54,7 @@ GEM
54
54
  safe_yaml (1.0.5)
55
55
  sorbet (0.5.10030)
56
56
  sorbet-static (= 0.5.10030)
57
- sorbet-runtime (0.5.10946)
57
+ sorbet-runtime (0.5.10972)
58
58
  sorbet-static (0.5.10030-universal-darwin-14)
59
59
  tzinfo (2.0.6)
60
60
  concurrent-ruby (~> 1.0)
@@ -45,13 +45,14 @@ module Setsuzoku
45
45
  @faraday = Faraday.new(url: request_properties[:formatted_full_url], request: { params_encoder: Faraday::FlatParamsEncoder }) do |faraday|
46
46
  faraday.request(:multipart) if options[:attachment_urls].present?
47
47
  faraday.request(:url_encoded)
48
- #TODO: change these to faraday = self.auth_strategy.set_authorization!(request: faraday)
49
48
  unless request.without_headers
50
49
  if authorization
50
+ # updated authorization with updated faraday
51
+ # https://lostisland.github.io/faraday/#/middleware/included/authentication
51
52
  if authorization.key?(:token)
52
- faraday.authorization(:Bearer, authorization[:token])
53
+ faraday.request(:authorization, 'Bearer', authorization[:token])
53
54
  elsif authorization.key?(:basic_auth)
54
- faraday.request(:basic_auth, authorization[:basic_auth][:username], authorization[:basic_auth][:password])
55
+ faraday.request(:authorization, :basic, authorization[:basic_auth][:username], authorization[:basic_auth][:password])
55
56
  end
56
57
  end
57
58
  end
@@ -37,14 +37,14 @@ module Setsuzoku
37
37
  end
38
38
 
39
39
 
40
- # if the auth credientials are valid
41
- #
40
+
41
+ # Test if the auth credentials are valid.
42
42
  #
43
+ # @ return [Boolean]
43
44
  sig { override.returns(T::Boolean) }
44
45
  def auth_credential_valid?
45
- true
46
+ self.plugin.respond_to?(:credentials_valid?) ? self.plugin.credentials_valid? : true
46
47
  end
47
-
48
48
  end
49
49
  end
50
50
  end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Setsuzoku
5
- VERSION = '0.15.3'
5
+ VERSION = '0.15.5'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: setsuzoku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.3
4
+ version: 0.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Stadtler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-03 00:00:00.000000000 Z
11
+ date: 2023-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler