The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Monkeybars resolver.rb fix

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Britt

Posts: 1319
Nickname: jamesbritt
Registered: Apr, 2003

James Britt is a principal in 30 Second Rule, and runs ruby-doc.org and rubyxml.com
Monkeybars resolver.rb fix Posted: Apr 29, 2009 11:28 AM
Reply to this message Reply

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
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by James Britt
Latest Posts From James Britt: Ruby Development

Advertisement

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.

Here’s my path-adjusting version: http://gist.github.com/103874

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.

Read: Monkeybars resolver.rb fix

Topic: More on the pr0nage Previous Topic   Next Topic Topic: BarCampRDU 2009 registration now open

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use