Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (32 sloc) 888 Bytes
$LOAD_PATH.unshift "devel"
require "levitate"
Levitate.new "pure" do |s|
s.developers << ["James M. Lawrence", "quixoticsycophant@gmail.com"]
s.username = "quix"
s.rubyforge_info = ["quix", "purefunctional"]
s.dependencies = [
["comp_tree", ">= 1.0.0"],
["ruby_parser", ">= 2.0.4"],
]
s.development_dependencies = [
["ruby2ruby", ">= 1.2.2"],
["rspec", "~> 1.3"],
]
s.rdoc_files = %w[
lib/pure/pure.rb
lib/pure/pure_module.rb
lib/pure/dsl.rb
lib/pure/dsl_definition.rb
]
end
readme = "README.rdoc"
task readme do
re = %r!(The\s+default\s+worker\s+looks\s+like\s+this:).*?(?=^\S)!m
contents = File.read(readme).sub(re) { |sentence|
$1 + "\n" +
File.read("lib/pure/native_worker.rb").
gsub(%r!^!, " ").
sub(%r! \#:nodoc:!, "") + "\n"
}
File.open(readme, "w") { |f| f.print contents }
end
Something went wrong with that request. Please try again.