robit 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/robit +5 -2
- 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: e8ed22a21f7018fba8137c37e5c0dbbf2601e1e3
|
4
|
+
data.tar.gz: c09330121340b4092bb2569d07cc4fd6fc320e3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7b668cdd9b9358c19225f6cc5e69c5b3fe23de35a7e49dba7bc1543b662f2ecffaed57277b04f1184a200aec17146e44bc38c2f2f50c49a6dcaacf41b40e089
|
7
|
+
data.tar.gz: 4d493f212ce1ab5ccb9326bdb7aaa0c985a282f0c76a738a52566115b8ecde2d94816b2c5f58965e78e0dfbfba6263221995c4263972e1d1bf60f89077b72a57
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/bin/robit
CHANGED
@@ -34,17 +34,20 @@ end
|
|
34
34
|
|
35
35
|
Config = JSON::parse File::read(Opts[:config]), symbolize_names: true
|
36
36
|
|
37
|
+
Config[:store_yaml] ||= '/tmp/robut-store.yml'
|
38
|
+
Config[:store_nick] ||= '/tmp/robut-nick.db'
|
39
|
+
|
37
40
|
Robut::Connection.configure do |config|
|
38
41
|
config.jid = Config[:jabber_user]
|
39
42
|
config.password = Config[:jabber_pass]
|
40
43
|
config.mention_name = Config[:hipchat_nick]
|
41
44
|
config.nick = Config[:hipchat_name]
|
42
45
|
config.rooms = Config[:hipchat_rooms]
|
43
|
-
Robut::Storage::YamlStore.file =
|
46
|
+
Robut::Storage::YamlStore.file = Config[:store_yaml]
|
44
47
|
config.store = Robut::Storage::YamlStore
|
45
48
|
config.logger = Logger.new(STDOUT)
|
46
49
|
|
47
|
-
config.nick_db = Daybreak::DB.new
|
50
|
+
config.nick_db = Daybreak::DB.new Config[:store_nick], default: []
|
48
51
|
|
49
52
|
config.hipchat = HipChat::Client.new Config[:hipchat_api_key]
|
50
53
|
|