Plugins Are Unnecessary

written by nap on February 20th, 2008 @ 11:41 AM

Plugins really are unnecessary -- Jay Fields is absolutely right. RubyGems is a great package management system and there's no reason it can't do double duty here, if we just impose a few extra restrictions on Gem/Plugin structure. There are other benefits too using Gems too, such as versioning and dependency management, which is somewhat painful in the world of Rails plugins.

Merb already uses Gems for plugins/extensions. Why doesn't Rails? Historic reasons, most likely. Rails itself predates the existence of Gems iirc. But seriously, how hard would it be to rewrite script/plugin to install a gem and unpack it into vendor? That's the first step.

Comments

  • Avdi on 21 Feb 10:31

    I was using gems back before Rails got big, so I don't think they get that excuse.

  • nap on 21 Feb 10:42

    You know what, you're right. RubyGems was created at RubyConf 03 and Rails first saw a public release in mid-2004. So gems would have been around at that point, albeit youthful still. Thanks for pointing that out.

Post a comment