Sha256: e7eeba2aaf58656e65a740fad686f792aede3a388df3c45a5fc85dcd91195b02

Contents?: true

Size: 1.12 KB

Versions: 11

Compression:

Stored size: 1.12 KB

Contents

# encoding: utf-8
$:.push File.expand_path("../lib", __FILE__)

require 'bundler'
require 'bundler/setup'

require 'ridley'
require 'thor/rake_compat'

class Default < Thor
  include Thor::RakeCompat
  Bundler::GemHelper.install_tasks

  desc "build", "Build ridley-#{Ridley::VERSION}.gem into the pkg directory"
  def build
    Rake::Task["build"].execute
  end

  desc "install", "Build and install ridley-#{Ridley::VERSION}.gem into system gems"
  def install
    Rake::Task["install"].execute
  end

  desc "release", "Create tag v#{Ridley::VERSION} and build and push ridley-#{Ridley::VERSION}.gem to Rubygems"
  def release
    Rake::Task["release"].execute
  end

  class Spec < Thor
    namespace :spec
    default_task :all

    desc "all", "run all tests"
    def all
      exec "rspec --color --format=documentation spec"
    end

    desc "unit", "run only unit tests"
    def unit
      exec "rspec --color --format=documentation spec --tag ~type:acceptance" 
    end

    desc "acceptance", "run only acceptance tests"
    def acceptance
      exec "rspec --color --format=documentation spec --tag type:acceptance"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ridley-0.3.2 Thorfile
ridley-0.3.1 Thorfile
ridley-0.3.0 Thorfile
ridley-0.2.2 Thorfile
ridley-0.2.1 Thorfile
ridley-0.2.0 Thorfile
ridley-0.1.0 Thorfile
ridley-0.0.6 Thorfile
ridley-0.0.5 Thorfile
ridley-0.0.4 Thorfile
ridley-0.0.3 Thorfile