summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorJustin Searls <searls@gmail.com>2022-01-13 08:46:50 -0500
committergit <svn-admin@ruby-lang.org>2022-01-13 23:59:55 +0900
commita485152660d2351284362a2ab3b88f125a994554 (patch)
treedb6cd01a3ce20f028d0bb0b9b71128a9de661a38 /lib/bundler
parentd0a063794873eafed413957cb7ab93279945258a (diff)
[rubygems/rubygems] Lock standard.yml to the required ruby version
https://github.com/rubygems/rubygems/commit/1791b5b9e5
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/templates/newgem/standard.yml.tt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/standard.yml.tt b/lib/bundler/templates/newgem/standard.yml.tt
index 9e88fbbe8b..934b0b2c37 100644
--- a/lib/bundler/templates/newgem/standard.yml.tt
+++ b/lib/bundler/templates/newgem/standard.yml.tt
@@ -1,2 +1,3 @@
# For available configuration options, see:
# https://github.com/testdouble/standard
+ruby_version: <%= ::Gem::Version.new(config[:required_ruby_version]).segments[0..1].join(".") %>