ably 1.1.8 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +46 -0
  3. data/README.md +1 -1
  4. data/UPDATING.md +30 -0
  5. data/lib/ably/auth.rb +3 -3
  6. data/lib/ably/models/channel_options.rb +97 -0
  7. data/lib/ably/models/idiomatic_ruby_wrapper.rb +4 -0
  8. data/lib/ably/models/message.rb +4 -4
  9. data/lib/ably/models/protocol_message.rb +17 -5
  10. data/lib/ably/models/token_details.rb +7 -2
  11. data/lib/ably/modules/channels_collection.rb +22 -2
  12. data/lib/ably/modules/conversions.rb +34 -0
  13. data/lib/ably/realtime/channel/channel_manager.rb +16 -4
  14. data/lib/ably/realtime/channel/channel_state_machine.rb +5 -0
  15. data/lib/ably/realtime/channel.rb +54 -24
  16. data/lib/ably/realtime/channels.rb +1 -1
  17. data/lib/ably/rest/channel.rb +26 -34
  18. data/lib/ably/rest/client.rb +4 -1
  19. data/lib/ably/util/crypto.rb +1 -1
  20. data/lib/ably/version.rb +2 -2
  21. data/spec/acceptance/realtime/channel_spec.rb +247 -21
  22. data/spec/acceptance/realtime/channels_spec.rb +59 -7
  23. data/spec/acceptance/realtime/connection_spec.rb +1 -1
  24. data/spec/acceptance/realtime/message_spec.rb +77 -0
  25. data/spec/acceptance/rest/auth_spec.rb +18 -0
  26. data/spec/acceptance/rest/channel_spec.rb +1 -1
  27. data/spec/acceptance/rest/channels_spec.rb +22 -5
  28. data/spec/acceptance/rest/client_spec.rb +2 -2
  29. data/spec/acceptance/rest/message_spec.rb +61 -3
  30. data/spec/lib/unit/models/channel_options_spec.rb +52 -0
  31. data/spec/unit/models/message_spec.rb +14 -0
  32. data/spec/unit/models/protocol_message_spec.rb +53 -7
  33. data/spec/unit/models/token_details_spec.rb +14 -0
  34. data/spec/unit/realtime/channels_spec.rb +52 -14
  35. data/spec/unit/rest/channels_spec.rb +81 -14
  36. metadata +21 -3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ably
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lewis Marshall
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-02-15 00:00:00.000000000 Z
12
+ date: 2022-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
@@ -319,6 +319,20 @@ dependencies:
319
319
  - - "~>"
320
320
  - !ruby/object:Gem::Version
321
321
  version: 3.8.0
322
+ - !ruby/object:Gem::Dependency
323
+ name: webrick
324
+ requirement: !ruby/object:Gem::Requirement
325
+ requirements:
326
+ - - "~>"
327
+ - !ruby/object:Gem::Version
328
+ version: 1.7.0
329
+ type: :development
330
+ prerelease: false
331
+ version_requirements: !ruby/object:Gem::Requirement
332
+ requirements:
333
+ - - "~>"
334
+ - !ruby/object:Gem::Version
335
+ version: 1.7.0
322
336
  description: A Ruby client library for ably.io realtime messaging
323
337
  email:
324
338
  - lewis@lmars.net
@@ -340,6 +354,7 @@ files:
340
354
  - README.md
341
355
  - Rakefile
342
356
  - SPEC.md
357
+ - UPDATING.md
343
358
  - ably.gemspec
344
359
  - lib/ably.rb
345
360
  - lib/ably/agent.rb
@@ -347,6 +362,7 @@ files:
347
362
  - lib/ably/exceptions.rb
348
363
  - lib/ably/logger.rb
349
364
  - lib/ably/models/auth_details.rb
365
+ - lib/ably/models/channel_options.rb
350
366
  - lib/ably/models/channel_state_change.rb
351
367
  - lib/ably/models/cipher_params.rb
352
368
  - lib/ably/models/connection_details.rb
@@ -463,6 +479,7 @@ files:
463
479
  - spec/acceptance/rest/push_spec.rb
464
480
  - spec/acceptance/rest/stats_spec.rb
465
481
  - spec/acceptance/rest/time_spec.rb
482
+ - spec/lib/unit/models/channel_options_spec.rb
466
483
  - spec/rspec_config.rb
467
484
  - spec/run_parallel_tests
468
485
  - spec/shared/client_initializer_behaviour.rb
@@ -548,7 +565,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
548
565
  - !ruby/object:Gem::Version
549
566
  version: '0'
550
567
  requirements: []
551
- rubygems_version: 3.0.3
568
+ rubygems_version: 3.3.7
552
569
  signing_key:
553
570
  specification_version: 4
554
571
  summary: A Ruby client library for ably.io realtime messaging implemented using EventMachine
@@ -579,6 +596,7 @@ test_files:
579
596
  - spec/acceptance/rest/push_spec.rb
580
597
  - spec/acceptance/rest/stats_spec.rb
581
598
  - spec/acceptance/rest/time_spec.rb
599
+ - spec/lib/unit/models/channel_options_spec.rb
582
600
  - spec/rspec_config.rb
583
601
  - spec/run_parallel_tests
584
602
  - spec/shared/client_initializer_behaviour.rb