botbase-module-alias 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/botbase-module-alias.rb +9 -7
- metadata +27 -24
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 34b3a6d286b02f652799379dd11641451ebef01905c1426f91251fa44901a0f4
|
4
|
+
data.tar.gz: 9e0533d6ed868cbbdcf9bf9912e967633f9ce3c7cad16a6c8650650e018839e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2a6b4dfc6bcff137b8132a659ea8207c3383c1781739d198a0eee674ada4c67f3c134702c66a7c20d3ed7f5e63d27038a6ab8dca1c85b4ffd2d3b334fe887d2
|
7
|
+
data.tar.gz: 8360485a1b460c58f936593326803674643f281e147fb0b18cf0b9b1762af19b29ba48b641d6aa0cbd4cbdc120f69b4a08fa8fc2a5fa282619da9c664ad08ff8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/botbase-module-alias.rb
CHANGED
@@ -13,17 +13,16 @@ end
|
|
13
13
|
|
14
14
|
class BotBaseModuleAlias
|
15
15
|
|
16
|
-
def initialize(aliases: nil, callback: nil)
|
16
|
+
def initialize(aliases: nil, callback: nil, debug: false)
|
17
|
+
|
18
|
+
@debug = debug
|
17
19
|
|
18
20
|
if aliases.nil? then
|
19
21
|
raise BotBaseModuleAliasException, 'aliases must be provided'
|
20
22
|
end
|
21
23
|
|
22
|
-
@bot = callback
|
23
|
-
|
24
|
-
s, _ = RXFHelper.read aliases
|
25
|
-
@dx = Dynarex.new
|
26
|
-
@dx.import aliases
|
24
|
+
@bot = callback
|
25
|
+
@dx = Dynarex.new aliases
|
27
26
|
|
28
27
|
end
|
29
28
|
|
@@ -35,11 +34,14 @@ class BotBaseModuleAlias
|
|
35
34
|
found ? r << [x, found] : r
|
36
35
|
|
37
36
|
end
|
37
|
+
puts ': ' + a.inspect
|
38
38
|
|
39
39
|
if a.any? then
|
40
40
|
|
41
41
|
msg=a[0][0].aliasname
|
42
42
|
|
43
|
+
puts 'msg: ' + msg.inspect
|
44
|
+
|
43
45
|
if @bot.log then
|
44
46
|
@bot.log.info 'BotBaseModuleAlias/query: found ' + msg
|
45
47
|
end
|
@@ -52,4 +54,4 @@ class BotBaseModuleAlias
|
|
52
54
|
|
53
55
|
end
|
54
56
|
|
55
|
-
end
|
57
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: botbase-module-alias
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjAwNzAxMTE1MzQyWhcN
|
15
|
+
MjEwNzAxMTE1MzQyWjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3D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KoSWKlgbKPM/NTpdqidmdta4qRYaPBhQrzoEtsR94hK/KWuRlFj8KCsLD
|
32
|
+
q3R6pArHaS63+kHYVQTxmgxHkTFUM/ZB541vExGaXBbiCUrpWausf4id3K4c3us0
|
33
|
+
halkU3ZgCfcOcgDHoGr2n+Q4Y1K9GssPWYNXh0zQAJ6lPmD7Wl65fojYDm8baGEd
|
34
|
+
oJBYhLmEWhDHsylHkFaiVt76ihWeG8I21jsGYjEz7j5lZ8qhpQRbuGNlcKb7mZAW
|
35
|
+
fGWG4dg2xp0fzLdA8L9apg/SegMzQyPNkNTr1UImh+FUR/sYd9FW6Nks49MMxFWi
|
36
|
+
jxfE36WSNyO0s9lnPqRA6XYL
|
33
37
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
38
|
+
date: 2020-07-01 00:00:00.000000000 Z
|
35
39
|
dependencies:
|
36
40
|
- !ruby/object:Gem::Dependency
|
37
41
|
name: dynarex
|
@@ -79,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
83
|
- !ruby/object:Gem::Version
|
80
84
|
version: '0'
|
81
85
|
requirements: []
|
82
|
-
|
83
|
-
rubygems_version: 2.6.13
|
86
|
+
rubygems_version: 3.0.3
|
84
87
|
signing_key:
|
85
88
|
specification_version: 4
|
86
89
|
summary: A botbase module plugin which matched a verbose command with a known alias
|
metadata.gz.sig
CHANGED
Binary file
|