Sha256: 380307067e9aa35a492818afc1ef1737e9102390e71a3baeb146aee2ed4c5d53

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

# coding: utf-8
require "bundler/gem_tasks"
require 'rubygems'
require 'rspec'
require 'rake'
require "rake/clean"
require "rubygems/package_task"
require 'rspec/core/rake_task'
require 'yard'
require 'yard/rake/yardoc_task.rb'
require "rake/tasklib"
require "roodi"
require "roodi_task"
require 'code_statistics'

RoodiTask.new() do | t |
t.patterns = %w(lib/**/*.rb)
t.config = "ultragreen_roodi_coding_convention.yml"
end


CLEAN.include('*.tmp','*.old')
CLOBBER.include('*.tmp', 'build/*','#*#')


content = File::readlines(File.join(File.dirname(__FILE__), 'jyron.gemspec')).join
spec = eval(content)

RSpec::Core::RakeTask.new('spec')



YARD::Rake::YardocTask.new do |t|
  t.files   = [ 'lib/**/*.rb', '-', 'doc/**/*','spec/**/*_spec.rb']
  t.options += ['--title', "Gem Documentation"]
  t.options += ['-o', "yardoc"]
  t.options += ['-r', "doc/manual.rdoc"]
end
YARD::Config.load_plugin('yard-rspec')

namespace :yardoc do
  task :clobber do
    rm_r "yardoc" rescue nil
    rm_r ".yardoc" rescue nil
  end
end
task :clobber => "yardoc:clobber"


Gem::PackageTask.new(spec) do |pkg|
  pkg.need_tar = true
  pkg.need_zip = true
end

task :default => [:gem]

task :stage do
  Rake::Task["clean"].invoke
  Rake::Task["clobber"].invoke
  Rake::Task["install"].invoke
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jyron-0.1 Rakefile