Sha256: 38490c185f4ecc9d2d2ee5ea09f6187461fa6fa671dc559e7a1c0542f7e6752f

Contents?: true

Size: 1.99 KB

Versions: 149

Compression:

Stored size: 1.99 KB

Contents

# enconding: utf-8

require File.join(File.dirname(__FILE__), "lib", "thor", "version")
require 'rubygems'
require 'thor/rake_compat'
require 'spec/rake/spectask'
begin
  require 'rdoc/task'
rescue LoadError
end

GEM_NAME = 'thor'
EXTRA_RDOC_FILES = ["README.rdoc", "LICENSE", "CHANGELOG.rdoc", "VERSION", "Thorfile"]

class Default < Thor
  include Thor::RakeCompat

  Spec::Rake::SpecTask.new(:spec) do |t|
    t.libs << 'lib'
    t.spec_opts = ['--options', "spec/spec.opts"]
    t.spec_files = FileList['spec/**/*_spec.rb']
  end

  Spec::Rake::SpecTask.new(:rcov) do |t|
    t.libs << 'lib'
    t.spec_opts = ['--options', "spec/spec.opts"]
    t.spec_files = FileList['spec/**/*_spec.rb']
    t.rcov = true
    t.rcov_dir = "rcov"
  end

  if defined?(RDoc)
    RDoc::Task.new do |rdoc|
      rdoc.main     = "README.rdoc"
      rdoc.rdoc_dir = "rdoc"
      rdoc.title    = GEM_NAME
      rdoc.rdoc_files.include(*EXTRA_RDOC_FILES)
      rdoc.rdoc_files.include('lib/**/*.rb')
      rdoc.options << '--line-numbers' << '--inline-source'
    end
  end

  begin
    require 'jeweler'
    Jeweler::Tasks.new do |s|
      s.name = GEM_NAME
      s.version = Thor::VERSION
      s.rubyforge_project = "textmate"
      s.platform = Gem::Platform::RUBY
      s.summary = "A scripting framework that replaces rake, sake and rubigen"
      s.email = "ruby-thor@googlegroups.com"
      s.homepage = "http://yehudakatz.com"
      s.description = "A scripting framework that replaces rake, sake and rubigen"
      s.authors = ['Yehuda Katz', 'José Valim']
      s.has_rdoc = true
      s.extra_rdoc_files = EXTRA_RDOC_FILES
      s.require_path = 'lib'
      s.bindir = "bin"
      s.executables = %w( thor rake2thor )
      s.files = s.extra_rdoc_files + Dir.glob("{bin,lib}/**/*")
      s.test_files.include 'spec/**/*'
      s.test_files.exclude 'spec/sandbox/**/*'
    end

    Jeweler::GemcutterTasks.new
  rescue LoadError
    puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
  end
end

Version data entries

149 entries across 149 versions & 8 rubygems

Version Path
engineyard-serverside-1.4.12 lib/vendor/thor/Thorfile
engineyard-serverside-1.4.11 lib/vendor/thor/Thorfile
engineyard-serverside-1.4.9.nodestack lib/vendor/thor/Thorfile
engineyard-serverside-1.4.8.nodestack lib/vendor/thor/Thorfile
engineyard-serverside-1.4.7.pre lib/vendor/thor/Thorfile
engineyard-serverside-1.4.3.nodestack lib/vendor/thor/Thorfile
puppet-module-0.3.4 vendor/thor-852190ae/Thorfile
amqp-daemon-kit-1.0.1 lib/daemon_kit/vendor/thor-0.13.6/Thorfile
amqp-daemon-kit-0.1.8.2 lib/daemon_kit/vendor/thor-0.13.6/Thorfile
amqp-daemon-kit-0.1.8.1 lib/daemon_kit/vendor/thor-0.13.6/Thorfile
puppet-module-0.3.3 vendor/thor-852190ae/Thorfile
engineyard-serverside-1.4.1 lib/vendor/thor/Thorfile
puppet-module-0.3.2 vendor/thor-852190ae/Thorfile
engineyard-serverside-1.4.0 lib/vendor/thor/Thorfile
engineyard-serverside-1.3.7 lib/vendor/thor/Thorfile
engineyard-serverside-1.3.6 lib/vendor/thor/Thorfile
engineyard-serverside-1.3.5 lib/vendor/thor/Thorfile
engineyard-serverside-1.3.4 lib/vendor/thor/Thorfile
engineyard-serverside-1.3.4.jruby.2 lib/vendor/thor/Thorfile
engineyard-serverside-1.3.3 lib/vendor/thor/Thorfile