rake 0.7.1 → 0.7.2

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,79 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'test/unit'
4
+ require 'test/capture_stdout'
5
+ require 'rake'
6
+ require 'flexmock'
7
+
8
+ class TestTopLevelFunctions < Test::Unit::TestCase
9
+ include FlexMock::TestCase
10
+ include CaptureStdout
11
+
12
+ def setup
13
+ super
14
+ @app = Rake.application
15
+ Rake.application = flexmock("app")
16
+ end
17
+
18
+ def teardown
19
+ Rake.application = @app
20
+ super
21
+ end
22
+
23
+ def test_namespace
24
+ Rake.application.should_receive(:in_namespace).with("xyz", any).once
25
+ namespace "xyz" do end
26
+ end
27
+
28
+ def test_import
29
+ Rake.application.should_receive(:add_import).with("x").once.ordered
30
+ Rake.application.should_receive(:add_import).with("y").once.ordered
31
+ Rake.application.should_receive(:add_import).with("z").once.ordered
32
+ import('x', 'y', 'z')
33
+ end
34
+
35
+ def test_when_writing
36
+ out = capture_stdout do
37
+ when_writing("NOTWRITING") do
38
+ puts "WRITING"
39
+ end
40
+ end
41
+ assert_equal "WRITING\n", out
42
+ end
43
+
44
+ def test_when_not_writing
45
+ RakeFileUtils.nowrite_flag = true
46
+ out = capture_stdout do
47
+ when_writing("NOTWRITING") do
48
+ puts "WRITING"
49
+ end
50
+ end
51
+ assert_equal "DRYRUN: NOTWRITING\n", out
52
+ ensure
53
+ RakeFileUtils.nowrite_flag = false
54
+ end
55
+
56
+ def test_missing_constants_task
57
+ Rake.application.should_receive(:const_warning).with(:Task).once
58
+ Object.const_missing(:Task)
59
+ end
60
+
61
+ def test_missing_constants_file_task
62
+ Rake.application.should_receive(:const_warning).with(:FileTask).once
63
+ Object.const_missing(:FileTask)
64
+ end
65
+
66
+ def test_missing_constants_file_creation_task
67
+ Rake.application.should_receive(:const_warning).with(:FileCreationTask).once
68
+ Object.const_missing(:FileCreationTask)
69
+ end
70
+
71
+ def test_missing_constants_rake_app
72
+ Rake.application.should_receive(:const_warning).with(:RakeApp).once
73
+ Object.const_missing(:RakeApp)
74
+ end
75
+
76
+ def test_missing_other_constant
77
+ assert_raise(NameError) do Object.const_missing(:Xyz) end
78
+ end
79
+ end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11.8
2
+ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: rake
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.7.1
7
- date: 2006-04-03 00:00:00 -04:00
6
+ version: 0.7.2
7
+ date: 2007-02-27 00:00:00 -05:00
8
8
  summary: Ruby based make-like utility.
9
9
  require_paths:
10
10
  - lib
@@ -31,93 +31,102 @@ authors:
31
31
  files:
32
32
  - install.rb
33
33
  - CHANGES
34
+ - CVSROOT
35
+ - MIT-LICENSE
34
36
  - Rakefile
35
37
  - README
36
38
  - TODO
37
- - MIT-LICENSE
38
39
  - bin/rake
39
40
  - lib/rake.rb
41
+ - lib/rake/classic_namespace.rb
40
42
  - lib/rake/clean.rb
41
- - lib/rake/tasklib.rb
43
+ - lib/rake/gempackagetask.rb
42
44
  - lib/rake/packagetask.rb
45
+ - lib/rake/rake_test_loader.rb
43
46
  - lib/rake/rdoctask.rb
47
+ - lib/rake/ruby182_test_unit_fix.rb
44
48
  - lib/rake/runtest.rb
49
+ - lib/rake/tasklib.rb
45
50
  - lib/rake/testtask.rb
46
- - lib/rake/gempackagetask.rb
47
- - lib/rake/ruby182_test_unit_fix.rb
48
- - lib/rake/rake_test_loader.rb
49
- - lib/rake/classic_namespace.rb
50
- - lib/rake/contrib/ftptools.rb
51
- - lib/rake/contrib/sys.rb
52
51
  - lib/rake/contrib/compositepublisher.rb
52
+ - lib/rake/contrib/ftptools.rb
53
53
  - lib/rake/contrib/publisher.rb
54
54
  - lib/rake/contrib/rubyforgepublisher.rb
55
55
  - lib/rake/contrib/sshpublisher.rb
56
+ - lib/rake/contrib/sys.rb
56
57
  - lib/rake/loaders/makefile.rb
58
+ - test/capture_stdout.rb
57
59
  - test/filecreation.rb
60
+ - test/functional.rb
61
+ - test/reqfile.rb
62
+ - test/reqfile2.rb
63
+ - test/session_functional.rb
64
+ - test/shellcommand.rb
65
+ - test/test_application.rb
66
+ - test/test_clean.rb
67
+ - test/test_definitions.rb
68
+ - test/test_earlytime.rb
69
+ - test/test_file_creation_task.rb
70
+ - test/test_file_task.rb
58
71
  - test/test_filelist.rb
