protonbot 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/exe/protonbot-gencert +1 -1
- data/lib/protonbot/bot_plugins.rb +15 -0
- data/lib/protonbot/core_plugin/commands/admin.rb +1 -1
- data/lib/protonbot/plug_io.rb +1 -1
- data/lib/protonbot/version.rb +1 -1
- data/protonbot.gemspec +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a0949566ae0887a4ee1a5f088d5c04c31e48e7b
|
4
|
+
data.tar.gz: 8eca8663367b3c77ebf445dbe464cae4cebd8ae0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6037dc02298ed7f30697fe8329a1a01ea8627ec32b031486ef32e14fa56828ba89133c5372c4054817888c297faeac03bb647e48d37225686111b71fccdfd2a9
|
7
|
+
data.tar.gz: 773ea673e2555bb281537aaca4254ea562408f260deddae81d81b383969cf9b5894dfed5bb000c77522d2cde3c72e448cc5749f094f066c6daf89e51cddb9fca
|
data/exe/protonbot-gencert
CHANGED
@@ -31,6 +31,7 @@ class ProtonBot::Bot
|
|
31
31
|
# Basically clears plugin hash
|
32
32
|
# @return [Bot] self
|
33
33
|
def plugins_unload
|
34
|
+
@parr = []
|
34
35
|
@plugins = {}
|
35
36
|
self
|
36
37
|
end
|
@@ -103,6 +104,20 @@ class ProtonBot::Bot
|
|
103
104
|
self
|
104
105
|
end
|
105
106
|
|
107
|
+
# Loads plugins by array of strings. If first char of item is period,
|
108
|
+
# then plugin is loaded from gem
|
109
|
+
# @param plugins [Array<String>]
|
110
|
+
# @return [Bot] self
|
111
|
+
def plugin_array(arr)
|
112
|
+
arr.each do |pl|
|
113
|
+
if pl[0] == '.'
|
114
|
+
gem pl[1,pl.length-1]
|
115
|
+
else
|
116
|
+
plugin pl
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
106
121
|
# Loads plugin by path
|
107
122
|
# @param path [String] Path
|
108
123
|
# @return [Plugin] Loaded plugin
|
data/lib/protonbot/plug_io.rb
CHANGED
@@ -7,7 +7,7 @@ class ProtonBot::Plug
|
|
7
7
|
s = s[0..-3]
|
8
8
|
log.info "R > #{s}"
|
9
9
|
begin
|
10
|
-
emit(type: :raw, raw_data: s.clone, plug: self, db: db, bot: bot
|
10
|
+
emit(type: :raw, raw_data: s.clone, plug: self, db: db, bot: bot)
|
11
11
|
rescue => e
|
12
12
|
log_err(e)
|
13
13
|
end
|
data/lib/protonbot/version.rb
CHANGED
data/protonbot.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protonbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nickolay Ilyushin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|