Monthly Archives: May 2008

Quick Tutorial: Bundling a merb application to a .war

Make sure you have the JRuby warbler gem installed.
Create a warble config file from the root directory of your merb application. The command should look something like this: jruby -S warble config. The file will be placed at config/warble.rb.
Edit line 55 of warble.rb to read: config.webxml.booter = :merb
Edit line 33 of warble.rb to read: config.gems = ["merb-core","merb-more"]. [...]

Tagged , | Comments closed

Using Logging and Test::Unit together

If you use Tim Pease’s ruby Logging library in conjunction with Test::Unit, you must make sure to require ‘logging’ before you require ‘test/unit’. Both Logging and Test::Unit make use of Ruby’s at_exit method hook: Logging uses it to close any appenders (e.g. if you are writing a log to a file, it closes the file), and Test::Unit [...]

Comments closed