Rakefile in imw-0.2.18 vs Rakefile in imw-0.3.0
- old
+ new
@@ -1,30 +1,53 @@
require 'rubygems'
+require 'bundler'
+begin
+ Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
require 'rake'
-begin
- # http://github.com/technicalpickles/jeweler
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "imw"
- gem.summary = "The Infinite Monkeywrench (IMW) makes acquiring, extracting, transforming, loading, and packaging data easy."
- gem.description = "The Infinite Monkeywrench (IMW) is a Ruby frameworks to simplify the tasks of acquiring, extracting, transforming, loading, and packaging data. It minimizes programmer time by encapsulating common data workflows and patterns and creating interfaces to many other useful Ruby libraries."
- gem.email = "coders@infochimps.org"
- gem.homepage = "http://github.com/infochimps/imw"
- gem.authors = ["Dhruv Bansal", "Philip (flip) Kromer"]
-
- gem.files.exclude "old/**/*"
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+require 'jeweler'
+Jeweler::Tasks.new do |gem|
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
+ gem.name = "imw"
+ gem.homepage = "http://github.com/infochimps/imw"
+ gem.license = "MIT"
+ gem.summary = "Infinite Monkey Wrench - A framework to make collecting and parsing data fun again."
+ gem.description = "Infinite Monkey Wrench - A framework to make collecting and parsing data fun again."
+ gem.email = "travis@infochimps.com"
+ gem.authors = ["Travis Dempsey", "Dhruv Bansal", "mrflip"]
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
+ # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
+ # gem.add_runtime_dependency 'jabber4r', '> 0.1'
+ # gem.add_development_dependency 'rspec', '> 1.2.3'
end
+Jeweler::RubygemsDotOrgTasks.new
-desc "Build tags"
-task :tags do
- system "etags -R README.rdoc bin etc examples lib spec"
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
end
-desc "Build docs"
-task :docs do
- system "yardoc"
+require 'rcov/rcovtask'
+Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+end
+
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "imw #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
end