[Rubygems-developers] Overhaul of specification.rb
Chad Fowler
chad at chadfowler.com
Mon Aug 9 21:38:25 EDT 2004
On Aug 9, 2004, at 9:40 PM, Gavin Sinclair wrote:
> 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.
>
OK, cool. I finally broke down and started to do it myself this
evening but it's a bit of a pain. I'm halfway there with a solution I
don't like much, so I'll throw my work away and await your checkin. :)
Chad
More information about the Rubygems-developers
mailing list