Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (41 sloc) 1.786 kb
6a6d4f7 @SFEley Initial commit to sinatra-flash.
SFEley authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "sinatra-flash"
faf2844 @SFEley FlashHash looking pretty good
SFEley authored
8 gem.summary = %Q{Proper flash messages in Sinatra}
9 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.}
6a6d4f7 @SFEley Initial commit to sinatra-flash.
SFEley authored
10 gem.email = "sfeley@gmail.com"
11 gem.homepage = "http://github.com/SFEley/sinatra-flash"
12 gem.authors = ["Stephen Eley"]
faf2844 @SFEley FlashHash looking pretty good
SFEley authored
13 gem.add_dependency "sinatra", ">= 1.0.0"
6a6d4f7 @SFEley Initial commit to sinatra-flash.
SFEley authored
14 gem.add_development_dependency "rspec", ">= 1.2.9"
15 gem.add_development_dependency "yard", ">= 0"
645f715 @SFEley Code completion for 0.1 release
SFEley authored
16 gem.add_development_dependency "sinatra-sessionography"
6a6d4f7 @SFEley Initial commit to sinatra-flash.
SFEley authored
17 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18 end
19 Jeweler::GemcutterTasks.new
20 rescue LoadError
21 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
22 end
23
24 require 'spec/rake/spectask'
25 Spec::Rake::SpecTask.new(:spec) do |spec|
26 spec.libs << 'lib' << 'spec'
27 spec.spec_files = FileList['spec/**/*_spec.rb']
28 end
29
30 Spec::Rake::SpecTask.new(:rcov) do |spec|
31 spec.libs << 'lib' << 'spec'
32 spec.pattern = 'spec/**/*_spec.rb'
33 spec.rcov = true
34 end
35
36 task :spec => :check_dependencies
37
38 task :default => :spec
39
40 begin
41 require 'yard'
42 YARD::Rake::YardocTask.new
43 rescue LoadError
44 task :yardoc do
45 abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
46 end
47 end
c0a85d8 @SFEley Finished the README, huzzah
SFEley authored
48
Something went wrong with that request. Please try again.