cgen 0.16.2 → 0.16.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.bnsignore +22 -0
- data/History.txt +12 -0
- data/lib/cgen/attribute.rb +4 -4
- data/lib/cgen/cgen.rb +26 -18
- data/lib/cgen/cshadow.rb +7 -2
- data/rakefile +22 -25
- data/test/test-attribute.rb +3 -2
- metadata +32 -27
- data/install.rb +0 -1015
- data/tasks/ann.rake +0 -80
- data/tasks/bones.rake +0 -20
- data/tasks/gem.rake +0 -201
- data/tasks/git.rake +0 -40
- data/tasks/notes.rake +0 -27
- data/tasks/post_load.rake +0 -34
- data/tasks/rdoc.rake +0 -51
- data/tasks/rubyforge.rake +0 -55
- data/tasks/setup.rb +0 -292
- data/tasks/spec.rake +0 -54
- data/tasks/svn.rake +0 -47
- data/tasks/test.rake +0 -40
- data/tasks/zentest.rake +0 -36
data/tasks/test.rake
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
|
2
|
-
if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty?
|
3
|
-
require 'rake/testtask'
|
4
|
-
|
5
|
-
namespace :test do
|
6
|
-
|
7
|
-
Rake::TestTask.new(:run) do |t|
|
8
|
-
t.libs = PROJ.libs
|
9
|
-
t.test_files = if test(?f, PROJ.test.file) then [PROJ.test.file]
|
10
|
-
else PROJ.test.files end
|
11
|
-
t.ruby_opts += PROJ.ruby_opts
|
12
|
-
t.ruby_opts += PROJ.test.opts
|
13
|
-
end
|
14
|
-
|
15
|
-
if HAVE_RCOV
|
16
|
-
desc 'Run rcov on the unit tests'
|
17
|
-
task :rcov => :clobber_rcov do
|
18
|
-
opts = PROJ.rcov.opts.dup << '-o' << PROJ.rcov.dir
|
19
|
-
opts = opts.join(' ')
|
20
|
-
files = if test(?f, PROJ.test.file) then [PROJ.test.file]
|
21
|
-
else PROJ.test.files end
|
22
|
-
files = files.join(' ')
|
23
|
-
sh "#{RCOV} #{files} #{opts}"
|
24
|
-
end
|
25
|
-
|
26
|
-
task :clobber_rcov do
|
27
|
-
rm_r 'coverage' rescue nil
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
end # namespace :test
|
32
|
-
|
33
|
-
desc 'Alias to test:run'
|
34
|
-
task :test => 'test:run'
|
35
|
-
|
36
|
-
task :clobber => 'test:clobber_rcov' if HAVE_RCOV
|
37
|
-
|
38
|
-
end
|
39
|
-
|
40
|
-
# EOF
|
data/tasks/zentest.rake
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
if HAVE_ZENTEST
|
2
|
-
|
3
|
-
# --------------------------------------------------------------------------
|
4
|
-
if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty?
|
5
|
-
require 'autotest'
|
6
|
-
|
7
|
-
namespace :test do
|
8
|
-
task :autotest do
|
9
|
-
Autotest.run
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
desc "Run the autotest loop"
|
14
|
-
task :autotest => 'test:autotest'
|
15
|
-
|
16
|
-
end # if test
|
17
|
-
|
18
|
-
# --------------------------------------------------------------------------
|
19
|
-
if HAVE_SPEC_RAKE_SPECTASK and not PROJ.spec.files.to_a.empty?
|
20
|
-
require 'autotest/rspec'
|
21
|
-
|
22
|
-
namespace :spec do
|
23
|
-
task :autotest do
|
24
|
-
load '.autotest' if test(?f, '.autotest')
|
25
|
-
Autotest::Rspec.run
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
desc "Run the autotest loop"
|
30
|
-
task :autotest => 'spec:autotest'
|
31
|
-
|
32
|
-
end # if rspec
|
33
|
-
|
34
|
-
end # if HAVE_ZENTEST
|
35
|
-
|
36
|
-
# EOF
|