setsuzoku 0.15.4 → 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: 0e006f733eaed88a4bd812e8cafb1c56d8d006fb68d86150344bd2c596726921
4
- data.tar.gz: 621d6a11886827b2f826a7e217005c68647907ff4db0ab943718ebaced3811aa
3
+ metadata.gz: d96415c7bf9bbd2ac52f72e9460277d1fceb768f85a504fc786206d823113fdc
4
+ data.tar.gz: cb0d401f5f761ff2e8b83ab78924bb301e795338728f762bd699d08b8736a968
5
5
  SHA512:
6
- metadata.gz: 8edae99807c5775396caaef1e0cb1c5c4175b9de2f555b7d2242838bf64cbce5beff6927509c720c7dc7fcf04c120abe61d6dc9fab360e1a37f3bc124a71a67f
7
- data.tar.gz: d0445efb870acb5034ae8bc46c6890f6f722548af91722b5d8d64fc0353d0df3d5d2d5a743ae60c25afb2951774eb1608bcd2dfefbb64e294d00b505ce45e220
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)
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)
@@ -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
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Setsuzoku
5
- VERSION = '0.15.4'
5
+ VERSION = '0.15.5'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: setsuzoku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.4
4
+ version: 0.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Stadtler