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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d10639eb8757ce4c24961a5d8dfadbf8db1e8845
4
- data.tar.gz: cff9c9cf420a8c062079fb38e6fe5dfad39b0a10
3
+ metadata.gz: 4cb52cdf0b591ec14a630525a7e3082cddfb609a
4
+ data.tar.gz: bcee836436f64912626a0ec13aae016291baf175
5
5
  SHA512:
6
- metadata.gz: 0be8ce434e800a1f63c4c5cf0defe8bf29e51baa8ffd8faf4ce3d24c20edcf3f635837d41d44d94a54ba61bc3cff8eb064d9e41b55ca7b13913428dff976d11e
7
- data.tar.gz: b79f870aa237dc9a998ea5947907b75d0ff14148f6c59aad74d3c39e4a7699b11c1b00115c57e0ee1761db4708fd92a4a9ea80ed1d7751d342271edd0a60bf8b
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
- # if message.length <= limit
65
- # Lita.logger.debug('Message was short enough, returning it without modifications')
66
- # return message
67
- # end
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.
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.81
4
+ version: 0.1.2.alpha.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cas Eliëns