Skip to content

Commit 64797f2

Browse files
jeffomaticiampogo
authored andcommitted
sdk/ruby: support Ruby 2.0 in 1.1 SDK
This commit relaxes the Ruby version requirement to 2.0, and ticks the SDK version to 1.1.1. This is a backport of #658 and #670 for the 1.1-stable branch. Closes #678
1 parent ba870fb commit 64797f2

File tree

4 files changed

+14
-18
lines changed

4 files changed

+14
-18
lines changed

sdk/ruby/CHANGELOG.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Chain Ruby SDK
22

3+
This changelog is for the 1.1.x branch of the Ruby SDK. Older versions:
4+
5+
- [1.0.x](https://github.com/chain/chain/blob/sdk-ruby-1.0.x/sdk/ruby/CHANGELOG.md)
6+
7+
## 1.1.1 (March 2, 2017)
8+
9+
* Relax minimum Ruby version requirement from 2.1 to 2.0. While the Ruby SDK is now compatible with Ruby 2.0, we strongly recommend using Ruby 2.1 or greater, since Ruby 2.0 has reached end-of-life and is no longer receiving critical security updates.
10+
311
## 1.1.0 (February 24, 2017)
412

513
This release is a minor version update, and contains **new features** and **deprecations**. It is not compatible with cored 1.0.x; please upgrade cored before updating your SDKs.
@@ -144,17 +152,3 @@ client.transactions.query(
144152
...
145153
end
146154
```
147-
148-
## 1.0.2 (February 21, 2017)
149-
150-
* Syntax compatibility update
151-
152-
## 1.0.1 (January 24, 2017)
153-
154-
* Set minimum Ruby version requirement to 2.1
155-
* Enhanced transaction feed API support
156-
* Fixed issue reading attributers with array getter syntax (@donce in [#422](https://github.com/chain/chain/pull/422))
157-
158-
## 1.0.0 (November 17, 2016)
159-
160-
* Initial release

sdk/ruby/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44

55
### Get the gem
66

7-
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.
7+
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.
8+
9+
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.
810

911
For most applications, you can simply add the following to your `Gemfile`:
1012

1113
```
12-
gem 'chain-sdk', '~> 1.1.0', require: 'chain'
14+
gem 'chain-sdk', '~> 1.1.1', require: 'chain'
1315
```
1416

1517
### In your code

sdk/ruby/chain-sdk.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
88
s.summary = 'The Official Ruby SDK for Chain Core'
99
s.licenses = ['Apache-2.0']
1010
s.homepage = 'https://github.com/chain/chain/tree/main/sdk/ruby'
11-
s.required_ruby_version = '~> 2.1'
11+
s.required_ruby_version = '~> 2.0'
1212

1313
s.files = ['README.md', 'LICENSE']
1414
s.files += Dir['lib/**/*.rb']

sdk/ruby/lib/chain/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Chain
2-
VERSION = '1.1.0'
2+
VERSION = '1.1.1'
33
end

0 commit comments

Comments
 (0)