ruboty 1.1.5 → 1.1.6

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: 59eade90e032988902da80763e2d6a44d45ccf86
4
- data.tar.gz: 5a47c89da03ec5a73003c44cbde2a2950da088ea
3
+ metadata.gz: 263ef87b9f940ba33994bf68b2fd50ee7a3a2085
4
+ data.tar.gz: 5305ffd3df053bfc17f404efaf3a2aa134f5ee04
5
5
  SHA512:
6
- metadata.gz: c249f94122a8cebaaf3696926c8180bfa7203c29dc3b32147ae7ad97552ee80390afd827ab0b9b918714a2a86d10cab9919fc60b9c413621b6ab6ba4146cb178
7
- data.tar.gz: b6a3dde9e78042a5e2b57dc080c0908a77eed510845eeea0c1f7ba1e26c9c236a33ca2861b325a1886b00d69fc972ab0c82aed643cb7c85b0d6c473c166f966b
6
+ metadata.gz: 6ee0a04ed3a9cdca01714726d177072d5b3f5e8e4b6301688804033dbc237d2ad97b6c3130494682658c03267548608e7fda05399e522fd23bf84996d0cca1e9
7
+ data.tar.gz: af2118a021cb26d37201277a60e728de611c7169b6c54b8a86b05fb6a085dae667a6fc515271e242220e22754c933a36a91ea8f4aa9daa480833806ceeb24524
@@ -1,3 +1,6 @@
1
+ ## 1.1.6
2
+ - Add LOG_LEVEL env
3
+
1
4
  ## 1.1.5
2
5
  - Use slop version 4 or higher
3
6
  - Fix --load option (thx @amacou)
data/README.md CHANGED
@@ -49,25 +49,10 @@ gem "ruboty-slack"
49
49
  ```
50
50
 
51
51
  ## Environment
52
- You can change loaded gems via `RUBOTY_ENV` (default: development).
53
-
54
- ```sh
55
- RUBOTY_ENV=production bundle exec ruboty
56
52
  ```
57
-
58
- ```ruby
59
- # Use ruboty-cron in any env
60
- gem "ruboty-cron"
61
-
62
- # Use HipChat in development env
63
- group :development do
64
- gem "ruboty-hipchat"
65
- end
66
-
67
- # Use Slack in production env
68
- group :production do
69
- gem "ruboty-slack"
70
- end
53
+ LOG_LEVEL - Log level for debug (default: 3)
54
+ RUBOTY_NAME - Name to respond to mention (default: ruboty)
55
+ RUBOTY_ENV - Loaded gem group name (default: development)
71
56
  ```
72
57
 
73
58
  ## Deploy
@@ -11,7 +11,11 @@ module Ruboty
11
11
  include Mem
12
12
 
13
13
  def logger
14
- @logger ||= Ruboty::Logger.new($stdout)
14
+ @logger ||= begin
15
+ logger = Ruboty::Logger.new($stdout)
16
+ logger.level = ENV["LOG_LEVEL"] ? ENV["LOG_LEVEL"].to_i : Logger::ERROR
17
+ logger
18
+ end
15
19
  end
16
20
 
17
21
  def die(message)
@@ -1,3 +1,3 @@
1
1
  module Ruboty
2
- VERSION = "1.1.5"
2
+ VERSION = "1.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura