ably-rest 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2b6fd3fc81fb06d352eef9e43f27bfdfdba8db888383f03e3a6390eda86d14e
4
- data.tar.gz: 908e757e92eb752bfd995f599f7d45213c7065e8802b5d1c7cbddf1bb8c800a0
3
+ metadata.gz: 87bbb0a9a02a079696ff5f294c766b29438a04de1695595fd21f7eb16df42be4
4
+ data.tar.gz: 9d17f2dd93b153a88941f49abe8defee537a35132cc8b149ca2fb01f08557e2f
5
5
  SHA512:
6
- metadata.gz: 41194b29dfe93f49eda4e371cc224302134a31a3814b88414f542383ace60adb8417c4d7bbc13785b488b320956131c6cdd6a15e4c3dbe0f172f7f78fdf1fe21
7
- data.tar.gz: 0f8207651b2be53472ec5fbb4956d15b330b6eb11222dae46833ad7b2ac4ffe78748f888655b12880db15bf696d7fc463b0c629b9fdf5ba501acb168a97768ba
6
+ metadata.gz: f2551b4afb100f9436cd00698f409fb01dc342095efddef0109b6a076f43d7a7acc7fbecba1c8c16708b8fea7eb11f00d835dd38630ccff79032dc6c271a8f81
7
+ data.tar.gz: 6167699cc73635b95ed0e48f2756b551c593645152adef54f69e419d8ed97ded02a0924d825138f81e3a974a2b3245948245e635f2c73d4b186c0b31a1e07663
data/ably-rest.gemspec CHANGED
@@ -31,8 +31,9 @@ Gem::Specification.new do |spec|
31
31
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
32
32
  spec.require_paths = ['lib']
33
33
 
34
- spec.add_runtime_dependency 'faraday', '~> 0.12'
34
+ spec.add_runtime_dependency 'faraday', '~> 1.0'
35
35
  spec.add_runtime_dependency 'excon', '~> 0.55'
36
+ spec.add_runtime_dependency 'typhoeus', '~> 1.4'
36
37
 
37
38
  if RUBY_VERSION.match(/^1/)
38
39
  spec.add_runtime_dependency 'json', '< 2.0'
@@ -47,6 +48,7 @@ Gem::Specification.new do |spec|
47
48
  spec.add_development_dependency 'redcarpet', '~> 3.3'
48
49
  spec.add_development_dependency 'rspec', '~> 3.2.0'
49
50
  spec.add_development_dependency 'rspec-retry', '~> 0.4'
51
+ spec.add_development_dependency 'webrick'
50
52
  spec.add_development_dependency 'yard', '~> 0.9'
51
53
 
52
54
  if RUBY_VERSION.match(/^1/)
@@ -1,7 +1,22 @@
1
1
  # Change Log
2
2
 
