Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: pure-0.2.0
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (30 sloc) 0.844 kb
$LOAD_PATH.unshift "devel"
require "jumpstart"
Jumpstart.new "pure" do |s|
s.developer("James M. Lawrence", "quixoticsycophant@gmail.com")
s.rubyforge_user = "quix"
s.rubyforge_name = "purefunctional"
s.dependency("comp_tree", ">= 1.0.0")
s.dependency("ruby_parser", ">= 2.0.4")
s.extra_dev_deps = [
["ruby2ruby", ">= 1.2.2"],
["rspec", ">= 1.2.6"],
]
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
Jump to Line
Something went wrong with that request. Please try again.