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