zoom_rb 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/zoom/actions/webinar.rb +1 -1
- data/lib/zoom/error.rb +13 -13
- data/lib/zoom/version.rb +1 -1
- data/spec/lib/zoom/errors_spec.rb +31 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c6da2eeba5f955c575c3c727711115b78cbcd1d37b0baa8781fb49d111dc8a8
|
4
|
+
data.tar.gz: b199c01cfa6ede2a269e6350c358b90f3f630ba0b7eab9fe752a31680cf88f28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cbc44242ca16594d10bb513a520163df99fa050043e197d6341b5c7249d5f811a26bd3920fca7c1226880302649e19933b379a2dcfe5814ba5399e5a1de20c0
|
7
|
+
data.tar.gz: f5417945d43116b4b104746ea0c5351943418bd9cc7ad3f539d636cebf36982daf6a0c4b3a1e4bf1f7c4d38ad051b5a986913b4a50831f406c2d91c131bde130
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
zoom_rb (1.1.
|
4
|
+
zoom_rb (1.1.4)
|
5
5
|
httparty (>= 0.13)
|
6
6
|
json (>= 1.8)
|
7
7
|
jwt
|
@@ -35,8 +35,8 @@ GEM
|
|
35
35
|
multi_xml (>= 0.5.2)
|
36
36
|
i18n (1.10.0)
|
37
37
|
concurrent-ruby (~> 1.0)
|
38
|
-
json (2.6.
|
39
|
-
jwt (2.
|
38
|
+
json (2.6.2)
|
39
|
+
jwt (2.4.1)
|
40
40
|
method_source (1.0.0)
|
41
41
|
mime-types (3.4.1)
|
42
42
|
mime-types-data (~> 3.2015)
|
data/lib/zoom/actions/webinar.rb
CHANGED
@@ -32,7 +32,7 @@ module Zoom
|
|
32
32
|
].freeze
|
33
33
|
|
34
34
|
get 'webinar_list', '/users/:host_id/webinars',
|
35
|
-
permit: %i[page_size
|
35
|
+
permit: %i[page_size next_page_token]
|
36
36
|
|
37
37
|
# TODO: process recurrence keys based on constants
|
38
38
|
# TODO: process settings keys based on constants
|
data/lib/zoom/error.rb
CHANGED
@@ -9,17 +9,17 @@ module Zoom
|
|
9
9
|
super(msg)
|
10
10
|
end
|
11
11
|
end
|
12
|
-
class GatewayTimeout <
|
13
|
-
class NotImplemented <
|
14
|
-
class ParameterMissing <
|
15
|
-
class ParameterNotPermitted <
|
16
|
-
class ParameterValueNotPermitted <
|
17
|
-
class AuthenticationError <
|
18
|
-
class BadRequest <
|
19
|
-
class Unauthorized <
|
20
|
-
class Forbidden <
|
21
|
-
class NotFound <
|
22
|
-
class Conflict <
|
23
|
-
class TooManyRequests <
|
24
|
-
class InternalServerError <
|
12
|
+
class GatewayTimeout < Error; end
|
13
|
+
class NotImplemented < Error; end
|
14
|
+
class ParameterMissing < Error; end
|
15
|
+
class ParameterNotPermitted < Error; end
|
16
|
+
class ParameterValueNotPermitted < Error; end
|
17
|
+
class AuthenticationError < Error; end
|
18
|
+
class BadRequest < Error; end
|
19
|
+
class Unauthorized < Error; end
|
20
|
+
class Forbidden < Error; end
|
21
|
+
class NotFound < Error; end
|
22
|
+
class Conflict < Error; end
|
23
|
+
class TooManyRequests < Error; end
|
24
|
+
class InternalServerError < Error; end
|
25
25
|
end
|
data/lib/zoom/version.rb
CHANGED
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe Zoom::Error do
|
6
|
+
let(:rescue?) { false }
|
7
|
+
|
8
|
+
subject do
|
9
|
+
begin
|
10
|
+
raise Zoom::ParameterMissing, "msg"
|
11
|
+
rescue Zoom::Error => error
|
12
|
+
if rescue?
|
13
|
+
true
|
14
|
+
else
|
15
|
+
raise error
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'raises specific errors' do
|
21
|
+
expect { subject }.to raise_error(Zoom::ParameterMissing, "msg")
|
22
|
+
end
|
23
|
+
|
24
|
+
context 'with errors rescued' do
|
25
|
+
let(:rescue?) { true }
|
26
|
+
|
27
|
+
it 'descends from Zoom::Error' do
|
28
|
+
expect(subject).to be true
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zoom_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Boe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -451,6 +451,7 @@ files:
|
|
451
451
|
- spec/lib/zoom/actions/webinar/uuid_list_spec.rb
|
452
452
|
- spec/lib/zoom/actions_spec.rb
|
453
453
|
- spec/lib/zoom/client_spec.rb
|
454
|
+
- spec/lib/zoom/errors_spec.rb
|
454
455
|
- spec/lib/zoom/params_spec.rb
|
455
456
|
- spec/lib/zoom/utils_spec.rb
|
456
457
|
- spec/spec_helper.rb
|
@@ -733,6 +734,7 @@ test_files:
|
|
733
734
|
- spec/lib/zoom/actions/webinar/uuid_list_spec.rb
|
734
735
|
- spec/lib/zoom/actions_spec.rb
|
735
736
|
- spec/lib/zoom/client_spec.rb
|
737
|
+
- spec/lib/zoom/errors_spec.rb
|
736
738
|
- spec/lib/zoom/params_spec.rb
|
737
739
|
- spec/lib/zoom/utils_spec.rb
|
738
740
|
- spec/spec_helper.rb
|