Skip to content

Commit 74a5303

Browse files
committed
apply non-core commits
1 parent e3ad21d commit 74a5303

6 files changed

Lines changed: 31 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
strategy:
13-
matrix: { ruby: ['3.2', '3.3', '3.4'] }
13+
matrix: { ruby: ['3.2', '3.3', '3.4', '4.0'] }
1414

1515
steps:
1616
- name: Checkout code

AGENTS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# AGENTS.md
2+
3+
## Notes
4+
5+
- `CHANGELOG.md` is generated using `git changelog`; do not edit it manually.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Completely - Bash Completions Generator
22

3+
![repocard](https://repocard.dannyben.com/svg/completely.svg)
4+
35
Completely is a command line utility and a Ruby library that lets you generate
46
bash completion scripts from simple YAML configuration.
57

spec/README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,29 @@
22

33
## Running tests
44

5+
You can run specs with `rspec` as usual.
6+
7+
We recommend using [`respec`][2], which wraps common spec workflows:
8+
59
```bash
6-
$ rspec
10+
rspec
711
# or
8-
$ run spec
9-
# or, to run just tests in a given file
10-
$ run spec zsh
11-
# or, to run just specs tagged with :focus
12-
$ run spec :focus
12+
respec
1313
```
1414

1515
You might need to prefix the commands with `bundle exec`, depending on the way
1616
Ruby is installed.
1717

18+
Useful helper shortcuts:
19+
20+
```bash
21+
# script quality checks (shellcheck + shfmt generated script tests)
22+
respec tagged script_quality
23+
24+
# integration behavior suite
25+
respec only integration
26+
```
27+
1828
## Interactive Approvals
1929

2030
Some tests may prompt you for an interactive approval of changes. This
@@ -29,4 +39,5 @@ ZSH compatibility test is done by running the completely tester script inside a
2939
zsh container. This is all done automatically by `spec/completely/zsh_spec.rb`.
3040

3141

32-
[1]: https://github.com/dannyben/rspec_approvals
42+
[1]: https://github.com/dannyben/rspec_approvals
43+
[2]: https://github.com/DannyBen/respec

spec/completely/commands/install_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252

5353
expect { subject.execute %w[install completely-test --dry] }
5454
.to output_approval('cli/install/dry')
55+
.except(%r[/home/([^/]+)], '/home/USER')
5556
end
5657
end
5758

@@ -64,6 +65,7 @@
6465
expect { subject.execute %w[install completely-test - --dry] }
6566
.to output_approval('cli/install/stdin-dry')
6667
.except(/cp [^\s]*completely-[^\s]*/, 'cp <tmpfile-path>')
68+
.except(%r[/home/([^/]+)], '/home/USER')
6769
end
6870
end
6971

spec/completely/commands/uninstall_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
expect(mock_installer).not_to receive(:uninstall)
3939

4040
expect { subject.execute %w[uninstall completely-test --dry] }
41-
.to output_approval('cli/uninstall/dry').diff(20)
41+
.to output_approval('cli/uninstall/dry')
42+
.except(%r[/home/([^/]+)], '/home/USER')
43+
.diff(20)
4244
end
4345
end
4446

0 commit comments

Comments
 (0)