Skip to content
Open
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
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches:
- master

pull_request:

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.4'
- '3.3'
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- '2.6'
- '2.5'
- '2.4'
- '2.3'

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.bundle/
/Gemfile.lock
/TAGS
/pkg
/doc
Expand Down
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

14 changes: 14 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in awesome_print.gemspec
#gemspec

if RUBY_VERSION >= '3.0'
gem 'hoe'
else
# Since Minitest 5.16+ does not work on Ruby 2.7 or earlier, use Hoe 3.x.
# https://github.com/seattlerb/hoe/blob/v4.0.1/lib/hoe/test.rb#L68
gem 'hoe', '~> 3'
end
Comment on lines +6 to +12
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hoe 4.x depends on Minitest 5.16+, which is incompatible with Ruby versions earlier than 3.0.
Therefore, for Ruby versions earlier than 3.0, it uses Hoe 3.x.

gem 'hoe-git'
gem 'minitest'
1 change: 0 additions & 1 deletion Manifest.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.autotest
.travis.yml
History.txt
Manifest.txt
README.txt
Expand Down
1 change: 0 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ require 'hoe'

Hoe.plugin :git
Hoe.plugin :minitest
Hoe.plugin :travis

Hoe.spec 'net-http-digest_auth' do
developer 'Eric Hodel', 'drbrain@segment7.net'
Expand Down