rake 0.4.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rake might be problematic. Click here for more details.

@@ -0,0 +1,71 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'test/unit'
4
+ require 'rake/testtask'
5
+
6
+ class TestTestTask < Test::Unit::TestCase
7
+ def setup
8
+ Task.clear
9
+ ENV['TEST'] = nil
10
+ end
11
+
12
+ def test_no_task
13
+ assert ! Task.task_defined?(:test)
14
+ end
15
+
16
+ def test_defaults
17
+ tt = Rake::TestTask.new do |t| end
18
+ assert_not_nil tt
19
+ assert_equal :test, tt.name
20
+ assert_equal ['lib'], tt.libs
21
+ assert_equal 'test/test*.rb', tt.pattern
22
+ assert_equal false, tt.verbose
23
+ assert Task.task_defined?(:test)
24
+ end
25
+
26
+ def test_non_defaults
27
+ tt = Rake::TestTask.new(:example) do |t|
28
+ t.libs = ['src', 'ext']
29
+ t.pattern = 'test/tc_*.rb'
30
+ t.verbose = true
31
+ end
32
+ assert_not_nil tt
33
+ assert_equal :example, tt.name
34
+ assert_equal ['src', 'ext'], tt.libs
35
+ assert_equal 'test/tc_*.rb', tt.pattern
36
+ assert_equal true, tt.verbose
37
+ assert Task.task_defined?(:example)
38
+ end
39
+
40
+ def test_pattern
41
+ ENV['TEST'] = nil
42
+ tt = Rake::TestTask.new do |t|
43
+ t.pattern = '*.rb'
44
+ end
45
+ assert_equal ['install.rb'], tt.file_list.to_a
46
+ end
47
+
48
+ def test_env_test
49
+ ENV['TEST'] = 'testfile.rb'
50
+ tt = Rake::TestTask.new do |t|
51
+ t.pattern = '*'
52
+ end
53
+ assert_equal ["testfile.rb"], tt.file_list.to_a
54
+ end
55
+
56
+ def test_test_files
57
+ tt = Rake::TestTask.new do |t|
58
+ t.test_files = FileList['a.rb', 'b.rb']
59
+ end
60
+ assert_equal ["a.rb", 'b.rb'], tt.file_list.to_a
61
+ end
62
+
63
+ def test_both_pattern_and_test_files
64
+ tt = Rake::TestTask.new do |t|
65
+ t.test_files = FileList['a.rb', 'b.rb']
66
+ t.pattern = '*.rb'
67
+ end
68
+ assert_equal ['a.rb', 'b.rb', 'install.rb'], tt.file_list.to_a
69
+ end
70
+
71
+ end
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: "0.8"
3
+ specification_version: 1
4
+ name: rake
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.4.8
7
+ date: 2004-09-15
8
+ summary: Ruby based make-like utility.
9
+ require_paths:
10
+ - lib
11
+ author: Jim Weirich
12
+ email: jim@weirichhouse.org
13
+ homepage: http://onestepback.org
14
+ rubyforge_project: rake
15
+ description: Rake is a Make-like program implemented in Ruby. Tasks and dependencies are specified in standard Ruby syntax.
16
+ autorequire: rake
17
+ default_executable: rake
18
+ bindir: bin
19
+ has_rdoc: true
20
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
21
+ requirements:
22
+ -
23
+ - ">"
24
+ - !ruby/object:Gem::Version
25
+ version: 0.0.0
26
+ version:
27
+ platform: ruby
28
+ files:
29
+ - install.rb
30
+ - CHANGES
31
+ - MIT-LICENSE
32
+ - Rakefile
33
+ - README
34
+ - TODO
35
+ - bin/rake
36
+ - lib/rake.rb
37
+ - lib/rake/clean.rb
38
+ - lib/rake/gempackagetask.rb
39
+ - lib/rake/packagetask.rb
40
+ - lib/rake/rdoctask.rb
41
+ - lib/rake/runtest.rb
42
+ - lib/rake/tasklib.rb
43
+ - lib/rake/testtask.rb
44
+ - lib/rake/contrib/compositepublisher.rb
45
+ - lib/rake/contrib/ftptools.rb
46
+ - lib/rake/contrib/publisher.rb
47
+ - lib/rake/contrib/rubyforgepublisher.rb
48
+ - lib/rake/contrib/sshpublisher.rb
49
+ - lib/rake/contrib/sys.rb
50
+ - test/filecreation.rb
51
+ - test/functional.rb
52
+ - test/testclean.rb
53
+ - test/testfilelist.rb
54
+ - test/testfileutils.rb
55
+ - test/testftp.rb
56
+ - test/testpackagetask.rb
57
+ - test/testtasks.rb
58
+ - test/testtesttask.rb
59
+ - test/contrib/testsys.rb
60
+ - test/data/rbext/rakefile.rb
61
+ - doc/example
62
+ - doc/glossary.rdoc
63
+ - doc/proto_rake.rdoc
64
+ - doc/rakefile.rdoc
65
+ - doc/rational.rdoc
66
+ - doc/example/a.c
67
+ - doc/example/b.c
68
+ - doc/example/main.c
69
+ - doc/example/Rakefile1
70
+ - doc/example/Rakefile2
71
+ test_files: []
72
+ rdoc_options:
73
+ - "--title"
74
+ - "Rake -- Ruby Make"
75
+ - "--main"
76
+ - README
77
+ - "--line-numbers"
78
+ extra_rdoc_files:
79
+ - README
80
+ - MIT-LICENSE
81
+ - TODO
82
+ - CHANGES
83
+ - doc/glossary.rdoc
84
+ - doc/proto_rake.rdoc
85
+ - doc/rakefile.rdoc
86
+ - doc/rational.rdoc
87
+ executables:
88
+ - rake
89
+ extensions: []
90
+ requirements: []
91
+ dependencies: []