* [sup-devel] [PATCH] Allow toggle on Source.usual and Source.archived
@ 2010-05-15 18:45 Ben Walton
2010-06-03 3:58 ` Rich Lane
0 siblings, 1 reply; 2+ messages in thread
From: Ben Walton @ 2010-05-15 18:45 UTC (permalink / raw)
To: sup-devel
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 <bwalton@artsci.utoronto.ca>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [sup-devel] [PATCH] Allow toggle on Source.usual and Source.archived
2010-05-15 18:45 [sup-devel] [PATCH] Allow toggle on Source.usual and Source.archived Ben Walton
@ 2010-06-03 3:58 ` Rich Lane
0 siblings, 0 replies; 2+ messages in thread
From: Rich Lane @ 2010-06-03 3:58 UTC (permalink / raw)
To: Ben Walton; +Cc: sup-devel
Applied to master.
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-03 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-15 18:45 [sup-devel] [PATCH] Allow toggle on Source.usual and Source.archived Ben Walton
2010-06-03 3:58 ` Rich Lane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox