protonbot 0.2.2 → 0.2.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: 73dd9e0f7a84a103a38624b2ee05ddf53df67060
4
- data.tar.gz: 9822ccc4e683567a88cb93b5a5b48c9f59591baa
3
+ metadata.gz: '0109257db5937971a7fd55f01a8b13bec2c143f4'
4
+ data.tar.gz: 717498471069d2411ad8f3660eccbfebdc46c1b2
5
5
  SHA512:
6
- metadata.gz: bc1ed5e2db7662129cb6b7b00577a18d08887fa992c1eb9fe65f1d917be291675d42fcbbdb590be93697e37c9ba9a26a7103577fb663c8e03bd486366de2a43e
7
- data.tar.gz: ca800b7b34fbfa5d85a2352ebff17fe13af14911da4037ab80e23b2c1f2ce1e3fa40d49b391b7029a0934dbf20f46d3f66c6268d6542ee1879c2c5c5f69a81dd
6
+ metadata.gz: 6d49607f06931d18011aa0e223a26dbe1264ae6712eb32b4afcb2edbe8cac35230a6078b0bc9bcb1c72f45b0b832f8c8e538510d89c4f0c7a0b439e4edf243d1
7
+ data.tar.gz: a4d79322c7d75d587e8b678ccb830ee4dc363411ed3a5a8dd1cf855cf1d461b0f14348bbcd43f7695125e78c21d3b8d512117a290f4e82e95a358ba7f39fbdfa
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 Nickolay
3
+ Copyright (c) 2017 Nickolay Ilyushin
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -24,7 +24,7 @@ hook(type: :privmsg) do |dat|
24
24
  s = dat[:message].split(' ')
25
25
  dat[:cmd] = s[0]
26
26
  (dat[:split] = s[1, s.length - 1]) || []
27
- emit(privmsg_patch(dat))
27
+ emit(dat)
28
28
  end
29
29
 
30
30
  # Command-checker
@@ -10,8 +10,10 @@ hook(type: :raw) do |dat|
10
10
  else
11
11
  m[1]
12
12
  end
13
- emitt(dat.merge(type: :privmsg, nick: m[1], user: m[2], host: m[3],
14
- target: m[4], message: m[5], reply_to: rto))
13
+ out = dat.merge(type: :privmsg, nick: m[1], user: m[2],
14
+ host: m[3], target: m[4], message: m[5], reply_to: rto)
15
+ privmsg_patch(out)
16
+ emitt(out)
15
17
  elsif m = /^:(.+?)!(.+?)@(.+?) NOTICE (.+?) :(.+)/.match(dat[:raw_data])
16
18
  emitt(dat.merge(type: :notice, nick: m[1], user: m[2], host: m[3],
17
19
  target: m[4], message: m[5]))
@@ -106,6 +106,7 @@ class ProtonBot::Plug
106
106
  # @return [Plug] self
107
107
  def log_err(e)
108
108
  @log.error('Error!')
109
+ @log.error("> Inspect: #{e.inspect}")
109
110
  @log.error("> Message: #{e.message}")
110
111
  @log.error('> Backtrace:')
111
112
  e.backtrace.each do |i|
@@ -1,4 +1,4 @@
1
1
  module ProtonBot
2
2
  # ProtonBot's version
3
- VERSION = '0.2.2'.freeze
3
+ VERSION = '0.2.3'.freeze
4
4
  end
data/protonbot.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'protonbot/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'protonbot'
8
8
  spec.version = ProtonBot::VERSION
9
- spec.authors = ['Nickolay']
9
+ spec.authors = ['Nickolay Ilyushin']
10
10
  spec.email = ['nickolay02@inbox.ru']
11
11
 
12
12
  spec.summary = 'An IRC bot library'
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protonbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
- - Nickolay
7
+ - Nickolay Ilyushin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []