Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (41 sloc) 1.74 KB
require 'rubygems'
require 'rake'
require 'jeweler' do |gem| = "sinatra-flash"
gem.summary = %Q{Proper flash messages in Sinatra}
gem.description = %Q{A Sinatra extension for setting and showing Rails-like flash messages. This extension improves on the Rack::Flash gem by being simpler to use, providing a full range of hash operations (including iterating through various flash keys, testing the size of the hash, etc.), and offering a 'styled_flash' view helper to render the entire flash hash with sensible CSS classes. The downside is reduced flexibility -- these methods will *only* work in Sinatra.} = ""
gem.homepage = ""
gem.authors = ["Stephen Eley"]
gem.add_dependency "sinatra", ">= 1.0.0"
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.add_development_dependency "yard", ">= 0"
gem.add_development_dependency "sinatra-sessionography"
# gem is a Gem::Specification... see for additional settings
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
require 'spec/rake/spectask' do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
task :spec => :check_dependencies
task :default => :spec
require 'yard'
rescue LoadError
task :yardoc do
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"