mephisto plugins

November 10th, 2006

The mephisto plugins I've written so far are availible at svn://hasno.info/mephisto/plugins. There are currently 3 plugins:

  • Feedreader - display any rss/atom feed in your layout - svn://hasno.info/mephisto/plugins/mephisto_feedreader
  • Comment Emailer - send an email to the article author when someone posts a comment - svn://hasno.info/mephisto/plugins/mephisto_comment_email
  • Post Pinger - send a weblog ping to a ping site when an article is published - svn://hasno.info/mephisto/plugins/mephisto_post_ping
I am using all of the plugins on this site, so "Works for Me"... Feedback and patches are welcome and encouraged. <update> I forgot the svn url for the post pinger.</update>

33 Responses to “mephisto plugins”

  1. Scott Coleman Scott Coleman Says:
    Mark, I'm attempting to get the feedreader plugin working but am having some trouble. I believe I have the plugin installed ok though I'm not completely certain. I've got the feedreader tags in the template, open and close but my log returns the following. http://pastie.caboo.se/22403 Any ideas? Might that error be an indication that I don't have the plugin installed properly? Thanks! Scott
  2. segfault segfault Says:
    Scott, could you post the tag usage block?
  3. Scott Coleman Scott Coleman Says:
    I copied it from the readme in the plugin.
  4. segfault segfault Says:
    Scott, I had a typo in the readme. I've updated the file in the subversion repository. You need to change the end tag to be endfeedreader.
  5. Luke Redpath Luke Redpath Says:
    I've also got a mephisto comment notification plugin if anybody is interested: http://opensource.agileevolved.com/svn/root/rails_plugins/mephisto_comment_notification/trunk/ Doesn't require anything to be copied over. The mailer template could do with a bit of work though, I might look at that this week. I'll be looking at your post pinger, nice one.
  6. segfault segfault Says:
    I actually found out about template_root last night while digging for a way to keep per-plugin templates. So I've just added that to the comment email plugin. I think it's high time I modified the mephisto wiki plugins page. That would stave off some duplicate efforts. Hope the pinger works for you.
  7. segfault segfault Says:
    Luke, I'm going to add your plugins along with mine to the mephisto plugin list on the wiki.
  8. Luke Redpath Luke Redpath Says:
    Cool - I'll get Dan Webb to add his too.
  9. Justin Justin Says:
    Nice ping plugin. Very simple and great one stop shop for pinging. I just wasted a bunch of time writing a technorati ping plugin.
  10. segfault segfault Says:
    Thanks Justin, sorry to hear about the time wasted.
  11. shift shift Says:
    Just to let you know, it doesn't seem to work with latest trunk (rev 2705)
    ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/base.rb:1235:in `method_missing':NoMethodError: undefined method `has_permalink' for Article:Class
    
  12. segfault segfault Says:
    shift, it looks like Rick refactored some stuff that the Article model depends on into a plugin. This plugin just happens to be loaded AFTER any mephisto plugins. I'll email the list to see what we can do about this.
  13. segfault segfault Says:
    shift, I've checked in a fix. I'm not to fond of it, but It'll do for now.
  14. Hank Hank Says:
    I fixed it. Using the Post Pinger in the current trunk. Here's how I did it.
  15. segfault segfault Says:
    I've updated all of the plugins to match the Mephisto Plugin code changes.
  16. Hi Hi Says:
    Hi, I was wondering if this plugin is needed with the latest mephisto install. mephisto-0.7.3 I can't find if RSS feeds are supported on the latest one... I wouldnt want to have to install a pluggin where i may not need to.
  17. segfault segfault Says:
    0.7.3 doesn't have support for reading rss feeds, neither does the development trunk. To my knowledge support for rss feeds is not planned for inclusion in mephisto proper.
  18. W. Andrew Loe III W. Andrew Loe III Says:
    I cannot get the install method on your RSS plugin to work. k$ script/runner -e production 'MephistoPlugins::FeedReader.install' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/runner.rb:47: /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in `load_missing_constant': uninitialized constant MephistoPlugins (NameError) from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in `const_missing' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in `const_missing' from (eval):1 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `eval' from /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/runner.rb:47 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require' from script/runner:3 It appears that something has changed in the trunk, but I am not familiar enough with Mephisto plugins to solve it. I had created the table by hand, but feeds are not being cached to it and the resulting performance is way too slow to be practical.
  19. segfault segfault Says:
    Andrew, I think I fixed it a while back but forgot to update the documentation. Try Mephisto::Plugins::FeedReader.install instead.
  20. Metin Metin Says:
    Application error (Rails)!!
  21. segfault segfault Says:
    Metin, I have to tell you, that error is pretty much useless to me. I'll need some more information before I can help you. Let's start with OS, mephisto version, rails version, plugin version. We can round that out with the full stack trace from the error. Good luck.
  22. sterling sterling Says:
    I'm getting the following trying to install. Not sure what the deal is $ ruby script/runner -e production 'Mephisto::Plugins::Feedreader.install' /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:196:in `activate': can't activate rails (= 1.2), already activated rails-1.2.3] (Gem::Exception) from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:214:in `activate' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:213:in `each' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:213:in `activate' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/runner.rb:39 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from script/runner:3
  23. segfault segfault Says:
    sterling, Does your mephisto install work anyway? It looks like your running into a rails error, not a feedreader bug.
  24. W. Andrew Loe III W. Andrew Loe III Says:
    ruby script/runner -e production 'Mephisto::Plugins::F eedreader.install' Also, you need the 'feedtools' gem (which is no longer maintained btw.) It appears the plugin doesn't cache feeds which makes it unusably slow for me. Has this plugin been updated to work with the new plugin architecture? I need a generic RSS reader (I have about 4 different feeds I want to start pulling in) but it appears I am going to have to write that if I want it.
  25. segfault segfault Says:
    Andrew, I'm working on the cache issue and I've volunteered to maintain feedtools. It works with the new plugin stuff. Though I haven't seen the slowness (ruby is slow anyway).
  26. W. Andrew Loe III W. Andrew Loe III Says:
    Segfault, it appears there is still some issue with the plugin. It now caches properly but it spikes my mongrel processes to 100% CPU and requests take 10+ seconds to complete. With the plugin gone, everything functions normally. I wish I could give you more information, perhaps its something wrong with FeedTools?
  27. Christoph Christoph Says:
    Somehow the comment notification plugin breaks my app. If I post a comment, I get an nginx error saying that it cannot reach the mongrel proxy. I get the email, and if I hit reload I get the "thanks for your commment" page. Does anyone know why this happens?
  28. torch torch Says:
    Yeah I tried having this comment plugin working but nothing... no notifications are sent. Do I need to do anything else besides just installing on mephisto ?
  29. segfault segfault Says:
    If you installed on the stable version, did you actually use the tagged release. If not then that's why it's not working, as the trunk is generally working against the mephisto trunk.
  30. dave dave Says:
    Good work. Continue write.
  31. rnb rnb Says:
    Thanks for the nice read, keep up the interesting posts.
  32. nap nap Says:
    Is this busted under the latest Mephisto?
  33. segfault segfault Says:
    svn is down/broke due to hardware issues. the github copy of the plugins should be working versus 0.8, all are broken against mephisto trunk since the switch to engine based plugins. http://github.com/segfault/

Leave a Reply