onyxcord 2.0.13 → 3.2.0
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/lib/onyxcord/application_commands/command.rb +4 -97
- data/lib/onyxcord/application_commands/context.rb +4 -94
- data/lib/onyxcord/application_commands/option.rb +4 -75
- data/lib/onyxcord/application_commands/registry.rb +4 -45
- data/lib/onyxcord/application_commands.rb +8 -5
- data/lib/onyxcord/bot.rb +24 -1759
- data/lib/onyxcord/{cache.rb → cache/manager.rb} +16 -14
- data/lib/onyxcord/cache/stores/gateway.rb +272 -0
- data/lib/onyxcord/commands/bot/channels.rb +48 -0
- data/lib/onyxcord/commands/bot/execution.rb +174 -0
- data/lib/onyxcord/commands/bot/message_dispatch.rb +58 -0
- data/lib/onyxcord/commands/bot/permissions.rb +72 -0
- data/lib/onyxcord/commands/bot.rb +209 -0
- data/lib/onyxcord/commands/container.rb +21 -2
- data/lib/onyxcord/commands/parser.rb +30 -1
- data/lib/onyxcord/container.rb +16 -960
- data/lib/onyxcord/core/bot/application_commands.rb +210 -0
- data/lib/onyxcord/core/bot/awaits.rb +112 -0
- data/lib/onyxcord/core/bot/invites.rb +42 -0
- data/lib/onyxcord/core/bot/messaging.rb +161 -0
- data/lib/onyxcord/core/bot/oauth.rb +27 -0
- data/lib/onyxcord/core/bot/presence.rb +103 -0
- data/lib/onyxcord/core/bot/runtime.rb +183 -0
- data/lib/onyxcord/core/bot/voice.rb +69 -0
- data/lib/onyxcord/{errors.rb → core/errors.rb} +18 -3
- data/lib/onyxcord/{logger.rb → core/logger.rb} +5 -0
- data/lib/onyxcord/core/version.rb +5 -0
- data/lib/onyxcord/events/await/base.rb +48 -0
- data/lib/onyxcord/events/await.rb +1 -46
- data/lib/onyxcord/events/ban/base.rb +54 -0
- data/lib/onyxcord/events/ban/remove.rb +11 -0
- data/lib/onyxcord/events/bans.rb +2 -58
- data/lib/onyxcord/events/channels/base.rb +91 -0
- data/lib/onyxcord/events/channels/delete.rb +73 -0
- data/lib/onyxcord/events/channels/pins.rb +44 -0
- data/lib/onyxcord/events/channels/recipients.rb +77 -0
- data/lib/onyxcord/events/channels.rb +4 -239
- data/lib/onyxcord/events/guilds/audit_logs.rb +79 -0
- data/lib/onyxcord/events/guilds/base.rb +97 -0
- data/lib/onyxcord/events/guilds/emoji.rb +147 -0
- data/lib/onyxcord/events/guilds.rb +3 -267
- data/lib/onyxcord/events/handlers/channels.rb +133 -0
- data/lib/onyxcord/events/handlers/core.rb +146 -0
- data/lib/onyxcord/events/handlers/guilds.rb +375 -0
- data/lib/onyxcord/events/handlers/interactions.rb +238 -0
- data/lib/onyxcord/events/handlers/lifetime.rb +71 -0
- data/lib/onyxcord/events/handlers/messages.rb +218 -0
- data/lib/onyxcord/events/handlers/presence.rb +56 -0
- data/lib/onyxcord/events/handlers/raw.rb +39 -0
- data/lib/onyxcord/events/handlers/reactions.rb +98 -0
- data/lib/onyxcord/events/handlers/scheduled_events.rb +243 -0
- data/lib/onyxcord/events/handlers/voice.rb +46 -0
- data/lib/onyxcord/events/integration/base.rb +45 -0
- data/lib/onyxcord/events/integration/create.rb +11 -0
- data/lib/onyxcord/events/integration/delete.rb +48 -0
- data/lib/onyxcord/events/integration/update.rb +11 -0
- data/lib/onyxcord/events/integrations.rb +4 -98
- data/lib/onyxcord/events/interactions/application_commands.rb +185 -0
- data/lib/onyxcord/events/interactions/autocomplete.rb +62 -0
- data/lib/onyxcord/events/interactions/base.rb +175 -0
- data/lib/onyxcord/events/interactions/components.rb +221 -0
- data/lib/onyxcord/events/interactions/permissions.rb +53 -0
- data/lib/onyxcord/events/interactions.rb +5 -622
- data/lib/onyxcord/events/invite/create.rb +79 -0
- data/lib/onyxcord/events/invite/delete.rb +55 -0
- data/lib/onyxcord/events/invites.rb +2 -125
- data/lib/onyxcord/events/lifetime/base.rb +31 -0
- data/lib/onyxcord/events/lifetime.rb +1 -29
- data/lib/onyxcord/events/member/add.rb +12 -0
- data/lib/onyxcord/events/member/base.rb +67 -0
- data/lib/onyxcord/events/member/delete.rb +21 -0
- data/lib/onyxcord/events/member/update.rb +25 -0
- data/lib/onyxcord/events/members.rb +4 -108
- data/lib/onyxcord/events/message/base.rb +295 -0
- data/lib/onyxcord/events/message/ids.rb +71 -0
- data/lib/onyxcord/events/message/mentions.rb +55 -0
- data/lib/onyxcord/events/message/updates.rb +27 -0
- data/lib/onyxcord/events/message.rb +4 -397
- data/lib/onyxcord/events/poll/add.rb +11 -0
- data/lib/onyxcord/events/poll/base.rb +106 -0
- data/lib/onyxcord/events/poll/remove.rb +11 -0
- data/lib/onyxcord/events/polls.rb +3 -116
- data/lib/onyxcord/events/presence/playing.rb +77 -0
- data/lib/onyxcord/events/presence/status.rb +60 -0
- data/lib/onyxcord/events/presence.rb +2 -129
- data/lib/onyxcord/events/raw/base.rb +74 -0
- data/lib/onyxcord/events/raw.rb +1 -72
- data/lib/onyxcord/events/reactions/base.rb +143 -0
- data/lib/onyxcord/events/reactions/clear.rb +99 -0
- data/lib/onyxcord/events/reactions.rb +2 -216
- data/lib/onyxcord/events/role/create.rb +46 -0
- data/lib/onyxcord/events/role/delete.rb +40 -0
- data/lib/onyxcord/events/role/update.rb +11 -0
- data/lib/onyxcord/events/roles.rb +3 -85
- data/lib/onyxcord/events/scheduled_events/events.rb +112 -0
- data/lib/onyxcord/events/scheduled_events/users.rb +91 -0
- data/lib/onyxcord/events/scheduled_events.rb +2 -169
- data/lib/onyxcord/events/thread/base.rb +49 -0
- data/lib/onyxcord/events/thread/members.rb +44 -0
- data/lib/onyxcord/events/thread/update.rb +18 -0
- data/lib/onyxcord/events/threads.rb +3 -98
- data/lib/onyxcord/events/typing/base.rb +73 -0
- data/lib/onyxcord/events/typing.rb +1 -71
- data/lib/onyxcord/events/voice/server_update.rb +48 -0
- data/lib/onyxcord/events/voice/state_update.rb +137 -0
- data/lib/onyxcord/events/voice_server_update.rb +2 -46
- data/lib/onyxcord/events/voice_state_update.rb +2 -135
- data/lib/onyxcord/events/webhook/update.rb +65 -0
- data/lib/onyxcord/events/webhooks.rb +1 -63
- data/lib/onyxcord/gateway/client.rb +460 -0
- data/lib/onyxcord/interactions/command.rb +120 -0
- data/lib/onyxcord/interactions/context.rb +109 -0
- data/lib/onyxcord/interactions/internal/application_command.rb +203 -0
- data/lib/onyxcord/interactions/internal/message.rb +152 -0
- data/lib/onyxcord/interactions/internal/metadata.rb +109 -0
- data/lib/onyxcord/interactions/internal/option_builder.rb +230 -0
- data/lib/onyxcord/interactions/internal/permission_builder.rb +90 -0
- data/lib/onyxcord/interactions/option.rb +88 -0
- data/lib/onyxcord/interactions/registry.rb +50 -0
- data/lib/onyxcord/interactions.rb +16 -0
- data/lib/onyxcord/internal/async_runtime.rb +32 -0
- data/lib/onyxcord/internal/event_bus.rb +591 -0
- data/lib/onyxcord/internal/event_executor.rb +155 -0
- data/lib/onyxcord/internal/gateway/opcodes.rb +22 -0
- data/lib/onyxcord/internal/gateway/session.rb +45 -0
- data/lib/onyxcord/internal/http.rb +189 -0
- data/lib/onyxcord/internal/json.rb +51 -0
- data/lib/onyxcord/internal/message_payload.rb +78 -0
- data/lib/onyxcord/internal/rate_limiter/async_rest.rb +151 -0
- data/lib/onyxcord/internal/rate_limiter/gateway.rb +44 -0
- data/lib/onyxcord/internal/rate_limiter/rest.rb +144 -0
- data/lib/onyxcord/internal/upload.rb +39 -0
- data/lib/onyxcord/internal/websocket.rb +79 -0
- data/lib/onyxcord/light/data.rb +1 -1
- data/lib/onyxcord/light/integrations.rb +1 -1
- data/lib/onyxcord/light/light_bot.rb +7 -7
- data/lib/onyxcord/{data → models}/activity.rb +2 -2
- data/lib/onyxcord/{data → models}/application.rb +3 -3
- data/lib/onyxcord/{data → models}/avatar_decoration.rb +1 -1
- data/lib/onyxcord/{data → models}/channel.rb +23 -23
- data/lib/onyxcord/{data → models}/collectibles.rb +1 -1
- data/lib/onyxcord/{data → models}/emoji.rb +1 -1
- data/lib/onyxcord/models/interaction.rb +450 -0
- data/lib/onyxcord/{data → models}/invite.rb +1 -1
- data/lib/onyxcord/{data → models}/member.rb +11 -11
- data/lib/onyxcord/{data → models}/message.rb +22 -14
- data/lib/onyxcord/{data → models}/poll.rb +2 -2
- data/lib/onyxcord/{data → models}/primary_server.rb +1 -1
- data/lib/onyxcord/{data → models}/profile.rb +4 -4
- data/lib/onyxcord/{data → models}/role.rb +6 -12
- data/lib/onyxcord/{data → models}/scheduled_event.rb +5 -5
- data/lib/onyxcord/{data → models}/server.rb +41 -41
- data/lib/onyxcord/{data → models}/server_preview.rb +2 -2
- data/lib/onyxcord/{data → models}/team.rb +1 -1
- data/lib/onyxcord/{data → models}/user.rb +5 -5
- data/lib/onyxcord/{data → models}/webhook.rb +13 -11
- data/lib/onyxcord/models.rb +57 -0
- data/lib/onyxcord/{api.rb → rest/client.rb} +83 -27
- data/lib/onyxcord/{api → rest/routes}/application.rb +79 -57
- data/lib/onyxcord/rest/routes/channel/base.rb +73 -0
- data/lib/onyxcord/rest/routes/channel/groups.rb +78 -0
- data/lib/onyxcord/rest/routes/channel/messages.rb +130 -0
- data/lib/onyxcord/rest/routes/channel/permissions.rb +73 -0
- data/lib/onyxcord/rest/routes/channel/pins.rb +45 -0
- data/lib/onyxcord/rest/routes/channel/polls.rb +32 -0
- data/lib/onyxcord/rest/routes/channel/reactions.rb +86 -0
- data/lib/onyxcord/rest/routes/channel/threads.rb +176 -0
- data/lib/onyxcord/rest/routes/channel/webhooks.rb +47 -0
- data/lib/onyxcord/rest/routes/channel.rb +12 -0
- data/lib/onyxcord/{api/interaction.rb → rest/routes/interaction/base.rb} +10 -33
- data/lib/onyxcord/rest/routes/interaction/response.rb +24 -0
- data/lib/onyxcord/rest/routes/interaction.rb +4 -0
- data/lib/onyxcord/{api → rest/routes}/invite.rb +7 -7
- data/lib/onyxcord/rest/routes/server/admin.rb +174 -0
- data/lib/onyxcord/rest/routes/server/assets.rb +25 -0
- data/lib/onyxcord/rest/routes/server/bans.rb +67 -0
- data/lib/onyxcord/rest/routes/server/base.rb +77 -0
- data/lib/onyxcord/rest/routes/server/channels.rb +58 -0
- data/lib/onyxcord/rest/routes/server/emoji.rb +48 -0
- data/lib/onyxcord/rest/routes/server/members.rb +109 -0
- data/lib/onyxcord/rest/routes/server/messages.rb +19 -0
- data/lib/onyxcord/rest/routes/server/roles.rb +156 -0
- data/lib/onyxcord/rest/routes/server/scheduled_events.rb +86 -0
- data/lib/onyxcord/rest/routes/server.rb +12 -0
- data/lib/onyxcord/{api → rest/routes}/user.rb +23 -23
- data/lib/onyxcord/{api → rest/routes}/webhook.rb +30 -32
- data/lib/onyxcord/{allowed_mentions.rb → utils/allowed_mentions.rb} +9 -1
- data/lib/onyxcord/utils/timestamp.rb +69 -0
- data/lib/onyxcord/voice/{voice_bot.rb → client.rb} +4 -4
- data/lib/onyxcord/voice/encoder.rb +1 -1
- data/lib/onyxcord/voice/network/udp.rb +135 -0
- data/lib/onyxcord/voice/network/websocket.rb +225 -0
- data/lib/onyxcord/voice/network.rb +5 -357
- data/lib/onyxcord/webhooks/builder.rb +1 -1
- data/lib/onyxcord/webhooks/client.rb +13 -13
- data/lib/onyxcord/webhooks/modal/group_builder.rb +55 -0
- data/lib/onyxcord/webhooks/modal/label_builder.rb +183 -0
- data/lib/onyxcord/webhooks/modal.rb +2 -239
- data/lib/onyxcord/webhooks/version.rb +3 -3
- data/lib/onyxcord/webhooks/view/container_builder.rb +80 -0
- data/lib/onyxcord/webhooks/view/file_builder.rb +24 -0
- data/lib/onyxcord/webhooks/view/media_gallery_builder.rb +50 -0
- data/lib/onyxcord/webhooks/view/row_builder.rb +120 -0
- data/lib/onyxcord/webhooks/view/section_builder.rb +61 -0
- data/lib/onyxcord/webhooks/view/select_menu_builder.rb +77 -0
- data/lib/onyxcord/webhooks/view/separator_builder.rb +22 -0
- data/lib/onyxcord/webhooks/view/text_display_builder.rb +20 -0
- data/lib/onyxcord/webhooks/view.rb +9 -425
- data/lib/onyxcord.rb +106 -40
- metadata +208 -91
- data/.github/CONTRIBUTING.md +0 -13
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -24
- data/.github/pull_request_template.md +0 -37
- data/.github/workflows/ci.yml +0 -78
- data/.github/workflows/codeql.yml +0 -65
- data/.github/workflows/deploy.yml +0 -54
- data/.github/workflows/release.yml +0 -51
- data/.gitignore +0 -17
- data/.markdownlint.json +0 -4
- data/.overcommit.yml +0 -7
- data/.rspec +0 -2
- data/.rubocop.yml +0 -129
- data/.yardopts +0 -1
- data/CHANGELOG.md +0 -202
- data/Gemfile +0 -6
- data/LICENSE.txt +0 -21
- data/README.md +0 -448
- data/Rakefile +0 -13
- data/lib/onyxcord/api/channel.rb +0 -705
- data/lib/onyxcord/api/server.rb +0 -775
- data/lib/onyxcord/async/runtime.rb +0 -30
- data/lib/onyxcord/commands/command_bot.rb +0 -505
- data/lib/onyxcord/data/interaction.rb +0 -1143
- data/lib/onyxcord/data.rb +0 -57
- data/lib/onyxcord/event_executor.rb +0 -153
- data/lib/onyxcord/gateway.rb +0 -500
- data/lib/onyxcord/http.rb +0 -115
- data/lib/onyxcord/json.rb +0 -49
- data/lib/onyxcord/rate_limiter/async_rest.rb +0 -149
- data/lib/onyxcord/rate_limiter/gateway.rb +0 -42
- data/lib/onyxcord/rate_limiter/rest.rb +0 -142
- data/lib/onyxcord/version.rb +0 -7
- data/lib/onyxcord/websocket.rb +0 -77
- data/onyxcord.gemspec +0 -63
- /data/lib/onyxcord/{configuration.rb → core/configuration.rb} +0 -0
- /data/lib/onyxcord/{data → models}/attachment.rb +0 -0
- /data/lib/onyxcord/{data → models}/audit_logs.rb +0 -0
- /data/lib/onyxcord/{data → models}/call.rb +0 -0
- /data/lib/onyxcord/{data → models}/channel_tag.rb +0 -0
- /data/lib/onyxcord/{data → models}/component.rb +0 -0
- /data/lib/onyxcord/{data → models}/embed.rb +0 -0
- /data/lib/onyxcord/{data → models}/install_params.rb +0 -0
- /data/lib/onyxcord/{data → models}/integration.rb +0 -0
- /data/lib/onyxcord/{data → models}/message_activity.rb +0 -0
- /data/lib/onyxcord/{data → models}/overwrite.rb +0 -0
- /data/lib/onyxcord/{data → models}/reaction.rb +0 -0
- /data/lib/onyxcord/{data → models}/recipient.rb +0 -0
- /data/lib/onyxcord/{data → models}/role_connection_data.rb +0 -0
- /data/lib/onyxcord/{data → models}/role_subscription.rb +0 -0
- /data/lib/onyxcord/{data → models}/snapshot.rb +0 -0
- /data/lib/onyxcord/{data → models}/timestamp.rb +0 -0
- /data/lib/onyxcord/{data → models}/voice_region.rb +0 -0
- /data/lib/onyxcord/{data → models}/voice_state.rb +0 -0
- /data/lib/onyxcord/{colour_rgb.rb → utils/colour_rgb.rb} +0 -0
- /data/lib/onyxcord/{id_object.rb → utils/id_object.rb} +0 -0
- /data/lib/onyxcord/{message_components.rb → utils/message_components.rb} +0 -0
- /data/lib/onyxcord/{paginator.rb → utils/paginator.rb} +0 -0
- /data/lib/onyxcord/{permissions.rb → utils/permissions.rb} +0 -0
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onyxcord
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0
|
|
4
|
+
version: 3.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gustavo Silva
|
|
@@ -157,6 +157,20 @@ dependencies:
|
|
|
157
157
|
- - "~>"
|
|
158
158
|
- !ruby/object:Gem::Version
|
|
159
159
|
version: '3.0'
|
|
160
|
+
- !ruby/object:Gem::Dependency
|
|
161
|
+
name: zeitwerk
|
|
162
|
+
requirement: !ruby/object:Gem::Requirement
|
|
163
|
+
requirements:
|
|
164
|
+
- - "~>"
|
|
165
|
+
- !ruby/object:Gem::Version
|
|
166
|
+
version: '2.8'
|
|
167
|
+
type: :runtime
|
|
168
|
+
prerelease: false
|
|
169
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
170
|
+
requirements:
|
|
171
|
+
- - "~>"
|
|
172
|
+
- !ruby/object:Gem::Version
|
|
173
|
+
version: '2.8'
|
|
160
174
|
- !ruby/object:Gem::Dependency
|
|
161
175
|
name: ffi
|
|
162
176
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -365,148 +379,251 @@ executables: []
|
|
|
365
379
|
extensions: []
|
|
366
380
|
extra_rdoc_files: []
|
|
367
381
|
files:
|
|
368
|
-
- ".github/CONTRIBUTING.md"
|
|
369
|
-
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
|
370
|
-
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
|
371
|
-
- ".github/pull_request_template.md"
|
|
372
|
-
- ".github/workflows/ci.yml"
|
|
373
|
-
- ".github/workflows/codeql.yml"
|
|
374
|
-
- ".github/workflows/deploy.yml"
|
|
375
|
-
- ".github/workflows/release.yml"
|
|
376
|
-
- ".gitignore"
|
|
377
|
-
- ".markdownlint.json"
|
|
378
|
-
- ".overcommit.yml"
|
|
379
|
-
- ".rspec"
|
|
380
|
-
- ".rubocop.yml"
|
|
381
|
-
- ".yardopts"
|
|
382
|
-
- CHANGELOG.md
|
|
383
|
-
- Gemfile
|
|
384
|
-
- LICENSE.txt
|
|
385
|
-
- README.md
|
|
386
|
-
- Rakefile
|
|
387
382
|
- bin/console
|
|
388
383
|
- bin/setup
|
|
389
384
|
- lib/onyxcord.rb
|
|
390
|
-
- lib/onyxcord/allowed_mentions.rb
|
|
391
|
-
- lib/onyxcord/api.rb
|
|
392
|
-
- lib/onyxcord/api/application.rb
|
|
393
|
-
- lib/onyxcord/api/channel.rb
|
|
394
|
-
- lib/onyxcord/api/interaction.rb
|
|
395
|
-
- lib/onyxcord/api/invite.rb
|
|
396
|
-
- lib/onyxcord/api/server.rb
|
|
397
|
-
- lib/onyxcord/api/user.rb
|
|
398
|
-
- lib/onyxcord/api/webhook.rb
|
|
399
385
|
- lib/onyxcord/application_commands.rb
|
|
400
386
|
- lib/onyxcord/application_commands/command.rb
|
|
401
387
|
- lib/onyxcord/application_commands/context.rb
|
|
402
388
|
- lib/onyxcord/application_commands/option.rb
|
|
403
389
|
- lib/onyxcord/application_commands/registry.rb
|
|
404
|
-
- lib/onyxcord/async/runtime.rb
|
|
405
390
|
- lib/onyxcord/await.rb
|
|
406
391
|
- lib/onyxcord/bot.rb
|
|
407
|
-
- lib/onyxcord/cache.rb
|
|
408
|
-
- lib/onyxcord/
|
|
409
|
-
- lib/onyxcord/commands/
|
|
392
|
+
- lib/onyxcord/cache/manager.rb
|
|
393
|
+
- lib/onyxcord/cache/stores/gateway.rb
|
|
394
|
+
- lib/onyxcord/commands/bot.rb
|
|
395
|
+
- lib/onyxcord/commands/bot/channels.rb
|
|
396
|
+
- lib/onyxcord/commands/bot/execution.rb
|
|
397
|
+
- lib/onyxcord/commands/bot/message_dispatch.rb
|
|
398
|
+
- lib/onyxcord/commands/bot/permissions.rb
|
|
410
399
|
- lib/onyxcord/commands/container.rb
|
|
411
400
|
- lib/onyxcord/commands/events.rb
|
|
412
401
|
- lib/onyxcord/commands/parser.rb
|
|
413
402
|
- lib/onyxcord/commands/rate_limiter.rb
|
|
414
|
-
- lib/onyxcord/configuration.rb
|
|
415
403
|
- lib/onyxcord/container.rb
|
|
416
|
-
- lib/onyxcord/
|
|
417
|
-
- lib/onyxcord/
|
|
418
|
-
- lib/onyxcord/
|
|
419
|
-
- lib/onyxcord/
|
|
420
|
-
- lib/onyxcord/
|
|
421
|
-
- lib/onyxcord/
|
|
422
|
-
- lib/onyxcord/
|
|
423
|
-
- lib/onyxcord/
|
|
424
|
-
- lib/onyxcord/
|
|
425
|
-
- lib/onyxcord/
|
|
426
|
-
- lib/onyxcord/
|
|
427
|
-
- lib/onyxcord/
|
|
428
|
-
- lib/onyxcord/data/emoji.rb
|
|
429
|
-
- lib/onyxcord/data/install_params.rb
|
|
430
|
-
- lib/onyxcord/data/integration.rb
|
|
431
|
-
- lib/onyxcord/data/interaction.rb
|
|
432
|
-
- lib/onyxcord/data/invite.rb
|
|
433
|
-
- lib/onyxcord/data/member.rb
|
|
434
|
-
- lib/onyxcord/data/message.rb
|
|
435
|
-
- lib/onyxcord/data/message_activity.rb
|
|
436
|
-
- lib/onyxcord/data/overwrite.rb
|
|
437
|
-
- lib/onyxcord/data/poll.rb
|
|
438
|
-
- lib/onyxcord/data/primary_server.rb
|
|
439
|
-
- lib/onyxcord/data/profile.rb
|
|
440
|
-
- lib/onyxcord/data/reaction.rb
|
|
441
|
-
- lib/onyxcord/data/recipient.rb
|
|
442
|
-
- lib/onyxcord/data/role.rb
|
|
443
|
-
- lib/onyxcord/data/role_connection_data.rb
|
|
444
|
-
- lib/onyxcord/data/role_subscription.rb
|
|
445
|
-
- lib/onyxcord/data/scheduled_event.rb
|
|
446
|
-
- lib/onyxcord/data/server.rb
|
|
447
|
-
- lib/onyxcord/data/server_preview.rb
|
|
448
|
-
- lib/onyxcord/data/snapshot.rb
|
|
449
|
-
- lib/onyxcord/data/team.rb
|
|
450
|
-
- lib/onyxcord/data/timestamp.rb
|
|
451
|
-
- lib/onyxcord/data/user.rb
|
|
452
|
-
- lib/onyxcord/data/voice_region.rb
|
|
453
|
-
- lib/onyxcord/data/voice_state.rb
|
|
454
|
-
- lib/onyxcord/data/webhook.rb
|
|
455
|
-
- lib/onyxcord/errors.rb
|
|
456
|
-
- lib/onyxcord/event_executor.rb
|
|
404
|
+
- lib/onyxcord/core/bot/application_commands.rb
|
|
405
|
+
- lib/onyxcord/core/bot/awaits.rb
|
|
406
|
+
- lib/onyxcord/core/bot/invites.rb
|
|
407
|
+
- lib/onyxcord/core/bot/messaging.rb
|
|
408
|
+
- lib/onyxcord/core/bot/oauth.rb
|
|
409
|
+
- lib/onyxcord/core/bot/presence.rb
|
|
410
|
+
- lib/onyxcord/core/bot/runtime.rb
|
|
411
|
+
- lib/onyxcord/core/bot/voice.rb
|
|
412
|
+
- lib/onyxcord/core/configuration.rb
|
|
413
|
+
- lib/onyxcord/core/errors.rb
|
|
414
|
+
- lib/onyxcord/core/logger.rb
|
|
415
|
+
- lib/onyxcord/core/version.rb
|
|
457
416
|
- lib/onyxcord/events/await.rb
|
|
417
|
+
- lib/onyxcord/events/await/base.rb
|
|
418
|
+
- lib/onyxcord/events/ban/base.rb
|
|
419
|
+
- lib/onyxcord/events/ban/remove.rb
|
|
458
420
|
- lib/onyxcord/events/bans.rb
|
|
459
421
|
- lib/onyxcord/events/channels.rb
|
|
422
|
+
- lib/onyxcord/events/channels/base.rb
|
|
423
|
+
- lib/onyxcord/events/channels/delete.rb
|
|
424
|
+
- lib/onyxcord/events/channels/pins.rb
|
|
425
|
+
- lib/onyxcord/events/channels/recipients.rb
|
|
460
426
|
- lib/onyxcord/events/generic.rb
|
|
461
427
|
- lib/onyxcord/events/guilds.rb
|
|
428
|
+
- lib/onyxcord/events/guilds/audit_logs.rb
|
|
429
|
+
- lib/onyxcord/events/guilds/base.rb
|
|
430
|
+
- lib/onyxcord/events/guilds/emoji.rb
|
|
431
|
+
- lib/onyxcord/events/handlers/channels.rb
|
|
432
|
+
- lib/onyxcord/events/handlers/core.rb
|
|
433
|
+
- lib/onyxcord/events/handlers/guilds.rb
|
|
434
|
+
- lib/onyxcord/events/handlers/interactions.rb
|
|
435
|
+
- lib/onyxcord/events/handlers/lifetime.rb
|
|
436
|
+
- lib/onyxcord/events/handlers/messages.rb
|
|
437
|
+
- lib/onyxcord/events/handlers/presence.rb
|
|
438
|
+
- lib/onyxcord/events/handlers/raw.rb
|
|
439
|
+
- lib/onyxcord/events/handlers/reactions.rb
|
|
440
|
+
- lib/onyxcord/events/handlers/scheduled_events.rb
|
|
441
|
+
- lib/onyxcord/events/handlers/voice.rb
|
|
442
|
+
- lib/onyxcord/events/integration/base.rb
|
|
443
|
+
- lib/onyxcord/events/integration/create.rb
|
|
444
|
+
- lib/onyxcord/events/integration/delete.rb
|
|
445
|
+
- lib/onyxcord/events/integration/update.rb
|
|
462
446
|
- lib/onyxcord/events/integrations.rb
|
|
463
447
|
- lib/onyxcord/events/interactions.rb
|
|
448
|
+
- lib/onyxcord/events/interactions/application_commands.rb
|
|
449
|
+
- lib/onyxcord/events/interactions/autocomplete.rb
|
|
450
|
+
- lib/onyxcord/events/interactions/base.rb
|
|
451
|
+
- lib/onyxcord/events/interactions/components.rb
|
|
452
|
+
- lib/onyxcord/events/interactions/permissions.rb
|
|
453
|
+
- lib/onyxcord/events/invite/create.rb
|
|
454
|
+
- lib/onyxcord/events/invite/delete.rb
|
|
464
455
|
- lib/onyxcord/events/invites.rb
|
|
465
456
|
- lib/onyxcord/events/lifetime.rb
|
|
457
|
+
- lib/onyxcord/events/lifetime/base.rb
|
|
458
|
+
- lib/onyxcord/events/member/add.rb
|
|
459
|
+
- lib/onyxcord/events/member/base.rb
|
|
460
|
+
- lib/onyxcord/events/member/delete.rb
|
|
461
|
+
- lib/onyxcord/events/member/update.rb
|
|
466
462
|
- lib/onyxcord/events/members.rb
|
|
467
463
|
- lib/onyxcord/events/message.rb
|
|
464
|
+
- lib/onyxcord/events/message/base.rb
|
|
465
|
+
- lib/onyxcord/events/message/ids.rb
|
|
466
|
+
- lib/onyxcord/events/message/mentions.rb
|
|
467
|
+
- lib/onyxcord/events/message/updates.rb
|
|
468
|
+
- lib/onyxcord/events/poll/add.rb
|
|
469
|
+
- lib/onyxcord/events/poll/base.rb
|
|
470
|
+
- lib/onyxcord/events/poll/remove.rb
|
|
468
471
|
- lib/onyxcord/events/polls.rb
|
|
469
472
|
- lib/onyxcord/events/presence.rb
|
|
473
|
+
- lib/onyxcord/events/presence/playing.rb
|
|
474
|
+
- lib/onyxcord/events/presence/status.rb
|
|
470
475
|
- lib/onyxcord/events/raw.rb
|
|
476
|
+
- lib/onyxcord/events/raw/base.rb
|
|
471
477
|
- lib/onyxcord/events/reactions.rb
|
|
478
|
+
- lib/onyxcord/events/reactions/base.rb
|
|
479
|
+
- lib/onyxcord/events/reactions/clear.rb
|
|
480
|
+
- lib/onyxcord/events/role/create.rb
|
|
481
|
+
- lib/onyxcord/events/role/delete.rb
|
|
482
|
+
- lib/onyxcord/events/role/update.rb
|
|
472
483
|
- lib/onyxcord/events/roles.rb
|
|
473
484
|
- lib/onyxcord/events/scheduled_events.rb
|
|
485
|
+
- lib/onyxcord/events/scheduled_events/events.rb
|
|
486
|
+
- lib/onyxcord/events/scheduled_events/users.rb
|
|
487
|
+
- lib/onyxcord/events/thread/base.rb
|
|
488
|
+
- lib/onyxcord/events/thread/members.rb
|
|
489
|
+
- lib/onyxcord/events/thread/update.rb
|
|
474
490
|
- lib/onyxcord/events/threads.rb
|
|
475
491
|
- lib/onyxcord/events/typing.rb
|
|
492
|
+
- lib/onyxcord/events/typing/base.rb
|
|
493
|
+
- lib/onyxcord/events/voice/server_update.rb
|
|
494
|
+
- lib/onyxcord/events/voice/state_update.rb
|
|
476
495
|
- lib/onyxcord/events/voice_server_update.rb
|
|
477
496
|
- lib/onyxcord/events/voice_state_update.rb
|
|
497
|
+
- lib/onyxcord/events/webhook/update.rb
|
|
478
498
|
- lib/onyxcord/events/webhooks.rb
|
|
479
|
-
- lib/onyxcord/gateway.rb
|
|
480
|
-
- lib/onyxcord/
|
|
481
|
-
- lib/onyxcord/
|
|
482
|
-
- lib/onyxcord/
|
|
499
|
+
- lib/onyxcord/gateway/client.rb
|
|
500
|
+
- lib/onyxcord/interactions.rb
|
|
501
|
+
- lib/onyxcord/interactions/command.rb
|
|
502
|
+
- lib/onyxcord/interactions/context.rb
|
|
503
|
+
- lib/onyxcord/interactions/internal/application_command.rb
|
|
504
|
+
- lib/onyxcord/interactions/internal/message.rb
|
|
505
|
+
- lib/onyxcord/interactions/internal/metadata.rb
|
|
506
|
+
- lib/onyxcord/interactions/internal/option_builder.rb
|
|
507
|
+
- lib/onyxcord/interactions/internal/permission_builder.rb
|
|
508
|
+
- lib/onyxcord/interactions/option.rb
|
|
509
|
+
- lib/onyxcord/interactions/registry.rb
|
|
510
|
+
- lib/onyxcord/internal/async_runtime.rb
|
|
511
|
+
- lib/onyxcord/internal/event_bus.rb
|
|
512
|
+
- lib/onyxcord/internal/event_executor.rb
|
|
513
|
+
- lib/onyxcord/internal/gateway/opcodes.rb
|
|
514
|
+
- lib/onyxcord/internal/gateway/session.rb
|
|
515
|
+
- lib/onyxcord/internal/http.rb
|
|
516
|
+
- lib/onyxcord/internal/json.rb
|
|
517
|
+
- lib/onyxcord/internal/message_payload.rb
|
|
518
|
+
- lib/onyxcord/internal/rate_limiter/async_rest.rb
|
|
519
|
+
- lib/onyxcord/internal/rate_limiter/gateway.rb
|
|
520
|
+
- lib/onyxcord/internal/rate_limiter/rest.rb
|
|
521
|
+
- lib/onyxcord/internal/upload.rb
|
|
522
|
+
- lib/onyxcord/internal/websocket.rb
|
|
483
523
|
- lib/onyxcord/light.rb
|
|
484
524
|
- lib/onyxcord/light/data.rb
|
|
485
525
|
- lib/onyxcord/light/integrations.rb
|
|
486
526
|
- lib/onyxcord/light/light_bot.rb
|
|
487
|
-
- lib/onyxcord/
|
|
488
|
-
- lib/onyxcord/
|
|
489
|
-
- lib/onyxcord/
|
|
490
|
-
- lib/onyxcord/
|
|
491
|
-
- lib/onyxcord/
|
|
492
|
-
- lib/onyxcord/
|
|
493
|
-
- lib/onyxcord/
|
|
494
|
-
- lib/onyxcord/
|
|
527
|
+
- lib/onyxcord/models.rb
|
|
528
|
+
- lib/onyxcord/models/activity.rb
|
|
529
|
+
- lib/onyxcord/models/application.rb
|
|
530
|
+
- lib/onyxcord/models/attachment.rb
|
|
531
|
+
- lib/onyxcord/models/audit_logs.rb
|
|
532
|
+
- lib/onyxcord/models/avatar_decoration.rb
|
|
533
|
+
- lib/onyxcord/models/call.rb
|
|
534
|
+
- lib/onyxcord/models/channel.rb
|
|
535
|
+
- lib/onyxcord/models/channel_tag.rb
|
|
536
|
+
- lib/onyxcord/models/collectibles.rb
|
|
537
|
+
- lib/onyxcord/models/component.rb
|
|
538
|
+
- lib/onyxcord/models/embed.rb
|
|
539
|
+
- lib/onyxcord/models/emoji.rb
|
|
540
|
+
- lib/onyxcord/models/install_params.rb
|
|
541
|
+
- lib/onyxcord/models/integration.rb
|
|
542
|
+
- lib/onyxcord/models/interaction.rb
|
|
543
|
+
- lib/onyxcord/models/invite.rb
|
|
544
|
+
- lib/onyxcord/models/member.rb
|
|
545
|
+
- lib/onyxcord/models/message.rb
|
|
546
|
+
- lib/onyxcord/models/message_activity.rb
|
|
547
|
+
- lib/onyxcord/models/overwrite.rb
|
|
548
|
+
- lib/onyxcord/models/poll.rb
|
|
549
|
+
- lib/onyxcord/models/primary_server.rb
|
|
550
|
+
- lib/onyxcord/models/profile.rb
|
|
551
|
+
- lib/onyxcord/models/reaction.rb
|
|
552
|
+
- lib/onyxcord/models/recipient.rb
|
|
553
|
+
- lib/onyxcord/models/role.rb
|
|
554
|
+
- lib/onyxcord/models/role_connection_data.rb
|
|
555
|
+
- lib/onyxcord/models/role_subscription.rb
|
|
556
|
+
- lib/onyxcord/models/scheduled_event.rb
|
|
557
|
+
- lib/onyxcord/models/server.rb
|
|
558
|
+
- lib/onyxcord/models/server_preview.rb
|
|
559
|
+
- lib/onyxcord/models/snapshot.rb
|
|
560
|
+
- lib/onyxcord/models/team.rb
|
|
561
|
+
- lib/onyxcord/models/timestamp.rb
|
|
562
|
+
- lib/onyxcord/models/user.rb
|
|
563
|
+
- lib/onyxcord/models/voice_region.rb
|
|
564
|
+
- lib/onyxcord/models/voice_state.rb
|
|
565
|
+
- lib/onyxcord/models/webhook.rb
|
|
566
|
+
- lib/onyxcord/rest/client.rb
|
|
567
|
+
- lib/onyxcord/rest/routes/application.rb
|
|
568
|
+
- lib/onyxcord/rest/routes/channel.rb
|
|
569
|
+
- lib/onyxcord/rest/routes/channel/base.rb
|
|
570
|
+
- lib/onyxcord/rest/routes/channel/groups.rb
|
|
571
|
+
- lib/onyxcord/rest/routes/channel/messages.rb
|
|
572
|
+
- lib/onyxcord/rest/routes/channel/permissions.rb
|
|
573
|
+
- lib/onyxcord/rest/routes/channel/pins.rb
|
|
574
|
+
- lib/onyxcord/rest/routes/channel/polls.rb
|
|
575
|
+
- lib/onyxcord/rest/routes/channel/reactions.rb
|
|
576
|
+
- lib/onyxcord/rest/routes/channel/threads.rb
|
|
577
|
+
- lib/onyxcord/rest/routes/channel/webhooks.rb
|
|
578
|
+
- lib/onyxcord/rest/routes/interaction.rb
|
|
579
|
+
- lib/onyxcord/rest/routes/interaction/base.rb
|
|
580
|
+
- lib/onyxcord/rest/routes/interaction/response.rb
|
|
581
|
+
- lib/onyxcord/rest/routes/invite.rb
|
|
582
|
+
- lib/onyxcord/rest/routes/server.rb
|
|
583
|
+
- lib/onyxcord/rest/routes/server/admin.rb
|
|
584
|
+
- lib/onyxcord/rest/routes/server/assets.rb
|
|
585
|
+
- lib/onyxcord/rest/routes/server/bans.rb
|
|
586
|
+
- lib/onyxcord/rest/routes/server/base.rb
|
|
587
|
+
- lib/onyxcord/rest/routes/server/channels.rb
|
|
588
|
+
- lib/onyxcord/rest/routes/server/emoji.rb
|
|
589
|
+
- lib/onyxcord/rest/routes/server/members.rb
|
|
590
|
+
- lib/onyxcord/rest/routes/server/messages.rb
|
|
591
|
+
- lib/onyxcord/rest/routes/server/roles.rb
|
|
592
|
+
- lib/onyxcord/rest/routes/server/scheduled_events.rb
|
|
593
|
+
- lib/onyxcord/rest/routes/user.rb
|
|
594
|
+
- lib/onyxcord/rest/routes/webhook.rb
|
|
595
|
+
- lib/onyxcord/utils/allowed_mentions.rb
|
|
596
|
+
- lib/onyxcord/utils/colour_rgb.rb
|
|
597
|
+
- lib/onyxcord/utils/id_object.rb
|
|
598
|
+
- lib/onyxcord/utils/message_components.rb
|
|
599
|
+
- lib/onyxcord/utils/paginator.rb
|
|
600
|
+
- lib/onyxcord/utils/permissions.rb
|
|
601
|
+
- lib/onyxcord/utils/timestamp.rb
|
|
602
|
+
- lib/onyxcord/voice/client.rb
|
|
495
603
|
- lib/onyxcord/voice/encoder.rb
|
|
496
604
|
- lib/onyxcord/voice/network.rb
|
|
605
|
+
- lib/onyxcord/voice/network/udp.rb
|
|
606
|
+
- lib/onyxcord/voice/network/websocket.rb
|
|
497
607
|
- lib/onyxcord/voice/opcodes.rb
|
|
498
608
|
- lib/onyxcord/voice/sodium.rb
|
|
499
609
|
- lib/onyxcord/voice/timer.rb
|
|
500
|
-
- lib/onyxcord/voice/voice_bot.rb
|
|
501
610
|
- lib/onyxcord/webhooks.rb
|
|
502
611
|
- lib/onyxcord/webhooks/builder.rb
|
|
503
612
|
- lib/onyxcord/webhooks/client.rb
|
|
504
613
|
- lib/onyxcord/webhooks/embeds.rb
|
|
505
614
|
- lib/onyxcord/webhooks/modal.rb
|
|
615
|
+
- lib/onyxcord/webhooks/modal/group_builder.rb
|
|
616
|
+
- lib/onyxcord/webhooks/modal/label_builder.rb
|
|
506
617
|
- lib/onyxcord/webhooks/version.rb
|
|
507
618
|
- lib/onyxcord/webhooks/view.rb
|
|
508
|
-
- lib/onyxcord/
|
|
509
|
-
- onyxcord.
|
|
619
|
+
- lib/onyxcord/webhooks/view/container_builder.rb
|
|
620
|
+
- lib/onyxcord/webhooks/view/file_builder.rb
|
|
621
|
+
- lib/onyxcord/webhooks/view/media_gallery_builder.rb
|
|
622
|
+
- lib/onyxcord/webhooks/view/row_builder.rb
|
|
623
|
+
- lib/onyxcord/webhooks/view/section_builder.rb
|
|
624
|
+
- lib/onyxcord/webhooks/view/select_menu_builder.rb
|
|
625
|
+
- lib/onyxcord/webhooks/view/separator_builder.rb
|
|
626
|
+
- lib/onyxcord/webhooks/view/text_display_builder.rb
|
|
510
627
|
homepage: https://github.com/kruldevb/OnyxCord
|
|
511
628
|
licenses:
|
|
512
629
|
- MIT
|
|
@@ -530,7 +647,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
530
647
|
- !ruby/object:Gem::Version
|
|
531
648
|
version: '0'
|
|
532
649
|
requirements: []
|
|
533
|
-
rubygems_version:
|
|
650
|
+
rubygems_version: 3.6.9
|
|
534
651
|
specification_version: 4
|
|
535
652
|
summary: Discord API for Ruby with Components V2 support
|
|
536
653
|
test_files: []
|
data/.github/CONTRIBUTING.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Contributing guidelines
|
|
2
|
-
|
|
3
|
-
Any contributions are very much appreciated! This project is relatively relaxed when it comes to guidelines, however
|
|
4
|
-
there are still some things that would be nice to have considered.
|
|
5
|
-
|
|
6
|
-
For bug reports, please try to include a code sample if at all appropriate for
|
|
7
|
-
the issue, so we can reproduce it on our own machines.
|
|
8
|
-
|
|
9
|
-
For PRs, please make sure that you tested your code before every push; it's a little annoying to keep having to get back
|
|
10
|
-
to a PR because of small avoidable oversights. (Huge bonus points if you're adding specs for your code! This project
|
|
11
|
-
has very few specs in places where it should have more so every added spec is very much appreciated.)
|
|
12
|
-
|
|
13
|
-
If you have any questions at all, don't be afraid to ask in the [onyxcord channel on Discord](https://discord.gg/cyK3Hjm).
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Report a bug to help us improve the library
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Summary
|
|
7
|
-
|
|
8
|
-
<!---
|
|
9
|
-
First, please check to see that another issue or pull request (open or closed)
|
|
10
|
-
already addresses the problem you are facing. If you are not sure, please ask
|
|
11
|
-
in the Discord channel (link below).
|
|
12
|
-
|
|
13
|
-
Describe the bug you are encountering with as much detail as you can.
|
|
14
|
-
If you are not sure if a small detail is relevant, include it anyways!
|
|
15
|
-
|
|
16
|
-
Include simple code examples that will reproduce the bug.
|
|
17
|
-
Include any exceptions you are encountering in your logs, including
|
|
18
|
-
the initial error message and the backtrace that follows.
|
|
19
|
-
|
|
20
|
-
Stuck or need help? Join the Discord! https://discord.gg/cyK3Hjm
|
|
21
|
-
-->
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Environment
|
|
26
|
-
|
|
27
|
-
<!---
|
|
28
|
-
These are some commands to run to give us basic information about
|
|
29
|
-
your Ruby environment. Some issues may be version, OS, or hardware specific.
|
|
30
|
-
--->
|
|
31
|
-
|
|
32
|
-
**Ruby version:**
|
|
33
|
-
|
|
34
|
-
<!--- Paste full output of `ruby -v` here --->
|
|
35
|
-
|
|
36
|
-
**OnyxCord version:**
|
|
37
|
-
|
|
38
|
-
<!--- Paste full output of `gem list onyxcord` or `bundle list onyxcord` here --->
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature Request
|
|
3
|
-
about: Request a new feature, or change an existing one
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
<!---
|
|
7
|
-
Describe your feature request in as much detail as you can here.
|
|
8
|
-
|
|
9
|
-
Include why you want this feature. For example:
|
|
10
|
-
|
|
11
|
-
- It is a feature supported by Discord's API, but missing from the library
|
|
12
|
-
|
|
13
|
-
- It is a feature that would simplify a lot of your bots code
|
|
14
|
-
|
|
15
|
-
- It is a feature present in other popular Discord libraries
|
|
16
|
-
|
|
17
|
-
Include simple code examples (pseudocode is fine) that demonstrate
|
|
18
|
-
what you want to do.
|
|
19
|
-
|
|
20
|
-
Do your best to think about how this new feature would impact the code
|
|
21
|
-
of other people who use onyxcord, and not just your own bot's codebase.
|
|
22
|
-
|
|
23
|
-
Stuck or need help? Join the Discord! https://discord.gg/cyK3Hjm
|
|
24
|
-
--->
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Summary
|
|
2
|
-
|
|
3
|
-
<!---
|
|
4
|
-
Describe the general goal of your pull request here:
|
|
5
|
-
|
|
6
|
-
- Include details about any issues you encountered that inspired
|
|
7
|
-
the pull request, such as bugs or missing features.
|
|
8
|
-
|
|
9
|
-
- If adding or changing features, include a small example that showcases
|
|
10
|
-
the new behavior.
|
|
11
|
-
|
|
12
|
-
- Reference any related issues or pull requests.
|
|
13
|
-
|
|
14
|
-
Stuck or need help? Join the Discord! https://discord.gg/cyK3Hjm
|
|
15
|
-
--->
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
<!---
|
|
20
|
-
List each individual change you made to the library here in the appropriate
|
|
21
|
-
section in short, bulleted sentences.
|
|
22
|
-
|
|
23
|
-
This will aid in reviewing your pull request, and for adding it to the
|
|
24
|
-
changelog later.
|
|
25
|
-
|
|
26
|
-
You may remove sections that have no items if you want.
|
|
27
|
-
--->
|
|
28
|
-
|
|
29
|
-
## Added
|
|
30
|
-
|
|
31
|
-
## Changed
|
|
32
|
-
|
|
33
|
-
## Deprecated
|
|
34
|
-
|
|
35
|
-
## Removed
|
|
36
|
-
|
|
37
|
-
## Fixed
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main]
|
|
6
|
-
pull_request:
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
# --- Test on multiple Ruby versions ---
|
|
10
|
-
test:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
strategy:
|
|
13
|
-
matrix:
|
|
14
|
-
ruby: [3.3, 3.4, 4.0]
|
|
15
|
-
container:
|
|
16
|
-
image: ruby:${{ matrix.ruby }}-alpine
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v4
|
|
19
|
-
- name: Install OS packages
|
|
20
|
-
run: apk add git build-base ruby-dev libsodium-dev
|
|
21
|
-
- name: Cache bundle
|
|
22
|
-
uses: actions/cache@v4
|
|
23
|
-
with:
|
|
24
|
-
path: vendor/bundle
|
|
25
|
-
key: bundle-${{ hashFiles('Gemfile', 'onyxcord.gemspec') }}-${{ matrix.ruby }}
|
|
26
|
-
restore-keys: |
|
|
27
|
-
bundle-${{ matrix.ruby }}
|
|
28
|
-
- name: Install dependencies
|
|
29
|
-
run: bundle config set path vendor/bundle && bundle install
|
|
30
|
-
- name: Run RSpec
|
|
31
|
-
run: |
|
|
32
|
-
mkdir -p rspec
|
|
33
|
-
bundle exec rspec --format progress --format RspecJunitFormatter -o rspec/rspec.xml
|
|
34
|
-
- name: Upload test results
|
|
35
|
-
uses: actions/upload-artifact@v4
|
|
36
|
-
with:
|
|
37
|
-
name: rspec-results-${{ matrix.ruby }}
|
|
38
|
-
path: rspec/rspec.xml
|
|
39
|
-
|
|
40
|
-
# --- Rubocop ---
|
|
41
|
-
rubocop:
|
|
42
|
-
runs-on: ubuntu-latest
|
|
43
|
-
container:
|
|
44
|
-
image: ruby:3.3-alpine
|
|
45
|
-
steps:
|
|
46
|
-
- uses: actions/checkout@v4
|
|
47
|
-
- name: Install OS packages
|
|
48
|
-
run: apk add git build-base ruby-dev libsodium-dev
|
|
49
|
-
- name: Cache bundle
|
|
50
|
-
uses: actions/cache@v4
|
|
51
|
-
with:
|
|
52
|
-
path: vendor/bundle
|
|
53
|
-
key: bundle-${{ hashFiles('Gemfile', 'onyxcord.gemspec') }}-rubocop
|
|
54
|
-
- name: Install dependencies
|
|
55
|
-
run: bundle config set path vendor/bundle && bundle install
|
|
56
|
-
- name: Run Rubocop
|
|
57
|
-
run: bundle exec rubocop
|
|
58
|
-
|
|
59
|
-
# --- Generate YARD docs ---
|
|
60
|
-
yard:
|
|
61
|
-
runs-on: ubuntu-latest
|
|
62
|
-
container:
|
|
63
|
-
image: ruby:3.3-alpine
|
|
64
|
-
steps:
|
|
65
|
-
- uses: actions/checkout@v4
|
|
66
|
-
- name: Install OS packages
|
|
67
|
-
run: apk add git build-base ruby-dev libsodium-dev
|
|
68
|
-
- name: Cache bundle
|
|
69
|
-
uses: actions/cache@v4
|
|
70
|
-
with:
|
|
71
|
-
path: vendor/bundle
|
|
72
|
-
key: bundle-${{ hashFiles('Gemfile', 'onyxcord.gemspec') }}-yard
|
|
73
|
-
- name: Install dependencies
|
|
74
|
-
run: bundle config set path vendor/bundle && bundle install
|
|
75
|
-
- name: Run YARD
|
|
76
|
-
run: |
|
|
77
|
-
mkdir -p docs
|
|
78
|
-
bundle exec yard --output-dir docs
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
name: "CodeQL"
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ 'main' ]
|
|
6
|
-
pull_request:
|
|
7
|
-
# The branches below must be a subset of the branches above
|
|
8
|
-
branches: [ 'main' ]
|
|
9
|
-
schedule:
|
|
10
|
-
- cron: '29 6 * * 5'
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
analyze:
|
|
14
|
-
name: Analyze
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
permissions:
|
|
17
|
-
actions: read
|
|
18
|
-
contents: read
|
|
19
|
-
security-events: write
|
|
20
|
-
|
|
21
|
-
strategy:
|
|
22
|
-
fail-fast: false
|
|
23
|
-
matrix:
|
|
24
|
-
language: [ 'ruby' ]
|
|
25
|
-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
|
26
|
-
# Use only 'java' to analyze code written in Java, Kotlin or both
|
|
27
|
-
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
|
|
28
|
-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
29
|
-
|
|
30
|
-
steps:
|
|
31
|
-
- name: Checkout repository
|
|
32
|
-
uses: actions/checkout@v3
|
|
33
|
-
|
|
34
|
-
# Initializes the CodeQL tools for scanning.
|
|
35
|
-
- name: Initialize CodeQL
|
|
36
|
-
uses: github/codeql-action/init@v3
|
|
37
|
-
with:
|
|
38
|
-
languages: ${{ matrix.language }}
|
|
39
|
-
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
40
|
-
# By default, queries listed here will override any specified in a config file.
|
|
41
|
-
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
42
|
-
|
|
43
|
-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
44
|
-
# queries: security-extended,security-and-quality
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
|
48
|
-
# If this step fails, then you should remove it and run the build manually (see below)
|
|
49
|
-
- name: Autobuild
|
|
50
|
-
uses: github/codeql-action/autobuild@v3
|
|
51
|
-
|
|
52
|
-
# ℹ️ Command-line programs to run using the OS shell.
|
|
53
|
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
54
|
-
|
|
55
|
-
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
56
|
-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
57
|
-
|
|
58
|
-
# - run: |
|
|
59
|
-
# echo "Run, Build Application using script"
|
|
60
|
-
# ./location_of_script_within_repo/buildscript.sh
|
|
61
|
-
|
|
62
|
-
- name: Perform CodeQL Analysis
|
|
63
|
-
uses: github/codeql-action/analyze@v3
|
|
64
|
-
with:
|
|
65
|
-
category: "/language:${{matrix.language}}"
|