59
72
  - test/test_fileutils.rb
60
- - test/test_package_task.rb
61
73
  - test/test_ftp.rb
62
- - test/test_clean.rb
63
- - test/shellcommand.rb
64
- - test/test_tasks.rb
65
- - test/functional.rb
74
+ - test/test_makefile_loader.rb
75
+ - test/test_multitask.rb
76
+ - test/test_namespace.rb
77
+ - test/test_package_task.rb
66
78
  - test/test_pathmap.rb
67
79
  - test/test_rake.rb
68
80
  - test/test_require.rb
69
- - test/test_makefile_loader.rb
70
- - test/test_test_task.rb
71
- - test/session_functional.rb
72
81
  - test/test_rules.rb
73
- - test/test_file_creation_task.rb
74
- - test/test_file_task.rb
75
- - test/test_earlytime.rb
76
- - test/test_multitask.rb
77
- - test/test_definitions.rb
78
82
  - test/test_task_manager.rb
79
- - test/test_namespace.rb
83
+ - test/test_tasks.rb
84
+ - test/test_test_task.rb
85
+ - test/test_top_level_functions.rb
80
86
  - test/contrib/testsys.rb
81
- - test/data/rbext/rakefile.rb
82
87
  - test/data/rakelib/test1.rb
88
+ - test/data/rbext/rakefile.rb
83
89
  - test/data/sample.mf
84
90
  - test/data/imports/deps.mf
85
- - test/data/default/Rakefile
86
- - test/data/multidesc/Rakefile
87
91
  - test/data/chains/Rakefile
92
+ - test/data/default/Rakefile
88
93
  - test/data/dryrun/Rakefile
94
+ - test/data/file_creation_task/Rakefile
89
95
  - test/data/imports/Rakefile
96
+ - test/data/multidesc/Rakefile
90
97
  - test/data/namespace/Rakefile
91
- - test/data/file_creation_task/Rakefile
98
+ - test/data/unittest/Rakefile
92
99
  - doc/example
93
100
  - doc/glossary.rdoc
94
- - doc/proto_rake.rdoc
95
101
  - doc/jamis.rb
96
- - doc/rational.rdoc
102
+ - doc/proto_rake.rdoc
103
+ - doc/rake.1.gz
97
104
  - doc/rakefile.rdoc
105
+ - doc/rational.rdoc
98
106
  - doc/release_notes
99
- - doc/rake.1.gz
100
- - doc/example/Rakefile1
101
- - doc/example/Rakefile2
102
107
  - doc/example/a.c
103
108
  - doc/example/b.c
104
109
  - doc/example/main.c
110
+ - doc/example/Rakefile1
111
+ - doc/example/Rakefile2
105
112
  - doc/release_notes/rake-0.4.14.rdoc
106
- - doc/release_notes/rake-0.5.3.rdoc
107
113
  - doc/release_notes/rake-0.4.15.rdoc
108
- - doc/release_notes/rake-0.6.0.rdoc
109
- - doc/release_notes/rake-0.7.1.rdoc
110
114
  - doc/release_notes/rake-0.5.0.rdoc
115
+ - doc/release_notes/rake-0.5.3.rdoc
111
116
  - doc/release_notes/rake-0.5.4.rdoc
117
+ - doc/release_notes/rake-0.6.0.rdoc
112
118
  - doc/release_notes/rake-0.7.0.rdoc
119
+ - doc/release_notes/rake-0.7.1.rdoc
120
+ - doc/release_notes/rake-0.7.2.rdoc
113
121
  test_files: []
114
122
 
115
123
  rdoc_options:
116
- - --title
117
- - Rake -- Ruby Make
124
+ - --line-numbers
125
+ - --inline-source
118
126
  - --main
119
127
  - README
120
- - --line-numbers
128
+ - --title
129
+ - Rake -- Ruby Make
121
130
  extra_rdoc_files:
122
131
  - README
123
132
  - MIT-LICENSE
@@ -125,16 +134,17 @@ extra_rdoc_files:
125
134
  - CHANGES
126
135
  - doc/glossary.rdoc
127
136
  - doc/proto_rake.rdoc
128
- - doc/rational.rdoc
129
137
  - doc/rakefile.rdoc
138
+ - doc/rational.rdoc
130
139
  - doc/release_notes/rake-0.4.14.rdoc
131
- - doc/release_notes/rake-0.5.3.rdoc
132
140
  - doc/release_notes/rake-0.4.15.rdoc
133
- - doc/release_notes/rake-0.6.0.rdoc
134
- - doc/release_notes/rake-0.7.1.rdoc
135
141
  - doc/release_notes/rake-0.5.0.rdoc
142
+ - doc/release_notes/rake-0.5.3.rdoc
136
143
  - doc/release_notes/rake-0.5.4.rdoc
144
+ - doc/release_notes/rake-0.6.0.rdoc
137
145
  - doc/release_notes/rake-0.7.0.rdoc
146
+ - doc/release_notes/rake-0.7.1.rdoc
147
+ - doc/release_notes/rake-0.7.2.rdoc
138
148
  executables:
139
149
  - rake
140
150
  extensions: []