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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1b31cfef7f3c24f1ef6912181d4b5c63d28c17e9
4
- data.tar.gz: 63b72d61e04f8e7787f124e41b2cac08465f12bb
2
+ SHA256:
3
+ metadata.gz: 34b3a6d286b02f652799379dd11641451ebef01905c1426f91251fa44901a0f4
4
+ data.tar.gz: 9e0533d6ed868cbbdcf9bf9912e967633f9ce3c7cad16a6c8650650e018839e0
5
5
  SHA512:
6
- metadata.gz: 81eaf54d9efdee5191132339c7a6590dbf17cac5557f0f120936230cc517f8e304a98f18fb6a4dcec291325ab47e59b0de4848738771989791796b2607bb2d98
7
- data.tar.gz: 48c222fcc673b41da66ff9cf8305fe77cbc8582f7bcd3692d1cca8e1b40131b8df8650fb67235390dcb454563cb549bbbcc01641ce74025acfa1e78e7511eab7
6
+ metadata.gz: f2a6b4dfc6bcff137b8132a659ea8207c3383c1781739d198a0eee674ada4c67f3c134702c66a7c20d3ed7f5e63d27038a6ab8dca1c85b4ffd2d3b334fe887d2
7
+ data.tar.gz: 8360485a1b460c58f936593326803674643f281e147fb0b18cf0b9b1762af19b29ba48b641d6aa0cbd4cbdc120f69b4a08fa8fc2a5fa282619da9c664ad08ff8
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.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
- MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
- YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE3MTAxNDE2NDAyM1oXDTE4MTAxNDE2NDAyM1owSDESMBAG
16
- A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
- EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAJu1w43QGkvv92iJ+faMuLWimeY2bTqFyjfLPt1mT0+NyiWdPy2lPYg3M19S
19
- 5ER/IQPvzIebXpuAmHcizD+DgsdX1tsQgLqJQP+Za+Tf+qGSNcdXi67E7deCIAQy
20
- aPt396lgNHA/qgpy8PehXTb1+ehXUzFNW8CFtfyxFGyC8fuR9QS9RyrSdnNdPiU4
21
- 2LsmLBAhVHcnOiqXUIqKG2f8+p7EDpjDrvSuTk2wm2P06O+Gw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QAJ6lPmD7Wl65fojYDm8baGEd
34
+ oJBYhLmEWhDHsylHkFaiVt76ihWeG8I21jsGYjEz7j5lZ8qhpQRbuGNlcKb7mZAW
35
+ fGWG4dg2xp0fzLdA8L9apg/SegMzQyPNkNTr1UImh+FUR/sYd9FW6Nks49MMxFWi
36
+ jxfE36WSNyO0s9lnPqRA6XYL
33
37
  -----END CERTIFICATE-----
34
- date: 2017-10-29 00:00:00.000000000 Z
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
- rubyforge_project:
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