File tree 5 files changed +26
-12
lines changed 5 files changed +26
-12
lines changed Original file line number Diff line number Diff line change 1
- Gemfile.lock
1
+ * .gem
2
+ * .rbc
3
+ .bundle
4
+ .config
5
+ coverage
6
+ InstalledFiles
7
+ lib /bundler /man
2
8
pkg
9
+ rdoc
10
+ spec /reports
11
+ test /tmp
12
+ test /version_tmp
13
+ tmp
14
+
15
+ Gemfile.lock
16
+ .rvmrc
17
+
3
18
test /executable /source.rb.html
4
19
test /executable /source.rb.json
5
20
test /scanners
6
21
bench /test.div.html
7
- .rvmrc
8
- diff.html
22
+ diff.html
Original file line number Diff line number Diff line change 1
1
= CodeRay
2
2
3
- http://travis-ci.org/rubychan/coderay.png
4
-
5
3
Tired of blue'n'gray? Try the original version of this documentation on
6
4
coderay.rubychan.de[http://coderay.rubychan.de/doc/] :-)
7
5
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ if File.directory? 'rake_tasks'
14
14
15
15
else
16
16
17
- # fallback tasks when rake_tasks folder is not present
17
+ # fallback tasks when rake_tasks folder is not present (eg. in the distribution package)
18
18
desc 'Run CodeRay tests (basic)'
19
19
task :test do
20
20
ruby './test/functional/suite.rb'
26
26
desc 'Generate documentation for CodeRay'
27
27
Rake ::RDocTask . new :doc do |rd |
28
28
rd . title = 'CodeRay Documentation'
29
- rd . main = 'README .rdoc'
29
+ rd . main = 'README_INDEX .rdoc'
30
30
rd . rdoc_files . add Dir [ 'lib' ]
31
- rd . rdoc_files . add 'README.rdoc'
31
+ rd . rdoc_files . add rd . main
32
32
rd . rdoc_dir = 'doc'
33
33
end
34
34
Original file line number Diff line number Diff line change @@ -28,12 +28,14 @@ Gem::Specification.new do |s|
28
28
# s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
29
29
# s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
30
30
# s.require_paths = ["lib"]
31
- s . files = Dir [ 'lib/**/*.rb' ] + %w( Rakefile README.rdoc LICENSE ) + Dir [ 'test/functional/*.rb' ]
31
+ readme_file = 'README_INDEX.rdoc'
32
+
33
+ s . files = Dir [ 'lib/**/*.rb' ] + %W( Rakefile #{ readme_file } LICENSE ) + Dir [ 'test/functional/*.rb' ]
32
34
s . test_files = Dir [ 'test/functional/*.rb' ]
33
35
s . executables = [ 'coderay' ]
34
36
s . require_paths = [ 'lib' ]
35
37
36
38
s . rubyforge_project = s . name
37
- s . rdoc_options = '-SNw2' , '-mREADME.rdoc' , '-t CodeRay Documentation'
38
- s . extra_rdoc_files = 'README.rdoc'
39
+ s . rdoc_options = '-SNw2' , "-m #{ readme_file } " , '-t CodeRay Documentation'
40
+ s . extra_rdoc_files = readme_file
39
41
end
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Rake::RDocTask.new :doc do |rd|
20
20
template = File . join ROOT , 'rake_helpers' , 'coderay_rdoc_template.rb'
21
21
rd . template = Pathname . new ( template ) . expand_path . to_s
22
22
23
- rd . rdoc_files . add 'README .rdoc'
23
+ rd . rdoc_files . add 'README_INDEX .rdoc'
24
24
rd . rdoc_files . add Dir [ 'lib' ]
25
25
rd . rdoc_dir = 'doc'
26
26
end if defined? Rake ::RDocTask
You can’t perform that action at this time.
0 commit comments