Skip to content

Commit ca3f7c8

Browse files
committed
Please, Github, use README.textile.
1 parent 359ae34 commit ca3f7c8

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

.gitignore

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1-
Gemfile.lock
1+
*.gem
2+
*.rbc
3+
.bundle
4+
.config
5+
coverage
6+
InstalledFiles
7+
lib/bundler/man
28
pkg
9+
rdoc
10+
spec/reports
11+
test/tmp
12+
test/version_tmp
13+
tmp
14+
15+
Gemfile.lock
16+
.rvmrc
17+
318
test/executable/source.rb.html
419
test/executable/source.rb.json
520
test/scanners
621
bench/test.div.html
7-
.rvmrc
8-
diff.html
22+
diff.html

README.rdoc renamed to README_INDEX.rdoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
= CodeRay
22

3-
http://travis-ci.org/rubychan/coderay.png
4-
53
Tired of blue'n'gray? Try the original version of this documentation on
64
coderay.rubychan.de[http://coderay.rubychan.de/doc/] :-)
75

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if File.directory? 'rake_tasks'
1414

1515
else
1616

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)
1818
desc 'Run CodeRay tests (basic)'
1919
task :test do
2020
ruby './test/functional/suite.rb'
@@ -26,9 +26,9 @@ else
2626
desc 'Generate documentation for CodeRay'
2727
Rake::RDocTask.new :doc do |rd|
2828
rd.title = 'CodeRay Documentation'
29-
rd.main = 'README.rdoc'
29+
rd.main = 'README_INDEX.rdoc'
3030
rd.rdoc_files.add Dir['lib']
31-
rd.rdoc_files.add 'README.rdoc'
31+
rd.rdoc_files.add rd.main
3232
rd.rdoc_dir = 'doc'
3333
end
3434

coderay.gemspec

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ Gem::Specification.new do |s|
2828
# s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
2929
# s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
3030
# 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']
3234
s.test_files = Dir['test/functional/*.rb']
3335
s.executables = ['coderay']
3436
s.require_paths = ['lib']
3537

3638
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
3941
end

rake_tasks/documentation.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Rake::RDocTask.new :doc do |rd|
2020
template = File.join ROOT, 'rake_helpers', 'coderay_rdoc_template.rb'
2121
rd.template = Pathname.new(template).expand_path.to_s
2222

23-
rd.rdoc_files.add 'README.rdoc'
23+
rd.rdoc_files.add 'README_INDEX.rdoc'
2424
rd.rdoc_files.add Dir['lib']
2525
rd.rdoc_dir = 'doc'
2626
end if defined? Rake::RDocTask

0 commit comments

Comments
 (0)