Rakefile in method_cache-0.6.4 vs Rakefile in method_cache-1.0.0
- old
+ new
@@ -1,45 +1,10 @@
-require 'rake'
require 'rake/testtask'
-require 'rake/rdoctask'
+require 'bundler/gem_tasks'
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |s|
- s.name = "method_cache"
- s.summary = %Q{Simple memcache-based memoization library for Ruby}
- s.email = "code@justinbalthrop.com"
- s.homepage = "http://github.com/ninjudd/method_cache"
- s.description = "Simple memcache-based memoization library for Ruby"
- s.authors = ["Justin Balthrop"]
- s.add_dependency('memcache', '>= 1.0.0')
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
-end
-
Rake::TestTask.new do |t|
- t.libs << 'lib'
+ t.libs = ['lib', 'test']
t.pattern = 'test/**/*_test.rb'
t.verbose = false
-end
-
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'method_cache'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |t|
- t.libs << 'test'
- t.test_files = FileList['test/**/*_test.rb']
- t.verbose = true
- end
-rescue LoadError
end
task :default => :test