setsuzoku 0.15.4 → 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
@@ -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
|
data/lib/setsuzoku/version.rb
CHANGED