Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4f6b17d984
Fetching contributors…

Cannot retrieve contributors at this time

77 lines (63 sloc) 2.542 kb
require "rubygems"
require "rubygems/package_task"
require File.expand_path(File.dirname(__FILE__) + "/lib/wunderbar/version")
require "rake/testtask" do |t|
t.libs << "test"
t.test_files = FileList["test/**/test*.rb"]
t.verbose = true
task :default => ["test"]
# This builds the actual gem. For details of what all these options
# mean, and other ones you can add, check the documentation here:
spec = do |s|
# Change these as appropriate = "wunderbar"
s.version = Wunderbar::VERSION::STRING
s.summary = "HTML Generator and CGI application support" = "Sam Ruby" = ""
s.homepage = ""
s.description = <<-EOD
Wunderbar makes it easy to produce valid HTML5, wellformed XHTML, Unicode
(utf-8), consistently indented, readable applications. This includes
output that conforms to the Polyglot specification and the emerging
results from the XML Error Recovery Community Group.
# Add any extra files to include in the gem
s.files = %w(wunderbar.gemspec COPYING) + Dir.glob("{lib}/**/*")
s.require_paths = ["lib"]
# If you want to depend on other gems, add them here, along with any
# relevant versions
s.add_dependency("builder", ">= 3.0")
# If your tests use any gems, include them here
# s.add_development_dependency("mocha") # for example
# This task actually builds the gem. We also regenerate a static
# .gemspec file, which is useful if something (i.e. GitHub) will
# be automatically building a gem for this project. If you're not
# using GitHub, edit as appropriate.
# To publish your gem online, install the 'gemcutter' gem; Read more
# about that here: do |pkg|
pkg.gem_spec = spec
file "#{}.gemspec" => [:gemspec]
desc "Build the gemspec file #{}.gemspec"
task :gemspec do
file = File.dirname(__FILE__) + "/#{}.gemspec", "w") {|f| f << spec.to_ruby }
# If you don't want to generate the .gemspec file, just remove this line. Reasons
# why you might want to generate a gemspec:
# - using bundler with a git source
# - building the gem without rake (i.e. gem build blah.gemspec)
# - maybe others?
task :package => :gemspec
require 'rake/clean'
Jump to Line
Something went wrong with that request. Please try again.