From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.204.79.193 with SMTP id q1cs9785bkk; Sat, 15 May 2010 11:46:25 -0700 (PDT) Received: by 10.150.131.17 with SMTP id e17mr4085217ybd.102.1273949185076; Sat, 15 May 2010 11:46:25 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 32si4292972yxe.113.2010.05.15.11.46.24; Sat, 15 May 2010 11:46:25 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-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-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 4D2311858344; Sat, 15 May 2010 14:46:24 -0400 (EDT) Received: from www.cquest.utoronto.ca (www.cquest.utoronto.ca [192.82.128.5]) by rubyforge.org (Postfix) with ESMTP id 2B30918582CE for ; Sat, 15 May 2010 14:45:22 -0400 (EDT) Received: from pinkfloyd.chass.utoronto.ca ([128.100.160.254]:49577 ident=93) by www.cquest.utoronto.ca with esmtp (Exim 4.43) id 1ODMMU-0000QV-76; Sat, 15 May 2010 14:45:22 -0400 Received: from bwalton by pinkfloyd.chass.utoronto.ca with local (Exim 4.63) (envelope-from ) id 1ODMMU-0004ML-65; Sat, 15 May 2010 14:45:22 -0400 From: Ben Walton To: sup-devel@rubyforge.org Date: Sat, 15 May 2010 14:45:21 -0400 Message-Id: <1273949121-16731-1-git-send-email-bwalton@artsci.utoronto.ca> X-Mailer: git-send-email 1.7.0 Subject: [sup-devel] [PATCH] Allow toggle on Source.usual and Source.archived X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion 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-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org Allow sources to be more malleable by allowing for the modification of the usual and archived flags. This is a first step toward patterned (meta) sources. Initially, the patterning will be handled by one of the poll hooks, which will use the usual toggle when a 'new' source is added. Later on, this may be handled internally for sources with a meta = true attribute (or something similar). Signed-off-by: Ben Walton --- lib/sup/source.rb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/sup/source.rb b/lib/sup/source.rb index 6fe7bfb..2f2e5df 100644 --- a/lib/sup/source.rb +++ b/lib/sup/source.rb @@ -63,7 +63,8 @@ class Source ## ## dirty? means cur_offset has changed, so the source info needs to ## be re-saved to sources.yaml. - bool_reader :usual, :archived, :dirty + bool_reader :dirty + bool_accessor :usual, :archived attr_reader :uri, :cur_offset attr_accessor :id -- 1.7.0 _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel