Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

require "appraisal/matrix"

appraisal_matrix(faraday: { versions: [">= 1.0"], step: :major })
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

**Note:** this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.2.0 - Unreleased
### Changed
- Relaxed faraday dependency to allow v1.x

## [0.1.1] - 2023-08-16
### Fixed
- Fixed a bug where the `hosts` list was not be re-resolved on each new request made
Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ source 'https://rubygems.org'

gemspec

gem 'appraisal'
gem 'appraisal-matrix'

gem 'base64'
gem 'byebug'
gem 'pry-byebug'
Expand Down
13 changes: 11 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
PATH
remote: .
specs:
faraday-highly_available_retries (0.1.1)
faraday (~> 2.0)
faraday-highly_available_retries (0.2.0.pre.dc.0)
faraday (>= 1.0)

GEM
remote: https://rubygems.org/
specs:
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
appraisal-matrix (0.3.0)
appraisal (~> 2.2)
ast (2.4.2)
base64 (0.2.0)
byebug (11.1.3)
Expand All @@ -32,7 +38,7 @@
racc (1.7.1)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.8.1)

Check failure on line 41 in Gemfile.lock

View check run for this annotation

Security Scanner as a Service / Bundle Audit

Gemfile.lock#L41

rexml Warning Message: https://github.com/ruby/rexml/security/advisories/GHSA-vg3r-rm7w-2xgh CVE: CVE-2024-35176 Severity: medium

Check failure on line 41 in Gemfile.lock

View check run for this annotation

Security Scanner as a Service / Bundle Audit

Gemfile.lock#L41

rexml Warning Message: https://github.com/ruby/rexml/security/advisories/GHSA-4xqq-m2hx-25v8 CVE: CVE-2024-39908 Severity: medium

Check failure on line 41 in Gemfile.lock

View check run for this annotation

Security Scanner as a Service / Bundle Audit

Gemfile.lock#L41

rexml Warning Message: https://www.ruby-lang.org/en/news/2024/08/01/dos-rexml-cve-2024-41123 CVE: CVE-2024-41123 Severity: medium

Check failure on line 41 in Gemfile.lock

View check run for this annotation

Security Scanner as a Service / Bundle Audit

Gemfile.lock#L41

rexml Warning Message: https://www.ruby-lang.org/en/news/2024/08/01/dos-rexml-cve-2024-41946 CVE: CVE-2024-41946 Severity: medium

Check failure on line 41 in Gemfile.lock

View check run for this annotation

Security Scanner as a Service / Bundle Audit

Gemfile.lock#L41

rexml Warning Message: https://github.com/ruby/rexml/security/advisories/GHSA-vmwr-mc7x-5vc3 CVE: CVE-2024-43398 Severity: medium

Check failure on line 41 in Gemfile.lock

View check run for this annotation

Security Scanner as a Service / Bundle Audit

Gemfile.lock#L41

rexml Warning Message: https://github.com/ruby/rexml/security/advisories/GHSA-2rxp-v6pw-ch6m CVE: CVE-2024-49761 Severity: high
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
Expand Down Expand Up @@ -74,6 +80,7 @@
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
thor (1.3.2)
unicode-display_width (2.4.2)

PLATFORMS
Expand All @@ -82,6 +89,8 @@
x86_64-linux

DEPENDENCIES
appraisal
appraisal-matrix
base64
byebug
faraday-highly_available_retries!
Expand Down
2 changes: 1 addition & 1 deletion faraday-highly_available_retries.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.7', '< 4'

spec.add_dependency 'faraday', '~> 2.0'
spec.add_dependency 'faraday', '>= 1.0'
end
19 changes: 19 additions & 0 deletions gemfiles/faraday_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "appraisal-matrix"
gem "base64"
gem "byebug"
gem "pry-byebug"
gem "rake", "~> 13.0"
gem "rspec", "~> 3.0"
gem "simplecov", "~> 0.21.0"
gem "rubocop", "~> 1.31.0"
gem "rubocop-packaging", "~> 0.5.0"
gem "rubocop-performance", "~> 1.0"
gem "rubocop-rspec", "~> 2.0"
gem "faraday", "~> 1.0"

gemspec path: "../"
128 changes: 128 additions & 0 deletions gemfiles/faraday_1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
PATH
remote: ..
specs:
faraday-highly_available_retries (0.1.1)
faraday (>= 1.0)

