Set Ruby 2.7 as the required version
This commit is contained in:
parent
7d37ae6751
commit
1d4708565f
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
version = File.foreach(File.join(__dir__, "lib/json/version.rb")) do |line|
|
version = File.foreach(File.join(__dir__, "lib/json/version.rb")) do |line|
|
||||||
/^\s*VERSION\s*=\s*'(.*)'/ =~ line and break $1
|
/^\s*VERSION\s*=\s*'(.*)'/ =~ line and break $1
|
||||||
end rescue nil
|
end rescue nil
|
||||||
@ -19,7 +21,7 @@ spec = Gem::Specification.new do |s|
|
|||||||
'wiki_uri' => 'https://github.com/ruby/json/wiki'
|
'wiki_uri' => 'https://github.com/ruby/json/wiki'
|
||||||
}
|
}
|
||||||
|
|
||||||
s.required_ruby_version = Gem::Requirement.new(">= 2.3")
|
s.required_ruby_version = Gem::Requirement.new(">= 2.7")
|
||||||
|
|
||||||
if java_ext
|
if java_ext
|
||||||
s.description = "A JSON implementation as a JRuby extension."
|
s.description = "A JSON implementation as a JRuby extension."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user