Sha256: eb34a00fcce4845284461d8c746c4467ca932f6b38bf3c343b80bffe497c8d7e
Contents?: true
Size: 1.54 KB
Versions: 1
Compression:
Stored size: 1.54 KB
Contents
require 'rubygems' require 'rake' require 'rake/testtask' begin require 'jeweler' Jeweler::Tasks.new do |gemspec| gemspec.name = "machine" gemspec.summary = "machine is an implementation of the factory pattern for creating model objects when testing Ruby apps" gemspec.description = "machine is an implementation of the factory pattern for creating model objects when testing Ruby apps. It borrows concepts from factory_girl, but has a different implementation for associations." gemspec.email = "aubreyholland@gmail.com" gemspec.homepage = "http://github.com/aub/machine" gemspec.authors = ["Aubrey Holland"] end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end desc 'Default: run unit tests.' task :default => :test desc 'Test the machine.' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.pattern = 'test/**/*_test.rb' t.verbose = true end # Try to use hanna to create spiffier docs. begin require 'hanna/rdoctask' rescue LoadError require 'rake/rdoctask' end Rake::RDocTask.new do |rdoc| if File.exist?('VERSION.yml') config = YAML.load(File.read('VERSION.yml')) version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}" else version = "" end rdoc.rdoc_dir = 'rdoc' rdoc.title = "machine #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') rdoc.options << '--webcvs=http://github.com/aub/machine/tree/master/' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aub-machine-1.0.3 | Rakefile |