summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/newgem/newgem.gemspec.tt
diff options
context:
space:
mode:
authorMiklos Fazekas <mfazekas@szemafor.com>2016-03-26 11:47:43 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:56 +0900
commita12557dbfdb63282b844f35ad0c8804bf182dfbf (patch)
tree8acc58358a1c6de8bf4433ab129f8c989db23143 /lib/bundler/templates/newgem/newgem.gemspec.tt
parentb014a2157f3b43d7ac85b27ad2cc47705487251e (diff)
[bundler/bundler] Add `required_ruby_version` to gemspec template
https://github.com/bundler/bundler/commit/f47421f92d
Diffstat (limited to 'lib/bundler/templates/newgem/newgem.gemspec.tt')
-rw-r--r--lib/bundler/templates/newgem/newgem.gemspec.tt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/newgem.gemspec.tt b/lib/bundler/templates/newgem/newgem.gemspec.tt
index 18060942c3..7feae6b18c 100644
--- a/lib/bundler/templates/newgem/newgem.gemspec.tt
+++ b/lib/bundler/templates/newgem/newgem.gemspec.tt
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
<%- if config[:mit] -%>
spec.license = "MIT"
<%- end -%>
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"