onyxcord 1.1.5 → 1.1.6
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/CHANGELOG.md +15 -0
- data/lib/onyxcord/data/component.rb +8 -0
- data/lib/onyxcord/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48d2c8e46a2b9da91c5e60313e00bc15fb03d80d60cb08528680e4e848739194
|
|
4
|
+
data.tar.gz: bf4357fef270f6c86fa344352d9d1267a8e7ca6aa9a66589de36ec9ea1e86a63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b4b4fbe09bc0f5eab3104a3147947f600e2089406703c694d0ac1e090d6341af08f18581d8ba7d63f6773fb21d0cf74547bf5abf7204735de3d40a454cec231
|
|
7
|
+
data.tar.gz: 00b65d5043ccb3c265721d07acac65142c0a640bb9b4937049040c28fc23ae6ccb50fb2e92ca009a276e333856757897802a519cedfbc0ca19d3257b08bca675
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.6 - 2026-06-28
|
|
4
|
+
|
|
5
|
+
### Melhorias
|
|
6
|
+
|
|
7
|
+
- Adicionado suporte aos novos componentes de modal do Discord: `Label`, `File Upload`, `Radio Group`, `Checkbox Group` e `Checkbox`.
|
|
8
|
+
- Modais agora preservam o `id` do componente `Label` ao gerar o payload.
|
|
9
|
+
- Parser de componentes agora expoe `label` e `description` em `Components::Label`.
|
|
10
|
+
|
|
11
|
+
### Validacao
|
|
12
|
+
|
|
13
|
+
- `bundle exec rspec spec/components_v2_spec.rb`: 15 exemplos, 0 falhas.
|
|
14
|
+
- `ruby -c lib/onyxcord/webhooks/modal.rb`: sucesso.
|
|
15
|
+
- `ruby -c lib/onyxcord/data/component.rb`: sucesso.
|
|
16
|
+
- `ruby -c spec/components_v2_spec.rb`: sucesso.
|
|
17
|
+
|
|
3
18
|
## 1.1.5 - 2026-06-28
|
|
4
19
|
|
|
5
20
|
### Melhorias
|
|
@@ -488,6 +488,12 @@ module OnyxCord
|
|
|
488
488
|
# @return [Integer] the numeric identifier of the label.
|
|
489
489
|
attr_reader :id
|
|
490
490
|
|
|
491
|
+
# @return [String] the visible label text for the modal component.
|
|
492
|
+
attr_reader :label
|
|
493
|
+
|
|
494
|
+
# @return [String, nil] the optional description text for the label.
|
|
495
|
+
attr_reader :description
|
|
496
|
+
|
|
491
497
|
# @return [Component] the interactive component of the label.
|
|
492
498
|
attr_reader :component
|
|
493
499
|
|
|
@@ -495,6 +501,8 @@ module OnyxCord
|
|
|
495
501
|
def initialize(data, bot)
|
|
496
502
|
@bot = bot
|
|
497
503
|
@id = data['id']
|
|
504
|
+
@label = data['label']
|
|
505
|
+
@description = data['description']
|
|
498
506
|
@component = Components.from_data(data['component'], @bot)
|
|
499
507
|
end
|
|
500
508
|
end
|
data/lib/onyxcord/version.rb
CHANGED
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: 1.1.
|
|
4
|
+
version: 1.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gustavo Silva
|
|
@@ -109,14 +109,14 @@ dependencies:
|
|
|
109
109
|
requirements:
|
|
110
110
|
- - "~>"
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
|
-
version: 1.1.
|
|
112
|
+
version: 1.1.6
|
|
113
113
|
type: :runtime
|
|
114
114
|
prerelease: false
|
|
115
115
|
version_requirements: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements:
|
|
117
117
|
- - "~>"
|
|
118
118
|
- !ruby/object:Gem::Version
|
|
119
|
-
version: 1.1.
|
|
119
|
+
version: 1.1.6
|
|
120
120
|
- !ruby/object:Gem::Dependency
|
|
121
121
|
name: bundler
|
|
122
122
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -441,7 +441,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
441
441
|
- !ruby/object:Gem::Version
|
|
442
442
|
version: '0'
|
|
443
443
|
requirements: []
|
|
444
|
-
rubygems_version:
|
|
444
|
+
rubygems_version: 4.0.15
|
|
445
445
|
specification_version: 4
|
|
446
446
|
summary: Discord API for Ruby with Components V2 support
|
|
447
447
|
test_files: []
|