Sha256: 265f08f84065ffb0adac4b1423496503ee34e7f36f650b0e27508c8270565bb3
Contents?: true
Size: 824 Bytes
Versions: 11
Compression:
Stored size: 824 Bytes
Contents
#!/usr/bin/env rake require "bundler/gem_tasks" require 'rspec/core/rake_task' desc 'Default: run specs.' task :default => :spec desc "Run specs" RSpec::Core::RakeTask.new do |t| # t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default. # Put spec opts in a file named .rspec in root end begin require 'rocco' require 'rocco/tasks' require 'fileutils' require 'maruku' Rocco::make 'docs/' FileUtils.cp_r "docs/lib/", "/Users/hank/rails/dailycred/public/docs/ruby/", :verbose => true md = "" File.open("README.md", "r") do |infile| while (line = infile.gets) md += line end end doc = Maruku.new(md) File.open("/Users/hank/rails/dailycred/app/views/tags/ruby.html", 'w') {|f| f.write doc.to_html} rescue LoadError warn "#$! -- rocco tasks not loaded." task :rocco end
Version data entries
11 entries across 11 versions & 1 rubygems