This post originated from an RSS feed registered with Ruby Buzz
by James Britt.
Original Post: Monkeybars resolver.rb fix
Feed Title: James Britt: Ruby Development
Feed URL: http://feeds.feedburner.com/JamesBritt-Home
Feed Description: James Britt: Playing with better toys
I was having problems when adding unpacked gems to the load path in a Monkeybars app. On Windows, if the expanded path that had spaces, items added using the add_to_classpath or add_to_loadpath methods would end up with %20 where the spaces should be. The packaged file would not get loaded.
resolver.rb is a file created as part of a Monkeybars app skeleton. It lives in the src/ dir of your app.
I added line 30 to the original version of the file.
This should get added back to the main Monkeybars repo (I have it in one of my forks, which I use in place of stock Monkeybars), but until then if you are having odd file loading issues with files in jars, see if it isn’t because of borked spaces in expanded paths.