Rakefile in rio-0.3.6 vs Rakefile in rio-0.3.7
- old
+ new
@@ -37,10 +37,11 @@
require 'rake/testtask'
# General actions ##############################################################
$:.push 'lib'
+require 'rio/version'
require 'rio/doc'
SVN_REPOSITORY_URL = 'file:///loc/svn/'
SRC_FILES = FileList['lib/**/*.rb']
@@ -49,21 +50,21 @@
XMP_FILES = FileList['ex/*']
module PKG
NAME = "rio"
TITLE = RIO::TITLE
- VERSION = RIO::VERSION
+ VERSION = '0.3.7'
FULLNAME = PKG::NAME + "-" + PKG::VERSION
SUMMARY = RIO::SUMMARY
DESCRIPTION = RIO::DESCRIPTION
FILES = FileList.new(['setup.rb', 'RUNME.1st.rb', 'COPYING', 'Rakefile', 'ChangeLog', 'VERSION',
'test/**/*.rb','doc/**/*'] + SRC_FILES.to_a + DOC_FILES.to_a + XMP_FILES.to_a
) do |fl|
fl.exclude( /\bsvn\b/ )
fl.exclude( 'test/qp' )
fl.exclude( 'test/coverage' )
-# fl.exclude( 'doc/rdoc' )
+ fl.exclude( 'doc/rdoc' )
end
OUT_DIR = 'pkg'
OUT_FILES = %w[.gem .tar.gz .zip].map { |ex| OUT_DIR + '/' + FULLNAME + ex }
end
ZIP_DIR = "/zip/ruby/rio"
@@ -100,16 +101,18 @@
task :doc => [:rdoc] do
puts "\nGenerating online documentation..."
# ruby %{-I../lib ../bin/webgen -V 2 }
end
-RDOC_OPTIONS = ['--line-numbers', '-m RIO::Doc::SYNOPSIS' ]
+RDOC_OPTIONS = ['--line-numbers']
rd = Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'doc/rdoc'
rdoc.title = PKG::TITLE
rdoc.options = RDOC_OPTIONS
+ rdoc.main = 'RIO::Doc::SYNOPSIS'
DOC_FILES.to_a.each do |glb|
+ next if glb =~ /yaml.rb$/
rdoc.rdoc_files.include( glb )
end
rdoc.template = 'doc/generators/template/html/rio.rb'
end
@@ -150,13 +153,13 @@
# exit(-1)
# end
end
task :package => [:no_old_pkg, :gen_files]
-PKG::OUT_FILES.each do |f|
- file f => [:package]
-end
+#PKG::OUT_FILES.each do |f|
+# file f => [:package]
+#end
Rake::PackageTask.new( PKG::NAME, PKG::VERSION ) do |p|
p.need_tar_gz = true
p.need_zip = true
p.package_files = PKG::FILES
@@ -204,10 +207,10 @@
s.description = PKG::DESCRIPTION
#### Dependencies, requirements and files
s.files = PKG::FILES.to_a
- s.add_dependency( 'extensions', '>= 0.6.0' )
+ # s.add_dependency( 'extensions', '>= 0.6.0' )
s.require_path = 'lib'
s.autorequire = 'rio'
#### Documentation