LoginSignup
25
23

More than 5 years have passed since last update.

作ったgemをリリースするまで

Last updated at Posted at 2013-10-15

メモ

作成したソースを諸々コミットする

$ git add .
$ gc -m 'version 0.1'

パッケージを作成する

$ bundle exec rake build

→pkgフォルダおよび、その下にxxxxxxxx-x.x.xgemファイルが作成される

rubygems.orgのアカウントを取得

rubygems

1.「sign up」からアカウントを作成
2. アカウント作成後、Edit profile(https://rubygems.org/profile/edit) に移動
3.APIアクセス用の鍵を作成(以下のコマンドが用意されている)

$ curl -u Username https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials

githubにリポジトリを作り、ソースをアップロード

割愛

リリース(rubygemsへアップロード)

$ bundle exec rake release

以後のバージョンアップはgithubへアップ→リリースを繰り返す。

25
23
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
25
23