Ichigeki

Build Status

This is Script::Ichigeki ruby version.

Installation

Add this line to your application's Gemfile:

gem 'ichigeki'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ichigeki

Usage

# sample.rb
require 'ichigeki'

Ichigeki.hissatsu(
  dialog_message: "殺っちゃう??",
  log_file_postfix: '.ichigeki',
  exec_date: "2014-03-08"
)

puts 'ichigeki: グハッ'

bundle exec ruby sample.rb
less .sample.rb.ichigeki
# This log file is generated by ichigeki.start: 2014-03-08 12:00:00 +0900
---
ichigeki: 

We can set optons when require this gem like this

require("ichigeki").hissatsu(
  log_file_postfix: '.hoge'
  exec_date: "2014-03-10"
)

thanks p-r

Contributing

  1. Fork it ( http://github.com//ichigeki/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
    1. Commit your changes (git commit -am 'Add some feature')
  3. Push to the branch (git push origin my-new-feature)
    1. Create new Pull Request