Rakefile in remote_table-0.2.32 vs Rakefile in remote_table-1.0.0
- old
+ new
@@ -1,72 +1,23 @@
-require 'rubygems'
-require 'rake'
+require 'bundler'
+Bundler::GemHelper.install_tasks
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "remote_table"
- gem.summary = %Q{Remotely open and parse XLS, ODS, CSV and fixed-width tables.}
- gem.description = %Q{Remotely open and parse Excel XLS, ODS, CSV and fixed-width tables.}
- gem.email = "seamus@abshere.net"
- gem.homepage = "http://github.com/seamusabshere/remote_table"
- gem.authors = ["Seamus Abshere", "Andy Rossmeissl"]
- # sabshere [unknown date] roo 1.9.3 doesn't work, so use old 1.3 version
- gem.add_dependency 'roo', '1.3.11'
- # sabshere 9/30/10 depending on fastercsv when using ruby 1.9.2 results in exiting with error
- # gem.add_dependency 'fastercsv', '>=1.5.0'
- gem.add_dependency 'activesupport', '>=2.3.4'
- gem.add_dependency 'slither', '>=0.99.4'
- gem.add_dependency 'nokogiri', '>=1.4.1'
- gem.add_dependency 'escape', '>=0.0.4'
- gem.add_development_dependency 'errata', '>=0.2.0'
- gem.require_path = "lib"
- gem.rdoc_options << '--line-numbers' << '--inline-source'
- gem.requirements << 'curl'
- gem.rubyforge_project = "remotetable"
- end
- Jeweler::GemcutterTasks.new
- # Jeweler::RubyforgeTasks.new do |rubyforge|
- # rubyforge.doc_task = "rdoc"
- # end
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
-end
-
+require 'rake'
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
- test.pattern = 'test/**/*_test.rb'
+ test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/*_test.rb'
- test.verbose = true
+ require 'rake/rdoctask'
+ Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'taps'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
end
rescue LoadError
- task :rcov do
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
- end
-end
-
-
-
-
-task :default => :test
-
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- if File.exist?('VERSION')
- version = File.read('VERSION')
- else
- version = ""
- end
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "remote_table #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
+ puts "Rdoc is not available"
end