zoom_rb 1.1.3 → 1.1.4

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: 891b312a2bfaf07b88b453c90875e5611d81c75ddf62fe0874712d624f5defdb
4
- data.tar.gz: 90ea1015c081c3607f44c7693bd31f9e64ee118b09bf0b7099e46ef89564c177
3
+ metadata.gz: 7c6da2eeba5f955c575c3c727711115b78cbcd1d37b0baa8781fb49d111dc8a8
4
+ data.tar.gz: b199c01cfa6ede2a269e6350c358b90f3f630ba0b7eab9fe752a31680cf88f28
5
5
  SHA512:
6
- metadata.gz: cbeb2d5bdcf4b16bc581679f12044301f1cc18e533bcf97a97b6d63002123e71f798098f582305f7a5948862f896e7e4fa8bfe9fac7270e540567912a2c48426
7
- data.tar.gz: 2d853dab47d2ee2df3b0f431db12ec88f1e4b7f8c1656f2ccf811adedf08a98dde36c7b52a6e7b892262549844e44cedf9511c733aaaba5fb081fa578650062b
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.3)
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.1)
39
- jwt (2.3.0)
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)
@@ -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 page_number]
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 < StandardError; end
13
- class NotImplemented < StandardError; end
14
- class ParameterMissing < StandardError; end
15
- class ParameterNotPermitted < StandardError; end
16
- class ParameterValueNotPermitted < StandardError; end
17
- class AuthenticationError < StandardError; end
18
- class BadRequest < StandardError; end
19
- class Unauthorized < StandardError; end
20
- class Forbidden < StandardError; end
21
- class NotFound < StandardError; end
22
- class Conflict < StandardError; end
23
- class TooManyRequests < StandardError; end
24
- class InternalServerError < StandardError; end
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zoom
4
- VERSION = '1.1.3'
4
+ VERSION = '1.1.4'
5
5
  end
@@ -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.3
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-07-26 00:00:00.000000000 Z
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