rant 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. data/NEWS +21 -0
  2. data/README +8 -0
  3. data/Rantfile +30 -16
  4. data/TODO +3 -4
  5. data/devel-notes +16 -0
  6. data/doc/csharp.rdoc +2 -3
  7. data/doc/examples/myprog/README +2 -0
  8. data/doc/examples/myprog/Rantfile +13 -0
  9. data/doc/examples/myprog/src/Rantfile +15 -0
  10. data/doc/examples/myprog/src/lib.c +6 -0
  11. data/doc/examples/myprog/src/lib.h +4 -0
  12. data/doc/examples/myprog/src/main.c +7 -0
  13. data/doc/rantfile.rdoc +108 -3
  14. data/lib/rant/cs_compiler.rb +6 -4
  15. data/lib/rant/import.rb +13 -0
  16. data/lib/rant/import/rubypackage.rb +43 -20
  17. data/lib/rant/plugin/configure.rb +21 -7
  18. data/lib/rant/plugin/csharp.rb +8 -9
  19. data/lib/rant/rantenv.rb +3 -0
  20. data/lib/rant/rantfile.rb +66 -33
  21. data/lib/rant/rantlib.rb +133 -27
  22. data/lib/rant/rantsys.rb +197 -42
  23. data/rantmethods.rb +46 -0
  24. data/setup.rb +18 -4
  25. data/test/plugin/configure/Rantfile +0 -6
  26. data/test/plugin/configure/test_configure.rb +2 -2
  27. data/test/plugin/csharp/test_csharp.rb +7 -2
  28. data/test/plugin/rantfile +45 -0
  29. data/test/plugin/test_conf_csharp.rb +53 -0
  30. data/test/project1/Rantfile +4 -0
  31. data/test/project1/test_project.rb +33 -8
  32. data/test/project2/buildfile +3 -3
  33. data/test/project2/sub1/Rantfile +3 -3
  34. data/test/project2/test_project.rb +6 -4
  35. data/test/project_rb1/test_project_rb1.rb +2 -2
  36. data/test/standalone.rf +10 -0
  37. data/test/subdirs/Rantfile +26 -0
  38. data/test/subdirs/sub1/Rantfile +15 -0
  39. data/test/subdirs/sub2/rantfile.rb +14 -0
  40. data/test/subdirs/sub2/sub/rantfile +15 -0
  41. data/test/subdirs/test_subdirs.rb +96 -0
  42. data/test/test_env.rb +3 -3
  43. data/test/test_filelist.rb +143 -0
  44. data/test/test_lighttask.rb +21 -0
  45. data/test/test_metatask.rb +1 -1
  46. data/test/test_rant_interface.rb +5 -5
  47. data/test/test_sys.rb +7 -1
  48. data/test/test_task.rb +25 -0
  49. data/test/toplevel.rf +0 -1
  50. data/test/tutil.rb +26 -1
  51. metadata +39 -14
@@ -1,5 +1,4 @@
1
1
 
2
- require 'fileutils'
3
2
  include Sys
4
3
 
5
4
  def tf fn
@@ -1,9 +1,30 @@
1
1
 
2
2
  # This file contains methods that aid in testing Rant.
3
3
 
4
+ require 'rant/rantenv'
5
+ require 'rant/rantsys'
6
+
4
7
  RANT_BIN = File.expand_path(
5
8
  File.join(File.dirname(__FILE__), "..", "run_rant"))
6
9
 
10
+ RANT_IMPORT_BIN = File.expand_path(
11
+ File.join(File.dirname(__FILE__), "..", "run_import"))
12
+
13
+ RANT_DEV_LIB_DIR = File.expand_path(
14
+ File.join(File.dirname(__FILE__), "..", "lib"))
15
+
16
+ $rant_test_to = Rant::Env.on_windows? ? 3 : 2
17
+ if ENV["TO"]
18
+ begin
19
+ $rant_test_to = Integer(ENV["TO"])
20
+ rescue
21
+ end
22
+ end
23
+
24
+ def timeout
25
+ sleep $rant_test_to
26
+ end
27
+
7
28
  # Everything written to $stdout during +yield+ will be returned. No
8
29
  # output to $stdout.
9
30
  def capture_stdout
