Sha256: b4d94c0f0037009910b0577509d4f3ce847f5583cd54bd25d316b70b7517faeb

Contents?: true

Size: 1.21 KB

Versions: 11

Compression:

Stored size: 1.21 KB

Contents

require 'pathname'
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'fileutils'
require 'echoe'

version = YAML.load_file(File.join(File.dirname(__FILE__), 'VERSION.yml')).join('.') rescue nil

echoe = Echoe.new('sdoc_all', version) do |p|
  p.author = "toy"
  p.summary = "documentation for everything"
  p.description = "Command line tool to get documentation for ruby, rails, gems and plugins in one place"
  p.email = "ivan@workisfun.ru"
  p.url = "http://github.com/toy/sdoc_all"
  p.runtime_dependencies << 'activesupport'
  p.runtime_dependencies << 'rake'
  p.runtime_dependencies << 'progress >=0.0.8'
  # TODO: sdoc or voloko-sdoc
  p.project = 'toytoy'
end

desc "Replace system gem with symlink to this folder"
task 'ghost' do
  path = Gem.searcher.find(echoe.name).full_gem_path
  system 'sudo', 'rm', '-r', path
  symlink File.expand_path('.'), path
end

begin
  require 'spec/rake/spectask'

  task :default => :spec
  task :test

  desc "Run the specs"
  Spec::Rake::SpecTask.new do |t|
    t.spec_opts = ['--options', "spec/spec.opts"]
    t.spec_files = FileList['spec/**/*_spec.rb']
  end
rescue LoadError
  puts <<-EOS
  To use rspec for testing you must install rspec gem:
    gem install rspec
  EOS
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sdoc_all-1.0.2.1 Rakefile
sdoc_all-1.0.2 Rakefile
sdoc_all-1.0.0 Rakefile
sdoc_all-1.0.0.1 Rakefile
sdoc_all-1.0.1 Rakefile
sdoc_all-0.2.0.8 Rakefile
sdoc_all-0.2.0.9 Rakefile
sdoc_all-0.2.0.10 Rakefile
sdoc_all-0.2.0.11 Rakefile
sdoc_all-0.2.1.0 Rakefile
sdoc_all-0.2.0.7 Rakefile