[Rubygems-developers] Overhaul of specification.rb

Gavin Sinclair gsinclair at soyabean.com.au
Mon Aug 9 21:40:07 EDT 2004


Chad wrote:
>> I took a look today but didn't have very long.  It's to do with the
>> way the gem spec is created.  If it's deserialized from YAML, then it
>> doesn't go through the #initialize process, which is the problem.
>> Before my change, empty/nil properties were not written to YAML, so
>> when they're loaded in, they're still empty/nil.  The old spec code
>> was OK with this because some of the accessors were like this:
>>
>>   def dependencies
>>     @dependencies ||= []
>>   end
>
> ...snip....
>
> Gavin, did you get a chance to look at this anymore?  I'm trying to
> work on some other things, but this one's getting in the way.  I have
> held off on trying to fix it, thinking you  had it.

Sorry, Chad, it's been a busy few days.  I've made some changes, including
the above, without checking in, as there are few places in the code base
that need to be updated.  I'll make sure it gets done today.

Cheers,
Gavin




More information about the Rubygems-developers mailing list