Skip to content

Commit

Permalink
rename README to README.rdoc.
Browse files Browse the repository at this point in the history
Also update the Rakefile and gemspecs to reference the new CHANGELOG.rdoc README.rdoc.
  • Loading branch information
jamis committed May 30, 2008
1 parent 2cc5f9e commit 056db33
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 21 deletions.
File renamed without changes.
19 changes: 6 additions & 13 deletions Rakefile
Expand Up @@ -23,7 +23,7 @@ PACKAGE_FILES = FileList.new do |fl|
[ "api", "doc" ].each do |dir|
fl.include "#{dir}/**/*"
end
fl.include "ChangeLog", "README", "LICENSE", "#{PACKAGE_NAME}.gemspec", "setup.rb"
fl.include "CHANGELOG.rdoc", "README.rdoc", "LICENSE", "#{PACKAGE_NAME}.gemspec", "setup.rb"
fl.include SOURCE_FILES
end

Expand All @@ -41,13 +41,6 @@ end
desc "Default task"
task :default => [ :test ]

desc "Build the ChangeLog"
task :changelog do
output = `ruby util/svn2cl.rb`
cvs = File.read( "ChangeLog.cvs" )
File.open( "ChangeLog", "w" ) { |f| f.write output + cvs }
end

desc "Clean generated files"
task :clean do
rm_rf "ChangeLog"
Expand Down Expand Up @@ -94,10 +87,10 @@ bz2_file = "#{package_name}.tar.bz2"
zip_file = "#{package_name}.zip"
gem_file = "#{package_name}.gem"

task :gzip => SOURCE_FILES + [ :changelog, :faq, :rdoc, "#{package_dir}/#{gz_file}" ]
task :bzip => SOURCE_FILES + [ :changelog, :faq, :rdoc, "#{package_dir}/#{bz2_file}" ]
task :zip => SOURCE_FILES + [ :changelog, :faq, :rdoc, "#{package_dir}/#{zip_file}" ]
task :gem => SOURCE_FILES + [ :changelog, :faq, "#{package_dir}/#{gem_file}" ]
task :gzip => SOURCE_FILES + [ :faq, :rdoc, "#{package_dir}/#{gz_file}" ]
task :bzip => SOURCE_FILES + [ :faq, :rdoc, "#{package_dir}/#{bz2_file}" ]
task :zip => SOURCE_FILES + [ :faq, :rdoc, "#{package_dir}/#{zip_file}" ]
task :gem => SOURCE_FILES + [ :faq, "#{package_dir}/#{gem_file}" ]

task :package => [ :gzip, :bzip, :zip, :gem ]

Expand Down Expand Up @@ -148,7 +141,7 @@ end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'api'
rdoc.title = "SQLite3/Ruby"
rdoc.options += %w(--line-numbers --inline-source --main README)
rdoc.options += %w(--line-numbers --inline-source --main README.rdoc)
rdoc.rdoc_files.include('lib/**/*.rb')

if can_require( "rdoc/generators/template/html/jamis" )
Expand Down
7 changes: 3 additions & 4 deletions sqlite3-ruby-win32.gemspec
Expand Up @@ -10,14 +10,13 @@ Gem::Specification.new do |s|
s.summary = "SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite database."

s.files = Dir.glob("{doc,ext,lib,test}/**/*")
s.files.concat [ "LICENSE", "README", "ChangeLog" ]
s.files.concat [ "LICENSE", "README.rdoc", "CHANGELOG.rdoc" ]

s.require_path = 'lib'
s.autorequire = 'sqlite3'

s.has_rdoc = true
s.extra_rdoc_files = [ "README" ]
s.rdoc_options = [ "--main", "README" ]
s.extra_rdoc_files = [ "README.rdoc" ]
s.rdoc_options = [ "--main", "README.rdoc" ]

s.test_suite_file = "test/tests.rb"

Expand Down
7 changes: 3 additions & 4 deletions sqlite3-ruby.gemspec
Expand Up @@ -10,16 +10,15 @@ Gem::Specification.new do |s|
s.summary = "SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3 database."

s.files = Dir.glob("{doc,ext,lib,test}/**/*")
s.files.concat [ "LICENSE", "README", "ChangeLog" ]
s.files.concat [ "LICENSE", "README.rdoc", "CHANGELOG.rdoc" ]

s.require_path = 'lib'
s.autorequire = 'sqlite3'

s.extensions << 'ext/sqlite3_api/extconf.rb'

s.has_rdoc = true
s.extra_rdoc_files = [ "README" ]
s.rdoc_options = [ "--main", "README" ]
s.extra_rdoc_files = [ "README.rdoc" ]
s.rdoc_options = [ "--main", "README.rdoc" ]

s.test_suite_file = "test/tests.rb"

Expand Down

0 comments on commit 056db33

Please sign in to comment.