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