README.md

November 3, 2024 ยท View on GitHub

exercism-fetcher

License People Stars Forks Watches Last Updated

Fetch Exercism Tracks Data ๐Ÿ’ช๐Ÿ”ฝ

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