File: Thorfile

package info (click to toggle)
ruby-solve 4.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,708 kB
  • sloc: ruby: 36,626; makefile: 3
file content (36 lines) | stat: -rw-r--r-- 892 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# encoding: utf-8
$:.push File.expand_path("../lib", __FILE__)

require "bundler"
require "bundler/setup"
require "thor/rake_compat"

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

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

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

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

  desc "spec", "Run RSpec code examples"
  def spec
    exec "rspec --color --format=documentation spec"
  end

  desc "spec", "Run RSpec code examples"
  def nogecode_spec
    exec "rspec -t '~gecode' --color --format=documentation spec"
  end
end