Skip to content

Commit

Permalink
Merge pull request #9 from apainintheneck/update-readme
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
apainintheneck authored Nov 19, 2023
2 parents bb517f1 + 449da86 commit fdf1b34
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ OPTIONS
: Search for countries by the following criteria
1. country (like --country)
2. region (like --region)
3. currency (like --currency)
3. currency (like --money)

-c/--country
: Display all countries
Expand Down Expand Up @@ -194,11 +194,23 @@ $ atlasq --money Surinamese\ Dollar

```

## Data

Country data is sourced from the [countries](https://github.com/countries/countries) gem which provides country and region information and implements the ISO3166 standard country codes and names.

Currency data is sourced from from the [money](https://github.com/RubyMoney/money) and [money-heuristics](https://github.com/RubyMoney/money-heuristics) gems which provide information about currency names and symbols.

Language data is sourced from the [ISO-639](https://github.com/xwmx/iso-639) gem which implements the ISO369 standard for language codes and names.

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. Use either `rake lint` to lint the code or `rake fix` to automatically fix simple linter errors.

You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
This file gets generated with the `rake readme:generate` command to make sure the example output is always up-to-date. We even check for this on CI with the `rake readme:outdated` command.

## Contributing

Expand Down
16 changes: 14 additions & 2 deletions bin/generate_readme
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,23 @@ puts <<~README
#{atlasq "--money", "Surinamese Dollar"}
```
## Data
Country data is sourced from the [countries](https://github.com/countries/countries) gem which provides country and region information and implements the ISO3166 standard country codes and names.
Currency data is sourced from from the [money](https://github.com/RubyMoney/money) and [money-heuristics](https://github.com/RubyMoney/money-heuristics) gems which provide information about currency names and symbols.
Language data is sourced from the [ISO-639](https://github.com/xwmx/iso-639) gem which implements the ISO369 standard for language codes and names.
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. Use either `rake lint` to lint the code or `rake fix` to automatically fix simple linter errors.
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
This file gets generated with the `rake readme:generate` command to make sure the example output is always up-to-date. We even check for this on CI with the `rake readme:outdated` command.
## Contributing
Expand Down
2 changes: 1 addition & 1 deletion lib/atlasq/command/help.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def content
: Search for countries by the following criteria
1. country (like --country)
2. region (like --region)
3. currency (like --currency)
3. currency (like --money)
-c/--country
: Display all countries
Expand Down

0 comments on commit fdf1b34

Please sign in to comment.