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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30ab900742443c8552b97aa4d2a90c3ccd8caef0c74630ccfbd477e95ba0b250
4
- data.tar.gz: af84a0ac8507a3cba1cdb2c94f24de381a183d0e934ed0458df447804ae6bf40
3
+ metadata.gz: 48d2c8e46a2b9da91c5e60313e00bc15fb03d80d60cb08528680e4e848739194
4
+ data.tar.gz: bf4357fef270f6c86fa344352d9d1267a8e7ca6aa9a66589de36ec9ea1e86a63
5
5
  SHA512:
6
- metadata.gz: c81505c21d6f84c76cbe48376803c0ccae18bd33c8d9bc9ac6ddf48935f1f1c2d0fa901696df453186acc5b457f5a432e0a1302ce6a2545c2a23678d6169c8d4
7
- data.tar.gz: f0cfe6e84ae69cd957e3538a679cd856199f31282741d5fe2ba16c3202fd70e528424c56ca96a07f5a65d2a6e9d587419000d6268f5b338825bdc63c0fd2e36f
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
@@ -3,5 +3,5 @@
3
3
  # OnyxCord and all its functionality, in this case only the version.
4
4
  module OnyxCord
5
5
  # The current version of onyxcord.
6
- VERSION = '1.1.5'
6
+ VERSION = '1.1.6'
7
7
  end
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.5
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.4
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.4
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: 3.6.9
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: []