Saturday, May 28, 2011

Warbler 1.3.1 is here!

Finally the fix that I mentioned here has found its way to the next release! What this means is that when you install Warbler now and you get the version 1.3.1 then you're again capable of using the config.gems option to bundle gems with your web application using Warbler configuration file alone.

Here's an ultra simplistic example to show how it works:
config.ru (the Rack application):

run lambda { |env| [ 200, [ "Content-Type" => "text/plain" ], "Hello, world!" }

Warbler::Config.new do |config|
config.gems = ["sinatra"] # this is just an example here...
end
With that in place you can now run
jruby -S warble
and have the .war file created for you in a matter of seconds.

And live is good again :)

No comments: