Sha256: 117096e815c1151e6c48bb08a1e138c83bd40b6f3de882d858a8fba382e1e311

Contents?: true

Size: 1.76 KB

Versions: 3

Compression:

Stored size: 1.76 KB

Contents

# -*- mode: ruby; coding: utf-8 -*-
require 'rubygems'
require 'bundler'
require 'rake'
require 'rake/clean'
require 'rubygems/package_task'
require 'rdoc/task'
require 'rspec/core'
require 'rspec/core/rake_task'

# Bundler::GemHelper.install_tasks

RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.rspec_opts = ["-c", "-fs"]
  spec.pattern = FileList['spec/lib/**/*_spec.rb']
end

namespace :spec do
  desc "Run RSpec for main procedure"
  RSpec::Core::RakeTask.new(:sysadmin) do |spec|
    spec.rspec_opts = ["-c", "-fs"]
    spec.pattern = FileList['spec/lib/sysadmin/**/*_spec.rb']
  end
end

if RUBY_VERSION >= '1.9.0'
  desc "Run RSpec code examples with simplecov"
  task :simplecov do
    ENV['COVERAGE'] = "on"
    Rake::Task[:spec].invoke
  end
else
  desc "Run RSpec code examples with rcov"
  RSpec::Core::RakeTask.new(:rcov) do |spec|
    spec.pattern = FileList['spec/**/*_spec.rb']
    exclude_files = [
      "gems",
    ]
    spec.rcov_opts = ['--exclude', exclude_files.join(",")]
    spec.rcov = true
  end
end

task :default => :spec

desc 'Generate documentation for the sysadmin.'
RDoc::Task.new do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "sysadmin"
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

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 = "sysadmin"
  gem.homepage = "http://github.com/id774/sysadmin"
  gem.license = "GPL"
  gem.summary = %Q{Sysadmin}
  gem.description = %Q{The general-purpose library for system administrations}
  gem.email = "idnanashi@gmail.com"
  gem.authors = ["id774"]
  # dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sysadmin-0.2.0 Rakefile
sysadmin-0.1.5 Rakefile
sysadmin-0.1.4 Rakefile