zoom_rb 1.1.7 → 1.1.8
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/.github/workflows/ruby.yml +40 -0
- data/Gemfile.lock +55 -51
- data/README.md +1 -1
- data/lib/zoom/actions/meeting.rb +1 -1
- data/lib/zoom/actions/report.rb +2 -0
- data/lib/zoom/actions/webinar.rb +1 -1
- data/lib/zoom/clients/jwt.rb +2 -0
- data/lib/zoom/version.rb +1 -1
- data/spec/spec_helper.rb +14 -1
- data/zoom_rb.gemspec +2 -1
- metadata +23 -9
- data/.circleci/config.yml +0 -66
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 87a9e2f7848d2e669f3e022e99e0efeaba1610e3021c904b7266a0bf4269d1c8
|
|
4
|
+
data.tar.gz: 891a47c991116c9df57217bcafc443e4f077709ed87499ee270a4c365526cbd3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdd836e38abf1363e152c21c2698b0575e2ce869fd473293affd8baa3a6b16c6d4c451f442f8b37a5dfe67ce8aa1c696d022b65afd21e9ec962c2984b1c66a40
|
|
7
|
+
data.tar.gz: '0677805581c425cf3ebd7e8a30bed630b626c16c54046977168761cf6abb1a6afab86e1ca04e875845fa4f62f0110c993535f0c026139dfad885f7396a508cec'
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Ruby
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
ruby: ['3.0', '3.1', '3.2']
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v3
|
|
18
|
+
- name: Set up Ruby
|
|
19
|
+
uses: ruby/setup-ruby@v1
|
|
20
|
+
with:
|
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
|
22
|
+
bundler-cache: true
|
|
23
|
+
- name: Run Tests
|
|
24
|
+
run: bundle exec rspec
|
|
25
|
+
- name: Upload Coverage to Coveralls
|
|
26
|
+
uses: coverallsapp/github-action@v2
|
|
27
|
+
with:
|
|
28
|
+
flag-name: ruby-${{ matrix.ruby }}
|
|
29
|
+
parallel: true
|
|
30
|
+
|
|
31
|
+
finish:
|
|
32
|
+
needs: test
|
|
33
|
+
if: ${{ always() }}
|
|
34
|
+
runs-on: ubuntu-latest
|
|
35
|
+
steps:
|
|
36
|
+
- name: Coveralls Finished
|
|
37
|
+
uses: coverallsapp/github-action@v2
|
|
38
|
+
with:
|
|
39
|
+
parallel-finished: true
|
|
40
|
+
carryforward: "ruby-3.0,ruby-3.1,ruby-3.2"
|
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.8)
|
|
5
5
|
httparty (>= 0.13)
|
|
6
6
|
json (>= 1.8)
|
|
7
7
|
jwt
|
|
@@ -9,17 +9,17 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activesupport (7.0.
|
|
12
|
+
activesupport (7.0.4.3)
|
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
14
|
i18n (>= 1.6, < 2)
|
|
15
15
|
minitest (>= 5.1)
|
|
16
16
|
tzinfo (~> 2.0)
|
|
17
|
-
addressable (2.8.
|
|
18
|
-
public_suffix (>= 2.0.2, <
|
|
17
|
+
addressable (2.8.4)
|
|
18
|
+
public_suffix (>= 2.0.2, < 6.0)
|
|
19
19
|
ast (2.4.2)
|
|
20
20
|
byebug (11.1.3)
|
|
21
21
|
coderay (1.1.3)
|
|
22
|
-
concurrent-ruby (1.
|
|
22
|
+
concurrent-ruby (1.2.2)
|
|
23
23
|
crack (0.4.5)
|
|
24
24
|
rexml
|
|
25
25
|
diff-lcs (1.5.0)
|
|
@@ -30,79 +30,82 @@ GEM
|
|
|
30
30
|
rubocop-performance (>= 1.3.0)
|
|
31
31
|
rubocop-rails (>= 2.0.0)
|
|
32
32
|
rubocop-rspec (>= 1.33.0)
|
|
33
|
-
httparty (0.
|
|
34
|
-
|
|
33
|
+
httparty (0.21.0)
|
|
34
|
+
mini_mime (>= 1.0.0)
|
|
35
35
|
multi_xml (>= 0.5.2)
|
|
36
|
-
i18n (1.
|
|
36
|
+
i18n (1.12.0)
|
|
37
37
|
concurrent-ruby (~> 1.0)
|
|
38
38
|
json (2.6.3)
|
|
39
|
-
jwt (2.
|
|
39
|
+
jwt (2.7.0)
|
|
40
40
|
method_source (1.0.0)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
mime-types-data (3.2022.0105)
|
|
44
|
-
minitest (5.15.0)
|
|
41
|
+
mini_mime (1.1.2)
|
|
42
|
+
minitest (5.18.0)
|
|
45
43
|
multi_xml (0.6.0)
|
|
46
|
-
parallel (1.
|
|
47
|
-
parser (3.
|
|
44
|
+
parallel (1.22.1)
|
|
45
|
+
parser (3.2.2.0)
|
|
48
46
|
ast (~> 2.4.1)
|
|
49
|
-
pry (0.
|
|
47
|
+
pry (0.14.2)
|
|
50
48
|
coderay (~> 1.1)
|
|
51
49
|
method_source (~> 1.0)
|
|
52
|
-
pry-byebug (3.
|
|
50
|
+
pry-byebug (3.10.1)
|
|
53
51
|
byebug (~> 11.0)
|
|
54
|
-
pry (
|
|
55
|
-
public_suffix (
|
|
56
|
-
rack (
|
|
52
|
+
pry (>= 0.13, < 0.15)
|
|
53
|
+
public_suffix (5.0.1)
|
|
54
|
+
rack (3.0.7)
|
|
57
55
|
rainbow (3.1.1)
|
|
58
|
-
regexp_parser (2.
|
|
56
|
+
regexp_parser (2.7.0)
|
|
59
57
|
rexml (3.2.5)
|
|
60
|
-
rspec (3.
|
|
61
|
-
rspec-core (~> 3.
|
|
62
|
-
rspec-expectations (~> 3.
|
|
63
|
-
rspec-mocks (~> 3.
|
|
64
|
-
rspec-core (3.
|
|
65
|
-
rspec-support (~> 3.
|
|
66
|
-
rspec-expectations (3.
|
|
58
|
+
rspec (3.12.0)
|
|
59
|
+
rspec-core (~> 3.12.0)
|
|
60
|
+
rspec-expectations (~> 3.12.0)
|
|
61
|
+
rspec-mocks (~> 3.12.0)
|
|
62
|
+
rspec-core (3.12.1)
|
|
63
|
+
rspec-support (~> 3.12.0)
|
|
64
|
+
rspec-expectations (3.12.2)
|
|
67
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
68
|
-
rspec-support (~> 3.
|
|
69
|
-
rspec-mocks (3.
|
|
66
|
+
rspec-support (~> 3.12.0)
|
|
67
|
+
rspec-mocks (3.12.5)
|
|
70
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
71
|
-
rspec-support (~> 3.
|
|
72
|
-
rspec-support (3.
|
|
73
|
-
rspec_junit_formatter (0.
|
|
69
|
+
rspec-support (~> 3.12.0)
|
|
70
|
+
rspec-support (3.12.0)
|
|
71
|
+
rspec_junit_formatter (0.6.0)
|
|
74
72
|
rspec-core (>= 2, < 4, != 2.12.0)
|
|
75
|
-
rubocop (1.
|
|
73
|
+
rubocop (1.49.0)
|
|
74
|
+
json (~> 2.3)
|
|
76
75
|
parallel (~> 1.10)
|
|
77
|
-
parser (>= 3.
|
|
76
|
+
parser (>= 3.2.0.0)
|
|
78
77
|
rainbow (>= 2.2.2, < 4.0)
|
|
79
78
|
regexp_parser (>= 1.8, < 3.0)
|
|
80
|
-
rexml
|
|
81
|
-
rubocop-ast (>= 1.
|
|
79
|
+
rexml (>= 3.2.5, < 4.0)
|
|
80
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
|
82
81
|
ruby-progressbar (~> 1.7)
|
|
83
|
-
unicode-display_width (>=
|
|
84
|
-
rubocop-ast (1.
|
|
85
|
-
parser (>= 3.
|
|
86
|
-
rubocop-
|
|
82
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
83
|
+
rubocop-ast (1.28.0)
|
|
84
|
+
parser (>= 3.2.1.0)
|
|
85
|
+
rubocop-capybara (2.17.1)
|
|
86
|
+
rubocop (~> 1.41)
|
|
87
|
+
rubocop-performance (1.17.1)
|
|
87
88
|
rubocop (>= 1.7.0, < 2.0)
|
|
88
89
|
rubocop-ast (>= 0.4.0)
|
|
89
|
-
rubocop-rails (2.
|
|
90
|
+
rubocop-rails (2.19.0)
|
|
90
91
|
activesupport (>= 4.2.0)
|
|
91
92
|
rack (>= 1.1)
|
|
92
|
-
rubocop (>= 1.
|
|
93
|
-
rubocop-rspec (2.
|
|
94
|
-
rubocop (~> 1.
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
rubocop (>= 1.33.0, < 2.0)
|
|
94
|
+
rubocop-rspec (2.19.0)
|
|
95
|
+
rubocop (~> 1.33)
|
|
96
|
+
rubocop-capybara (~> 2.17)
|
|
97
|
+
ruby-progressbar (1.13.0)
|
|
98
|
+
simplecov (0.22.0)
|
|
97
99
|
docile (~> 1.1)
|
|
98
100
|
simplecov-html (~> 0.11)
|
|
99
101
|
simplecov_json_formatter (~> 0.1)
|
|
100
102
|
simplecov-html (0.12.3)
|
|
103
|
+
simplecov-lcov (0.8.0)
|
|
101
104
|
simplecov_json_formatter (0.1.4)
|
|
102
|
-
tzinfo (2.0.
|
|
105
|
+
tzinfo (2.0.6)
|
|
103
106
|
concurrent-ruby (~> 1.0)
|
|
104
|
-
unicode-display_width (2.
|
|
105
|
-
webmock (3.
|
|
107
|
+
unicode-display_width (2.4.2)
|
|
108
|
+
webmock (3.18.1)
|
|
106
109
|
addressable (>= 2.8.0)
|
|
107
110
|
crack (>= 0.3.2)
|
|
108
111
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
@@ -115,7 +118,8 @@ DEPENDENCIES
|
|
|
115
118
|
pry-byebug
|
|
116
119
|
rspec (>= 3.8)
|
|
117
120
|
rspec_junit_formatter (>= 0.4.1)
|
|
118
|
-
simplecov (>= 0.
|
|
121
|
+
simplecov (>= 0.22.0)
|
|
122
|
+
simplecov-lcov (>= 0.8.0)
|
|
119
123
|
webmock (>= 3.4)
|
|
120
124
|
zoom_rb!
|
|
121
125
|
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# zoom_rb [](https://coveralls.io/github/kyleboe/zoom_rb?branch=main) [](https://codeclimate.com/github/kyleboe/zoom_rb/maintainability) [](https://badge.fury.io/rb/zoom_rb)
|
|
2
2
|
|
|
3
3
|
Ruby wrapper gem for zoom.us API (currently `v2`)
|
|
4
4
|
|
data/lib/zoom/actions/meeting.rb
CHANGED
|
@@ -12,7 +12,7 @@ module Zoom
|
|
|
12
12
|
# Create a meeting on Zoom, return the created meeting URL
|
|
13
13
|
post 'meeting_create', '/users/:user_id/meetings',
|
|
14
14
|
permit: %i[
|
|
15
|
-
topic type start_time duration schedule_for timezone password agenda tracking_fields
|
|
15
|
+
topic type start_time duration schedule_for timezone password default_password agenda tracking_fields
|
|
16
16
|
recurrence settings template_id
|
|
17
17
|
]
|
|
18
18
|
|
data/lib/zoom/actions/report.rb
CHANGED
data/lib/zoom/actions/webinar.rb
CHANGED
data/lib/zoom/clients/jwt.rb
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
require 'jwt'
|
|
3
|
+
require 'logger'
|
|
3
4
|
|
|
4
5
|
module Zoom
|
|
5
6
|
class Client
|
|
6
7
|
class JWT < Zoom::Client
|
|
7
8
|
|
|
8
9
|
def initialize(config)
|
|
10
|
+
::Logger.new(STDOUT).warn('Zoom::Client::JWT is deprecated. Please use Zoom::Client::ServerToServerOAuth instead. See: https://developers.zoom.us/docs/internal-apps/jwt-faq/')
|
|
9
11
|
Zoom::Params.new(config).require(:api_key, :api_secret)
|
|
10
12
|
config.each { |k, v| instance_variable_set("@#{k}", v) }
|
|
11
13
|
self.class.default_timeout(@timeout || 20)
|
data/lib/zoom/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'simplecov'
|
|
4
|
-
SimpleCov.start
|
|
4
|
+
SimpleCov.start do
|
|
5
|
+
if ENV['CI']
|
|
6
|
+
require 'simplecov-lcov'
|
|
7
|
+
|
|
8
|
+
SimpleCov::Formatter::LcovFormatter.config do |c|
|
|
9
|
+
c.report_with_single_file = true
|
|
10
|
+
c.single_report_path = 'coverage/lcov.info'
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
formatter SimpleCov::Formatter::LcovFormatter
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
add_filter %w[version.rb]
|
|
17
|
+
end
|
|
5
18
|
|
|
6
19
|
require 'rubygems'
|
|
7
20
|
require 'bundler/setup'
|
data/zoom_rb.gemspec
CHANGED
|
@@ -14,7 +14,8 @@ Gem::Specification.new do |gem|
|
|
|
14
14
|
gem.add_development_dependency 'hint-rubocop_style'
|
|
15
15
|
gem.add_development_dependency 'rspec', '>= 3.8'
|
|
16
16
|
gem.add_development_dependency 'rspec_junit_formatter', '>= 0.4.1'
|
|
17
|
-
gem.add_development_dependency 'simplecov', '>= 0.
|
|
17
|
+
gem.add_development_dependency 'simplecov', '>= 0.22.0'
|
|
18
|
+
gem.add_development_dependency 'simplecov-lcov', '>= 0.8.0'
|
|
18
19
|
gem.add_development_dependency 'webmock', '>= 3.4'
|
|
19
20
|
|
|
20
21
|
gem.authors = ['Kyle Boe']
|
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.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kyle Boe
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-04-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -114,14 +114,28 @@ dependencies:
|
|
|
114
114
|
requirements:
|
|
115
115
|
- - ">="
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 0.
|
|
117
|
+
version: 0.22.0
|
|
118
118
|
type: :development
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - ">="
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 0.
|
|
124
|
+
version: 0.22.0
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: simplecov-lcov
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: 0.8.0
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - ">="
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: 0.8.0
|
|
125
139
|
- !ruby/object:Gem::Dependency
|
|
126
140
|
name: webmock
|
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -143,7 +157,7 @@ executables: []
|
|
|
143
157
|
extensions: []
|
|
144
158
|
extra_rdoc_files: []
|
|
145
159
|
files:
|
|
146
|
-
- ".
|
|
160
|
+
- ".github/workflows/ruby.yml"
|
|
147
161
|
- ".gitignore"
|
|
148
162
|
- CHANGELOG.md
|
|
149
163
|
- Gemfile
|
|
@@ -468,7 +482,7 @@ homepage: https://github.com/hintmedia/zoom_rb
|
|
|
468
482
|
licenses:
|
|
469
483
|
- MIT
|
|
470
484
|
metadata: {}
|
|
471
|
-
post_install_message:
|
|
485
|
+
post_install_message:
|
|
472
486
|
rdoc_options: []
|
|
473
487
|
require_paths:
|
|
474
488
|
- lib
|
|
@@ -483,8 +497,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
483
497
|
- !ruby/object:Gem::Version
|
|
484
498
|
version: '0'
|
|
485
499
|
requirements: []
|
|
486
|
-
rubygems_version: 3.
|
|
487
|
-
signing_key:
|
|
500
|
+
rubygems_version: 3.4.10
|
|
501
|
+
signing_key:
|
|
488
502
|
specification_version: 4
|
|
489
503
|
summary: zoom.us API wrapper
|
|
490
504
|
test_files:
|
data/.circleci/config.yml
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# Ruby CircleCI 2.0 configuration file
|
|
2
|
-
#
|
|
3
|
-
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
|
|
4
|
-
#
|
|
5
|
-
version: 2
|
|
6
|
-
jobs:
|
|
7
|
-
build:
|
|
8
|
-
environment:
|
|
9
|
-
CC_TEST_REPORTER_ID: c6c77975186cfe10e41d9548e9b4a4648f87b56cdbb70bd3896a5a58abf08421
|
|
10
|
-
docker:
|
|
11
|
-
# specify the version you desire here
|
|
12
|
-
- image: circleci/ruby:3.0-node-browsers
|
|
13
|
-
|
|
14
|
-
# Specify service dependencies here if necessary
|
|
15
|
-
# CircleCI maintains a library of pre-built images
|
|
16
|
-
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
17
|
-
# - image: circleci/postgres:9.4
|
|
18
|
-
|
|
19
|
-
working_directory: ~/repo
|
|
20
|
-
|
|
21
|
-
steps:
|
|
22
|
-
- checkout
|
|
23
|
-
|
|
24
|
-
# Download and cache dependencies
|
|
25
|
-
- restore_cache:
|
|
26
|
-
keys:
|
|
27
|
-
- zoom-bundle-{{ checksum "Gemfile.lock" }}
|
|
28
|
-
# fallback to using the latest cache if no exact match is found
|
|
29
|
-
- zoom-bundle-
|
|
30
|
-
|
|
31
|
-
- run:
|
|
32
|
-
name: install dependencies
|
|
33
|
-
command: |
|
|
34
|
-
bundle check || bundle install --jobs=4 --retry=3 --path vendor/bundle
|
|
35
|
-
|
|
36
|
-
- save_cache:
|
|
37
|
-
paths:
|
|
38
|
-
- ./vendor/bundle
|
|
39
|
-
key: zoom-bundle-{{ checksum "Gemfile.lock" }}
|
|
40
|
-
|
|
41
|
-
- run:
|
|
42
|
-
name: Setup Code Climate test-reporter
|
|
43
|
-
command: |
|
|
44
|
-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
45
|
-
chmod +x ./cc-test-reporter
|
|
46
|
-
|
|
47
|
-
- run:
|
|
48
|
-
name: run tests
|
|
49
|
-
command: |
|
|
50
|
-
mkdir /tmp/test-results
|
|
51
|
-
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
|
|
52
|
-
./cc-test-reporter before-build
|
|
53
|
-
bundle exec rspec --profile 10 \
|
|
54
|
-
--format RspecJunitFormatter \
|
|
55
|
-
--out /tmp/test-results/rspec.xml \
|
|
56
|
-
--format progress \
|
|
57
|
-
$TEST_FILES
|
|
58
|
-
./cc-test-reporter format-coverage -t simplecov $CIRCLE_ARTIFACTS/coverage/.resultset.json
|
|
59
|
-
./cc-test-reporter upload-coverage
|
|
60
|
-
|
|
61
|
-
# collect reports
|
|
62
|
-
- store_test_results:
|
|
63
|
-
path: /tmp/test-results
|
|
64
|
-
- store_artifacts:
|
|
65
|
-
path: /tmp/test-results
|
|
66
|
-
destination: test-results
|