cinch-deploy 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cinch/plugins/deploy.rb +4 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1d35a39bb5a86e48e2aa93c48c21d7fd1923f8d
4
- data.tar.gz: c66bf799a2ad3e0213e707e3a7cd545c37239af6
3
+ metadata.gz: 14abae79fc11f89f17ddb43a44493b68e03ab4d1
4
+ data.tar.gz: 60c2819619cea66660312c87812793826f88c394
5
5
  SHA512:
6
- metadata.gz: 75b56b76d5bbe1fabeafbbf4c67b177fb2752b2448281d56e83a15b02d0b559d3527ea79301acca983dd7336626b87d3e969b767abab5dffcd5c00d5f21f1c1e
7
- data.tar.gz: ade2b2c9fdfffed7aa882ee7802d5fd3ec26a169dfb17a230bf7e5ad99fe1f0838e4fb40a261b56f57d274ba2bb217b975c3c2d4892e82ca65070fa0aa8c85c7
6
+ metadata.gz: 3e0b8330b647143566a02d6a538b35cca7dca555fcaf443c9efab9b9cf444aaf4f9353b3bd2fee868605c837bbadc6341c55cc7d247ec7f32c5ed12f41786824
7
+ data.tar.gz: bc27588ebdcccc6d68d909c15aca1bca6c19e60144fa50ceb354da17be0699b350816594a79b0720b0cc498d55b2fff09d1025267897f5c179ce6c46900503d1
@@ -10,7 +10,7 @@ module Cinch
10
10
  @running = true
11
11
  config[:configurations].each do |config|
12
12
  if config[:channels].include?(m.channel.to_s) and config[:users].include?(m.user.nick) and m.message =~ Regexp.new(config[:trigger])
13
- IO.popen(config[:command]) do |handle|
13
+ IO.popen("config[:command] 2>&1") do |handle|
14
14
  while line = handle.gets
15
15
  m.reply line, true
16
16
  end
@@ -19,6 +19,9 @@ module Cinch
19
19
  m.reply "ch:#{m.channel.to_s} usr:#{m.user.nick} msg:#{m.message}", true
20
20
  end
21
21
  end
22
+ rescue Exception => e
23
+ m.reply "exception: #{e.message}"
24
+ ensure
22
25
  @running = nil
23
26
  end
24
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Papis