Takarabako

Build Status Gem Version endorse

ランダムにアイテム名を返すツールです。ゲームを作る際のテストなどに使えます。

Usage

Takarabako.open #=> "雷神の剣"
Takarabako.open #=> "インフィニティグローブ"
Takarabako.open #=> "賢者の鎧"
Takarabako.open #=> "ルシフェルレイピア"

出力される名前の候補となるデータは lib/data/names.ja.ymllib/data/names.en.yml にあるので、必要であればファイルを修正してください。

takarabakoコマンド

takarabakoをインストールすると takarabako コマンドが使えるようになります。

> takarabako
雷神の剣
> takarabako
賢者の鎧

Installation

Add this line to your application's Gemfile:

gem 'takarabako'

And then execute:

$ bundle

Or install it yourself as:

$ gem install takarabako

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request