setsuzoku 0.15.3 → 0.15.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d96415c7bf9bbd2ac52f72e9460277d1fceb768f85a504fc786206d823113fdc
|
4
|
+
data.tar.gz: cb0d401f5f761ff2e8b83ab78924bb301e795338728f762bd699d08b8736a968
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
53
|
+
faraday.request(:authorization, 'Bearer', authorization[:token])
|
53
54
|
elsif authorization.key?(:basic_auth)
|
54
|
-
faraday.request(:
|
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
|
-
|
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
|
data/lib/setsuzoku/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|