zoom_api 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 278aba172b33c1751ae3618b378c850bf0ffacafc0f10410919d0792bace8d69
4
+ data.tar.gz: 4661d6d0965e86f3497e2f2b819fe23a385fdb0569fe0696df39e184fa8cfb69
5
+ SHA512:
6
+ metadata.gz: fd2298bac1316361b65d3c29cd4e927a868fae32870a77341122ffebbfd0a286ee0a4baaf7f7782cb3b6f1faa585afc3e884d42848d3e6538e6ee0af14130005
7
+ data.tar.gz: c57433bf988167c1b6e36cb844903afa2dfbccd95035ba161d1d03ba1921f296a69d9c513ecd0d1000253cc339641b11acaa9a965bdb3d2025f0d9aa6cb4944d
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,215 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6.5
3
+
4
+ Style/SingleLineMethods:
5
+ Exclude:
6
+ - 'test/**/*.rb'
7
+
8
+ # Don't leave calls to pry lying around.
9
+ Lint/Debugger:
10
+ Enabled: true
11
+
12
+ # ==============================================================================
13
+ # Documentation
14
+ # ==============================================================================
15
+
16
+ Style/Documentation:
17
+ Enabled: true
18
+ Exclude:
19
+ - 'test/**/*.rb'
20
+
21
+ Style/DocumentationMethod:
22
+ Enabled: true
23
+ Exclude:
24
+ - 'test/**/*.rb'
25
+
26
+ # ==============================================================================
27
+ # Naming
28
+ # ==============================================================================
29
+
30
+ Naming/MethodParameterName:
31
+ AllowedNames:
32
+ - id
33
+
34
+ # ==============================================================================
35
+ # Layout
36
+ # ==============================================================================
37
+
38
+ Metrics/LineLength:
39
+ Max: 150
40
+
41
+ Layout/EmptyLineAfterGuardClause:
42
+ Enabled: false
43
+
44
+ Layout/EmptyLinesAroundModuleBody:
45
+ Enabled: false
46
+
47
+ Layout/EmptyLinesAroundClassBody:
48
+ Enabled: false
49
+
50
+ Layout/EmptyLinesAroundBlockBody:
51
+ Enabled: false
52
+
53
+ # https://unix.stackexchange.com/a/18789
54
+ Layout/TrailingEmptyLines:
55
+ EnforcedStyle: final_newline
56
+
57
+ # ==============================================================================
58
+ # Strings
59
+ # ==============================================================================
60
+
61
+ Style/StringLiterals:
62
+ EnforcedStyle: double_quotes
63
+
64
+ Style/FrozenStringLiteralComment:
65
+ Enabled: false
66
+
67
+ Naming/HeredocDelimiterNaming:
68
+ Enabled: false
69
+
70
+ Style/FormatString:
71
+ EnforcedStyle: sprintf
72
+
73
+ Style/FormatStringToken:
74
+ # EnforcedStyle: template
75
+ Enabled: false
76
+
77
+ # ==============================================================================
78
+ # Numbers
79
+ # ==============================================================================
80
+
81
+ Style/ZeroLengthPredicate:
82
+ Enabled: false
83
+
84
+ Style/NumericPredicate:
85
+ Enabled: false
86
+
87
+ # preferably `EnforcedStyle: snake_case`, but it varies.
88
+ Naming/VariableNumber:
89
+ Enabled: false
90
+
91
+ # ==============================================================================
92
+ # Braces, Brackets, and Parentheses
93
+ # ==============================================================================
94
+
95
+ Style/DefWithParentheses:
96
+ Enabled: false
97
+
98
+ Style/MethodCallWithoutArgsParentheses:
99
+ Enabled: false
100
+
101
+ Style/WordArray:
102
+ EnforcedStyle: brackets
103
+
104
+ Style/SymbolArray:
105
+ EnforcedStyle: brackets
106
+
107
+ # ==============================================================================
108
+ # Trailing Commas
109
+ # ==============================================================================
110
+
111
+ Style/TrailingCommaInArguments:
112
+ EnforcedStyleForMultiline: comma
113
+
114
+ Style/TrailingCommaInArrayLiteral:
115
+ EnforcedStyleForMultiline: comma
116
+
117
+ Style/TrailingCommaInHashLiteral:
118
+ EnforcedStyleForMultiline: comma
119
+
120
+ # ==============================================================================
121
+ # Fewer lines doesn't mean better code
122
+ # ==============================================================================
123
+
124
+ Metrics/ModuleLength:
125
+ Enabled: false
126
+
127
+ Metrics/ClassLength:
128
+ Enabled: false
129
+
130
+ Metrics/MethodLength:
131
+ Enabled: false
132
+
133
+ Metrics/BlockLength:
134
+ Enabled: false
135
+
136
+ # TODO: Look into adding an `EnforcedStyle` to not use guard clauses.
137
+ Style/GuardClause:
138
+ Enabled: false
139
+
140
+ # TODO: Look into adding an `EnforcedStyle` to not use if/unless modifiers.
141
+ Style/IfUnlessModifier:
142
+ Enabled: false
143
+
144
+ Style/Next:
145
+ Enabled: false
146
+
147
+ # ==============================================================================
148
+ # Explicit, not redundant
149
+ # ==============================================================================
150
+
151
+ Style/RedundantReturn:
152
+ Enabled: false
153
+
154
+ Style/RedundantSelf:
155
+ Enabled: false
156
+
157
+ # ==============================================================================
158
+ # Exceptions
159
+ # ==============================================================================
160
+
161
+ Lint/SuppressedException:
162
+ AllowComments: true
163
+
164
+ Style/RaiseArgs:
165
+ EnforcedStyle: exploded
166
+
167
+ # ==============================================================================
168
+ # Unsorted
169
+ # ==============================================================================
170
+
171
+ # Default value (special_inside_parentheses) is ridiculous.
172
+ # Look for yourself: https://www.rubydoc.info/gems/rubocop/0.69.0/RuboCop/Cop/Layout/IndentFirstHashElement
173
+ Layout/FirstHashElementIndentation:
174
+ EnforcedStyle: consistent
175
+
176
+ # Default value (special_inside_parentheses) is ridiculous.
177
+ # Look for yourself: https://www.rubydoc.info/gems/rubocop/0.69.0/RuboCop/Cop/Layout/IndentFirstArrayElement
178
+ Layout/FirstArrayElementIndentation:
179
+ EnforcedStyle: consistent
180
+
181
+ Layout/HashAlignment:
182
+ Enabled: false
183
+
184
+ # `x&.y&.[](:argument)` isn't what I'd call "readable".
185
+ # https://stackoverflow.com/questions/34794697/using-with-the-safe-navigation-operator-in-ruby
186
+ Style/SafeNavigation:
187
+ Enabled: false
188
+
189
+ Style/NegatedIf:
190
+ EnforcedStyle: postfix
191
+
192
+ # TODO: File issue to ignore enums when using `EnforcedStyle: assign_inside_condition`.
193
+ Style/ConditionalAssignment:
194
+ Enabled: false
195
+
196
+ Style/TernaryParentheses:
197
+ EnforcedStyle: require_parentheses_when_complex
198
+
199
+ Metrics/AbcSize:
200
+ Enabled: false
201
+
202
+ Metrics/CyclomaticComplexity:
203
+ Enabled: false
204
+
205
+ Metrics/PerceivedComplexity:
206
+ Enabled: false
207
+
208
+ Style/CommentedKeyword:
209
+ Enabled: False
210
+
211
+ Style/AsciiComments:
212
+ Enabled: false
213
+
214
+ Lint/EmptyWhen:
215
+ Enabled: false
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.6.5
6
+ before_install: gem install bundler -v 2.1.4
File without changes
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in zoom_api.gemspec
4
+ gemspec
@@ -0,0 +1,62 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ zoom_api (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ansi (1.5.0)
10
+ builder (3.2.4)
11
+ coderay (1.1.3)
12
+ coveralls (0.7.2)
13
+ multi_json (~> 1.3)
14
+ rest-client (= 1.6.7)
15
+ simplecov (>= 0.7)
16
+ term-ansicolor (= 1.2.2)
17
+ thor (= 0.18.1)
18
+ docile (1.3.2)
19
+ method_source (1.0.0)
20
+ mime-types (3.3.1)
21
+ mime-types-data (~> 3.2015)
22
+ mime-types-data (3.2020.0512)
23
+ minitest (5.14.1)
24
+ minitest-focus (1.2.1)
25
+ minitest (>= 4, < 6)
26
+ minitest-reporters (1.4.2)
27
+ ansi
28
+ builder
29
+ minitest (>= 5.0)
30
+ ruby-progressbar
31
+ multi_json (1.14.1)
32
+ pry (0.13.1)
33
+ coderay (~> 1.1)
34
+ method_source (~> 1.0)
35
+ rake (12.3.3)
36
+ rest-client (1.6.7)
37
+ mime-types (>= 1.16)
38
+ ruby-progressbar (1.10.1)
39
+ simplecov (0.18.5)
40
+ docile (~> 1.1)
41
+ simplecov-html (~> 0.11)
42
+ simplecov-html (0.12.2)
43
+ term-ansicolor (1.2.2)
44
+ tins (~> 0.8)
45
+ thor (0.18.1)
46
+ tins (0.13.2)
47
+
48
+ PLATFORMS
49
+ ruby
50
+
51
+ DEPENDENCIES
52
+ coveralls (~> 0.7.2)
53
+ minitest (~> 5.0)
54
+ minitest-focus (~> 1.2)
55
+ minitest-reporters (~> 1.4)
56
+ pry (~> 0.13.1)
57
+ rake (~> 12.0)
58
+ simplecov
59
+ zoom_api!
60
+
61
+ BUNDLED WITH
62
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Clay Dunston
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,58 @@
1
+ # ZoomAPI
2
+
3
+ [![Gem](https://img.shields.io/gem/v/zoom_api)][rubygems]
4
+ <!-- [![Build Status](https://travis-ci.org/tcd/zoom_api.svg?branch=master)][travis-ci] -->
5
+ <!-- [![Coverage Status](https://coveralls.io/repos/github/tcd/zoom_api/badge.svg?branch=master)][coveralls] -->
6
+ [![License](https://img.shields.io/github/license/tcd/zoom_api)][license]
7
+ [![Documentation](http://img.shields.io/badge/docs-rubydoc.info-blue.svg)][docs]
8
+
9
+ [rubygems]: https://rubygems.org/gems/zoom_api
10
+ <!-- [travis-ci]: https://travis-ci.org/tcd/zoom_api -->
11
+ <!-- [coveralls]: https://coveralls.io/github/tcd/zoom_api?branch=master -->
12
+ [license]: https://github.com/tcd/zoom_api/blob/master/LICENSE.txt
13
+ [docs]: https://www.rubydoc.info/gems/zoom_api/0.1.0
14
+
15
+ ## Development
16
+
17
+ To experiment with that code, run `bin/console` for an interactive prompt.
18
+
19
+ ## Installation
20
+
21
+ Add this line to your application's Gemfile:
22
+
23
+ ```ruby
24
+ gem "zoom_api"
25
+ ```
26
+
27
+ And then execute:
28
+
29
+ ```sh
30
+ $ bundle install
31
+ ```
32
+
33
+ Or install it yourself as:
34
+
35
+ ```sh
36
+ $ gem install zoom_api
37
+ ```
38
+
39
+ ## Usage
40
+
41
+ TODO: Write usage instructions here
42
+
43
+ ## Development
44
+
45
+ After checking out the repo, run `bin/setup` to install dependencies.
46
+ Then, run `rake test` to run the tests.
47
+ You can also run `bin/console` for an interactive prompt that will allow you to experiment.
48
+
49
+ To install this gem onto your local machine, run `bundle exec rake install`.
50
+ To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
51
+
52
+ ## Contributing
53
+
54
+ Bug reports and pull requests are welcome on GitHub at https://github.com/tcd/zoom_api.
55
+
56
+ ## License
57
+
58
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task(default: :test)
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "zoom_api"
5
+ require "pry"
6
+ Pry.start()
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,6 @@
1
+ require "zoom_api/errors"
2
+ require "zoom_api/version"
3
+
4
+ # Ruby wrapper around Zoom's REST API.
5
+ module ZoomAPI
6
+ end
@@ -0,0 +1,10 @@
1
+ require "zoom_api/version"
2
+
3
+ # Ruby wrapper around Zoom's REST API.
4
+ module ZoomAPI
5
+ # Exceptions raised by `ZoomAPI`.
6
+ module Errors
7
+ # Exceptions raised by `ZoomAPI` inherit from Error.
8
+ class Error < StandardError; end
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ module ZoomAPI
2
+ VERSION = "0.1.0".freeze()
3
+ end
@@ -0,0 +1,38 @@
1
+ require_relative "lib/zoom_api/version"
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "zoom_api"
5
+ s.version = ZoomAPI::VERSION
6
+ s.authors = ["Clay Dunston"]
7
+ s.email = ["dunstontc@gmail.com"]
8
+ s.summary = "A Ruby wrapper around Zoom's REST API."
9
+ s.description = s.description
10
+ s.homepage = "https://github.com/tcd/zoom_api"
11
+ s.license = "MIT"
12
+ s.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
+
14
+ s.metadata = {
15
+ "homepage_uri" => s.homepage,
16
+ "source_code_uri" => s.homepage,
17
+ "changelog_uri" => "#{s.homepage}/blob/master/CHANGELOG.md",
18
+ "documentation_uri" => "https://www.rubydoc.info/gems/#{s.name}/#{s.version}",
19
+ "yard.run" => "yri", # use "yard" to build full HTML docs.
20
+ }
21
+
22
+ # Specify which files should be added to the gem when it is released.
23
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
+ s.files = Dir.chdir(File.expand_path("..", __FILE__)) do
25
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ end
27
+ s.bindir = "exe"
28
+ s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ s.require_paths = ["lib"]
30
+
31
+ s.add_development_dependency("coveralls", "~> 0.7.2")
32
+ s.add_development_dependency("minitest", "~> 5.0")
33
+ s.add_development_dependency("minitest-focus", "~> 1.2")
34
+ s.add_development_dependency("minitest-reporters", "~> 1.4")
35
+ s.add_development_dependency("pry", "~> 0.13.1")
36
+ s.add_development_dependency("rake", "~> 12.0")
37
+ s.add_development_dependency("simplecov")
38
+ end
metadata ADDED
@@ -0,0 +1,161 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: zoom_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Clay Dunston
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-06-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: coveralls
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.7.2
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.7.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest-focus
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.2'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest-reporters
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.13.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.13.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '12.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '12.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: ''
112
+ email:
113
+ - dunstontc@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rubocop.yml"
120
+ - ".travis.yml"
121
+ - CHANGELOG.md
122
+ - Gemfile
123
+ - Gemfile.lock
124
+ - LICENSE.txt
125
+ - README.md
126
+ - Rakefile
127
+ - bin/console
128
+ - bin/setup
129
+ - lib/zoom_api.rb
130
+ - lib/zoom_api/errors.rb
131
+ - lib/zoom_api/version.rb
132
+ - zoom_api.gemspec
133
+ homepage: https://github.com/tcd/zoom_api
134
+ licenses:
135
+ - MIT
136
+ metadata:
137
+ homepage_uri: https://github.com/tcd/zoom_api
138
+ source_code_uri: https://github.com/tcd/zoom_api
139
+ changelog_uri: https://github.com/tcd/zoom_api/blob/master/CHANGELOG.md
140
+ documentation_uri: https://www.rubydoc.info/gems/zoom_api/0.1.0
141
+ yard.run: yri
142
+ post_install_message:
143
+ rdoc_options: []
144
+ require_paths:
145
+ - lib
146
+ required_ruby_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: 2.3.0
151
+ required_rubygems_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ requirements: []
157
+ rubygems_version: 3.0.3
158
+ signing_key:
159
+ specification_version: 4
160
+ summary: A Ruby wrapper around Zoom's REST API.
161
+ test_files: []