diff --git a/README.md b/README.md
index 05c41b5..eadcc50 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# Signet
- - Homepage
- http://code.google.com/p/oauth-signet/
+ - Homepage
- https://github.com/googleapis/signet/
- Author
- Bob Aman
- Copyright
- Copyright © 2010 Google, Inc.
- License
- Apache 2.0
@@ -59,10 +59,9 @@ client.fetch_access_token!
Be sure `https://rubygems.org` is in your gem sources.
## Supported Ruby Versions
-This library is currently supported on Ruby 1.9+.
-However, Ruby 2.4 or later is strongly recommended, as earlier releases have
-reached or are nearing end-of-life. After March 31, 2019, Google will provide
-official support only for Ruby versions that are considered current and
+
+This library requires Ruby 2.4 or later.
+In general, this library supports Ruby versions that are considered current and
supported by Ruby Core (that is, Ruby versions that are either in normal
maintenance or in security maintenance).
See https://www.ruby-lang.org/en/downloads/branches/ for further details.
diff --git a/lib/signet/version.rb b/lib/signet/version.rb
index 801cc3c..188d523 100644
--- a/lib/signet/version.rb
+++ b/lib/signet/version.rb
@@ -22,67 +22,6 @@ module VERSION
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join "."
-
- # On March 31, 2019, set supported version to 2.4 and recommended to 2.6.
- # Thereafter, follow the MRI support schedule: supported means non-EOL,
- # and recommended means in normal (rather than security) maintenance.
- # See https://www.ruby-lang.org/en/downloads/branches/
- ##
- # Minimum "supported" Ruby version (non-EOL)
- # @private
- #
- SUPPORTED_VERSION_THRESHOLD = "1.9".freeze
- ##
- # Minimum "recommended" Ruby version (normal maintenance)
- # @private
- #
- RECOMMENDED_VERSION_THRESHOLD = "2.4".freeze
- ##
- # Check Ruby version and emit a warning if it is old
- # @private
- #
- def self.warn_on_old_ruby_version
- return if ENV["GOOGLE_CLOUD_SUPPRESS_RUBY_WARNINGS"]
- cur_version = Gem::Version.new RUBY_VERSION
- if cur_version < Gem::Version.new(SUPPORTED_VERSION_THRESHOLD)
- warn_unsupported_ruby cur_version, RECOMMENDED_VERSION_THRESHOLD
- elsif cur_version < Gem::Version.new(RECOMMENDED_VERSION_THRESHOLD)
- warn_nonrecommended_ruby cur_version, RECOMMENDED_VERSION_THRESHOLD
- end
- rescue ArgumentError
- "Unable to determine current Ruby version."
- end
-
- ##
- # Print a warning for an EOL version of Ruby
- # @private
- #
- def self.warn_unsupported_ruby cur_version, recommended_version
- "WARNING: You are running Ruby #{cur_version}, which has reached" \
- " end-of-life and is no longer supported by Ruby Core.\n" \
- "Signet works best on supported versions of" \
- " Ruby. It is strongly recommended that you upgrade to Ruby" \
- " #{recommended_version} or later. \n" \
- "See https://www.ruby-lang.org/en/downloads/branches/ for more" \
- " info on the Ruby maintenance schedule.\n" \
- "To suppress this message, set the" \
- " GOOGLE_CLOUD_SUPPRESS_RUBY_WARNINGS environment variable."
- end
-
- ##
- # Print a warning for a supported but nearing EOL version of Ruby
- # @private
- #
- def self.warn_nonrecommended_ruby cur_version, recommended_version
- "WARNING: You are running Ruby #{cur_version}, which is nearing" \
- " end-of-life.\n" \
- "Signet works best on supported versions of" \
- " Ruby. Consider upgrading to Ruby #{recommended_version} or later.\n" \
- "See https://www.ruby-lang.org/en/downloads/branches/ for more" \
- " info on the Ruby maintenance schedule.\n" \
- "To suppress this message, set the" \
- " GOOGLE_CLOUD_SUPPRESS_RUBY_WARNINGS environment variable."
- end
end
end
end
diff --git a/signet.gemspec b/signet.gemspec
index 734ec93..c1698f3 100644
--- a/signet.gemspec
+++ b/signet.gemspec
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
gem.homepage = "https://github.com/google/signet/"
gem.rdoc_options = ["--main", "README.md"]
gem.summary = "Signet is an OAuth 1.0 / OAuth 2.0 implementation."
- gem.required_ruby_version = ">= 1.9.3"
+ gem.required_ruby_version = ">= 2.4.0"
gem.add_runtime_dependency "addressable", "~> 2.3"
gem.add_runtime_dependency "faraday", "~> 0.9"
@@ -36,8 +36,6 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "simplecov", "~> 0.9"
gem.add_development_dependency "yard", "~> 0.9", ">= 0.9.12"
- gem.post_install_message = Signet::VERSION.warn_on_old_ruby_version
-
if gem.respond_to? :metadata
gem.metadata["changelog_uri"] = "https://github.com/google/signet/blob/master/CHANGELOG.md"
gem.metadata["source_code_uri"] = "https://github.com/google/signet"