Skip to content

Commit

Permalink
moved rails binary to rails gem, so rubygems can find specific versio…
Browse files Browse the repository at this point in the history
…ns of rails [#4382 state:resolved]

Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information
felipero authored and wycats committed Apr 13, 2010
1 parent 3c456a8 commit a64bfc3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions bin/rails
@@ -0,0 +1 @@
require 'rails/cli'
5 changes: 3 additions & 2 deletions rails.gemspec
Expand Up @@ -15,8 +15,9 @@ Gem::Specification.new do |s|
s.homepage = 'http://www.rubyonrails.org'
s.rubyforge_project = 'rails'

s.files = []
s.require_path = []
s.bindir = 'bin'
s.executables = ['rails']
s.default_executable = 'rails'

s.add_dependency('activesupport', version)
s.add_dependency('actionpack', version)
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions railties/railties.gemspec
Expand Up @@ -15,9 +15,6 @@ Gem::Specification.new do |s|

s.files = Dir['CHANGELOG', 'README', 'bin/**/*', 'guides/**/*', 'lib/**/{*,.[a-z]*}']
s.require_path = 'lib'
s.bindir = 'bin'
s.executables = ['rails']
s.default_executable = 'rails'

s.rdoc_options << '--exclude' << '.'
s.has_rdoc = false
Expand Down
2 changes: 1 addition & 1 deletion railties/test/isolation/abstract_unit.rb
Expand Up @@ -213,7 +213,7 @@ class Test::Unit::TestCase
require_environment = "-r #{environment}"
end

`#{Gem.ruby} #{require_environment} #{RAILS_FRAMEWORK_ROOT}/railties/bin/rails #{tmp_path('app_template')}`
`#{Gem.ruby} #{require_environment} #{RAILS_FRAMEWORK_ROOT}/bin/rails #{tmp_path('app_template')}`
File.open("#{tmp_path}/app_template/config/boot.rb", 'w') do |f|
if require_environment
f.puts "Dir.chdir('#{File.dirname(environment)}') do"
Expand Down

0 comments on commit a64bfc3

Please sign in to comment.