Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (31 sloc) 0.991 kb
require "rake"
require "rake/gempackagetask"
Dir['tasks/**/*.rake'].each { |rake| load rake }
desc "Run the specs."
task :default => :spec
spec = Gem::Specification.new do |s|
s.name = 'hpreserve'
s.version = '0.2.1'
s.summary = "eval-safe HTML templates using HTML"
s.description = "A humane, eval-safe HTML templating system expressed in HTML."
s.author = "Matthew Lyon"
s.email = "matt@flowerpowered.com"
s.homepage = "http://github.com/mattly/hpreserve"
# code
s.require_path = "lib"
s.files = %w( README.mkdn Rakefile ) + Dir["{spec,lib}/**/*"]
# rdoc
s.has_rdoc = false
# Dependencies
s.add_dependency "hpricot", [">= 0.6.0"]
# Requirements
s.required_ruby_version = ">= 1.8.6"
s.platform = Gem::Platform::RUBY
end
desc "create .gemspec file (useful for github)"
task :gemspec do
filename = "#{spec.name}.gemspec"
File.open(filename, "w") do |f|
f.puts spec.to_ruby
end
end
Jump to Line
Something went wrong with that request. Please try again.