From: Sean O'Dell Date: 2004-06-25T10:33:26+09:00 Subject: Re: rubygems thoughts On Thursday 24 June 2004 18:18, Jim Weirich wrote: > Sean O'Dell wrote: > >>If you want a yaml file out of the process, build the spec and write out > >>the results of spec.to_yaml. > > > > That sounds like what I need. Can I re-constitute the YAML into a native > > Ruby data structure and pass it to Gem::Builder.new? > > Yes. > > I'd prefer that .gemspec was just static > > > meta data and contained no code. But as I understand it, the .gemspec > > file is used to create a static data structure that Gem::Builder uses, so > > maybe that point is moot. I think I can load a static YAML file that I > > generate myself and pass it to Gem::Builder.new. > > I think everything is there that you need. Have fun. Sounds like it! When you guys update the documentation, be sure to make a short section for do-it-yourself'ers showing the Gem::Builder.new trick. The fact that Gems can already work with a data structure loaded from YAML is a level of flexibility that's not readily apparent. Sean O'Dell