GEM
remote: https://rubygems.org/
specs:
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
appraisal-matrix (0.3.0)
appraisal (~> 2.2)
ast (2.4.3)
base64 (0.2.0)
byebug (12.0.0)
coderay (1.1.3)
diff-lcs (1.6.1)
docile (1.4.1)
faraday (1.10.4)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.1.0)
multipart-post (~> 2.0)
faraday-net_http (1.0.2)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
json (2.11.3)
method_source (1.1.0)
multipart-post (2.4.1)
parallel (1.27.0)
parser (3.3.8.0)
ast (~> 2.4.1)
racc
prism (1.4.0)
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.11.0)
byebug (~> 12.0)
pry (>= 0.13, < 0.16)
racc (1.8.1)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.10.0)
rexml (3.4.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.3)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.3)
rubocop (1.31.2)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.18.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.44.1)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-packaging (0.5.1)
rubocop (>= 0.89, < 2.0)
rubocop-performance (1.19.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rspec (2.12.1)
rubocop (~> 1.31)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
thor (1.3.2)
unicode-display_width (2.6.0)

PLATFORMS
x86_64-darwin-24

DEPENDENCIES
appraisal
appraisal-matrix
base64
byebug
faraday (~> 1.0)
faraday-highly_available_retries!
pry-byebug
rake (~> 13.0)
rspec (~> 3.0)
rubocop (~> 1.31.0)
rubocop-packaging (~> 0.5.0)
rubocop-performance (~> 1.0)
rubocop-rspec (~> 2.0)
simplecov (~> 0.21.0)

BUNDLED WITH
2.4.17
19 changes: 19 additions & 0 deletions gemfiles/faraday_2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "appraisal-matrix"
gem "base64"
gem "byebug"
gem "pry-byebug"
gem "rake", "~> 13.0"
gem "rspec", "~> 3.0"
gem "simplecov", "~> 0.21.0"
gem "rubocop", "~> 1.31.0"
gem "rubocop-packaging", "~> 0.5.0"
gem "rubocop-performance", "~> 1.0"
gem "rubocop-rspec", "~> 2.0"
gem "faraday", "~> 2.0"

gemspec path: "../"
113 changes: 113 additions & 0 deletions gemfiles/faraday_2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
PATH
remote: ..
specs:
faraday-highly_available_retries (0.1.1)
faraday (>= 1.0)

GEM
remote: https://rubygems.org/
specs:
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
appraisal-matrix (0.3.0)
appraisal (~> 2.2)
ast (2.4.3)
base64 (0.2.0)
byebug (12.0.0)
coderay (1.1.3)
diff-lcs (1.6.1)
docile (1.4.1)
faraday (2.13.1)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-net_http (3.4.0)
net-http (>= 0.5.0)
json (2.11.3)
logger (1.7.0)
method_source (1.1.0)
net-http (0.6.0)
uri
parallel (1.27.0)
parser (3.3.8.0)
ast (~> 2.4.1)
racc
prism (1.4.0)
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.11.0)
byebug (~> 12.0)
pry (>= 0.13, < 0.16)
racc (1.8.1)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.10.0)
rexml (3.4.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.3)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.3)
rubocop (1.31.2)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.18.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.44.1)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-packaging (0.5.1)
rubocop (>= 0.89, < 2.0)
rubocop-performance (1.19.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rspec (2.12.1)
rubocop (~> 1.31)
ruby-progressbar (1.13.0)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
thor (1.3.2)
unicode-display_width (2.6.0)
uri (1.0.3)

PLATFORMS
x86_64-darwin-24

DEPENDENCIES
appraisal
appraisal-matrix
base64
byebug
faraday (~> 2.0)
faraday-highly_available_retries!
pry-byebug
rake (~> 13.0)
rspec (~> 3.0)
rubocop (~> 1.31.0)
rubocop-packaging (~> 0.5.0)
rubocop-performance (~> 1.0)
rubocop-rspec (~> 2.0)
simplecov (~> 0.21.0)

BUNDLED WITH
2.4.17
2 changes: 1 addition & 1 deletion lib/faraday/highly_available_retries/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Faraday
module HighlyAvailableRetries
VERSION = '0.1.1'
VERSION = '0.2.0.pre.dc.0'
end
end