lib/rrimm/config.rb in rrimm-0.11.0 vs lib/rrimm/config.rb in rrimm-0.12.0

- old
+ new

@@ -60,11 +60,11 @@ end def evaluate_feed_definition(feed_name, &block) #this allow to redefine feeds if necessary existing_feed = @feeds[feed_name] - new_feed = (existing_feed || Feed.new(feed_name)) + new_feed = (existing_feed || FeedConfig.new(feed_name)) new_feed.formatter = default_formatter if default_formatter new_feed.pipe = pipe if pipe new_feed.instance_eval(&block) if block new_feed end @@ -87,20 +87,20 @@ feed_def = evaluate_feed_definition(name, *args, &block) @feeds[name] = feed_def end def category(cat_name, &block) - Feed.module_eval do + FeedConfig.module_eval do @@tmp_cat_name = cat_name alias :old_initialize :initialize def initialize(feed_name) old_initialize(feed_name) @category = @@tmp_cat_name end end self.instance_eval(&block) if block ensure - Feed.module_eval do + FeedConfig.module_eval do alias :initialize :old_initialize end end