Skip to content
Closed
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
67 changes: 47 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,60 @@
name: ci
name: CI

on:
- push
- pull_request
push:
branches:
- main
pull_request:
workflow_call:

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
test:
name: Ruby ${{ matrix.ruby }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
ruby:
- "2.6"
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
- "3.4"
env:
BUNDLE_WITHOUT: development
ruby: ['3.2', '3.3', '3.4', '4.0']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
- name: Check out source
uses: actions/checkout@v5

- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
rubygems: latest # runs 'gem update --system'
- name: Run test
run: bundle exec rake spec
bundler-cache: true

- name: Run tests
run: bundle exec rspec

quality:
name: Quality and package
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out source
uses: actions/checkout@v5

- name: Set up Ruby 4.0
uses: ruby/setup-ruby@v1
with:
ruby-version: "4.0"
bundler-cache: true

- name: Run RuboCop
run: bundle exec rubocop --format github

- name: Build gem
run: gem build foruiman.gemspec

- name: Smoke-test packaged gem
run: bundle exec ruby script/smoke_gem.rb
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release

on:
push:
tags:
- "v*"

permissions:
contents: read

jobs:
ci:
name: Verify release
uses: ./.github/workflows/ci.yml

publish:
name: Publish to RubyGems.org
needs: ci
runs-on: ubuntu-latest
timeout-minutes: 10
environment: release
permissions:
contents: write
id-token: write
steps:
- name: Check out source
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Set up Ruby 4.0
uses: ruby/setup-ruby@v1
with:
ruby-version: "4.0"
bundler-cache: true

- name: Verify tag matches gem version
shell: bash
run: |
version="$(ruby -Ilib -rforuiman/version -e 'print Foruiman::VERSION')"
if [[ "$GITHUB_REF_NAME" != "v$version" ]]; then
echo "Tag $GITHUB_REF_NAME does not match gem version $version" >&2
exit 1
fi

- name: Publish gem
uses: rubygems/release-gem@v1
13 changes: 6 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/.bundle
/.env
/coverage
/man/*.html
/man/*.markdown
/.bundle/
/vendor/
/pkg/
/vendor
Gemfile.lock
/*.gem
/coverage/
/.rspec_status
/.env
3 changes: 3 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--require spec_helper
--format progress
--order random
18 changes: 18 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
AllCops:
TargetRubyVersion: 3.2
NewCops: enable
Exclude:
- vendor/**/*

Style/Documentation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/ClassAndModuleChildren:
Enabled: false
Metrics:
Enabled: false
Layout/LineLength:
Max: 120
Gemspec/RequireMFA:
Enabled: true
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Changelog

## Unreleased

- Test Ruby 3.2, 3.3, 3.4, and 4.0 in a reusable CI workflow and keep the
development dependency set compatible with Ruby 3.2.
- Add a tag-driven RubyGems trusted-publishing workflow gated by the full CI suite.
- Make renderer row-width checks independent of the runner's terminal settings.

## 0.1.2

- Fix lowercase `r` on the `all` tab to restart every process; keep `R` available
from any tab and make the footer describe the selected restart scope.
- Show the active Procfile in the header, including custom paths and working
directories, with filename priority in narrow terminals.
- Follow the terminal's global theme through its ANSI palette and default
background. Use reverse-video selection for light, dark, and monochrome themes.
- Verify group restarts with real keyboard input and process cleanup, and cover
Procfile titles, theme inheritance, and preserved child colors.

## 0.1.1

- Redesign the TUI with a forest palette, framed process navigation, selected-tab
backgrounds, status colors, aligned log columns, a scrollbar, and grouped help.
- Support truecolor, 256 colors, and `NO_COLOR`; preserve child ANSI styles without
letting resets overwrite the interface background.
- Adapt chrome and log metadata to terminal size, keep selected tabs visible,
and use the actual visible log height for scrolling and paging.
- Include a static preview fixture and expand color, layout, and PTY coverage.

## 0.1.0

- Fork-derived MVP based on Foreman `f65ddba83932bd4670e014389d6e27ea1e20b469`.
- Strict Procfiles, layered environments, and validated port allocation.
- Independent process supervision, bounded log rings, and asynchronous restarts.
- Terminal tabs, scrolling, Unicode-aware rows, and exception-safe restoration.
- Automatic plain mode and process-group cleanup with TERM/KILL escalation.
Loading