Redcar Gem plugins

66 views
Skip to first unread message

Daniel Lucraft

unread,
Jan 8, 2012, 7:32:44 AM1/8/12
to Redcar
So, as of 0.12, Redcar plugins can (and should) be released as gems. 

The previous system, of cloning the plugin into ~/.redcar/plugins, I always found a bit of a pain in the neck. 

The new system is: install plugin gem, restart Redcar.

To make a Redcar gem plugin simply make sure your gem name has the prefix "redcar-". Examples: "redcar-clojure", "redcar-groovy". Everything else is the same as how plugins are developed now, in particular, they must have a plugin.rb file in the root of their directory.

Hopefully this will make sharing plugins a lot more convenient for us all.

best,
Dan

__________________________
Daniel Lucraft


"Steven! Ragnarök"

unread,
Jan 8, 2012, 4:30:54 PM1/8/12
to redcar...@googlegroups.com
On 01/08/2012 04:32 AM, Daniel Lucraft wrote:
> So, as of 0.12, Redcar plugins can (and should) be released as gems.
>
> The previous system, of cloning the plugin into ~/.redcar/plugins, I
> always found a bit of a pain in the neck.
>
> The new system is: install plugin gem, restart Redcar.
Awesome, is there a recommended manifest of installed plugins or should
we just add `Gemfiles` to our .redcar directories. I've got my Vim and
Emacs configs in source control and it'd be nice to have the same for
Redcar. If we're using Ruby gems for plugins then it makes sense to use
Bundler for dependency management. I'm just wondering if that's a good
convention to establish or if there's a better place for it.

> To make a Redcar gem plugin simply make sure your gem name has the
> prefix "redcar-". Examples: "redcar-clojure", "redcar-groovy".
> Everything else is the same as how plugins are developed now, in
> particular, they must have a plugin.rb file in the root of their directory.
>
> Hopefully this will make sharing plugins a lot more convenient for us all.
>
> best,
> Dan
>
> __________________________
> Daniel Lucraft
>
> danlucraft.com/blog
> twitter.com/danlucraft
>

> --
> You received this message because you are subscribed to the Google
> Groups "Redcar" group.
> To post to this group, send email to redcar...@googlegroups.com.
> To unsubscribe from this group, send email to
> redcar-edito...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/redcar-editor?hl=en.


--
Steven! Ragnar�k
T 408 256 0278
ste...@nuclearsandwich.com
http://www.nuclearsandwich.com

Daniel Lucraft

unread,
Jan 11, 2012, 3:47:22 AM1/11/12
to redcar...@googlegroups.com
Do you mean putting Gemfiles into the project .redcar directories so redcar knows which plugins to install for use in each project? Or do you mean putting Gemfile in ~/.redcar to specify which plugins to install.

That would be an interesting way to do it, for sure. Redcar doesn't actually use Bundler when it is distributed as a gem currently though.

"Steven! Ragnarök"

unread,
Jan 11, 2012, 5:09:10 PM1/11/12
to redcar...@googlegroups.com
On 01/11/2012 12:47 AM, Daniel Lucraft wrote:
> Do you mean putting Gemfiles into the project .redcar directories so
> redcar knows which plugins to install for use in each project? Or do you
> mean putting Gemfile in ~/.redcar to specify which plugins to install.

I mean putting a Gemfile in ~/.redcar as a way of keeping track of
plugins. Here's my hasty example.
https://bitbucket.org/nuclearsandwich/redcarfiles


>
> That would be an interesting way to do it, for sure. Redcar doesn't
> actually use Bundler when it is distributed as a gem currently though.
>

> On Sunday, 8 January 2012 at 21:30, "Steven! Ragnar�k" wrote:
>
>> Awesome, is there a recommended manifest of installed plugins or should
>> we just add `Gemfiles` to our .redcar directories. I've got my Vim and
>> Emacs configs in source control and it'd be nice to have the same for
>> Redcar. If we're using Ruby gems for plugins then it makes sense to use
>> Bundler for dependency management. I'm just wondering if that's a good
>> convention to establish or if there's a better place for it.
>

Daniel Lucraft

unread,
Jan 13, 2012, 9:44:40 AM1/13/12
to redcar...@googlegroups.com
Hmm. It's certainly possible to make Bundler use a particular Gemfile, using an environment variable. But I'm worried about mixing regular Rubygems loading for redcar dependencies and Bundler for plugins in the same process.

On Wednesday, 11 January 2012 at 22:09, "Steven! Ragnarök" wrote:

On 01/11/2012 12:47 AM, Daniel Lucraft wrote:
Do you mean putting Gemfiles into the project .redcar directories so
redcar knows which plugins to install for use in each project? Or do you
mean putting Gemfile in ~/.redcar to specify which plugins to install.

I mean putting a Gemfile in ~/.redcar as a way of keeping track of
plugins. Here's my hasty example.

That would be an interesting way to do it, for sure. Redcar doesn't
actually use Bundler when it is distributed as a gem currently though.

On Sunday, 8 January 2012 at 21:30, "Steven! Ragnarök" wrote:

Awesome, is there a recommended manifest of installed plugins or should
we just add `Gemfiles` to our .redcar directories. I've got my Vim and
Emacs configs in source control and it'd be nice to have the same for
Redcar. If we're using Ruby gems for plugins then it makes sense to use
Bundler for dependency management. I'm just wondering if that's a good
convention to establish or if there's a better place for it.

--
You received this message because you are subscribed to the Google
Groups "Redcar" group.
To post to this group, send email to redcar...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at


--
Steven! Ragnarök
Reply all
Reply to author
Forward
0 new messages