Sha256: debe5ee5b4885d1cf2199e206afaf6eddf7d772c4fe08d1a4f158be6f910962f

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = "cache_version"
    s.summary = %Q{Store the version of any class for cache invalidation}
    s.email = "code@justinbalthrop.com"
    s.homepage = "http://github.com/ninjudd/cache_version"
    s.description = "Store the version of any class for cache invalidation"
    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.pattern = 'test/**/*_test.rb'
  t.verbose = false
end

Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'cache_version'
  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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cache_version-0.9.5 Rakefile
cache_version-0.9.4 Rakefile