Skip to content

Commit 245bb06

Browse files
feat: Support Ruby 3.3
1 parent df06905 commit 245bb06

13 files changed

+168
-50
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
3+
4+
## Checklist
5+
6+
- [ ] rebased onto latest `master`
7+
- [ ] followed the [Conventional Commits](https://www.conventionalcommits.org) convention
8+
- [ ] appraisal files updated (`bundle exec appraisal update`)

.github/dependabot.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
8+
updates:
9+
- package-ecosystem: bundler
10+
directory: /
11+
insecure-external-code-execution: allow
12+
schedule:
13+
interval: weekly
14+
allow:
15+
- dependency-type: all
16+
groups:
17+
dependencies:
18+
patterns:
19+
- "*"
20+
21+
- package-ecosystem: github-actions
22+
directory: /
23+
schedule:
24+
interval: weekly

.github/workflows/ci.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: CI
9+
10+
on:
11+
push:
12+
branches:
13+
- master
14+
pull_request:
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
test:
21+
runs-on: ubuntu-latest
22+
timeout-minutes: 10
23+
24+
concurrency:
25+
# Cancel intermediate builds
26+
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.ruby-version }}-${{ matrix.appraisal }}
27+
cancel-in-progress: true
28+
29+
strategy:
30+
matrix:
31+
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3']
32+
appraisal: ['faraday_1.x', 'faraday_2.x']
33+
34+
env:
35+
BUNDLE_JOBS: 4
36+
BUNDLE_GEMFILE: gemfiles/${{ matrix.appraisal }}.gemfile
37+
38+
steps:
39+
- uses: actions/checkout@v4
40+
with:
41+
submodules: true
42+
43+
- name: Set up Ruby
44+
uses: ruby/setup-ruby@v1
45+
with:
46+
ruby-version: ${{ matrix.ruby-version }}
47+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
48+
49+
- name: Run tests
50+
run: |
51+
bundle exec rspec
52+
bundle exec rubocop
53+
bundle exec rake benchmark

.github/workflows/fossa.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: FOSSA License Check
2+
3+
on:
4+
push:
5+
# branches:
6+
# - master
7+
pull_request:
8+
9+
jobs:
10+
fossa-scan:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: mdsol/fossa_ci_scripts@main
15+
env:
16+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
17+
FOSSA_FAIL_BUILD: false

.github/workflows/publish.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
name: Build + Publish
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: 3.3
24+
25+
- name: Publish to RubyGems
26+
run: |
27+
mkdir -p $HOME/.gem
28+
touch $HOME/.gem/credentials
29+
chmod 0600 $HOME/.gem/credentials
30+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
31+
gem build *.gemspec
32+
gem push *.gem
33+
env:
34+
GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_AUTH_TOKEN }}"

.github/workflows/release-please.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: google-github-actions/release-please-action@v4

.release-please-manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "7.1.0"
3+
}

.travis.yml

-46
This file was deleted.

Appraisals

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
appraise 'faraday_1.x' do
4-
gem 'faraday', '~> 1.9'
4+
gem 'faraday', '~> 1.10'
55
end
66

77
appraise 'faraday_2.x' do

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# MAuth-Client
2-
[![Build Status](https://travis-ci.org/mdsol/mauth-client-ruby.svg?branch=master)](https://travis-ci.org/mdsol/mauth-client-ruby)
32

43
This gem consists of MAuth::Client, a class to manage the information needed to both sign and authenticate requests
54
and responses, and middlewares for Rack and Faraday which leverage the client's capabilities.

gemfiles/faraday_1.x.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "faraday", "~> 1.9"
5+
gem "faraday", "~> 1.10"
66

77
group :development do
88
gem "appraisal", "~> 2.4"

release-please-config.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"release-type": "ruby",
3+
"include-component-in-tag": false,
4+
"include-v-in-tag": true,
5+
"packages": {
6+
".": {
7+
"package-name": "mauth-client"
8+
}
9+
}
10+
}

spec/client_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require 'faraday'
55
require 'mauth/client'
66
require 'securerandom'
7-
require_relative './support/shared_contexts/client'
7+
require_relative 'support/shared_contexts/client'
88

99
describe MAuth::Client do
1010
include_context 'client'

0 commit comments

Comments
 (0)