lita-discord_oauth 0.1.2.alpha.79 → 0.1.2.alpha.80

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aee0151494c8d3c36bdf9ea10381e00b98cdf482
4
- data.tar.gz: fb3f4dc0cce224f1de827b6074d7acef2a0e5b87
3
+ metadata.gz: 2b6a08aff29771bde3f0b3020c03a5c24f0cc2d4
4
+ data.tar.gz: f9bbc1adca471c5d9d84c4ed6b5f8a6bf43cbf0c
5
5
  SHA512:
6
- metadata.gz: adbe3167252c5c044474070dd1ede2b8d433618134b05bb06be7c383388a2d61c64e3a20c125f61b4117356203a52e52656a1d638f355f25385c8e385e216b6f
7
- data.tar.gz: 5ddc075e52a0f1761a0d382e0761f6a50eab86fbead42a016fb6c3cdea4b4c05ef962f48a7c5caeddafafd0af02f2e2d109c1163711d9797b6a8947c76bcb0d1
6
+ metadata.gz: 8081fabf4e9bdde8eb8310ede6b1e84f27f7134159058ac472e1a845f65398ceee97a00faee7cb2f6897e8fb9752024f47d345a327c5a40c372a26ee65e65901
7
+ data.tar.gz: 285689b04e2f4a896f76e1828e3683ed7e6a84911f3effd78a11e1a5dc3dc0d00302094b4f2f26c5f8eecc40026a15f00815fb750f8bce1b054badfc8d0c60cb
@@ -24,15 +24,7 @@ module Lita
24
24
  messages = split_message(output)
25
25
 
26
26
  messages.each do |message|
27
- if message[0...3] != '```'
28
- message = '```' + "\n" + message
29
- end
30
-
31
- if message[-3] != '```'
32
- message = message + "\n" + '```'
33
- end
34
-
35
- response.reply_privately(message)
27
+ response.reply_privately("```\n#{message}\n```")
36
28
  end
37
29
 
38
30
  if messages.length > 1
@@ -56,7 +48,7 @@ module Lita
56
48
  part = get_message_part(message_copy, max_length)
57
49
 
58
50
  Lita.logger.debug("Part: #{part}")
59
-
51
+ #FIXME: second part is not pushed to array
60
52
  messages.push(part)
61
53
  message_copy.slice!(part)
62
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-discord_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.alpha.79
4
+ version: 0.1.2.alpha.80
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cas Eliëns