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 +4 -4
- data/lib/rancour/interaction/embed.rb +4 -3
- data/lib/rancour/interaction/message_response.rb +1 -1
- data/lib/rancour/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5bf49bebc0d6516633d10eaf5d154a1a7bf7df683c7cf5406745a642eadced9
|
4
|
+
data.tar.gz: b67fde244d16d33eba13a4a7b678f804c268b89c44e96748e17bf8be13f62dd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
:
|
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] =
|
58
|
+
output[:color] = color unless color.nil?
|
58
59
|
|
59
60
|
@children&.each { |type, entry| output[type] = entry.to_h }
|
60
61
|
end
|
data/lib/rancour/version.rb
CHANGED
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.
|
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:
|
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.
|
83
|
+
rubygems_version: 3.6.8
|
84
84
|
specification_version: 4
|
85
85
|
summary: A simple Discord wrapper
|
86
86
|
test_files: []
|