lib/openwfe/extras/misc/activityfeed.rb in openwferu-extras-0.9.16 vs lib/openwfe/extras/misc/activityfeed.rb in openwferu-extras-0.9.17

- old
+ new

@@ -1,8 +1,8 @@ # #-- -# Copyright (c) 2007, John Mettraux, OpenWFE.org +# Copyright (c) 2007-2008, John Mettraux, OpenWFE.org # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # @@ -45,28 +45,13 @@ # atom-tools' license is X11/MIT # #require 'monitor' -require 'rubygems' +#require 'rubygems' +require 'atom/collection' # gem 'atoom-tools' -begin - require 'atom/collection' -rescue LoadError - # - # soft dependency on 'atom-tools' - # - puts - puts - puts "'atom/collection' is missing. You can install with :" - puts - puts " [sudo] gem install atom-tools" - puts - puts - exit 1 -end - require 'openwfe/service' module OpenWFE::Extras @@ -105,12 +90,12 @@ # it, an AtomEntry is generated. # The get_feed() method produces an atom feed of participant activity. # class ActivityFeedService #include MonitorMixin - include ServiceMixin - include OwfeServiceLocator + include OpenWFE::ServiceMixin + include OpenWFE::OwfeServiceLocator attr_accessor :max_item_count @@ -137,9 +122,11 @@ # # This is the method call by the expression pool each time a # workitem reaches a participant. # def call (channel, *args) + + ldebug "call() c '#{channel}' entries count : #{@entries.size}" e = Entry.new e.participant_name = channel e.upon = args[0]