@@ -91,5 +112,9 @@ When testing Rant: `#{Dir.pwd + "/" + errfn}' exists.
91
112
  end
92
113
 
93
114
  def run_rant(*args)
94
- `#{Rant::Env::RUBY} #{RANT_BIN} #{args.join(' ')}`
115
+ `#{Rant::Sys.sp(Rant::Env::RUBY)} #{Rant::Sys.sp(RANT_BIN)} #{args.flatten.arglist}`
116
+ end
117
+
118
+ def run_import(*args)
119
+ `#{Rant::Sys.sp(Rant::Env::RUBY)} #{Rant::Sys.sp(RANT_IMPORT_BIN)} #{args.flatten.arglist}`
95
120
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.8
2
+ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: rant
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.0
7
- date: 2005-03-26
6
+ version: 0.3.2
7
+ date: 2005-04-03
8
8
  summary: Rant is a Ruby based build tool.
9
9
  require_paths:
10
10
  - lib
@@ -29,6 +29,16 @@ authors:
29
29
  -
30
30
  - Stefan Lang
31
31
  files:
32
+ - NEWS
33
+ - TODO
34
+ - README
35
+ - Rantfile
36
+ - run_rant
37
+ - devel-notes
38
+ - rantmethods.rb
39
+ - run_import
40
+ - setup.rb
41
+ - COPYING
32
42
  - bin/rant
33
43
  - bin/rant-import
34
44
  - lib/rant
@@ -55,6 +65,7 @@ files:
55
65
  - test/ts_all.rb
56
66
  - test/test_task.rb
57
67
  - test/project_rb1
68
+ - test/subdirs
58
69
  - test/test_metatask.rb
59
70
  - test/test_env.rb
60
71
  - test/toplevel.rf
@@ -64,6 +75,8 @@ files:
64
75
  - test/tutil.rb
65
76
  - test/project1
66
77
  - test/project2
78
+ - test/test_filelist.rb
79
+ - test/standalone.rf
67
80
  - test/project_rb1/bin
68
81
  - test/project_rb1/lib
69
82
  - test/project_rb1/test
@@ -74,8 +87,18 @@ files:
74
87
  - test/project_rb1/lib/wgrep.rb
75
88
  - test/project_rb1/test/text
76
89
  - test/project_rb1/test/tc_wgrep.rb
90
+ - test/subdirs/sub1
91
+ - test/subdirs/sub2
92
+ - test/subdirs/Rantfile
93
+ - test/subdirs/test_subdirs.rb
94
+ - test/subdirs/sub1/Rantfile
95
+ - test/subdirs/sub2/sub
96
+ - test/subdirs/sub2/rantfile.rb
97
+ - test/subdirs/sub2/sub/rantfile
77
98
  - test/plugin/configure
78
99
  - test/plugin/csharp
100
+ - test/plugin/rantfile
101
+ - test/plugin/test_conf_csharp.rb
79
102
  - test/plugin/configure/Rantfile
80
103
  - test/plugin/configure/test_configure.rb
81
104
  - test/plugin/csharp/src
@@ -98,15 +121,15 @@ files:
98
121
  - doc/rant.rdoc
99
122
  - doc/csharp.rdoc
100
123
  - doc/rant-import.rdoc
101
- - TODO
102
- - README
103
- - Rantfile
104
- - run_rant
105
- - devel-notes
106
- - rantmethods.rb
107
- - run_import
108
- - setup.rb
109
- - COPYING
124
+ - doc/examples
125
+ - doc/examples/myprog
126
+ - doc/examples/myprog/src
127
+ - doc/examples/myprog/README
128
+ - doc/examples/myprog/Rantfile
129
+ - doc/examples/myprog/src/lib.c
130
+ - doc/examples/myprog/src/lib.h
131
+ - doc/examples/myprog/src/Rantfile
132
+ - doc/examples/myprog/src/main.c
110
133
  test_files: []
111
134
  rdoc_options:
112
135
  - "-S"
@@ -117,14 +140,16 @@ rdoc_options:
117
140
  - "--main"
118
141
  - README
119
142
  extra_rdoc_files:
120
- - README
121
- - lib/rant/plugin/README
122
143
  - doc/rantfile.rdoc
123
144
  - doc/configure.rdoc
124
145
  - doc/rubyproject.rdoc
125
146
  - doc/rant.rdoc
126
147
  - doc/csharp.rdoc
127
148
  - doc/rant-import.rdoc
149
+ - README
150
+ - doc/examples/myprog/README
151
+ - lib/rant/plugin/README
152
+ - NEWS
128
153
  executables:
129
154
  - rant
130
155
  - rant-import