Sha256: 9a260b2f6e190aefe5e6f275c5b6f640804ac1495d062b2fc1f8b4b1f66672c3

Contents?: true

Size: 949 Bytes

Versions: 3

Compression:

Stored size: 949 Bytes

Contents

require "bundler/gem_tasks"


desc "(Re-) generate documentation and place it in the docs/ dir. Open the index.html file in there to read it."
task :docs => [:"docs:environment", :"docs:yard"]
namespace :docs do

  task :environment do
    ENV["RACK_ENV"] = "documentation"
  end

  require 'yard'

  YARD::Rake::YardocTask.new :yard do |t|
    t.files   = ['lib/**/*.rb', 'app/*.rb', 'spec/**/*.rb']
    t.options = ['-odocs/'] # optional
  end

end

task :default => "spec"

task :spec => :"spec:run"
task :rspec => :spec
namespace :spec do
  task :environment do
    ENV["RACK_ENV"] = "test"
  end

  desc "Run specs"
  task :run, [:any_args] => :"spec:environment" do |t,args|
    warn "Entering spec task."
    any_args = args[:any_args] || ""
    cmd = "bin/rspec #{any_args}"
    warn cmd
    system cmd
  end

end

namespace :examples do

  desc "Run the examples."
  task :run do
    exec "bundle exec rackup examples/config.ru"
  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rack-jquery-1.4.0 Rakefile
rack-jquery_ui-1.1.0 Rakefile
rack-jquery-1.3.2 Rakefile