Sha256: 57e52b4aab0415882ac2b8576037c6b9b66c1a9d837a77bcea1df4be56108881
Contents?: true
Size: 960 Bytes
Versions: 5
Compression:
Stored size: 960 Bytes
Contents
require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'spec/rake/spectask' gem_spec_file = 'snippets.gemspec' gem_spec = eval(File.read(gem_spec_file)) rescue nil desc 'Default: run all specs.' task :default => :spec desc "Run all specs in spec directory (excluding plugin specs)" Spec::Rake::SpecTask.new(:spec) do |t| # t.spec_opts = ['--options', File.join(File.dirname(__FILE__), 'spec', 'spec.opts')] t.spec_files = FileList['spec/**/*_spec.rb'] end desc 'Generate documentation for the snippets plugin.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'Snippets' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README.textile') rdoc.rdoc_files.include('lib/**/*.rb') end desc "Generate the gemspec file." task :gemspec do require 'erb' File.open(gem_spec_file, 'w') do |f| f.write ERB.new(File.read("#{gem_spec_file}.erb")).result(binding) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
djanowski-snippets-0.0.2 | Rakefile |
djanowski-snippets-0.0.3 | Rakefile |
djanowski-snippets-0.1.1 | Rakefile |
djanowski-snippets-0.1.2 | Rakefile |
djanowski-snippets-0.1 | Rakefile |