mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Revert "Set Ruby version in Gemfile and .ruby-version by default"
This reverts commit fd7f978a50
.
This commit is contained in:
parent
54ed5270c5
commit
a8f59044fb
4 changed files with 0 additions and 24 deletions
|
@ -2,12 +2,6 @@
|
|||
|
||||
*Yuji Yaginuma*
|
||||
|
||||
* Add `ruby x.x.x` version to `Gemfile` and create `.ruby-version`
|
||||
root file containing the current Ruby version when new Rails applications are
|
||||
created.
|
||||
|
||||
*Alberto Almagro*
|
||||
|
||||
* Support `-` as a platform-agnostic way to run a script from stdin with
|
||||
`rails runner`
|
||||
|
||||
|
|
|
@ -49,10 +49,6 @@ module Rails
|
|||
copy_file "README.md", "README.md"
|
||||
end
|
||||
|
||||
def ruby_version
|
||||
template "ruby-version", ".ruby-version"
|
||||
end
|
||||
|
||||
def gemfile
|
||||
template "Gemfile"
|
||||
end
|
||||
|
@ -257,7 +253,6 @@ module Rails
|
|||
def create_root_files
|
||||
build(:readme)
|
||||
build(:rakefile)
|
||||
build(:ruby_version)
|
||||
build(:configru)
|
||||
build(:gitignore) unless options[:skip_git]
|
||||
build(:gemfile) unless options[:skip_gemfile]
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
<%= RUBY_VERSION -%>
|
|
@ -4,7 +4,6 @@ require "generators/shared_generator_tests"
|
|||
|
||||
DEFAULT_APP_FILES = %w(
|
||||
.gitignore
|
||||
.ruby-version
|
||||
README.md
|
||||
Gemfile
|
||||
Rakefile
|
||||
|
@ -809,17 +808,6 @@ class AppGeneratorTest < Rails::Generators::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_inclusion_of_ruby_version
|
||||
run_generator
|
||||
|
||||
assert_file "Gemfile" do |content|
|
||||
assert_match(/ruby '#{RUBY_VERSION}'/, content)
|
||||
end
|
||||
assert_file ".ruby-version" do |content|
|
||||
assert_match(/#{RUBY_VERSION}/, content)
|
||||
end
|
||||
end
|
||||
|
||||
def test_version_control_initializes_git_repo
|
||||
run_generator [destination_root]
|
||||
assert_directory ".git"
|
||||
|
|
Loading…
Reference in a new issue