protonbot 0.1.2 → 0.1.3

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: 31a6e73df79b3fa0cb3665a09707e7013787844d
4
- data.tar.gz: 925ef1c18dcd95cb2aff34651f0d2aede4b79c90
3
+ metadata.gz: e0814365197098c02754b106236c66abb16240c6
4
+ data.tar.gz: 3ea53eb5a89ceefc4e9108adc66720e0eccbf5ee
5
5
  SHA512:
6
- metadata.gz: 6314e1436428c0419faefa8d1d3871218eab38cfa934ff62ae80e757afbbc161943349ca5c5beb85f0b1580dd44eb442ddd74c66a751020b7270dbc62fe9936f
7
- data.tar.gz: 17a81ee572e60d80455c95f05cc3959e67a6bccc03c6d0e8f526d01e6e8ca469fff28f398dff7c4f502a327f857ee372a9f20365b0f97332bf8eedfc44ff10a7
6
+ metadata.gz: 17b89999e3cfa3bbe9d4d281d6f1a0432944caa2802b31d4921fbee398ad55e58a5b7b126efd50928a3ceefc001d7bbcc27c0381f860247034fd587225e4eb0b
7
+ data.tar.gz: e80b0efde5fda4c0c939c7eb1427ee70b9f7804be89d988b9449b25ab362bae2dec5611e521f146491ee4080940d7d182861211403e646a445bb8ea4e39e19b3
@@ -7,7 +7,7 @@ cmd(cmd: 'key') do |dat|
7
7
  if dat[:split][0] == @key && !@key.nil?
8
8
  dat.reply "#{dat[:nick]}: given key is valid! You are an owner now!"
9
9
  addperm(dat[:plug], dat[:host], 'owner')
10
- elsif dat[:split][0] == dat[:plug].conf[:uniq_key] && dat[:plug].conf[:uniq_key]
10
+ elsif dat[:split][0] == dat[:plug].conf['uniq_key'] && dat[:plug].conf['uniq_key']
11
11
  dat.reply "#{dat[:nick]}: given key is valid! You are an owner now!"
12
12
  addperm(dat[:plug], dat[:host], 'owner')
13
13
  else
data/lib/protonbot/log.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  # @!attribute [rw] logging
5
5
  # @return [Bool] If false, does not write messages.
6
6
  class ProtonBot::Log
7
- attr_accessor :levels, :logging, :log_info
7
+ attr_accessor :levels, :logging
8
8
 
9
9
  def initialize
10
10
  @pastel = Pastel.new
@@ -17,7 +17,6 @@ class ProtonBot::Log
17
17
  @levels = DEFAULT_SCHEME
18
18
 
19
19
  @logging = true
20
- @log_info = false
21
20
 
22
21
  @stop = false
23
22
 
@@ -36,11 +35,9 @@ class ProtonBot::Log
36
35
  # @param msg [String]
37
36
  # @param nam [String] Name
38
37
  def info(msg, nam = 'log')
39
- if @log_info
40
- dat = gsub(msg.to_s, :info, nam)
41
- @queue << dat
42
- @pastel.strip(dat)
43
- end
38
+ dat = gsub(msg.to_s, :info, nam)
39
+ @queue << dat
40
+ @pastel.strip(dat)
44
41
  end
45
42
 
46
43
  # @param msg [String]
@@ -1,4 +1,4 @@
1
1
  module ProtonBot
2
2
  # ProtonBot's version
3
- VERSION = '0.1.2'.freeze
3
+ VERSION = '0.1.3'.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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nickolay