From 2bcacc1eb0367f08d6f2415ddc8352bcf9d932cb Mon Sep 17 00:00:00 2001 From: Florian Frank Date: Wed, 11 Jan 2017 15:23:44 +0100 Subject: [PATCH] Require ruby version 2.0 or better --- Rakefile | 2 ++ json.gemspec | Bin 5908 -> 5974 bytes json_pure.gemspec | 1 + 3 files changed, 3 insertions(+) diff --git a/Rakefile b/Rakefile index cf19ecc21..f5817409f 100644 --- a/Rakefile +++ b/Rakefile @@ -95,6 +95,7 @@ if defined?(Gem) and defined?(Gem::PackageTask) s.email = "flori@ping.de" s.homepage = "http://flori.github.com/#{PKG_NAME}" s.license = 'Ruby' + s.required_ruby_version = '~>2.0' end desc 'Creates a json_pure.gemspec file' @@ -132,6 +133,7 @@ if defined?(Gem) and defined?(Gem::PackageTask) s.email = "flori@ping.de" s.homepage = "http://flori.github.com/#{PKG_NAME}" s.license = 'Ruby' + s.required_ruby_version = '~>2.0' end desc 'Creates a json.gemspec file' diff --git a/json.gemspec b/json.gemspec index 59d31eb3a72d675c7f17876c75eadeba82294c09..d7a396a2f08d0bba22ab8e2a944be68b2f1ee17e 100644 GIT binary patch delta 44 zcmbQDcTI0YlrT?fVQFSjYD#=jX;S6H?~43&b_zy%21FOBYOn{ diff --git a/json_pure.gemspec b/json_pure.gemspec index 46a062587..1aa636088 100644 --- a/json_pure.gemspec +++ b/json_pure.gemspec @@ -16,6 +16,7 @@ Gem::Specification.new do |s| s.homepage = "http://flori.github.com/json".freeze s.licenses = ["Ruby".freeze] s.rdoc_options = ["--title".freeze, "JSON implemention for ruby".freeze, "--main".freeze, "README.md".freeze] + s.required_ruby_version = Gem::Requirement.new("~> 2.0".freeze) s.rubygems_version = "2.6.8".freeze s.summary = "JSON Implementation for Ruby".freeze s.test_files = ["./tests/test_json.rb".freeze, "./tests/test_json_addition.rb".freeze, "./tests/test_json_encoding.rb".freeze, "./tests/test_json_fixtures.rb".freeze, "./tests/test_json_generate.rb".freeze, "./tests/test_json_generic_object.rb".freeze, "./tests/test_json_string_matching.rb".freeze, "./tests/test_json_unicode.rb".freeze]