public
Rubygem
Description: Git based distributed ticketing system, including a command line client and web viewer
Clone URL: git://github.com/schacon/ticgit.git
Created some rake task
  * spec - runs the specs
  * spec:coverage - runs rcov on the specs
  * clean - removes the coverage directory and gem pkg directory

Also added entries in the ignore file to ignore the pkg and coverage
directories
pope (author)
Sat May 10 08:23:47 -0700 2008
commit  112e4272d6fb5c48b7f7cffee93129d33adb9f78
tree    b3e0f93cd9a419f8eef970d1c1aad9cdd8c20c4a
parent  67e361826bed295526688cd5b8054d6936ef015c
...
1
 
 
...
1
2
3
0
@@ -1 +1,3 @@
0
 bin/*.log
0
+pkg
0
+coverage
...
1
2
3
 
4
5
6
...
24
25
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
28
29
30
...
1
2
3
4
5
6
7
...
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
 
0
@@ -1,6 +1,7 @@
0
 require 'rubygems'
0
 Gem::manage_gems
0
 require 'rake/gempackagetask'
0
+require 'spec/rake/spectask'
0
 
0
 spec = Gem::Specification.new do |s|
0
     s.platform = Gem::Platform::RUBY
0
@@ -24,7 +25,30 @@ Rake::GemPackageTask.new(spec) do |pkg|
0
     pkg.need_tar = true
0
 end
0
 
0
+desc "Run all specs in spec directory"
0
+Spec::Rake::SpecTask.new(:spec) do |t|
0
+ t.spec_files = FileList['spec/**/*_spec.rb']
0
+ t.spec_opts = ['--color']
0
+end
0
+
0
+namespace :spec do
0
+
0
+ desc "Run rcov on the spec files"
0
+ Spec::Rake::SpecTask.new(:coverage) do |t|
0
+ t.spec_files = FileList['spec/**/*_spec.rb']
0
+ t.spec_opts = ['--color']
0
+ t.rcov = true
0
+ t.rcov_opts = ['--exclude', 'spec\/spec,bin\/spec,examples,\/var\/lib\/gems,\/Library\/Ruby,\.autotest']
0
+ end
0
+
0
+end
0
+
0
+desc "Clean out the coverage and pkg directories"
0
+task :clean do
0
+ rm_rf 'coverage'
0
+ rm_rf 'pkg'
0
+end
0
+
0
 task :default => "pkg/#{spec.name}-#{spec.version}.gem" do
0
     puts "generated latest version"
0
 end
0
-
...
3
4
5
 
6
7
8
...
3
4
5
6
7
8
9
0
@@ -3,6 +3,7 @@
0
 $:.unshift(File.dirname(__FILE__)) unless
0
   $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
0
 
0
+require 'rubygems'
0
 # requires git >= 1.0.5
0
 require 'git'
0
 require 'ticgit/base'

Comments

    No one has commented yet.