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:
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>
- 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
November 12th, 2006 at 01:30 PM 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
November 12th, 2006 at 01:43 PM Scott, could you post the tag usage block?
November 12th, 2006 at 03:13 PM I copied it from the readme in the plugin.
November 12th, 2006 at 03:17 PM 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.
November 13th, 2006 at 12:26 PM 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.
November 13th, 2006 at 02:34 PM 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.
November 13th, 2006 at 02:41 PM Luke, I'm going to add your plugins along with mine to the mephisto plugin list on the wiki.
November 14th, 2006 at 05:27 AM Cool - I'll get Dan Webb to add his too.
December 19th, 2006 at 06:31 AM Nice ping plugin. Very simple and great one stop shop for pinging. I just wasted a bunch of time writing a technorati ping plugin.
December 19th, 2006 at 09:52 AM Thanks Justin, sorry to hear about the time wasted.
January 19th, 2007 at 12:16 PM Just to let you know, it doesn't seem to work with latest trunk (rev 2705)
January 22nd, 2007 at 01:15 AM 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.
January 22nd, 2007 at 03:01 AM shift, I've checked in a fix. I'm not to fond of it, but It'll do for now.
March 2nd, 2007 at 12:48 PM I fixed it. Using the Post Pinger in the current trunk. Here's how I did it.
March 2nd, 2007 at 07:07 PM I've updated all of the plugins to match the Mephisto Plugin code changes.
March 29th, 2007 at 02:58 AM 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.
March 29th, 2007 at 08:15 AM 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.
April 10th, 2007 at 04:26 PM 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.
April 10th, 2007 at 09:06 PM Andrew, I think I fixed it a while back but forgot to update the documentation. Try Mephisto::Plugins::FeedReader.install instead.
April 21st, 2007 at 03:17 AM Application error (Rails)!!
April 21st, 2007 at 09:36 AM 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.
April 30th, 2007 at 12:34 PM 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
May 2nd, 2007 at 10:14 AM sterling, Does your mephisto install work anyway? It looks like your running into a rails error, not a feedreader bug.
May 14th, 2007 at 06:29 AM 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.
May 14th, 2007 at 11:14 AM 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).
May 20th, 2007 at 11:37 PM 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?
October 4th, 2007 at 04:19 AM 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?
January 5th, 2008 at 12:23 AM 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 ?
January 5th, 2008 at 12:36 PM 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.
February 19th, 2008 at 02:14 PM Good work. Continue write.
February 25th, 2008 at 10:31 AM Thanks for the nice read, keep up the interesting posts.
May 3rd, 2008 at 11:03 AM Is this busted under the latest Mephisto?
May 5th, 2008 at 08:18 PM 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/