Plugins and svn

Hi railers,

What do you do when you must use a plugin in a rails app that is under
subversion?

I think that an approach is simply install a version of the plugin, and
once
all the test pass, commit the plugin itself to the repository, inside
the
/vendor/ of the app. If a new version of the plugin is released, your
app is
still using the working one (although the new version could work too).

Please tell me your opinion about this.

Regards,
Rodrigo.

still using the working one (although the new version could work too).

Please tell me your opinion about this.

You can include the plugin in the tree of your svn repository as an
external ressource, and you can edit the svn properties to block the
update of this plugin at a preferred version.

I fought many times with svn to find the correct way to do this, and
I’ve
forgotten the commands but I’m sure that someone here can help us.

Regards

cd vendor/plugins
svn propset svn:externals “url://to/repository pluginname” .
svn update

dont forget the dot!
this works exactly the same way as being on edge rails, so you’ll always
have the lastes version of the plugin installed

2006/8/16, cedric [email protected]:

/vendor/ of the app. If a new version of the plugin is released, your
I fought many times with svn to find the correct way to do this, and I’ve
forgotten the commands but I’m sure that someone here can help us.

Regards


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Michael S. [email protected]

www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium

remeber that your app must be in svn to do this, otherwise youll get
something like “vendor/plugins is not a working copy”

2006/8/16, Ola B. [email protected]:

“Yields falsehood when quined” yields falsehood when quined.


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Michael S. [email protected]

www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium

Michael S. wrote:

cd vendor/plugins
svn propset svn:externals “url://to/repository pluginname” .
svn update

dont forget the dot!
this works exactly the same way as being on edge rails, so you’ll always
have the lastes version of the plugin installed

The easy way to do this is when installing the plugin:

script/plugin install -x svn://svn.reposityory/plugin/name


Ola B. (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)

“Yields falsehood when quined” yields falsehood when quined.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs