Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
doc | |||
dist | |||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
require "rake/testtask" | |||
|
|||
begin | |||
require "hanna/rdoctask" | |||
rescue LoadError | |||
require "rake/rdoctask" | |||
end | |||
|
|||
begin | |||
require "metric_fu" | |||
rescue LoadError | |||
end | |||
|
|||
begin | |||
require "mg" | |||
MG.new("sinatra-content-for.gemspec") | |||
rescue LoadError | |||
end | |||
|
|||
desc "Default: run all tests" | |||
task :default => :test | |||
|
|||
desc "Run library tests" | |||
Rake::TestTask.new do |t| | |||
t.test_files = FileList['test/**/*_test.rb'] | |||
end | |||
|
|||
Rake::RDocTask.new do |rd| | |||
rd.main = "README" | |||
rd.title = "Documentation for ContentFor" | |||
rd.rdoc_files.include("README.rdoc", "LICENSE", "lib/**/*.rb") | |||
rd.rdoc_dir = "doc" | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,34 @@ | |||
Gem::Specification.new do |s| | |||
s.name = "sinatra-content-for" | |||
s.version = "0.1" | |||
s.date = "2009-05-07" | |||
|
|||
s.description = "Small Sinatra extension to add a content_for helper similar to Rails'" | |||
s.summary = "Small Sinatra extension to add a content_for helper similar to Rails'" | |||
s.homepage = "http://sinatrarb.com" | |||
|
|||
s.authors = ["Nicolás Sanguinetti"] | |||
s.email = "contacto@nicolassanguinetti.info" | |||
|
|||
s.require_paths = ["lib"] | |||
s.rubyforge_project = "sinatra-ditties" | |||
s.has_rdoc = true | |||
s.rubygems_version = "1.3.1" | |||
|
|||
s.add_dependency "sinatra" | |||
|
|||
if s.respond_to?(:add_development_dependency) | |||
s.add_development_dependency "contest" | |||
s.add_development_dependency "sr-mg" | |||
s.add_development_dependency "redgreen" | |||
end | |||
|
|||
s.files = %w[ | |||
.gitignore | |||
LICENSE | |||
README.rdoc | |||
sinatra-content-for.gemspec | |||
lib/sinatra/content_for.rb | |||
test/content_for_test.rb | |||
] | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters