pubnub 4.3.0 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pubnub might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.pubnub.yml +32 -24
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/fixtures/vcr_cassettes/examples/grant/1913.yml +1 -1
- data/fixtures/vcr_cassettes/examples/grant/1945.yml +355 -4
- data/fixtures/vcr_cassettes/lib/events/get_all_channels_metadata.yml +39 -0
- data/fixtures/vcr_cassettes/lib/events/get_all_uuid_metadata.yml +76 -0
- data/fixtures/vcr_cassettes/lib/events/{get_space_memberships.yml → get_channel_members.yml} +5 -6
- data/fixtures/vcr_cassettes/lib/events/get_channel_metadata.yml +37 -0
- data/fixtures/vcr_cassettes/lib/events/{get_members.yml → get_memberships.yml} +10 -11
- data/fixtures/vcr_cassettes/lib/events/get_uuid_metadata.yml +76 -0
- data/fixtures/vcr_cassettes/lib/events/grant-error.yml +2 -2
- data/fixtures/vcr_cassettes/lib/events/grant.yml +10 -11
- data/fixtures/vcr_cassettes/lib/events/remove_channel_members.yml +78 -0
- data/fixtures/vcr_cassettes/lib/events/{delete_space.yml → remove_channel_metadata.yml} +5 -6
- data/fixtures/vcr_cassettes/lib/events/{manage_memberships_remove.yml → remove_memberships.yml} +8 -9
- data/fixtures/vcr_cassettes/lib/events/remove_uuid_metadata.yml +76 -0
- data/fixtures/vcr_cassettes/lib/events/set_channel_members.yml +39 -0
- data/fixtures/vcr_cassettes/lib/events/set_channel_metadata.yml +39 -0
- data/fixtures/vcr_cassettes/lib/events/{manage_members_add.yml → set_memberships.yml} +8 -9
- data/fixtures/vcr_cassettes/lib/events/set_uuid_metadata.yml +78 -0
- data/fixtures/vcr_cassettes/lib/events/{subscribe-space-delete-async.yml → subscribe-channel-metadata-remove-sync.yml} +12 -14
- data/fixtures/vcr_cassettes/lib/events/subscribe-channel-metadata-set-async.yml +75 -0
- data/fixtures/vcr_cassettes/lib/events/{subscribe-member-remove-async.yml → subscribe-member-remove-sync.yml} +12 -14
- data/fixtures/vcr_cassettes/lib/events/subscribe-member-set-async.yml +75 -0
- data/fixtures/vcr_cassettes/lib/events/subscribe-membership-remove-async.yml +12 -14
- data/fixtures/vcr_cassettes/lib/events/{subscribe-user-update-async.yml → subscribe-membership-set-async.yml} +12 -14
- data/fixtures/vcr_cassettes/lib/events/{subscribe-user-delete-async.yml → subscribe-uuid-metadata-remove-sync.yml} +12 -14
- data/fixtures/vcr_cassettes/lib/events/subscribe-uuid-metadata-set-async.yml +75 -0
- data/lib/pubnub/client.rb +14 -14
- data/lib/pubnub/client/events.rb +4 -2
- data/lib/pubnub/constants.rb +19 -18
- data/lib/pubnub/event.rb +29 -15
- data/lib/pubnub/event/signature.rb +22 -7
- data/lib/pubnub/events/get_all_channels_metadata.rb +92 -0
- data/lib/pubnub/events/get_all_uuid_metadata.rb +92 -0
- data/lib/pubnub/events/get_channel_members.rb +100 -0
- data/lib/pubnub/events/{get_user.rb → get_channel_metadata.rb} +22 -15
- data/lib/pubnub/events/get_memberships.rb +100 -0
- data/lib/pubnub/events/{get_space.rb → get_uuid_metadata.rb} +22 -15
- data/lib/pubnub/events/grant.rb +9 -7
- data/lib/pubnub/events/remove_channel_members.rb +117 -0
- data/lib/pubnub/events/{delete_space.rb → remove_channel_metadata.rb} +12 -12
- data/lib/pubnub/events/remove_memberships.rb +117 -0
- data/lib/pubnub/events/{delete_user.rb → remove_uuid_metadata.rb} +12 -12
- data/lib/pubnub/events/set_channel_members.rb +120 -0
- data/lib/pubnub/events/{create_space.rb → set_channel_metadata.rb} +26 -16
- data/lib/pubnub/events/set_memberships.rb +120 -0
- data/lib/pubnub/events/{update_space.rb → set_uuid_metadata.rb} +27 -18
- data/lib/pubnub/pam.rb +2 -11
- data/lib/pubnub/subscribe_callback.rb +1 -3
- data/lib/pubnub/subscribe_event/formatter.rb +21 -17
- data/lib/pubnub/subscriber.rb +5 -6
- data/lib/pubnub/validators/get_all_channels_metadata.rb +29 -0
- data/lib/pubnub/validators/get_all_uuid_metadata.rb +29 -0
- data/lib/pubnub/validators/get_channel_members.rb +39 -0
- data/lib/pubnub/validators/get_channel_metadata.rb +39 -0
- data/lib/pubnub/validators/get_memberships.rb +39 -0
- data/lib/pubnub/validators/get_uuid_metadata.rb +39 -0
- data/lib/pubnub/validators/grant.rb +37 -2
- data/lib/pubnub/validators/remove_channel_members.rb +52 -0
- data/lib/pubnub/validators/remove_channel_metadata.rb +39 -0
- data/lib/pubnub/validators/remove_memberships.rb +52 -0
- data/lib/pubnub/validators/remove_uuid_metadata.rb +39 -0
- data/lib/pubnub/validators/set_channel_members.rb +78 -0
- data/lib/pubnub/validators/set_channel_metadata.rb +62 -0
- data/lib/pubnub/validators/set_memberships.rb +78 -0
- data/lib/pubnub/validators/set_uuid_metadata.rb +62 -0
- data/lib/pubnub/version.rb +1 -1
- data/spec/examples/grant_examples_spec.rb +2 -2
- data/spec/lib/events/channel_metadata_spec.rb +58 -0
- data/spec/lib/events/grant_spec.rb +3 -2
- data/spec/lib/events/membership_spec.rb +25 -22
- data/spec/lib/events/subscribe_spec.rb +58 -45
- data/spec/lib/events/uuid_metadata_spec.rb +56 -0
- data/spec/spec_helper.rb +1 -1
- metadata +55 -57
- data/fixtures/vcr_cassettes/lib/events/create_space.yml +0 -40
- data/fixtures/vcr_cassettes/lib/events/create_user.yml +0 -40
- data/fixtures/vcr_cassettes/lib/events/delete_user.yml +0 -38
- data/fixtures/vcr_cassettes/lib/events/get_space.yml +0 -38
- data/fixtures/vcr_cassettes/lib/events/get_spaces.yml +0 -40
- data/fixtures/vcr_cassettes/lib/events/get_user.yml +0 -38
- data/fixtures/vcr_cassettes/lib/events/get_users.yml +0 -40
- data/fixtures/vcr_cassettes/lib/events/manage_members_remove.yml +0 -83
- data/fixtures/vcr_cassettes/lib/events/manage_memberships_add.yml +0 -40
- data/fixtures/vcr_cassettes/lib/events/subscribe-member-add-async.yml +0 -77
- data/fixtures/vcr_cassettes/lib/events/subscribe-membership-add-async.yml +0 -77
- data/fixtures/vcr_cassettes/lib/events/subscribe-space-update-async.yml +0 -77
- data/fixtures/vcr_cassettes/lib/events/update_space.yml +0 -40
- data/fixtures/vcr_cassettes/lib/events/update_user.yml +0 -40
- data/lib/pubnub/events/create_user.rb +0 -84
- data/lib/pubnub/events/get_members.rb +0 -93
- data/lib/pubnub/events/get_space_memberships.rb +0 -93
- data/lib/pubnub/events/get_spaces.rb +0 -90
- data/lib/pubnub/events/get_users.rb +0 -90
- data/lib/pubnub/events/manage_members.rb +0 -105
- data/lib/pubnub/events/manage_memberships.rb +0 -105
- data/lib/pubnub/events/update_user.rb +0 -86
- data/lib/pubnub/validators/create_space.rb +0 -44
- data/lib/pubnub/validators/create_user.rb +0 -44
- data/lib/pubnub/validators/delete_space.rb +0 -32
- data/lib/pubnub/validators/delete_user.rb +0 -32
- data/lib/pubnub/validators/get_members.rb +0 -32
- data/lib/pubnub/validators/get_space.rb +0 -32
- data/lib/pubnub/validators/get_space_memberships.rb +0 -32
- data/lib/pubnub/validators/get_spaces.rb +0 -16
- data/lib/pubnub/validators/get_user.rb +0 -32
- data/lib/pubnub/validators/get_users.rb +0 -16
- data/lib/pubnub/validators/manage_members.rb +0 -45
- data/lib/pubnub/validators/manage_memberships.rb +0 -45
- data/lib/pubnub/validators/update_space.rb +0 -45
- data/lib/pubnub/validators/update_user.rb +0 -45
- data/spec/lib/events/space_spec.rb +0 -75
- data/spec/lib/events/user_spec.rb +0 -75
data/spec/spec_helper.rb
CHANGED
@@ -67,7 +67,7 @@ end
|
|
67
67
|
|
68
68
|
VCR.configure do |c|
|
69
69
|
ignored_params = [
|
70
|
-
:pnsdk, :uuid, :ortt, :seqn, :t, :l_pres, :l_pub, :l_pres, :l_hist, :l_cg, :l_time, :signature ]
|
70
|
+
:pnsdk, :uuid, :ortt, :seqn, :t, :l_pres, :l_pub, :l_pres, :l_hist, :l_cg, :l_time, :signature, :timestamp ]
|
71
71
|
c.cassette_library_dir = "fixtures/vcr_cassettes"
|
72
72
|
c.hook_into :webmock
|
73
73
|
c.allow_http_connections_when_no_cassette = false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pubnub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PubNub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -10493,18 +10493,14 @@ files:
|
|
10493
10493
|
- fixtures/vcr_cassettes/lib/events/audit-works.yml
|
10494
10494
|
- fixtures/vcr_cassettes/lib/events/channel-registration-error.yml
|
10495
10495
|
- fixtures/vcr_cassettes/lib/events/channel-registration.yml
|
10496
|
-
- fixtures/vcr_cassettes/lib/events/create_space.yml
|
10497
|
-
- fixtures/vcr_cassettes/lib/events/create_user.yml
|
10498
10496
|
- fixtures/vcr_cassettes/lib/events/delete_messages-error.yml
|
10499
10497
|
- fixtures/vcr_cassettes/lib/events/delete_messages.yml
|
10500
|
-
- fixtures/vcr_cassettes/lib/events/
|
10501
|
-
- fixtures/vcr_cassettes/lib/events/
|
10502
|
-
- fixtures/vcr_cassettes/lib/events/
|
10503
|
-
- fixtures/vcr_cassettes/lib/events/
|
10504
|
-
- fixtures/vcr_cassettes/lib/events/
|
10505
|
-
- fixtures/vcr_cassettes/lib/events/
|
10506
|
-
- fixtures/vcr_cassettes/lib/events/get_user.yml
|
10507
|
-
- fixtures/vcr_cassettes/lib/events/get_users.yml
|
10498
|
+
- fixtures/vcr_cassettes/lib/events/get_all_channels_metadata.yml
|
10499
|
+
- fixtures/vcr_cassettes/lib/events/get_all_uuid_metadata.yml
|
10500
|
+
- fixtures/vcr_cassettes/lib/events/get_channel_members.yml
|
10501
|
+
- fixtures/vcr_cassettes/lib/events/get_channel_metadata.yml
|
10502
|
+
- fixtures/vcr_cassettes/lib/events/get_memberships.yml
|
10503
|
+
- fixtures/vcr_cassettes/lib/events/get_uuid_metadata.yml
|
10508
10504
|
- fixtures/vcr_cassettes/lib/events/grant-error.yml
|
10509
10505
|
- fixtures/vcr_cassettes/lib/events/grant.yml
|
10510
10506
|
- fixtures/vcr_cassettes/lib/events/heartbeat-error.yml
|
@@ -10516,10 +10512,6 @@ files:
|
|
10516
10512
|
- fixtures/vcr_cassettes/lib/events/history.yml
|
10517
10513
|
- fixtures/vcr_cassettes/lib/events/leave-error.yml
|
10518
10514
|
- fixtures/vcr_cassettes/lib/events/leave.yml
|
10519
|
-
- fixtures/vcr_cassettes/lib/events/manage_members_add.yml
|
10520
|
-
- fixtures/vcr_cassettes/lib/events/manage_members_remove.yml
|
10521
|
-
- fixtures/vcr_cassettes/lib/events/manage_memberships_add.yml
|
10522
|
-
- fixtures/vcr_cassettes/lib/events/manage_memberships_remove.yml
|
10523
10515
|
- fixtures/vcr_cassettes/lib/events/presence-async-error.yml
|
10524
10516
|
- fixtures/vcr_cassettes/lib/events/presence-async.yml
|
10525
10517
|
- fixtures/vcr_cassettes/lib/events/presence-sync-error.yml
|
@@ -10527,8 +10519,16 @@ files:
|
|
10527
10519
|
- fixtures/vcr_cassettes/lib/events/presence_delta.yml
|
10528
10520
|
- fixtures/vcr_cassettes/lib/events/publish-error.yml
|
10529
10521
|
- fixtures/vcr_cassettes/lib/events/publish.yml
|
10522
|
+
- fixtures/vcr_cassettes/lib/events/remove_channel_members.yml
|
10523
|
+
- fixtures/vcr_cassettes/lib/events/remove_channel_metadata.yml
|
10524
|
+
- fixtures/vcr_cassettes/lib/events/remove_memberships.yml
|
10525
|
+
- fixtures/vcr_cassettes/lib/events/remove_uuid_metadata.yml
|
10530
10526
|
- fixtures/vcr_cassettes/lib/events/revoke-error.yml
|
10531
10527
|
- fixtures/vcr_cassettes/lib/events/revoke.yml
|
10528
|
+
- fixtures/vcr_cassettes/lib/events/set_channel_members.yml
|
10529
|
+
- fixtures/vcr_cassettes/lib/events/set_channel_metadata.yml
|
10530
|
+
- fixtures/vcr_cassettes/lib/events/set_memberships.yml
|
10531
|
+
- fixtures/vcr_cassettes/lib/events/set_uuid_metadata.yml
|
10532
10532
|
- fixtures/vcr_cassettes/lib/events/signal-error.yml
|
10533
10533
|
- fixtures/vcr_cassettes/lib/events/signal.yml
|
10534
10534
|
- fixtures/vcr_cassettes/lib/events/state-error.yml
|
@@ -10536,23 +10536,21 @@ files:
|
|
10536
10536
|
- fixtures/vcr_cassettes/lib/events/subscribe-async-error.yml
|
10537
10537
|
- fixtures/vcr_cassettes/lib/events/subscribe-async.yml
|
10538
10538
|
- fixtures/vcr_cassettes/lib/events/subscribe-channel-groups.yml
|
10539
|
+
- fixtures/vcr_cassettes/lib/events/subscribe-channel-metadata-remove-sync.yml
|
10540
|
+
- fixtures/vcr_cassettes/lib/events/subscribe-channel-metadata-set-async.yml
|
10539
10541
|
- fixtures/vcr_cassettes/lib/events/subscribe-cipher-async.yml
|
10540
|
-
- fixtures/vcr_cassettes/lib/events/subscribe-member-
|
10541
|
-
- fixtures/vcr_cassettes/lib/events/subscribe-member-
|
10542
|
-
- fixtures/vcr_cassettes/lib/events/subscribe-membership-add-async.yml
|
10542
|
+
- fixtures/vcr_cassettes/lib/events/subscribe-member-remove-sync.yml
|
10543
|
+
- fixtures/vcr_cassettes/lib/events/subscribe-member-set-async.yml
|
10543
10544
|
- fixtures/vcr_cassettes/lib/events/subscribe-membership-remove-async.yml
|
10545
|
+
- fixtures/vcr_cassettes/lib/events/subscribe-membership-set-async.yml
|
10544
10546
|
- fixtures/vcr_cassettes/lib/events/subscribe-playing-async.yml
|
10545
|
-
- fixtures/vcr_cassettes/lib/events/subscribe-space-delete-async.yml
|
10546
|
-
- fixtures/vcr_cassettes/lib/events/subscribe-space-update-async.yml
|
10547
10547
|
- fixtures/vcr_cassettes/lib/events/subscribe-sync-error.yml
|
10548
10548
|
- fixtures/vcr_cassettes/lib/events/subscribe-sync.yml
|
10549
|
-
- fixtures/vcr_cassettes/lib/events/subscribe-
|
10550
|
-
- fixtures/vcr_cassettes/lib/events/subscribe-
|
10549
|
+
- fixtures/vcr_cassettes/lib/events/subscribe-uuid-metadata-remove-sync.yml
|
10550
|
+
- fixtures/vcr_cassettes/lib/events/subscribe-uuid-metadata-set-async.yml
|
10551
10551
|
- fixtures/vcr_cassettes/lib/events/subscribe-with-presence.yml
|
10552
10552
|
- fixtures/vcr_cassettes/lib/events/time-error.yml
|
10553
10553
|
- fixtures/vcr_cassettes/lib/events/time.yml
|
10554
|
-
- fixtures/vcr_cassettes/lib/events/update_space.yml
|
10555
|
-
- fixtures/vcr_cassettes/lib/events/update_user.yml
|
10556
10554
|
- fixtures/vcr_cassettes/lib/events/where-now-error.yml
|
10557
10555
|
- fixtures/vcr_cassettes/lib/events/where-now.yml
|
10558
10556
|
- fixtures/vcr_cassettes/lib/multiple_ciphers.yml
|
@@ -10608,38 +10606,38 @@ files:
|
|
10608
10606
|
- lib/pubnub/events/add_channels_to_push.rb
|
10609
10607
|
- lib/pubnub/events/audit.rb
|
10610
10608
|
- lib/pubnub/events/channel_registration.rb
|
10611
|
-
- lib/pubnub/events/create_space.rb
|
10612
|
-
- lib/pubnub/events/create_user.rb
|
10613
10609
|
- lib/pubnub/events/delete_messages.rb
|
10614
|
-
- lib/pubnub/events/
|
10615
|
-
- lib/pubnub/events/
|
10616
|
-
- lib/pubnub/events/
|
10617
|
-
- lib/pubnub/events/
|
10618
|
-
- lib/pubnub/events/
|
10619
|
-
- lib/pubnub/events/
|
10620
|
-
- lib/pubnub/events/get_user.rb
|
10621
|
-
- lib/pubnub/events/get_users.rb
|
10610
|
+
- lib/pubnub/events/get_all_channels_metadata.rb
|
10611
|
+
- lib/pubnub/events/get_all_uuid_metadata.rb
|
10612
|
+
- lib/pubnub/events/get_channel_members.rb
|
10613
|
+
- lib/pubnub/events/get_channel_metadata.rb
|
10614
|
+
- lib/pubnub/events/get_memberships.rb
|
10615
|
+
- lib/pubnub/events/get_uuid_metadata.rb
|
10622
10616
|
- lib/pubnub/events/grant.rb
|
10623
10617
|
- lib/pubnub/events/heartbeat.rb
|
10624
10618
|
- lib/pubnub/events/here_now.rb
|
10625
10619
|
- lib/pubnub/events/history.rb
|
10626
10620
|
- lib/pubnub/events/leave.rb
|
10627
10621
|
- lib/pubnub/events/list_push_provisions.rb
|
10628
|
-
- lib/pubnub/events/manage_members.rb
|
10629
|
-
- lib/pubnub/events/manage_memberships.rb
|
10630
10622
|
- lib/pubnub/events/message_counts.rb
|
10631
10623
|
- lib/pubnub/events/presence.rb
|
10632
10624
|
- lib/pubnub/events/publish.rb
|
10625
|
+
- lib/pubnub/events/remove_channel_members.rb
|
10626
|
+
- lib/pubnub/events/remove_channel_metadata.rb
|
10633
10627
|
- lib/pubnub/events/remove_channels_from_push.rb
|
10634
10628
|
- lib/pubnub/events/remove_device_from_push.rb
|
10629
|
+
- lib/pubnub/events/remove_memberships.rb
|
10630
|
+
- lib/pubnub/events/remove_uuid_metadata.rb
|
10635
10631
|
- lib/pubnub/events/revoke.rb
|
10632
|
+
- lib/pubnub/events/set_channel_members.rb
|
10633
|
+
- lib/pubnub/events/set_channel_metadata.rb
|
10634
|
+
- lib/pubnub/events/set_memberships.rb
|
10636
10635
|
- lib/pubnub/events/set_state.rb
|
10636
|
+
- lib/pubnub/events/set_uuid_metadata.rb
|
10637
10637
|
- lib/pubnub/events/signal.rb
|
10638
10638
|
- lib/pubnub/events/state.rb
|
10639
10639
|
- lib/pubnub/events/subscribe.rb
|
10640
10640
|
- lib/pubnub/events/time.rb
|
10641
|
-
- lib/pubnub/events/update_space.rb
|
10642
|
-
- lib/pubnub/events/update_user.rb
|
10643
10641
|
- lib/pubnub/events/where_now.rb
|
10644
10642
|
- lib/pubnub/format.rb
|
10645
10643
|
- lib/pubnub/formatter.rb
|
@@ -10662,36 +10660,36 @@ files:
|
|
10662
10660
|
- lib/pubnub/validators/channel_registration.rb
|
10663
10661
|
- lib/pubnub/validators/client.rb
|
10664
10662
|
- lib/pubnub/validators/common_validator.rb
|
10665
|
-
- lib/pubnub/validators/create_space.rb
|
10666
|
-
- lib/pubnub/validators/create_user.rb
|
10667
10663
|
- lib/pubnub/validators/delete.rb
|
10668
|
-
- lib/pubnub/validators/
|
10669
|
-
- lib/pubnub/validators/
|
10670
|
-
- lib/pubnub/validators/
|
10671
|
-
- lib/pubnub/validators/
|
10672
|
-
- lib/pubnub/validators/
|
10673
|
-
- lib/pubnub/validators/
|
10674
|
-
- lib/pubnub/validators/get_user.rb
|
10675
|
-
- lib/pubnub/validators/get_users.rb
|
10664
|
+
- lib/pubnub/validators/get_all_channels_metadata.rb
|
10665
|
+
- lib/pubnub/validators/get_all_uuid_metadata.rb
|
10666
|
+
- lib/pubnub/validators/get_channel_members.rb
|
10667
|
+
- lib/pubnub/validators/get_channel_metadata.rb
|
10668
|
+
- lib/pubnub/validators/get_memberships.rb
|
10669
|
+
- lib/pubnub/validators/get_uuid_metadata.rb
|
10676
10670
|
- lib/pubnub/validators/grant.rb
|
10677
10671
|
- lib/pubnub/validators/heartbeat.rb
|
10678
10672
|
- lib/pubnub/validators/here_now.rb
|
10679
10673
|
- lib/pubnub/validators/history.rb
|
10680
10674
|
- lib/pubnub/validators/leave.rb
|
10681
|
-
- lib/pubnub/validators/manage_members.rb
|
10682
|
-
- lib/pubnub/validators/manage_memberships.rb
|
10683
10675
|
- lib/pubnub/validators/message_counts.rb
|
10684
10676
|
- lib/pubnub/validators/presence.rb
|
10685
10677
|
- lib/pubnub/validators/publish.rb
|
10686
10678
|
- lib/pubnub/validators/push.rb
|
10679
|
+
- lib/pubnub/validators/remove_channel_members.rb
|
10680
|
+
- lib/pubnub/validators/remove_channel_metadata.rb
|
10681
|
+
- lib/pubnub/validators/remove_memberships.rb
|
10682
|
+
- lib/pubnub/validators/remove_uuid_metadata.rb
|
10687
10683
|
- lib/pubnub/validators/revoke.rb
|
10684
|
+
- lib/pubnub/validators/set_channel_members.rb
|
10685
|
+
- lib/pubnub/validators/set_channel_metadata.rb
|
10686
|
+
- lib/pubnub/validators/set_memberships.rb
|
10688
10687
|
- lib/pubnub/validators/set_state.rb
|
10688
|
+
- lib/pubnub/validators/set_uuid_metadata.rb
|
10689
10689
|
- lib/pubnub/validators/signal.rb
|
10690
10690
|
- lib/pubnub/validators/state.rb
|
10691
10691
|
- lib/pubnub/validators/subscribe.rb
|
10692
10692
|
- lib/pubnub/validators/time.rb
|
10693
|
-
- lib/pubnub/validators/update_space.rb
|
10694
|
-
- lib/pubnub/validators/update_user.rb
|
10695
10693
|
- lib/pubnub/validators/where_now.rb
|
10696
10694
|
- lib/pubnub/version.rb
|
10697
10695
|
- pubnub.gemspec
|
@@ -10719,6 +10717,7 @@ files:
|
|
10719
10717
|
- spec/lib/event/formatter_spec.rb
|
10720
10718
|
- spec/lib/event_spec.rb
|
10721
10719
|
- spec/lib/events/audit_spec.rb
|
10720
|
+
- spec/lib/events/channel_metadata_spec.rb
|
10722
10721
|
- spec/lib/events/channel_registration_spec.rb
|
10723
10722
|
- spec/lib/events/delete_messages_spec.rb
|
10724
10723
|
- spec/lib/events/grant_spec.rb
|
@@ -10733,12 +10732,11 @@ files:
|
|
10733
10732
|
- spec/lib/events/publish_spec.rb
|
10734
10733
|
- spec/lib/events/revoke_spec.rb
|
10735
10734
|
- spec/lib/events/signal_spec.rb
|
10736
|
-
- spec/lib/events/space_spec.rb
|
10737
10735
|
- spec/lib/events/state_spec.rb
|
10738
10736
|
- spec/lib/events/subscribe_spec.rb
|
10739
10737
|
- spec/lib/events/time_spec.rb
|
10740
10738
|
- spec/lib/events/timeout_handling_spec.rb
|
10741
|
-
- spec/lib/events/
|
10739
|
+
- spec/lib/events/uuid_metadata_spec.rb
|
10742
10740
|
- spec/lib/events/where_now_spec.rb
|
10743
10741
|
- spec/lib/keep_alive_spec.rb
|
10744
10742
|
- spec/lib/multiple_ciphers_spec.rb
|
@@ -10798,6 +10796,7 @@ test_files:
|
|
10798
10796
|
- spec/lib/event/formatter_spec.rb
|
10799
10797
|
- spec/lib/event_spec.rb
|
10800
10798
|
- spec/lib/events/audit_spec.rb
|
10799
|
+
- spec/lib/events/channel_metadata_spec.rb
|
10801
10800
|
- spec/lib/events/channel_registration_spec.rb
|
10802
10801
|
- spec/lib/events/delete_messages_spec.rb
|
10803
10802
|
- spec/lib/events/grant_spec.rb
|
@@ -10812,12 +10811,11 @@ test_files:
|
|
10812
10811
|
- spec/lib/events/publish_spec.rb
|
10813
10812
|
- spec/lib/events/revoke_spec.rb
|
10814
10813
|
- spec/lib/events/signal_spec.rb
|
10815
|
-
- spec/lib/events/space_spec.rb
|
10816
10814
|
- spec/lib/events/state_spec.rb
|
10817
10815
|
- spec/lib/events/subscribe_spec.rb
|
10818
10816
|
- spec/lib/events/time_spec.rb
|
10819
10817
|
- spec/lib/events/timeout_handling_spec.rb
|
10820
|
-
- spec/lib/events/
|
10818
|
+
- spec/lib/events/uuid_metadata_spec.rb
|
10821
10819
|
- spec/lib/events/where_now_spec.rb
|
10822
10820
|
- spec/lib/keep_alive_spec.rb
|
10823
10821
|
- spec/lib/multiple_ciphers_spec.rb
|
@@ -1,40 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://ps.pndsn.com/v1/objects/demo/spaces?auth=ruby-test-auth&include=custom&pnsdk=PubNub-Ruby/4.2.0&uuid=ruby-test-uuid
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"id":"rb_space","name":"some_name","custom":{"XXX":"YYYY"}}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
-
Accept:
|
13
|
-
- "*/*"
|
14
|
-
Date:
|
15
|
-
- Fri, 25 Oct 2019 20:35:51 GMT
|
16
|
-
Content-Type:
|
17
|
-
- application/x-www-form-urlencoded
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Date:
|
24
|
-
- Fri, 25 Oct 2019 20:35:54 GMT
|
25
|
-
Content-Type:
|
26
|
-
- application/json
|
27
|
-
Content-Length:
|
28
|
-
- '201'
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
|
-
Access-Control-Allow-Origin:
|
32
|
-
- "*"
|
33
|
-
Access-Control-Allow-Credentials:
|
34
|
-
- 'true'
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"status":200,"data":{"id":"rb_space","name":"some_name","description":null,"custom":{"XXX":"YYYY"},"created":"2019-10-25T20:35:54.1512Z","updated":"2019-10-25T20:35:54.1512Z","eTag":"AZTUtcvx6NDGLQ"}}'
|
38
|
-
http_version:
|
39
|
-
recorded_at: Fri, 25 Oct 2019 20:35:51 GMT
|
40
|
-
recorded_with: VCR 5.0.0
|
@@ -1,40 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://ps.pndsn.com/v1/objects/demo/users?auth=ruby-test-auth&include=custom&pnsdk=PubNub-Ruby/4.2.0&uuid=ruby-test-uuid
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"id":"mg","name":"magnum","custom":{"XXX":"YYYY"}}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
-
Accept:
|
13
|
-
- "*/*"
|
14
|
-
Date:
|
15
|
-
- Fri, 25 Oct 2019 20:36:54 GMT
|
16
|
-
Content-Type:
|
17
|
-
- application/x-www-form-urlencoded
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Date:
|
24
|
-
- Fri, 25 Oct 2019 20:36:57 GMT
|
25
|
-
Content-Type:
|
26
|
-
- application/json
|
27
|
-
Content-Length:
|
28
|
-
- '227'
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
|
-
Access-Control-Allow-Origin:
|
32
|
-
- "*"
|
33
|
-
Access-Control-Allow-Credentials:
|
34
|
-
- 'true'
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"status":200,"data":{"id":"mg","name":"magnum","externalId":null,"profileUrl":null,"email":null,"custom":{"XXX":"YYYY"},"created":"2019-10-25T20:36:57.254813Z","updated":"2019-10-25T20:36:57.254813Z","eTag":"Ad2eyIWXwJzBqAE"}}'
|
38
|
-
http_version:
|
39
|
-
recorded_at: Fri, 25 Oct 2019 20:36:54 GMT
|
40
|
-
recorded_with: VCR 5.0.0
|
@@ -1,38 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: delete
|
5
|
-
uri: http://ps.pndsn.com/v1/objects/demo/users/mg?auth=ruby-test-auth&pnsdk=PubNub-Ruby/4.2.0&uuid=ruby-test-uuid
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
-
Accept:
|
13
|
-
- "*/*"
|
14
|
-
Date:
|
15
|
-
- Fri, 25 Oct 2019 20:36:55 GMT
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
Date:
|
22
|
-
- Fri, 25 Oct 2019 20:36:58 GMT
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Content-Length:
|
26
|
-
- '26'
|
27
|
-
Connection:
|
28
|
-
- keep-alive
|
29
|
-
Access-Control-Allow-Origin:
|
30
|
-
- "*"
|
31
|
-
Access-Control-Allow-Credentials:
|
32
|
-
- 'true'
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: '{"status":200,"data":null}'
|
36
|
-
http_version:
|
37
|
-
recorded_at: Fri, 25 Oct 2019 20:36:55 GMT
|
38
|
-
recorded_with: VCR 5.0.0
|
@@ -1,38 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://ps.pndsn.com/v1/objects/demo/spaces/rb_space?auth=ruby-test-auth&include=custom&pnsdk=PubNub-Ruby/4.2.0&uuid=ruby-test-uuid
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
-
Accept:
|
13
|
-
- "*/*"
|
14
|
-
Date:
|
15
|
-
- Fri, 25 Oct 2019 20:35:51 GMT
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
Date:
|
22
|
-
- Fri, 25 Oct 2019 20:35:54 GMT
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Content-Length:
|
26
|
-
- '203'
|
27
|
-
Connection:
|
28
|
-
- keep-alive
|
29
|
-
Access-Control-Allow-Origin:
|
30
|
-
- "*"
|
31
|
-
Access-Control-Allow-Credentials:
|
32
|
-
- 'true'
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: '{"status":200,"data":{"id":"rb_space","name":"new_name","description":null,"custom":{"XXX":"YYYY"},"created":"2019-10-25T20:35:54.1512Z","updated":"2019-10-25T20:35:54.431837Z","eTag":"AYKsrdL029TZ1wE"}}'
|
36
|
-
http_version:
|
37
|
-
recorded_at: Fri, 25 Oct 2019 20:35:51 GMT
|
38
|
-
recorded_with: VCR 5.0.0
|
@@ -1,40 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://ps.pndsn.com/v1/objects/demo/spaces?auth=ruby-test-auth&include=custom&limit=5&pnsdk=PubNub-Ruby/4.2.0&uuid=ruby-test-uuid
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
-
Accept:
|
13
|
-
- "*/*"
|
14
|
-
Date:
|
15
|
-
- Fri, 25 Oct 2019 20:35:51 GMT
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
Date:
|
22
|
-
- Fri, 25 Oct 2019 20:35:54 GMT
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Content-Length:
|
26
|
-
- '1036'
|
27
|
-
Connection:
|
28
|
-
- keep-alive
|
29
|
-
Vary:
|
30
|
-
- Accept-Encoding
|
31
|
-
Access-Control-Allow-Origin:
|
32
|
-
- "*"
|
33
|
-
Access-Control-Allow-Credentials:
|
34
|
-
- 'true'
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"status":200,"data":[{"id":"NMLWPOUHLV","name":"ZAGXJVHXZL","description":null,"custom":null,"created":"2019-08-18T12:10:01.873873Z","updated":"2019-08-18T12:10:01.873873Z","eTag":"AY6XzPic6t+aNg"},{"id":"YGVRVMOZIK","name":"FZJWFBWKZM","description":"GKRYWOMDRG","custom":null,"created":"2019-08-18T12:16:37.379839Z","updated":"2019-08-18T12:16:37.848793Z","eTag":"AdGc85ajmIDoXg"},{"id":"PXBRDJJWOI","name":"AOQFCTWRZF","description":null,"custom":{"info":"CJIOSKYG","text":"YWHVBDKUHF","uncd":"=!=?-+-?"},"created":"2019-08-18T12:16:40.302258Z","updated":"2019-08-18T12:16:40.609418Z","eTag":"AbzMs+nb/JmowgE"},{"id":"ZZHUEGVHWM","name":"YUUOXZEKDW","description":null,"custom":{"info":"RDZQEIYH","text":"MVCSBQVYEZ","uncd":"-=--?!=!"},"created":"2019-08-18T12:16:41.154746Z","updated":"2019-08-18T12:16:41.564938Z","eTag":"Ab79ksvrz77S6QE"},{"id":"OTCGLMCVEQ","name":"KLRDJADJSG","description":null,"custom":null,"created":"2019-08-18T12:16:42.062339Z","updated":"2019-08-18T12:16:42.062339Z","eTag":"Adbut8mspafpYw"}],"next":"NQ"}'
|
38
|
-
http_version:
|
39
|
-
recorded_at: Fri, 25 Oct 2019 20:35:52 GMT
|
40
|
-
recorded_with: VCR 5.0.0
|