protonbot 0.3.6 → 0.3.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 698d2460fcb67577ea412e3bada50fd2bcfba1b0
4
- data.tar.gz: 6ece020cd6c030384d29fd78b94987e1ddfc7cf2
3
+ metadata.gz: 623bf1ce357e984a8e6df87d98df190dade198de
4
+ data.tar.gz: 59043c9ef3b80a708f6a9e8cb0338fbab80623b3
5
5
  SHA512:
6
- metadata.gz: 1f983a9a9dac6a1fd41e6785c350f9ce21053296a97022cfd6ceeca9f18e467ba8bf452d6805edf9477fa66cb2d2953893013ee82afde36a0e3060a2a9537f1b
7
- data.tar.gz: 5ce6e6dc180a27025c781f3174805e228469726385e7189fe191f4185c9df99ccc38ee020b6220e7308b7ed58471b6093679f729e32fc0aa4c0a283688f48dfb
6
+ metadata.gz: a8ae75dfeaf74bdaf38ba693665430be3906228e1410235ed6c7155d132f5945abc5c54dfb5739c04d80bef06955af768bb25ba1587c085c3ae4ab9f4735e628
7
+ data.tar.gz: 3efa2a206291b2f415c4ef44a9544d72bf99a13626c6689faa214101d8160e427c97063a9305cc5bba6ef95bada1c10f431d5269a360979b97b35d97c9ba310b
@@ -1,6 +1,6 @@
1
1
  # Main bot class. Use it to create the bot
2
2
  class ProtonBot::Bot
3
- attr_reader :log, :_log, :dbs, :plugins, :conf, :plugs, :plugthrs, :core
3
+ attr_reader :log, :_log, :dbs, :plugins, :conf, :plugs, :plugthrs, :core, :db_cross
4
4
 
5
5
  # @yield Main bot's block. You'll use it for configuring bot.
6
6
  def initialize(&block)
@@ -15,6 +15,9 @@ class ProtonBot::Bot
15
15
  configure
16
16
  @log.info('Processed config block')
17
17
 
18
+ Dir.mkdir('dbs/') unless File.exist?(File.expand_path('./dbs/'))
19
+ @db_cross = Heliodor::DB.new("dbs/pb-cross.db", true)
20
+
18
21
  @parr = []
19
22
  @plugins = {}
20
23
  plugins_load
@@ -23,7 +26,6 @@ class ProtonBot::Bot
23
26
  @dbs = {}
24
27
  @plugs = {}
25
28
  @plugthrs = {}
26
- Dir.mkdir('dbs/') unless File.exist?(File.expand_path('./dbs/'))
27
29
  @conf['servers'].each do |k_, v_|
28
30
  k = k_.clone
29
31
  v = v_.clone
@@ -1,4 +1,4 @@
1
1
  module ProtonBot
2
2
  # ProtonBot's version
3
- VERSION = '0.3.6'.freeze
3
+ VERSION = '0.3.7'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protonbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nickolay Ilyushin