From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.218.138 with SMTP id hq10cs12220icb; Tue, 21 Dec 2010 06:12:02 -0800 (PST) Received: by 10.224.76.85 with SMTP id b21mr5181629qak.340.1292940722215; Tue, 21 Dec 2010 06:12:02 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id i34si9990330qck.16.2010.12.21.06.12.02; Tue, 21 Dec 2010 06:12:02 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C742D19782DC; Tue, 21 Dec 2010 09:12:01 -0500 (EST) Received: from www.cquest.utoronto.ca (www.cquest.utoronto.ca [192.82.128.5]) by rubyforge.org (Postfix) with ESMTP id EEEC11858346 for ; Tue, 21 Dec 2010 09:11:42 -0500 (EST) Received: from pinkfloyd.chass.utoronto.ca ([128.100.160.254]:35347 ident=93) by www.cquest.utoronto.ca with esmtp (Exim 4.43) id 1PV2wI-0005MZ-9P for sup-talk@rubyforge.org; Tue, 21 Dec 2010 09:11:42 -0500 Received: from bwalton by pinkfloyd.chass.utoronto.ca with local (Exim 4.72) (envelope-from ) id 1PV2wI-0005Wr-8M for sup-talk@rubyforge.org; Tue, 21 Dec 2010 09:11:42 -0500 From: Ben Walton To: sup-talk In-reply-to: <1292929122-sup-7072@tilus.net> References: <1271249704-sup-1088@masanjin.net> <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca> <1271260552-sup-9153@masanjin.net> <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca> <20101215081955.GF568@icsi.berkeley.edu> <1292432651-sup-6834@jamestaylor.org> <20101218051216.GS60419@icsi.berkeley.edu> <1292649662-sup-8863@jamestaylor.org> <20101218190427.GU60419@icsi.berkeley.edu> <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca> <20101221064445.GZ60419@icsi.berkeley.edu> <1292929122-sup-7072@tilus.net> Date: Tue, 21 Dec 2010 09:11:42 -0500 Message-Id: <1292940403-sup-7858@pinkfloyd.chass.utoronto.ca> User-Agent: Sup/git Subject: Re: [sup-talk] current state of synching upstream? X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Excerpts from Tero Tilus's message of Tue Dec 21 06:01:59 -0500 2010: > > Neither master nor Damien's Maildir clone contain the class > > Recoverable. Is this code you added somewhere else? > > This sources not getting saved might be because of that Recoverable > wrapper class. YAML marshalling might not be able to digest it. When I wrote the hook, I referenced the following from lib/sup/source.rb: def load_sources fn=Redwood::SOURCE_FN source_array = (Redwood::load_yaml_obj(fn) || []).map { |o| Recoverable.new o } @source_mutex.synchronize do @sources = Hash[*(source_array).map { |s| [s.id, s] }.flatten] @sources_dirty = false end end So, after de-marshalling the yaml file, it wraps the object in a Recoverable. This class is defined in lib/sup/util.rb. I'm looking at the code again right now as the Recoverable may be the key as to why this doesn't get saved... Thanks -Ben -- Ben Walton Systems Programmer - CHASS University of Toronto C:416.407.5610 | W:416.978.4302 _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk