require 'rake/rdoctask' require 'rake/gempackagetask' require 'rake/testtask' require 'rake/clean' require 'rubygems' #require 'rubyluabridge' # Specifies the default task to execute. This is often the "test" task # and we'll change things around as soon as we have some tests. task :default => [:rdoc] # The directory to generate +rdoc+ in. RDOC_DIR = "doc/html" # This global variable contains files that will be erased by the `clean` task. # The `clean` task itself is automatically generated by requiring `rake/clean`. CLEAN << RDOC_DIR # This is the task that generates the +rdoc+ documentation from the # source files. Instantiating Rake::RDocTask automatically generates a # task called `rdoc`. Rake::RDocTask.new("rdoc") do |rdoc| rdoc.main = "README" rdoc.rdoc_files.include( "README", "LICENSE", "RUBY_IN_LUA", "LUA_IN_RUBY", "rubyluabridge.cc", "tests/*.rb" ) rdoc.rdoc_dir = RDOC_DIR rdoc.title = "RubyLuaBridge: A seamless bridge between Ruby and Lua." rdoc.options = ["--line-numbers", "--inline-source"] rdoc.template = 'doc/jamis.rb' # Check: # `rdoc --help` for more rdoc options # the {rdoc documenation home}[http://www.ruby-doc.org/stdlib/libdoc/rdoc/rdoc/index.html] # or the documentation for the +Rake::RDocTask+ task[http://rake.rubyforge.org/classes/Rake/RDocTask.html] end # The GemPackageTask facilitates getting all your files collected # together into gem archives. You can also use it to generate tarball # and zip archives. PROJECT_NAME = "rubyluabridge" PKG_VERSION = "0.5.0" #Lua::BRIDGE_VERSION PKG_FILES = FileList['lib/**/*.rb', 'bin/**/*', 'examples/**/*', '[A-Z]*', 'test/**/*'].to_a spec = Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.summary = "RubyLuaBridge: A seamless bridge between Ruby and Lua." s.name = PROJECT_NAME s.version = PKG_VERSION s.files = PKG_FILES s.requirements << "none" s.require_path = '' s.description = < true end