$ bundle gem GEM [--bin or -b] [--test=TESTFRAMEWORK] [--edit=TEXTEDITOR] [--ext]
옵션:
--bin, -b: 라이브러리를 위한 바이너리를 생성합니다.
--coc: 행동 강령 파일을 생성합니다.
--edit: 생성된 gemspec을 특정 편집기에서 엽니다.(기본 값은$EDITOR, $BUNDLER_EDITOR)
--ext: C 확장기능을 위한 뼈대를 생성합니다.
--mit: MIT 라이선스 파일을 만듭니다.
--test: 라이브러리를 위한 테스트 디렉터리를 생성합니다.
기본 값은 rspec이지만, minitest도 지원합니다.
처음 실행할 때, bundle gem은 테스트 프레임워크, 행동 강령, MIT 라이선스의 설정을 물어봅니다. 이 설정은 앞으로 실행할 때를 위해 ~/.bundle/config에 저장됩니다.
$ rake -T rake build # Build GEM-0.1.0.gem into the pkg directory rake install # Build and install GEM-0.1.0.gem into system gems rake install:local # Build and install GEM-0.1.0.gem into system gems without network access rake release # Create tag v0.1.0 and build and push GEM-0.1.0.gem to Rubygems rake test # Run tests