public
Description: An extendable, cloneable, dynamic UML 2 StateMachine for Ruby
Homepage: http://kurtstephens.com
Clone URL: git://github.com/kstephens/red_steak.git
kstephens (author)
Fri May 08 22:29:02 -0700 2009
commit  0ed7a2e425d2ee2483ff9692e1cbf809e03a060d
tree    e9fb449da2df59b75b9707c1e1c95a3ef1d2530e
parent  6022c37727f736d88e402b45703bc2e70be34379
red_steak / Rakefile
100644 61 lines (46 sloc) 1.3 kb
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
require 'rubygems'
require 'rake'
 
begin
  require 'echoe'
 
  $e = Echoe.new('redsteak', '0.1') do |p|
    p.rubyforge_name = 'red_steak'
    p.summary = "RedSteak - A UML 2 Statemachine for Ruby."
    p.description = ""
    p.url = "http://red-steak.rubyforge.com/"
    p.author = ['Kurt Stephens']
    p.email = "ruby-redsteak@umleta.com"
    # p.dependencies = ["launchy"]
  end
 
rescue LoadError => boom
  puts "You are missing a dependency required for meta-operations on this gem."
  puts "#{boom.to_s.capitalize}."
end
 
# add spec tasks, if you have rspec installed
begin
  require 'spec/rake/spectask'
 
  SPEC_FILES = FileList['test/**/*.spec'] + FileList['spec/**/*_spec.rb']
  SPEC_OPTS = ['--color', '--backtrace']
 
  Spec::Rake::SpecTask.new("spec") do |t|
    t.spec_files = SPEC_FILES
    t.spec_opts = SPEC_OPTS
  end
 
  task :test do
    Rake::Task['spec'].invoke
  end
 
  Spec::Rake::SpecTask.new("rcov_spec") do |t|
    t.spec_files = SPEC_FILES
    t.spec_opts = SPEC_OPTS
    t.rcov = true
    t.rcov_opts = ['--exclude', '^spec,/gems/']
  end
end
 
directory 'doc/example'
 
task :test => [ Rake::Task['doc/example'], :rcov_spec ] do
  # NOTHING
end
 
task :docs => :test do
  # NOTHING
end
 
VC_NAME = 'red_steak'
require 'lib/tasks/p4_git'
VC_OPTS[:manifest] = 'Manifest'