lita-discord_oauth 0.1.2.alpha.81 → 0.1.2.alpha.82
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/discord_help.rb +7 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cb52cdf0b591ec14a630525a7e3082cddfb609a
|
4
|
+
data.tar.gz: bcee836436f64912626a0ec13aae016291baf175
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20b8f8c2b74b419e3217e58f69206c443124797a7d07a53443ecced7e51c5ead147608ec3ff8d77efeec7fc1b63c38e78b23be651b1f562c58839818ab76ae23
|
7
|
+
data.tar.gz: 17faaaff63fbcd399f4e2745db0dc622b9df29939efd329ef0b3d923f9e40dc008ac2dfed905867812690b0c65324f3b3a4b2650aab61e3094e8c3ab135f1f16
|
@@ -49,8 +49,8 @@ module Lita
|
|
49
49
|
|
50
50
|
Lita.logger.debug("Part: #{part}")
|
51
51
|
#FIXME: second part is not pushed to array
|
52
|
-
messages.push('This is a debug string!')
|
53
52
|
messages.push(part)
|
53
|
+
messages.push('This is a debug string!')
|
54
54
|
message_copy.slice!(part)
|
55
55
|
end
|
56
56
|
end
|
@@ -61,12 +61,12 @@ module Lita
|
|
61
61
|
def get_message_part(message, limit)
|
62
62
|
Lita.logger.debug("Getting message part from #{message}")
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
64
|
+
if message.length <= limit
|
65
|
+
Lita.logger.debug('Message was short enough, returning without modifications')
|
66
|
+
return message
|
67
|
+
end
|
68
68
|
|
69
|
-
return message if message.length <= limit # No need to check anything if the message is short enough
|
69
|
+
# return message if message.length <= limit # No need to check anything if the message is short enough
|
70
70
|
|
71
71
|
part = message.to_s[0...limit - 1]
|
72
72
|
break_index = part.rindex("\n")
|
@@ -107,7 +107,7 @@ module Lita
|
|
107
107
|
value_text = "#{value_text}\n" + ''.ljust(key_width + 1, ' ') + "#{value_line}"
|
108
108
|
end
|
109
109
|
|
110
|
-
key_text + value_text
|
110
|
+
key_text + value_text + "\n"
|
111
111
|
end
|
112
112
|
|
113
113
|
# Checks if the user is authorized to at least one of the given groups.
|