Skip to content

Commit

Permalink
Revert "Support prerelease rubies in Gemfile template"
Browse files Browse the repository at this point in the history
  • Loading branch information
yahonda committed Feb 27, 2023
1 parent 80ba888 commit 3b87d23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -1,7 +1,7 @@
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby <%= "\"#{Gem.ruby_version}\"" -%>
ruby <%= "\"#{RUBY_VERSION}\"" -%>

<% gemfile_entries.each do |gemfile_entry| %>
<%= gemfile_entry %>
Expand Down
2 changes: 1 addition & 1 deletion railties/test/generators/app_generator_test.rb
Expand Up @@ -922,7 +922,7 @@ def test_inclusion_of_ruby_version
run_generator

assert_file "Gemfile" do |content|
assert_match(/ruby "#{Gem.ruby_version}"/, content)
assert_match(/ruby "#{RUBY_VERSION}"/, content)
end
assert_file ".ruby-version" do |content|
if ENV["RBENV_VERSION"]
Expand Down

0 comments on commit 3b87d23

Please sign in to comment.