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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060816/f7d487f6/attachment.html
> 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.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 <cedric@feelfree.homelinux.com>:> > > 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. > > 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 > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Michael Siebert <info@siebert-wd.de> www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060816/f032c3c6/attachment.html
Michael Siebert 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 Bini (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.
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 Bini <ola.bini@ki.se>:> > Michael Siebert 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 Bini (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. > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Michael Siebert <info@siebert-wd.de> www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060816/8b078ba8/attachment.html