From: darren kirby Date: 2007-07-13T04:06:24+09:00 Subject: Re: Yet another site_ruby question... quoth the Daniel Jewett: > In article <200707121153.11612.bulliver@badcomputer.org>, darren kirby > > wrote: > > Hi Daniel, > > > > As the author of flacinfo, and as one who is not overly familiar with the > > inner workings of gems, would not overlook that this may be a problem > > with the gem itself. It does seem to work fine on the (Linux) system that > > I tested it on. > > > > Does your problem occur with all gems or just flacinfo? > > > > Thanks, > > -d > > Hi Darren, > It did actually occur to me along the way that I should ask you about > this. ;-) > > I haven't had this problem with other gems that I know of. One thing I > wonder about is whether the gem is correctly placed during the install, > because I believe that 3rd-party gems are supposed to go under > site_ruby. (On my machine: /usr/local/lib/ruby/site_ruby/1.8) > > Here's the install: > > sudo gem install -r flacinfo-rb > Successfully installed flacinfo-rb-0.3 > Installing ri documentation for flacinfo-rb-0.3... > File not found: lib > > Which puts it here: > /usr/local/lib/ruby/gems/1.8/gems/flacinfo-rb-0.3 > > I can move flacinfo.rb to site_ruby/1.8 and everything works fine. > > The odd thing is that on one machine (my Intel Mac), require 'flacinfo' > works without being moved, but on my desktop machine it doesn't. > > And finally, the REAL problem is me making a mountain out of a molehill! Nope. It's a bug... > Regards, > Dan J. After a bit of poking around I can say this is certainly a problem with the gem itself. In the latest version (0.3) I have forgotten to place the source file itself in a 'lib' subdirectory as recommended by the 'Creating your own gems' example in the pickaxe book. I am going to build a 0.3.1 gem release which will address this bug (but not change any functionality of the library itself) and will try to get it up on Rubyforge in the next hour or so. Thanks for bringing this to my attention ;) -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972