Skip to content

Instantly share code, notes, and snippets.

@yasuhito
yasuhito / gist:810706
Created February 4, 2011 03:47
.irbrc
require "irb/xmp"
# ヒストリの設定
require "irb/ext/save-history"
IRB.conf[ :EVAL_HISTORY ] = 10000
IRB.conf[ :USE_READLINE ] = true
IRB.conf[ :SAVE_HISTORY ] = 10000
IRB.conf[ :HISTORY_PATH ] = File::expand_path( "~/.irb_history" )
@yasuhito
yasuhito / flog.rake
Created March 30, 2010 07:30
flog.rake
require "rake/tasklib"
require "flog"
desc "Analyze for code complexity"
task :flog do
flog = Flog.new
flog.flog [ "lib" ]
threshold = 10
@yasuhito
yasuhito / reek.rake
Created March 30, 2010 07:29
reek.rake
require "reek/rake/task"
#
# See the follwing URL for details:
# http://wiki.github.com/kevinrutherford/reek/rake-task
#
Reek::Rake::Task.new do | t |
t.fail_on_error = true
t.verbose = false
@yasuhito
yasuhito / flay.rake
Created March 30, 2010 07:28
flay.rake
require "rake/tasklib"
require "flay"
require "flay_task"
FlayTask.new do | t |
# add directories such as app, bin, spec and test if need be.
t.dirs = %w( lib )
t.threshold = 0
end
@yasuhito
yasuhito / roodi.rake
Created March 30, 2010 07:26
roodi.rake
require "rake/tasklib"
require "roodi"
require "roodi_task"
RoodiTask.new do | t |
t.patterns = %w(lib/**/*.rb spec/**/*.rb features/**/*.rb)
end