Skip to content

Commit

Permalink
Fix linting failures
Browse files Browse the repository at this point in the history
  • Loading branch information
apainintheneck committed Nov 18, 2023
1 parent 84b4c59 commit 474aba8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
8 changes: 5 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ desc "Shortcut for `rake rubocop:autocorrect`"
task fix: :"rubocop:autocorrect"

namespace "readme" do
desc "Check if the readme needs to be regenerated"
task :outdated do
Tempfile.open("readme") do |file|
sh "bin/generate_readme > #{ file.path }"
sh "diff -q README.md #{ file.path }"
sh "bin/generate_readme > #{file.path}"
sh "diff -q README.md #{file.path}"
end
end

desc "Regenerate the readme"
task :generate do
Tempfile.open("readme") do |file|
sh "bin/generate_readme > #{ file.path }"
sh "bin/generate_readme > #{file.path}"
mv file.path, "README.md"
end
end
Expand Down
20 changes: 10 additions & 10 deletions bin/generate_readme
Original file line number Diff line number Diff line change
Expand Up @@ -22,53 +22,53 @@ puts <<~README
Query for country info at the command line.
```console
#{ atlasq }
#{atlasq}
```
## Documentation
```console
#{ atlasq "--help" }
#{atlasq "--help"}
```
## Examples
### Countries
```console
#{ atlasq "--country", "418" }
#{atlasq "--country", "418"}
```
```console
#{ atlasq "--country", "AM" }
#{atlasq "--country", "AM"}
```
```console
#{ atlasq "--country", "honduras" }
#{atlasq "--country", "honduras"}
```
### Regions
```console
#{ atlasq "--region", "melanesia" }
#{atlasq "--region", "melanesia"}
```
```console
#{ atlasq "--region", "antarctica" }
#{atlasq "--region", "antarctica"}
```
### Currencies
```console
#{ atlasq "--money", "ANG" }
#{atlasq "--money", "ANG"}
```
```console
#{ atlasq "--money", "฿" }
#{atlasq "--money", "฿"}
```
```console
#{ atlasq "--money", "Surinamese Dollar" }
#{atlasq "--money", "Surinamese Dollar"}
```
## Development
Expand Down

0 comments on commit 474aba8

Please sign in to comment.