From 38be6aaa8da3f54cf063d73684886bbffbdee3a4 Mon Sep 17 00:00:00 2001 From: Alfonso Manuel Date: Mon, 29 Jul 2024 12:44:50 +0200 Subject: [PATCH 1/2] Add #meeting_get_registrant action --- lib/zoom/actions/meeting.rb | 3 ++ .../actions/meeting/get_registrant_spec.rb | 30 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 spec/lib/zoom/actions/meeting/get_registrant_spec.rb diff --git a/lib/zoom/actions/meeting.rb b/lib/zoom/actions/meeting.rb index b23edfb..e6078e8 100644 --- a/lib/zoom/actions/meeting.rb +++ b/lib/zoom/actions/meeting.rb @@ -49,6 +49,9 @@ module Meeting language occurrence_ids auto_approve ] + # Get a meeting registrant + get 'meeting_get_registrant', '/meetings/:meeting_id/registrants/:registrant_id' + # Delete a meeting registrant. delete 'meeting_delete_registrant', '/meetings/:meeting_id/registrants/:registrant_id' diff --git a/spec/lib/zoom/actions/meeting/get_registrant_spec.rb b/spec/lib/zoom/actions/meeting/get_registrant_spec.rb new file mode 100644 index 0000000..025b684 --- /dev/null +++ b/spec/lib/zoom/actions/meeting/get_registrant_spec.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe Zoom::Actions::Meeting do + let(:zc) { zoom_client } + let(:args) { { meeting_id: 1, registrant_id: 'qwerty' } } + + describe '#meeting_get_registrant action' do + before :each do + stub_request( + :get, + zoom_url("/meetings/#{args[:meeting_id]}/registrants/#{args[:registrant_id]}") + ).to_return(status: 200, headers: { 'Content-Type' => 'application/json' }) + end + + it "requires a 'meeting_id' and 'registrant_id' argument" do + expect { + zc.meeting_get_registrant(filter_key(args, :meeting_id)) + }.to raise_error(Zoom::ParameterMissing) + expect { + zc.meeting_get_registrant(filter_key(args, :registrant_id)) + }.to raise_error(Zoom::ParameterMissing) + end + + it 'returns a status code of 200' do + expect(zc.meeting_get_registrant(args)).to eq(200) + end + end +end From 817bd349d0427f82c02809e59132165be2b456a9 Mon Sep 17 00:00:00 2001 From: Alfonso Manuel Date: Thu, 1 Aug 2024 19:54:04 +0200 Subject: [PATCH 2/2] Update httparty to get rid of faulty dependency multi_xml (0.7.1) > Your bundle is locked to multi_xml (0.7.1) from rubygems repository https://rubygems.org/ or installed locally, but that version can no longer be found in that source. That means the author of multi_xml (0.7.1) has removed it. --- Gemfile.lock | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index b6cec36..8869b36 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,7 +18,6 @@ GEM public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) base64 (0.2.0) - bigdecimal (3.1.8) byebug (11.1.3) coderay (1.1.3) concurrent-ruby (1.2.2) @@ -45,8 +44,7 @@ GEM method_source (1.0.0) mini_mime (1.1.5) minitest (5.18.0) - multi_xml (0.7.1) - bigdecimal (~> 3.1) + multi_xml (0.6.0) parallel (1.22.1) parser (3.2.2.0) ast (~> 2.4.1)