For a little side project I am currently evaluating different ways of GUI programming using Ruby. Monkeybars is one of the most interesting candidates. There is a really good article about it, if you want to learn more.
Version 1.0.4 has a little, but annoying bug: If you generate a new application skeleton it won’t compile/run:
manifest.rb:32:in `require': no such file to load -- monkeybars (LoadError) from manifest.rb:32 from manifest.rb:21:in `require' from main.rb:21
To fix it, you got to change line 21 of manifest.rb:
add_to_classpath '../lib/java/monkeybars-1.0.2.jar' #to add_to_classpath '../lib/java/monkeybars-1.0.4.jar'




Yeah, the hard-coding of the version string is annoying; it has to be updated each time the monkeybars lib version changes.
In Jimpanzee, my fork of Monkeybars, I’ve been using this in manifest.rb
def jimpanzee_jar path
Dir.glob(path).select { |f| f =~ /(jimpanzee-)(.+).jar$/}.first
end
#…
here = File.expand_path File.dirname(__FILE__)
add_to_classpath jimpanzee_jar( here + ‘/../lib/java/*.jar’ )
so it should find the Jimpanzee jar regardless of version number.
That sounds better
I was wondering how active Monkeybars development is lately, do you still actively develop/maintain your fork?
It’s in quasi limbo, as I’ve been more busy with Web work than desktop apps, but I am planning some updates to JotBot and will revisit the the code and related libraries (such as Neurogami::Swingset). I’m pretty sure Logan Barnett is still active with Monkeybars.