Sha256: 022dae9ec63c8b01bdac5914901bbace21d45ac05f2dd1d5c450a7e76236416b

Contents?: true

Size: 1.59 KB

Versions: 43

Compression:

Stored size: 1.59 KB

Contents

require "rubygems"
require "rake/gempackagetask"
require "rake/rdoctask"

require "spec"
require "spec/rake/spectask"
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = %w(--format specdoc --colour)
  t.libs = ["spec"]
end

task :default => ["spec"]

spec = Gem::Specification.new do |s|
  s.name              = "plugin_manager"
  s.version           = "1.1"
  s.summary           = "A Ruby plugin loader"
  s.author            = "Daniel Lucraft"
  s.email             = "dan@fluentradical.com"
  s.homepage          = "http://github.com/danlucraft/plugin_manager"

  s.has_rdoc          = true
  s.extra_rdoc_files  = %w(README.md)
  s.rdoc_options      = %w(--main README.md)

  s.files             = %w(README.md) + Dir.glob("{bin,spec,lib/**/*}")
  s.executables       = FileList["bin/**"].map { |f| File.basename(f) }
  s.require_paths     = ["lib"]

  s.add_development_dependency("rspec")
end

# This task actually builds the gem. We also regenerate a static
# .gemspec file, which is useful if something (i.e. GitHub) will
# be automatically building a gem for this project. If you're not
# using GitHub, edit as appropriate.
Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec

  # Generate the gemspec file for github.
  file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
  File.open(file, "w") {|f| f << spec.to_ruby }
end

# Generate documentation
Rake::RDocTask.new do |rd|
  rd.main = "README.md"
  rd.rdoc_files.include("README.md", "lib/**/*.rb")
  rd.rdoc_dir = "rdoc"
end

desc 'Clear out RDoc and generated packages'
task :clean => [:clobber_rdoc, :clobber_package] do
  rm "#{spec.name}.gemspec"
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
redcar-dev-0.12.1dev-java lib/plugin_manager/Rakefile
redcar-dev-0.12.0dev-java lib/plugin_manager/Rakefile
redcar-0.11 lib/plugin_manager/Rakefile
redcar-0.11.0dev lib/plugin_manager/Rakefile
redcar-0.10 lib/plugin_manager/Rakefile
redcar-0.9.2 lib/plugin_manager/Rakefile
redcar-0.9.1 lib/plugin_manager/Rakefile
redcar-0.9.0 lib/plugin_manager/Rakefile
redcar-0.8.1 lib/plugin_manager/Rakefile
redcar-0.8 lib/plugin_manager/Rakefile
redcar-0.7 lib/plugin_manager/Rakefile
redcar-0.6.1 lib/plugin_manager/Rakefile
redcar-0.6 lib/plugin_manager/Rakefile
redcar-0.6.1dev lib/plugin_manager/Rakefile
redcar-0.5.1 lib/plugin_manager/Rakefile
redcar-0.5 lib/plugin_manager/Rakefile
redcar-0.5.6dev lib/plugin_manager/Rakefile
redcar-0.5.5dev lib/plugin_manager/Rakefile
redcar-0.5.4dev lib/plugin_manager/Rakefile
redcar-0.5.3dev lib/plugin_manager/Rakefile