# encoding: utf-8 require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'rake' require 'jeweler' Jeweler::Tasks.new do |gem| # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options gem.name = "linux-tools" gem.homepage = "http://github.com/mrigesh/linux-tools" gem.license = "MIT" gem.summary = %Q{common *NIX tools in ruby} gem.description = %Q{Common *NIX tools and commands which can be used easily in irb} gem.email = "mrigeshpokhrel@gmail.com" gem.authors = ["Mrigesh Pokhrel"] # dependencies defined in Gemfile end Jeweler::RubygemsDotOrgTasks.new require 'cucumber/rake/task' Cucumber::Rake::Task.new(:features) require 'reek/rake/task' Reek::Rake::Task.new do |t| t.fail_on_error = true t.verbose = false t.source_files = 'lib/**/*.rb' end require 'roodi' require 'roodi_task' RoodiTask.new do |t| t.verbose = false end task :default => :tests require 'rdoc/task' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' rdoc.title = "linux-tools #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end