[TxMt] [Ruby] Name collision with Plist gem
cremes.devlist at mac.com
cremes.devlist at mac.com
Tue Nov 14 21:13:18 UTC 2006
I'm currently testing out TextMate for doing some Ruby coding. It gets very high marks from the community at large and so far things have looked fairly good.
However, I ran into a bug and I need the list's help to solve it.
The code I'm writing and testing uses the plist gem [1] from rubyforge. Whenever I try to test code that uses any functionality from that gem, the test fails with the following error:
1) Error:
test_temp(TC_MyTest):
NameError: uninitialized constant Some::Plist
method some in temp.rb at line 12
method test_temp in tc_temp.rb at line 13
(where Some is a class I created for the purpose of trapping this bug.)
I searched for this problem and discovered another complaint about it back in July [2] along with a response [3]. The response wasn't very helpful for figuring out a workaround, so I thought I'd ask again.
How can I modify TextMate so it doesn't stomp on the ruby namespace for Plist? Alternately, how can I modify my ruby code to avoid the namespace collision? BTW, I have already "deleted" the Property List Macro Bundle from TextMate but that didn't appear to have any positive effect.
I've already tried different scoping shenanigans with modules and the :: scope operator, but it still blows up. Thanks for your help.
cr
[1] http://plist.rubyforge.org/
[2] http://article.gmane.org/gmane.editors.textmate.general/11813
[3] http://article.gmane.org/gmane.editors.textmate.general/11814
More information about the textmate
mailing list