# Plugins and svn

**URL:** <https://www.ruby-forum.com/t/plugins-and-svn/65123>\
**Category:** Rails\
**Created:** [August 16, 2006, 11:25am UTC](https://www.ruby-forum.com/t/plugins-and-svn/65123 "2006-08-16T11:25:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![papipo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@papipo](https://www.ruby-forum.com/u/papipo)\
**Post date:** [August 16, 2006, 11:25am UTC](https://www.ruby-forum.com/t/plugins-and-svn/65123/1 "2006-08-16T11:25:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![papipo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@papipo](https://www.ruby-forum.com/u/papipo)\
**Post date:** [August 16, 2006, 11:46am UTC](https://www.ruby-forum.com/t/plugins-and-svn/65123/2 "2006-08-16T11:46:53Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![papipo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@papipo](https://www.ruby-forum.com/u/papipo)\
**Post date:** [August 16, 2006, 12:46pm UTC](https://www.ruby-forum.com/t/plugins-and-svn/65123/3 "2006-08-16T12:46:58Z")

</div>

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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > /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  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Michael S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

[www.stellar-legends.de](http://www.stellar-legends.de) - Weltraum-Browsergame im Alpha-Stadium

---

<div class="post-metadata">

**Author:** ![papipo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@papipo](https://www.ruby-forum.com/u/papipo)\
**Post date:** [August 16, 2006, 1:20pm UTC](https://www.ruby-forum.com/t/plugins-and-svn/65123/4 "2006-08-16T13:20:02Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> “Yields falsehood when quined” yields falsehood when quined.
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Michael S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

[www.stellar-legends.de](http://www.stellar-legends.de) - Weltraum-Browsergame im Alpha-Stadium

---

<div class="post-metadata">

**Author:** ![papipo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@papipo](https://www.ruby-forum.com/u/papipo)\
**Post date:** [August 16, 2006, 1:05pm UTC](https://www.ruby-forum.com/t/plugins-and-svn/65123/5 "2006-08-16T13:05:00Z")

</div>

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](http://ola-bini.blogspot.com))  
JvYAML, RbYAML, JRuby and Jatha contributor  
System Developer, Karolinska Institutet ([http://www.ki.se](http://www.ki.se))  
OLogix Consulting ([http://www.ologix.com](http://www.ologix.com))

“Yields falsehood when quined” yields falsehood when quined.
