From a12557dbfdb63282b844f35ad0c8804bf182dfbf Mon Sep 17 00:00:00 2001 From: Miklos Fazekas Date: Sat, 26 Mar 2016 11:47:43 +0100 Subject: [bundler/bundler] Add `required_ruby_version` to gemspec template https://github.com/bundler/bundler/commit/f47421f92d --- lib/bundler/templates/newgem/newgem.gemspec.tt | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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'" -- cgit v1.2.3