Skip to content

Commit

Permalink
sdk/ruby: support Ruby 2.0 in 1.1 SDK
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jeffomatic authored and iampogo committed Mar 2, 2017
1 parent ba870fb commit 64797f2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
22 changes: 8 additions & 14 deletions sdk/ruby/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Chain Ruby SDK

This changelog is for the 1.1.x branch of the Ruby SDK. Older versions:

- [1.0.x](https://github.com/chain/chain/blob/sdk-ruby-1.0.x/sdk/ruby/CHANGELOG.md)

## 1.1.1 (March 2, 2017)

* 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.

## 1.1.0 (February 24, 2017)

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.
Expand Down Expand Up @@ -144,17 +152,3 @@ client.transactions.query(
...
end
```

## 1.0.2 (February 21, 2017)

* Syntax compatibility update

## 1.0.1 (January 24, 2017)

* Set minimum Ruby version requirement to 2.1
* Enhanced transaction feed API support
* Fixed issue reading attributers with array getter syntax (@donce in [#422](https://github.com/chain/chain/pull/422))

## 1.0.0 (November 17, 2016)

* Initial release
6 changes: 4 additions & 2 deletions sdk/ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

### 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`:

```
gem 'chain-sdk', '~> 1.1.0', require: 'chain'
gem 'chain-sdk', '~> 1.1.1', require: 'chain'
```

### In your code
Expand Down
2 changes: 1 addition & 1 deletion sdk/ruby/chain-sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion sdk/ruby/lib/chain/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Chain
VERSION = '1.1.0'
VERSION = '1.1.1'
end

0 comments on commit 64797f2

Please sign in to comment.