README.md
November 3, 2024 ยท View on GitHub
exercism-fetcher is a ruby gem that allows you to fetch exercise data for languages from exercism in json format.
โจ Features
- Fetches data directly from exercism github repositories.
- Supports fetching exericses for specific languages or all languages.
- Supports custom output directory.
โก Setup
โ๏ธ Requirements
- Ruby 2.6.0 or higher
- gh (GitHub CLI)
๐ป Installation
gem install exercism-fetcher
๐ Usage
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
Development
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.
๐๏ธ What's Next
You tell me!
๐งโ๐ป Behind The Code
๐ Inspiration
I wanted to create tools around exercism, needed a simple tool to fetch the exercise data.
๐ก Challenges/Learnings
- Learned about writing ruby gems and the ecosystem around it.
๐ More Info
- 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