Skip to content
This repository was archived by the owner on Aug 28, 2023. It is now read-only.

Commit f5b6620

Browse files
committed
[skip ci] Update to match the latest template
Also: * Rename gem from `pipeline` to `method-pipeline` because name collision on rubygems.org * Switch from RSpec to Minitest **in the system only** (test spec not changed – does not test) * Bump version to 1.0.3
1 parent 702ec6a commit f5b6620

File tree

10 files changed

+60
-57
lines changed

10 files changed

+60
-57
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ updates:
1616
dependency-name: '*'
1717
schedule:
1818
interval: weekly
19-
assignees: [ParadoxV5]

.github/workflows/pages.yml renamed to .github/workflows/documentation.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: GitHub Pages
1+
name: Generate Documentation with YARD
22
on:
3-
push:
3+
push:
44
branches: [main]
5-
paths: [lib/**]
5+
paths: [.github/workflows/documentation.yml, lib/**, README.md]
66
concurrency:
77
group: pages
88
cancel-in-progress: true
@@ -23,8 +23,6 @@ jobs:
2323
with:
2424
ruby-version: '3'
2525
bundler-cache: true
26-
env:
27-
BUNDLE_RUBYGEMS__PKG__GITHUB__COM: Bearer:${{ github.token }}
2826

2927
- name: Package YARD
3028
run: bundle exec yard doc

.github/workflows/packages.yml renamed to .github/workflows/package.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: GitHub Packages
1+
name: Package with RubyGems
22
on: {release: {types: [published]}}
33
jobs:
44
package:
@@ -17,6 +17,7 @@ jobs:
1717
- name: Package Gem
1818
run: gem build --output .gem *.gemspec
1919

20-
- name: Publish to GitHub Packages
21-
run: gem push --host https://rubygems.pkg.github.com/ParadoxV5 .gem
22-
env: {GEM_HOST_API_KEY: "Bearer ${{ github.token }}"}
20+
- name: Publish to RubyGems
21+
run: gem push .gem
22+
env:
23+
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}

.github/workflows/test.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
1-
name: Test with RSpec
1+
name: Test with Minitest
22
on:
33
push:
4-
branches: [main]
5-
paths: [lib/**, spec/**]
4+
paths: [.github/workflows/test.yml, lib/**, test/**, '*.gemspec']
65
pull_request:
7-
branches: [main]
8-
paths: [lib/**, spec/**]
6+
paths: [.github/workflows/test.yml, lib/**, test/**, '*.gemspec']
97
jobs:
108

119
test:
12-
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu-latest, windows-latest]
14+
ruby-version: ['3', '3.0']
15+
runs-on: ${{ matrix.os }}
1316
timeout-minutes: 5
1417
steps:
15-
18+
1619
- uses: actions/checkout@v3
1720
with:
1821
submodules: recursive
19-
22+
2023
- uses: ruby/setup-ruby@v1
2124
with:
22-
ruby-version: '3'
25+
ruby-version: ${{ matrix.ruby-version }}
2326
bundler-cache: true
2427
env:
2528
BUNDLE_RUBYGEMS__PKG__GITHUB__COM: Bearer:${{ github.token }}
2629

27-
- name: Test with RSpec
28-
run: bundle exec rspec
30+
- name: Test with Minitest
31+
run: bundle exec rake test:isolated

.github/workflows/type_check.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Check Types with Steep
22
on:
33
push:
4-
branches: [main]
5-
paths: [lib/**, sig/**]
4+
paths: [.github/workflows/type_check.yml, lib/**, sig/**, '*.gemspec']
65
pull_request:
7-
branches: [main]
8-
paths: [lib/**, sig/**]
6+
paths: [.github/workflows/type_check.yml, lib/**, sig/**, '*.gemspec']
97
jobs:
108

119
type_check:

.rspec

Lines changed: 0 additions & 1 deletion
This file was deleted.

Gemfile

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,17 @@ source 'https://rubygems.org'
33
gemspec
44

55
# Development Apps
6-
gem 'rbs', '~> 3.1.0', require: false
7-
gem 'steep', '~> 1.5.0', require: false
8-
gem 'yard', '~> 0.9.0', require: false
9-
gem 'commonmarker', '~> 0.23.0', require: false
10-
gem 'rspec', '~> 3.12.0', require: false
6+
group :development do
7+
group :type_check do
8+
gem 'rbs', '~> 3.1.0', require: false
9+
gem 'steep', '~> 1.4.0', require: false
10+
end
11+
group :documentation do
12+
gem 'yard', '~> 0.9.0', require: false
13+
gem 'commonmarker', '~> 0.23.0', require: false
14+
end
15+
group :test do
16+
gem 'rake', '~> 13.0.0'
17+
gem 'minitest', '~> 5.18.0'
18+
end
19+
end

Rakefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require 'minitest/test_task'
2+
# Create the following tasks:
3+
# * test : run tests
4+
# * test:cmd : print the testing command
5+
# * test:isolated : run tests independently to surface order dependencies
6+
# * test:deps : (alias of test:isolated)
7+
# * test:slow : run tests and reports the slowest 25
8+
Minitest::TestTask.create

pipeline.gemspec

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
# frozen_string_literal: true
22

33
Gem::Specification.new do |spec|
4-
spec.name = 'pipeline'
4+
spec.name = 'method-pipeline'
55
spec.summary = 'Pure-Ruby solution to method pipelines'
6-
spec.version = '1.0.2'
7-
spec.required_ruby_version = '~> 3.2'
8-
6+
spec.version = '1.0.3'
97
spec.author = 'ParadoxV5'
108
spec.license = 'UPL-1.0'
119

12-
github =
13-
spec.homepage =
14-
spec.metadata['homepage_uri'] =
15-
spec.metadata['source_code_uri'] = 'https://github.com/ParadoxV5/ruby-pipeline'
16-
spec.metadata['changelog_uri'] = "#{github}/commits"
17-
spec.metadata['bug_tracker_uri'] = "#{github}/issues"
18-
spec.metadata['documentation_uri'] = 'https://ParadoxV5.github.io/ruby-pipeline/'
10+
11+
github_account = spec.author
12+
github = File.join 'https://github.com', github_account, spec.name
13+
spec.homepage = github
14+
spec.metadata = {
15+
'homepage_uri' => spec.homepage,
16+
'source_code_uri' => github,
17+
'changelog_uri' => File.join(github, 'releases'),
18+
'bug_tracker_uri' => File.join(github, 'issues'),
19+
'documentation_uri' => File.join('https://rubydoc.info/gems', spec.name)
20+
}
1921

2022
spec.files = Dir['**/*']
21-
spec.require_paths = ['lib']
23+
spec.required_ruby_version = '~> 3.2'
2224
end

spec/spec_helper.rb

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)