Sha256: fef326bb3458d1abb4f1520164258e18784bb34439fc88d5cc8fd1ece144c26d

Contents?: true

Size: 1.18 KB

Versions: 29

Compression:

Stored size: 1.18 KB

Contents

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

require 'bundler'
require 'bundler/setup'

require 'ridley'

class Default < Thor
  unless jruby?
    require 'thor/rake_compat'
    
    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
  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

29 entries across 29 versions & 1 rubygems

Version Path
ridley-0.10.2 Thorfile
ridley-0.9.1 Thorfile
ridley-0.10.1 Thorfile
ridley-0.11.0.rc1 Thorfile
ridley-0.10.0 Thorfile
ridley-0.10.0.rc3 Thorfile
ridley-0.10.0.rc2 Thorfile
ridley-0.10.0.rc1 Thorfile
ridley-0.9.0 Thorfile
ridley-0.8.6 Thorfile
ridley-0.8.5 Thorfile
ridley-0.8.3 Thorfile
ridley-0.8.2 Thorfile
ridley-0.8.1 Thorfile
ridley-0.8.0 Thorfile
ridley-0.7.0 Thorfile
ridley-0.7.0.rc4 Thorfile
ridley-0.7.0.rc3 Thorfile
ridley-0.7.0.rc1 Thorfile
ridley-0.7.0.beta Thorfile