[前][次][番号順一覧][スレッド一覧]

ruby-changes:70030

From: Josef <ko1@a...>
Date: Fri, 3 Dec 2021 06:01:26 +0900 (JST)
Subject: [ruby-changes:70030] 1f4af99383 (master): [rubygems/rubygems] Move required_ruby_version gemspec attribute to recommended section.

https://git.ruby-lang.org/ruby.git/commit/?id=1f4af99383

From 1f4af993835219efa8feaf76a0b36252028691f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= <josef.simanek@g...>
Date: Thu, 2 Dec 2021 20:44:30 +0100
Subject: [rubygems/rubygems] Move required_ruby_version gemspec attribute to
 recommended section.

https://github.com/rubygems/rubygems/commit/de6552ac30
---
 lib/rubygems/specification.rb | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index d22b0156e36..40a5bddff6a 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -287,6 +287,15 @@ class Gem::Specification < Gem::BasicSpecification https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L287
   ######################################################################
   # :section: Recommended gemspec attributes
 
+  ##
+  # The version of Ruby required by this gem
+  #
+  # Usage:
+  #
+  #   spec.required_ruby_version = '>= 2.7.0'
+
+  attr_reader :required_ruby_version
+
   ##
   # A long description of this gem
   #
@@ -522,11 +531,6 @@ class Gem::Specification < Gem::BasicSpecification https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L531
     @require_paths = Array(val)
   end
 
-  ##
-  # The version of Ruby required by this gem
-
-  attr_reader :required_ruby_version
-
   ##
   # The RubyGems version required by this gem
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]