Sha256: 91cfe603860a7e4ebcbaf233a72aeb3571537a021f2af0cd6392638db5abc876
Contents?: true
Size: 1.97 KB
Versions: 2
Compression:
Stored size: 1.97 KB
Contents
require 'rake' require 'rubygems' require 'rake/rdoctask' require 'spec/rake/spectask' begin require 'jeweler' Jeweler::Tasks.new do |s| s.name = 'add_hook_example' s.summary = 'Easily add callbacks to any method' s.email = 'remi@remitaylor.com' s.homepage = 'http://github.com/remi/add_hook_example' s.description = 'Easily add callbacks to any method' s.authors = %w( remi ) s.files = FileList['[A-Z]*', '{lib,spec,bin,examples}/**/*'] # s.add_dependency 'person-gemname' # s.executables << 'script' # s.rubyforge_project = 'gemname' # s.extra_rdoc_files = %w( README.rdoc ) end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end Spec::Rake::SpecTask.new do |t| t.spec_files = FileList['spec/**/*_spec.rb'] end desc "Run all examples with RCov" Spec::Rake::SpecTask.new('rcov') do |t| t.spec_files = FileList['spec/**/*_spec.rb'] t.rcov = true end # require 'hanna' # require 'darkfish-rdoc' Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'add_hook_example' rdoc.options << '--line-numbers' << '--inline-source' # rdoc.options += ["--template=#{`allison --path`}"] # sudo gem install allison # rdoc.options += %w( -f darkfish ) # sudo gem install darkfish-rdoc # rdoc.options += %w( -T hanna ) # sudo gem install mislav-hanna rdoc.options += %w( -m README.rdoc ) # the initial page displayed rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end desc 'Confirm that gemspec is $SAFE' task :safe do require 'yaml' require 'rubygems/specification' data = File.read('add_hook_example.gemspec') spec = nil if data !~ %r{!ruby/object:Gem::Specification} Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join else spec = YAML.load(data) end spec.validate puts spec puts "OK" end task :default => :spec
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
remi-add_hook_example-0.1.0 | Rakefile |
remi-add_hook_example-0.1.1 | Rakefile |