rubydium 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: c2e2772c99fcea22c7e44bf38e1f627f15e82c7e40f7d7098a0274899e1f6f96
4
- data.tar.gz: acfaf6eab26a496487dc3ad068d94ee32fea757013e7b7f417488df5e1bc77f5
3
+ metadata.gz: 538f8c4319a7140a96ed04555a91ddd99aaa9f0d93125c5c9a612cffd8077765
4
+ data.tar.gz: e8c0e25a5c1c3de5ff22065d09f40daea053c98856606d615f660e07083ea47a
5
5
  SHA512:
6
- metadata.gz: e5433732515339715ffce7a6a0a42c4fc16f305482605b2f7fe5021e76be5d95a32ecc70858d0f9685c874fa18e342b7eaa681e3ba658ae7d580041999e654da
7
- data.tar.gz: 824cbea37e25519b5c3d1a1d1f845d1c4bd6c5eb52a29c9ecea6387302e4506055f6780492def00b594caf84ba81a1a1ed2ed6ef7c272fcd14c0fcd276cc12fe
6
+ metadata.gz: 202c749e8eb3a522c06b3af886b409512fa005eee587bd4a6fcb53be4ac895e04727c8ab5471962a6a4a1433dd5bdaddecf2835a110ffed67c90dc66487236c4
7
+ data.tar.gz: 7ebbfe846222ff22ca618ef8ee2f7309c0b8529bd9d9571911011473a0bf0d24a564ce63b5bba40262558d4f8e1d533927d6f9972f5d70bd102ff09bba25c893
data/lib/rubydium/bot.rb CHANGED
@@ -52,12 +52,6 @@ module Rubydium
52
52
 
53
53
  private
54
54
 
55
- def help_message
56
- self.class.registered_commands.map { |command, info|
57
- "#{command} - #{info[:description]}"
58
- }.join("\n")
59
- end
60
-
61
55
  # For example:
62
56
  # "/start asdf", "/start@yourbot", "/start /another", "asdf /start" will all return "/start".
63
57
  def get_command(text)
@@ -38,6 +38,12 @@ module Rubydium
38
38
  end
39
39
  end
40
40
 
41
+ def help_message
42
+ registered_commands.map { |command, info|
43
+ "#{command} - #{info[:description]}"
44
+ }.join("\n")
45
+ end
46
+
41
47
  def on_mention(method_name=nil, ignore_forwarded: true, &block)
42
48
  @registered_on_mention ||= []
43
49
  action = (method_name || block)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubydium
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubydium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bulgakke