Has any thought has been put into plugins and versioning? i.e., it''s not such a great idea to have people grabbing the SVN trunk of plugins all the time. It should be possible to extend the plugin install script to check for the presence of a /tags directory in the repository.... but then maybe that''s putting too much work into a temporary solution. I have some code at work that might be somehow shoe-horned into the plugin command at some point, but I''m really just wondering if it''s on anyone elses radar yet...
On 11/2/05, James Adam <james.adam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Has any thought has been put into plugins and versioning? i.e., it''s > not such a great idea to have people grabbing the SVN trunk of plugins > all the time. > > It should be possible to extend the plugin install script to check for > the presence of a /tags directory in the repository.... but then maybe > that''s putting too much work into a temporary solution. I have some > code at work that might be somehow shoe-horned into the plugin command > at some point, but I''m really just wondering if it''s on anyone elses > radar yet...Why does that have to be done in the script command? Just install from /svn/plugin/tags/1.0.5/ or whatever, instead of the trunk. -- rick http://techno-weenie.net
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 2, 2005, at 6:34 PM, James Adam wrote:> Has any thought has been put into plugins and versioning? i.e., it''s > not such a great idea to have people grabbing the SVN trunk of plugins > all the time. > > It should be possible to extend the plugin install script to check for > the presence of a /tags directory in the repository.... but then maybe > that''s putting too much work into a temporary solution. I have some > code at work that might be somehow shoe-horned into the plugin command > at some point, but I''m really just wondering if it''s on anyone elses > radar yet...RubyGems is a nice way to distribute versioned software packages. The problem is that a gem install is system-wide, whereas we want to pick and choose which plugin gems we want for each app. Perhaps it''s as simple as a list of gems we want in our app? What do you think? jeremy ps here is a gem meta-plugin: $ mkdir vendor/plugins/metaplug $ cat > vendor/plugins/metaplug/gems.yml foo: = 1.3.0 bar: >= 0.2.1 $ cat > vendor/plugins/metaplug/init.rb require ''rubygems'' require ''yaml'' YAML.load_file(File.dirname(__FILE__) + ''/gems.yml'').each do |name, version| name = "#{name}_rails_plugin" unless name =~ /_rails_plugin$/ version = version.to_s.strip if version.empty? then require_gem(name) else require_gem(name, version) end end maybe too short? :-) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Darwin) iD8DBQFDaYkbAQHALep9HFYRAnr2AKCtz3YAMvETzEmPhEzcNX0kEsFNtwCgzacf NJq71R1Nb4nRLNjJlEOfAYo=ZSuH -----END PGP SIGNATURE-----
I was planning on using svn tags myself... Trevor On 2-Nov-05, at 6:34 PM, James Adam wrote:> Has any thought has been put into plugins and versioning? i.e., it''s > not such a great idea to have people grabbing the SVN trunk of plugins > all the time. > > It should be possible to extend the plugin install script to check for > the presence of a /tags directory in the repository.... but then maybe > that''s putting too much work into a temporary solution. I have some > code at work that might be somehow shoe-horned into the plugin command > at some point, but I''m really just wondering if it''s on anyone elses > radar yet... > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Trevor Squires http://somethinglearned.com
It definitely doesn''t need to be done in the script command, you can always specify the path yourself. However, if the plugin command becomes the ''official'' way to find, install and manage plugins, it will surely need to ''understand'' the tags directory of discovered repositories. On 11/3/05, Rick Olson <technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Why does that have to be done in the script command? Just install > from /svn/plugin/tags/1.0.5/ or whatever, instead of the trunk. > > -- > rick > http://techno-weenie.net > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >