ruboty 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +3 -18
- data/lib/ruboty.rb +5 -1
- data/lib/ruboty/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 263ef87b9f940ba33994bf68b2fd50ee7a3a2085
|
4
|
+
data.tar.gz: 5305ffd3df053bfc17f404efaf3a2aa134f5ee04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ee0a04ed3a9cdca01714726d177072d5b3f5e8e4b6301688804033dbc237d2ad97b6c3130494682658c03267548608e7fda05399e522fd23bf84996d0cca1e9
|
7
|
+
data.tar.gz: af2118a021cb26d37201277a60e728de611c7169b6c54b8a86b05fb6a085dae667a6fc515271e242220e22754c933a36a91ea8f4aa9daa480833806ceeb24524
|
data/CHANGELOG.md
CHANGED
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
|
-
|
59
|
-
|
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
|
data/lib/ruboty.rb
CHANGED
@@ -11,7 +11,11 @@ module Ruboty
|
|
11
11
|
include Mem
|
12
12
|
|
13
13
|
def logger
|
14
|
-
@logger ||=
|
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)
|
data/lib/ruboty/version.rb
CHANGED