rancour 0.2 → 0.3

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: fc3119655a33ebf4adf688f896205fdbffd29f887cb436321b3686a34aa65e7d
4
- data.tar.gz: 3640c3ce83ca27e102bde39dd74e2faee510c14532f15ac4af2b562d043cfcba
3
+ metadata.gz: d5bf49bebc0d6516633d10eaf5d154a1a7bf7df683c7cf5406745a642eadced9
4
+ data.tar.gz: b67fde244d16d33eba13a4a7b678f804c268b89c44e96748e17bf8be13f62dd4
5
5
  SHA512:
6
- metadata.gz: 6d864bcd094602c6fdff65f7f32ec4d3e3aa2c830a6c9c745e56028bc0dbc545aada3688201f0b251d1fb72dc9c5927f143345ceb359d264cf9b0b9c771e3e12
7
- data.tar.gz: 9b8f84b330a36d3328a363c521e0ed4ebae3c2790df74dcd05e3ab5f22166ba4d8e6ddc467639dbbd400e35f8bc7029ffbd52481fee4ba81d015e67b7f25e28b
6
+ metadata.gz: 32492d23a2ab90bcc1925f23f9b79e1fbf833f1c21d69d363383f3cd2c947be88210518647ccc65b7043803e832c903ca98ee0567e9769af9e1b0b8a3316c449
7
+ data.tar.gz: 73bd1032d4a31d8eeac2cd92db850ec119b69988a1b89c73955a22091e51b852aa0700aa2c1494ecc8d6bde27c0d1df051ba724e05fdce3db13dde1f74b998b3
@@ -16,14 +16,15 @@ module Rancour
16
16
  :description,
17
17
  :url,
18
18
  :timestamp,
19
- :colour
19
+ :color
20
20
 
21
- def initialize(title: nil, description: nil, url: nil, type: RICH, timestamp: nil)
21
+ def initialize(title: nil, description: nil, url: nil, type: RICH, timestamp: nil, color: nil)
22
22
  self.title = title
23
23
  self.description = description
24
24
  self.url = url
25
25
  self.type = type
26
26
  self.timestamp = timestamp
27
+ self.color = color
27
28
 
28
29
  @children = {}
29
30
  end
@@ -54,7 +55,7 @@ module Rancour
54
55
  output[:title] = title unless title.nil?
55
56
  output[:description] = description unless description.nil?
56
57
  output[:url] = url unless url.nil?
57
- output[:color] = colour unless colour.nil?
58
+ output[:color] = color unless color.nil?
58
59
 
59
60
  @children&.each { |type, entry| output[type] = entry.to_h }
60
61
  end
@@ -5,7 +5,7 @@ module Rancour
5
5
  class MessageResponse < Response
6
6
  extend Forwardable
7
7
 
8
- def_delegators :@data, :add_embed
8
+ def_delegators :@data, :add_embed, :content=
9
9
 
10
10
  def initialize
11
11
  super(type: CHANNEL_MESSAGE_WITH_SOURCE, data: Message.new)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rancour
4
- VERSION = 0.2
4
+ VERSION = 0.3
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rancour
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bogan
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ed25519
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubygems_version: 3.6.2
83
+ rubygems_version: 3.6.8
84
84
  specification_version: 4
85
85
  summary: A simple Discord wrapper
86
86
  test_files: []