protonbot 0.1.0 → 0.1.1

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
2
  SHA1:
3
- metadata.gz: 6b2fecb97495ccfcc14a68b256a2d0333ea2fee2
4
- data.tar.gz: 9fa5a77d24a729f5fe20b05c03902b8928bc8efb
3
+ metadata.gz: 3a30a48ec608d31c88360a74c7919c9113fcdc73
4
+ data.tar.gz: 534d6aafe5cf60fedff4555b9864182c8621b48f
5
5
  SHA512:
6
- metadata.gz: 299ee28b838107170e2e2de59a4a1a75745194a8d7d973ec7dccdb50701dc1b4e23f7cb2daa0475c407178ed3bc089fb9d128cb8d10f9dd63f7714c6022a4ad7
7
- data.tar.gz: 88cb469c9f7b42b49ddda112c1100fa35af92e4875cdb01ea32213ee9f73c59e3365adab0fa1dd405dc07f8caadff6f213df3c80ecec953de0aaad51fb07d10d
6
+ metadata.gz: 9d4eb5ce92f4a200c3c8006e05a7df37a57d77dcc3d073bab19c3871195d00472f46e46d2839271c78500ede57a866cfb27090ee12d0821dcc4d46e6e54c3035
7
+ data.tar.gz: 43fdca12aee2507e47a2691beb04a15ed77bd76a31f4ae56a692157c8d51757b56e7c8cbad6b2349a1e54116f23cba00c5a5e4d9c323523117473eb2733bdac5
data/CORE_PLUGIN.md CHANGED
@@ -1,5 +1,3 @@
1
- Finish this, write other stuff, allow requesting multiple permissions, fix YARD, and after - publish gem.
2
-
3
1
  # Core Plugin
4
2
  Core plugin implements features which are essential for bot to exist: hooks (including ping-response), command engine, permission system, help system etc.
5
3
 
data/README.md CHANGED
@@ -68,7 +68,7 @@ After you have started your bot, you need to gain permissions.
68
68
 
69
69
  After checking out the repo, run `bundler` to install dependencies. `bottest` directory is .gitignored, so you can make test bot there.
70
70
 
71
- To install this gem onto your local machine, run `bundler exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundler exec rake release \[origin\]`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
71
+ To install this gem onto your local machine, run `bundler exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundler exec rake release\[origin\]`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
72
72
 
73
73
  ## Contributing
74
74
 
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
7
+ attr_accessor :levels, :logging, :log_info
8
8
 
9
9
  def initialize
10
10
  @pastel = Pastel.new
@@ -17,6 +17,7 @@ class ProtonBot::Log
17
17
  @levels = DEFAULT_SCHEME
18
18
 
19
19
  @logging = true
20
+ @log_info = false
20
21
 
21
22
  @stop = false
22
23
 
@@ -35,9 +36,11 @@ class ProtonBot::Log
35
36
  # @param msg [String]
36
37
  # @param nam [String] Name
37
38
  def info(msg, nam = 'log')
38
- dat = gsub(msg.to_s, :info, nam)
39
- @queue << dat
40
- @pastel.strip(dat)
39
+ if @log_info
40
+ dat = gsub(msg.to_s, :info, nam)
41
+ @queue << dat
42
+ @pastel.strip(dat)
43
+ end
41
44
  end
42
45
 
43
46
  # @param msg [String]
@@ -1,4 +1,4 @@
1
1
  module ProtonBot
2
2
  # ProtonBot's version
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.1.1'.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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nickolay