Ticket #4245: symlinked_plugins.patch
| File symlinked_plugins.patch, 2.0 kB (added by brandon, 2 years ago) |
|---|
-
railties/lib/rails_generator/lookup.rb
old new 100 100 if defined? ::RAILS_ROOT 101 101 sources << PathSource.new(:lib, "#{::RAILS_ROOT}/lib/generators") 102 102 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") 104 104 end 105 105 sources << PathSource.new(:user, "#{Dir.user_home}/.rails/generators") 106 106 sources << GemSource.new if Object.const_defined?(:Gem) -
railties/lib/tasks/rails.rb
old new 5 5 6 6 # Load any custom rakefile extensions 7 7 Dir["#{RAILS_ROOT}/lib/tasks/**/*.rake"].sort.each { |ext| load ext } 8 Dir["#{RAILS_ROOT}/vendor/plugins/* */tasks/**/*.rake"].sort.each { |ext| load ext }8 Dir["#{RAILS_ROOT}/vendor/plugins/*/**/tasks/**/*.rake"].sort.each { |ext| load ext } -
railties/lib/tasks/testing.rake
old new 108 108 if ENV['PLUGIN'] 109 109 t.pattern = "vendor/plugins/#{ENV['PLUGIN']}/test/**/*_test.rb" 110 110 else 111 t.pattern = 'vendor/plugins/* */test/**/*_test.rb'111 t.pattern = 'vendor/plugins/*/**/test/**/*_test.rb' 112 112 end 113 113 114 114 t.verbose = true 115 115 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)" 117 117 end