From eea23b4a42721dc85ced48c4c04f3ce105393b0f Mon Sep 17 00:00:00 2001 From: Jeff Lee Date: Wed, 1 Mar 2017 11:23:45 -0800 Subject: [PATCH] sdk/ruby: support Ruby 2.0 --- sdk/ruby/README.md | 4 +++- sdk/ruby/chain-sdk.gemspec | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/ruby/README.md b/sdk/ruby/README.md index d94263beff..c82b4b4ca0 100755 --- a/sdk/ruby/README.md +++ b/sdk/ruby/README.md @@ -4,7 +4,9 @@ ### Get the gem -The Ruby SDK is available [via Rubygems](https://rubygems.org/gems/chain-sdk). Make sure to use the most recent version whose major and minor components (`major.minor.x`) match your version of Chain Core. Ruby 2.1 or greater is required. +The Ruby SDK is available [via Rubygems](https://rubygems.org/gems/chain-sdk). Make sure to use the most recent version whose major and minor components (`major.minor.x`) match your version of Chain Core. + +Ruby 2.0 or greater is required. We strongly recommend upgrading to Ruby 2.1 or greater, as [Ruby 2.0 has reached end-of-life](https://www.ruby-lang.org/en/downloads/branches/) and will no longer receive security updates and bugfixes. For most applications, you can simply add the following to your `Gemfile`: diff --git a/sdk/ruby/chain-sdk.gemspec b/sdk/ruby/chain-sdk.gemspec index a08f4f8ad2..b89c8ee1c9 100755 --- a/sdk/ruby/chain-sdk.gemspec +++ b/sdk/ruby/chain-sdk.gemspec @@ -8,7 +8,7 @@ Gem::Specification.new do |s| s.summary = 'The Official Ruby SDK for Chain Core' s.licenses = ['Apache-2.0'] s.homepage = 'https://github.com/chain/chain/tree/main/sdk/ruby' - s.required_ruby_version = '~> 2.1' + s.required_ruby_version = '~> 2.0' s.files = ['README.md', 'LICENSE'] s.files += Dir['lib/**/*.rb']