Chisle
코딩 에이전트 플러그인, 20개 실시간 작업에서 기본 모델 52% 활용, 간결한 페르소나와 출력 압축 제공
Rails 모델과 라우트 파일에 주석을 추가하는 Ruby Gem
A Ruby Gem that adds annotations to your Rails models and route files.
개발 도구Ruby · HTMLGitHub @drwl직접 설치운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗A Ruby Gem that adds annotations to your Rails models and route files.
Adds comments summarizing the model schema or routes in your:
routes.rb file (for Rails projects)The schema comment looks like this:
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# name :string
# email :string
# sign_in_count :integer default(0), not null
# admin :boolean default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
#
class User < ApplicationRecord
...
$ gem install annotaterb
Or install it into your Rails project through the Gemfile:
group :development do
...
gem "annotaterb"
...
For Rails projects, model files can get automatically annotated after migration tasks. To do this, run the following command:
$ bin/rails g annotate_rb:install
This will copy a rake task into your Rails project's lib/tasks directory that will hook into the Rails project rake tasks, automatically running AnnotateRb after database migration rake tasks.
$ bin/rails db:migrate
# ...
# Annotating models
# Annotated (1): app/models/user.rb
To skip the automatic annotation that happens after a db task, pass the environment variable ANNOTATERB_SKIP_ON_DB_TASKS=1 before your command.
$ ANNOTATERB_SKIP_ON_DB_TASKS=1 bin/rails db:migrate
The following Rails generator commands get added.
$ bin/rails generate --help
...
AnnotateRb:
annotate_rb:config
annotate_rb:hook
annotate_rb:install
annotate_rb:update_config
...
bin/rails g annotate_rb:config
.annotaterb.yml, using defaults from the gem.bin/rails g annotate_rb:hook
bin/rails db:migrate).bin/rails g annotate_rb:install
config and hook generator commandsbin/rails g annotate_rb:update_config
.annotaterb.yml any configuration key-value pairs that are used by the Gem. This is useful when there's a drift between the config file values and the gem defaults (i.e. when new features get added).Refer to the migration guide.
AnnotateRb has a CLI that you can use to add or remove annotations.
여기까지가 README 앞부분입니다. 나머지는 원문에서 읽을 수 있습니다. README 전문 보기 ↗