Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6101

Show
Ignore:
Timestamp:
02/01/07 20:12:36 (1 year ago)
Author:
bitsweat
Message:

Plugins may be symlinked in vendor/plugins. Closes #4245.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/CHANGELOG

    r6069 r6101  
    11*SVN* 
     2 
     3* Plugins may be symlinked in vendor/plugins.  #4245 [brandon, progrium@gmail.com] 
    24 
    35* Resource generator depends on the model generator rather than duplicating it.  #7269 [bscofield] 
  • trunk/railties/lib/rails_generator/lookup.rb

    r4310 r6101  
    101101            sources << PathSource.new(:lib, "#{::RAILS_ROOT}/lib/generators") 
    102102            sources << PathSource.new(:vendor, "#{::RAILS_ROOT}/vendor/generators") 
    103             sources << PathSource.new(:plugins, "#{::RAILS_ROOT}/vendor/plugins/**/generators") 
     103            sources << PathSource.new(:plugins, "#{::RAILS_ROOT}/vendor/plugins/*/**/generators") 
    104104          end 
    105105          sources << PathSource.new(:user, "#{Dir.user_home}/.rails/generators") 
  • trunk/railties/lib/tasks/rails.rb

    r5469 r6101  
    66# Load any custom rakefile extensions 
    77Dir["#{RAILS_ROOT}/lib/tasks/**/*.rake"].sort.each { |ext| load ext } 
    8 Dir["#{RAILS_ROOT}/vendor/plugins/**/tasks/**/*.rake"].sort.each { |ext| load ext } 
     8Dir["#{RAILS_ROOT}/vendor/plugins/*/**/tasks/**/*.rake"].sort.each { |ext| load ext } 
  • trunk/railties/lib/tasks/testing.rake

    r5263 r6101  
    109109      t.pattern = "vendor/plugins/#{ENV['PLUGIN']}/test/**/*_test.rb" 
    110110    else 
    111       t.pattern = 'vendor/plugins/**/test/**/*_test.rb' 
     111      t.pattern = 'vendor/plugins/*/**/test/**/*_test.rb' 
    112112    end 
    113113 
    114114    t.verbose = true 
    115115  end 
    116   Rake::Task['test:plugins'].comment = "Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name)" 
     116  Rake::Task['test:plugins'].comment = "Run the plugin tests in vendor/plugins/*/**/test (or specify with PLUGIN=name)" 
    117117end