Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: 0.3.7
Fetching contributors…

Cannot retrieve contributors at this time

90 lines (71 sloc) 2.702 kB
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "sinatra-cache"
gem.summary = %Q{A Sinatra Extension that makes Page and Fragment Caching easy.}
gem.description = %Q{A Sinatra Extension that makes Page and Fragment Caching easy.}
gem.email = "kematzy@gmail.com"
gem.homepage = "http://github.com/kematzy/sinatra-cache"
gem.authors = ["kematzy"]
gem.add_dependency('sinatra', '>=1.1.0')
gem.add_dependency('sinatra-outputbuffer', '>=0.1.0')
gem.add_development_dependency "sinatra-tests", ">= 0.1.6"
gem.add_development_dependency "rspec", ">= 1.3.0"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
spec.spec_files = FileList['spec/**/*_spec.rb']
end
Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end
namespace :spec do
desc "Run all specifications quietly"
Spec::Rake::SpecTask.new(:quiet) do |t|
t.libs << "lib"
t.spec_opts = ["--color", "--require", "spec/spec_helper.rb"]
end
desc "Run specific spec verbosely (SPEC=/path/2/file)"
Spec::Rake::SpecTask.new(:select) do |t|
t.libs << "lib"
t.spec_files = [ENV["SPEC"]]
t.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
end
end
task :spec => :check_dependencies
task :default => :spec
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? IO.read('VERSION').chomp : "[Unknown]"
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "Sinatra::Cache v#{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc 'Build the rdoc HTML Files'
task :docs do
version = File.exist?('VERSION') ? IO.read('VERSION').chomp : "[Unknown]"
sh "sdoc -N --title 'Sinatra::Cache v#{version}' lib/ README.rdoc"
end
namespace :docs do
desc 'Remove rdoc products'
task :remove => [:clobber_rdoc]
desc 'Force a rebuild of the RDOC files'
task :rebuild => [:rerdoc]
desc 'Build docs, and open in browser for viewing (specify BROWSER)'
task :open => [:docs] do
browser = ENV["BROWSER"] || "safari"
sh "open -a #{browser} doc/index.html"
end
end
Jump to Line
Something went wrong with that request. Please try again.