3
+ ## [v1.1.6](https://github.com/ably/ably-ruby/tree/v1.1.6)
4
+
5
+ [Full Changelog](https://github.com/ably/ably-ruby/compare/v1.1.5...v1.1.6)
6
+
7
+ This release will have no effect for users of the realtime `ably-ruby` client, however for users of `ably-ruby-rest` it will update the `faraday` dependency to 1.x (this change was already made for `ably-ruby` in `v1.1.5`).
8
+
9
+ **Merged pull requests:**
10
+
11
+ - Document libcurl requirement [\#243](https://github.com/ably/ably-ruby/pull/243) ([owenpearson](https://github.com/owenpearson))
12
+ - Fix broken markdown hyperlink in readme [\#242](https://github.com/ably/ably-ruby/pull/242) ([owenpearson](https://github.com/owenpearson))
13
+ - Update README with new Ably links [\#239](https://github.com/ably/ably-ruby/pull/239) ([mattheworiordan](https://github.com/mattheworiordan))
14
+ - Fix documentation for Channel\#publish [\#183](https://github.com/ably/ably-ruby/pull/183) ([zreisman](https://github.com/zreisman))
15
+
3
16
  ## [v1.1.5](https://github.com/ably/ably-ruby/tree/v1.1.5)
4
17
 
18
+ Please note: this library now depends on `libcurl` as a system dependency. On most systems this is already installed but in rare cases where it isn't (for example debian-slim Docker images such as ruby-slim) you will need to install it yourself. On debian you can install it with the command `sudo apt-get install libcurl4`.
19
+
5
20
  [Full Changelog](https://github.com/ably/ably-ruby/compare/v1.1.4...v.1.1.5)
6
21
 
7
22
  **Implemented enhancements:**
@@ -1,21 +1,23 @@
1
- # [Ably](https://www.ably.io)
1
+ # [Ably](https://ably.com)
2
2
 
3
3
  [![Gem Version](https://img.shields.io/gem/v/ably?style=flat)](https://img.shields.io/gem/v/ably?style=flat)
4
4
  [![Coverage Status](https://coveralls.io/repos/ably/ably-ruby/badge.svg)](https://coveralls.io/r/ably/ably-ruby)
5
5
 
6
- A Ruby client library for [ably.io](https://www.ably.io), the realtime messaging service. This library currently targets the [Ably 1.1 client library specification](https://www.ably.io/documentation/client-lib-development-guide/features/). You can jump to the '[Known Limitations](#known-limitations)' section to see the features this client library does not yet support or [view our client library SDKs feature support matrix](https://www.ably.io/download/sdk-feature-support-matrix) to see the list of all the available features.
6
+ A Ruby client library for [ably.com](https://ably.com), the realtime messaging service. This library currently targets the [Ably 1.1 client library specification](https://ably.com/documentation/client-lib-development-guide/features/). You can see the complete list of features this client library supports in [our client library SDKs feature support matrix](https://ably.com/download/sdk-feature-support-matrix).
7
7
 
8
8
  ## Supported platforms
9
9
 
10
10
  This SDK supports Ruby 1.9.3+.
11
11
 
12
+ As of v1.1.5 this library requires `libcurl` as a system dependency. On most systems this is already installed but in rare cases where it isn't (for example debian-slim Docker images such as ruby-slim) you will need to install it yourself. On debian you can install it with the command `sudo apt-get install libcurl4`.
13
+
12
14
  We regression-test the SDK against a selection of Ruby versions (which we update over time, but usually consists of mainstream and widely used versions). Please refer to [.github/workflows/check.yml](./.github/workflows/check.yml) for the set of versions that currently undergo CI testing.
13
15
 
14
- If you find any compatibility issues, please [do raise an issue](https://github.com/ably/ably-ruby/issues/new) in this repository or [contact Ably customer support](https://support.ably.io/) for advice.
16
+ If you find any compatibility issues, please [do raise an issue](https://github.com/ably/ably-ruby/issues/new) in this repository or [contact Ably customer support](https://ably.com/support/) for advice.
15
17
 
16
18
  ## Documentation
17
19
 
18
- Visit https://www.ably.io/documentation for a complete API reference and more examples.
20
+ Visit https://ably.com/documentation for a complete API reference and code examples.
19
21
 
20
22
  ## Installation
21
23
 
@@ -35,7 +37,7 @@ Or install it yourself as:
35
37
 
36
38
  ### Using with Rails or Sinatra
37
39
 
38
- This `ably` gem provides both a [Realtime](http://www.ably.io/documentation/realtime/usage) and [REST](http://www.ably.io/documentation/rest/usage) version of the Ably library. Realtime depends on EventMachine to provide an asynchronous evented framework to run the library in, whereas the REST library depends only on synchronous libraries such as Faraday.
40
+ This `ably` gem provides both a [Realtime](https://ably.com/documentation/realtime/usage) and [REST](https://ably.com/documentation/rest/usage) version of the Ably library. Realtime depends on EventMachine to provide an asynchronous evented framework to run the library in, whereas the REST library depends only on synchronous libraries such as Faraday.
39
41
 
40
42
  If you are using Ably within your Rails or Sinatra apps, more often than not, you probably want to use the REST only version of the library that has no dependency on EventMachine and provides a synchronous API that you will be used to using within Rails and Sinatra. [See the REST only Ruby version of the Ably library](https://github.com/ably/ably-ruby-rest).
41
43
 
@@ -61,7 +63,7 @@ client = Ably::Realtime.new(key: 'xxxxx')
61
63
  client = Ably::Realtime.new(token: 'xxxxx')
62
64
  ```
63
65
 
64
- If you do not have an API key, [sign up for a free API key now](https://www.ably.io/signup)
66
+ If you do not have an API key, [sign up for a free API key now](https://ably.com/signup)
65
67
 
66
68
  ### Connection
67
69
 
@@ -187,7 +189,7 @@ channel.publish "name (not encrypted)", "sensitive data (encrypted before being
187
189
 
188
190
  ### Introduction
189
191
 
190
- Unlike the Realtime API, all calls are synchronous and are not run within an [EventMachine](https://github.com/eventmachine/eventmachine) [reactor](https://github.com/eventmachine/eventmachine/wiki/General-Introduction).
192
+ Unlike the Realtime API, all calls are synchronous and are not run within [EventMachine](https://github.com/eventmachine/eventmachine).
191
193
 
192
194
  All examples assume a client and/or channel has been created as follows:
193
195
 
@@ -295,7 +297,7 @@ If you only need to use the REST features of this library and do not want EventM
295
297
 
296
298
  ## Support, feedback and troubleshooting
297
299
 
298
- Please visit http://support.ably.io/ for access to our knowledgebase and to ask for any assistance.
300
+ Please visit https://ably.com/support for access to our knowledgebase and to ask for any assistance.
299
301
 
300
302
  You can also view the [community reported Github issues](https://github.com/ably/ably-ruby/issues).
301
303
 
@@ -52,8 +52,8 @@ module Ably
52
52
  #
53
53
  # # Publish an array of message Hashes
54
54
  # messages = [
55
- # { name: 'click', { x: 1, y: 2 } },
56
- # { name: 'click', { x: 2, y: 3 } }
55
+ # { name: 'click', data: { x: 1, y: 2 } },
56
+ # { name: 'click', data: { x: 2, y: 3 } }
57
57
  # ]
58
58
  # channel.publish messages
59
59
  #
@@ -1,5 +1,5 @@
1
1
  module Ably
2
- VERSION = '1.1.5'
2
+ VERSION = '1.1.6'
3
3
  PROTOCOL_VERSION = '1.1'
4
4
 
5
5
  # Allow a variant to be configured for all instances of this client library
data/spec/spec_helper.rb CHANGED
@@ -15,6 +15,11 @@ require 'support/private_api_formatter'
15
15
  require 'support/protocol_helper'
16
16
  require 'support/random_helper'
17
17
  require 'support/test_logger_helper'
18
+ require 'support/serialization_helper'
19
+
20
+ RSpec.configure do |config|
21
+ config.include SerializationHelper
22
+ end
18
23
 
19
24
  # Load in all shared behaviours
20
25
  Dir.glob(File.expand_path("../lib/submodules/ably-ruby/spec/shared/*.rb", File.dirname(__FILE__))).each do |file|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ably-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew O'Riordan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-05 00:00:00.000000000 Z
11
+ date: 2021-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.12'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.12'
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: excon
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.55'
41
+ - !ruby/object:Gem::Dependency
42
+ name: typhoeus
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.4'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.4'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: json
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +164,20 @@ dependencies:
150
164
  - - "~>"
151
165
  - !ruby/object:Gem::Version
152
166
  version: '0.4'
167
+ - !ruby/object:Gem::Dependency
168
+ name: webrick
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
153
181
  - !ruby/object:Gem::Dependency
154
182
  name: yard
155
183
  requirement: !ruby/object:Gem::Requirement