exercism-fetcher is a ruby gem that allows you to fetch exercise data for languages from exercism in json format.
- Fetches data directly from exercism github repositories.
- Supports fetching exericses for specific languages or all languages.
- Supports custom output directory.
- Ruby 2.6.0 or higher
- gh (GitHub CLI)
gem install exercism-fetcher
USAGE:
exercism-fetcher
--language: Language to fetch exercises for, default: all
--output: Output directory for exercises, default: exercism_data
Example:
exercism-fetcher --language ruby --output exercises
After checking out the repo, run bin/setup
to install dependencies.
Then, run rake spec
to run the tests.
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 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.
You tell me!
I wanted to create tools around exercism, needed a simple tool to fetch the exercise data.
- Learned about writing ruby gems and the ecosystem around it.
- exercism.nvim β Neovim plugin for exercism that uses this gem to fetch exercises.
β hit the star button if you found this useful β
Source | Blog | Twitter | LinkedIn | More Links | Other Projects