From: Lyle Johnson Date: 2004-06-25T03:12:41+09:00 Subject: Re: rubygems thoughts On Fri, 25 Jun 2004 02:58:12 +0900, Jeff Mitchell wrote: > [ piggybacking my request onto this thread :) ] > > Could someone show a hello-world example of creating a rubygem > with an extension? I have followed the example, > > http://rubygems.rubyforge.org/wiki/wiki.pl?CreateAGemInTenMinutes > > using s.extension << "..." without success. Could you be more specific about the "without success" part? I somehow managed to get this to work the first time (I guess by dumb luck) when experimenting with making a source gem for FXRuby last night. My only concern was that when I actually installed the gem, it did all of the configuration & build silently; if something had gone wrong, I wouldn't have had any way to see the error(s). > How are different platforms flagged? Do I append the gem name with > "-i686-linux" for example? I don't see any "binary" gems (i.e. gems containing precompiled extensions) in the list at http://gems.rubyforge.org. I have the feeling this naming convention is still up in the air. > How do I specify more than one extension? [Don't know, suspect that you can't at this time.] > Can the gem attempt to compile an extension? If it's a source gem (i.e. one that defines an "extension" attribute in its Specification) it gets compiled when the user tries to install the gem. > I have been told gem w/ extension works in theory, but I have not > seen a concrete, working example. I should be able to point you to one by the end of this weekend, if all goes well. The plan is to release FXRuby 1.2 as gem(s).