mirror of
https://github.com/lostisland/faraday.git
synced 2025-07-07 00:02:13 -04:00
Compare commits
6 Commits
e7bbb4e750
...
82086930f9
Author | SHA1 | Date | |
---|---|---|---|
|
82086930f9 | ||
|
eeec3677d7 | ||
|
92c038bcbf | ||
|
7a382b5abb | ||
|
16506ee918 | ||
|
d72db285e9 |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -42,7 +42,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
|
||||
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@ -12,10 +12,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Set up Ruby 2.6
|
||||
uses: actions/setup-ruby@v1
|
||||
- name: Set up Ruby 2.7
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.6.x
|
||||
ruby-version: 2.7
|
||||
|
||||
- name: Publish to RubyGems
|
||||
run: |
|
||||
|
1
Gemfile
1
Gemfile
@ -30,6 +30,7 @@ group :test, :development do
|
||||
options = (RUBY_VERSION.start_with?('3') ? { github: 'grosser/net-http-persistent', branch: 'grosser/spec' } : {})
|
||||
gem 'net-http-persistent', '>= 3.0', **options
|
||||
gem 'patron', '>= 0.4.2', platforms: :ruby
|
||||
gem 'rack', '< 3'
|
||||
gem 'rack-test', '>= 0.6', require: 'rack/test'
|
||||
gem 'rspec', '~> 3.7'
|
||||
gem 'rspec_junit_formatter', '~> 0.4'
|
||||
|
@ -1,5 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'ruby2_keywords'
|
||||
|
||||
module Faraday
|
||||
# DependencyLoader helps Faraday adapters and middleware load dependencies.
|
||||
module DependencyLoader
|
||||
@ -13,7 +15,7 @@ module Faraday
|
||||
self.load_error = e
|
||||
end
|
||||
|
||||
def new(*)
|
||||
ruby2_keywords def new(*)
|
||||
unless loaded?
|
||||
raise "missing dependency for #{self}: #{load_error.message}"
|
||||
end
|
||||
|
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Faraday
|
||||
VERSION = '1.10.2'
|
||||
VERSION = '1.10.3'
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user