Sha256: d35d83ccf5e590fb9222608d6029b8f5be17e3945974f7146c54acc32d98fea5
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 KB
Contents
# Chusaku | Build | Gem | |-------|-----| |[![CircleCI](https://circleci.com/gh/nshki/chusaku.svg?style=svg&circle-token=e1917972632f242932171de0ca5443148e83151c)](https://circleci.com/gh/nshki/chusaku)|[![Gem Version](https://badge.fury.io/rb/chusaku.svg)](https://badge.fury.io/rb/chusaku)| Add comments above your Rails actions that look like: ```ruby # @route GET /waterlilies/:id (waterlily) def show # ... end # @route PATCH /waterlilies/:id (waterlily) # @route PUT /waterlilies/:id (waterlily) def update # ... end ``` Based on your `routes.rb` file! ## Installation Add this line to your Rails application's Gemfile: ```ruby group :development do # ... gem 'chusaku', require: false # ... end ``` And then execute: ``` $ bundle install ``` ## Usage From the root of your Rails application, run: ``` $ bundle exec chusaku ``` ## Development Read the blog post explaining how the gem works at a high level: https://nshki.com/chusaku-a-controller-annotation-gem/. After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. 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, git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chusaku-0.1.4 | README.md |