Skip to content

Commit ddb8a8b

Browse files
committed
Exit with -1 if EOL repos are present
Partially closes #11
1 parent 057da4b commit ddb8a8b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@
22

33
### Added
44

5-
- Allow specifying the user used on the repository search
5+
- Allow specifying the user used on the repository search.
66

77
```sh
88
$ end_of_life --user=matz # searches on matz's repositories
99
```
1010

1111
### Fixed
1212

13-
- Load end_of_life JSON database from dynamic path [#10](https://github.com/MatheusRich/end_of_life/pull/10)
13+
- Load end_of_life JSON database from dynamic path [#10](https://github.com/MatheusRich/end_of_life/pull/10).
1414

1515
When installed on a fresh Ruby installation without the source code cloned,
1616
the JSON file couldn't be found because it was looking at the cwd of the
1717
running process instead of the Gem's lib directory path.
1818

19-
2019
### Changed
2120

21+
- Exit with -1 if EOL repos are present.
22+
2223
- Upgrade `octokit` to v4.22, which fixes [a Faraday warning], so we can remove the dependency on the `warning` gem.
2324

2425
[a faraday warning]: https://github.com/octokit/octokit.rb/pull/1359

lib/end_of_life.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def print_diagnose_for(repositories)
9494

9595
puts "Found #{repositories.size} repositories using EOL Ruby (<= #{RubyVersion::EOL}):"
9696
puts end_of_life_table(repositories)
97+
exit(-1)
9798
end
9899

99100
def end_of_life_table(repositories)

0 commit comments

Comments
 (0)