Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Just provide the executable for railtie. This should be fine since Ru…

…bygems now warns before overriding them.
  • Loading branch information...
commit 11fa70dd0903a75f2a507dd609ea640e8ec99373 1 parent 63082af
José Valim josevalim authored

Showing 3 changed files with 7 additions and 9 deletions. Show diff stats Hide diff stats

  1. +0 7 bin/rails
  2. +1 1  rails.gemspec
  3. +6 1 railties/bin/rails
7 bin/rails
... ... @@ -1,7 +0,0 @@
1   -#!/usr/bin/env ruby
2   -
3   -if File.exists?(File.join(File.expand_path('../..', __FILE__), '.git'))
4   - railties_path = File.expand_path('../../railties/lib', __FILE__)
5   - $:.unshift(railties_path)
6   -end
7   -require "rails/cli"
2  rails.gemspec
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15 15 s.homepage = 'http://www.rubyonrails.org'
16 16
17 17 s.bindir = 'bin'
18   - s.executables = ['rails']
  18 + s.executables = []
19 19
20 20 s.add_dependency('activesupport', version)
21 21 s.add_dependency('actionpack', version)
7 railties/bin/rails
... ... @@ -1,2 +1,7 @@
1 1 #!/usr/bin/env ruby
2   -require "rails/cli"
  2 +
  3 +if File.exists?(File.join(File.expand_path('../../..', __FILE__), '.git'))
  4 + railties_path = File.expand_path('../../lib', __FILE__)
  5 + $:.unshift(railties_path)
  6 +end
  7 +require "rails/cli"

0 comments on commit 11fa70d

Please sign in to comment.
Something went wrong with that request. Please try again.