cinch-deploy 1.0.4 → 1.0.5

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 +2 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9389416c507fcf53affb9d7867c314530831e09
4
- data.tar.gz: 9187dffcbca28128f9693543454c911f74814c98
3
+ metadata.gz: 45a0f8f0d40417a383245e3264d213824248ebd6
4
+ data.tar.gz: 4ab32e9c7f8c433696a48a87cbf952c5f4803180
5
5
  SHA512:
6
- metadata.gz: d946e8ce18b826de6b84a2343f2d5b3fc63818b6366589cb74c84d6037fdaa1556e43c619a84157207fbae4b09ab74daf75cfa1d89a5a18a173844e39428e519
7
- data.tar.gz: d109d5192dfdeadebe0348b06ea9108b0b871d274142775960b8547455f21751c49256356ee98c448b57f0d80e8c123f85aab24e8f2a714e93f58ec0689e9184
6
+ metadata.gz: aacb2604aefe74d49edcc4a6f758273976be9a0366478c480bf80cfc03f706d74db29d2129c7ade12add74fa7425c70ebe3b5e15bd5c31c1bce10a438ed59549
7
+ data.tar.gz: f4e24bc44220c243b342ada46e00c283868d1200d40141c6d7064512e1e07c67238b64ba190360976d525d4809735ff5d4093880d2ac8b33a7fb7969a71dc3e7
@@ -12,14 +12,13 @@ module Cinch
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
13
  IO.popen("#{config[:command]} 2>&1") do |handle|
14
14
  while line = handle.gets
15
- # do not use ,true for nick, it breaks on split
16
- m.reply "#{m.user.nick}: #{config[:command]} > #{line}"
15
+ m.reply "#{config[:command]} > #{line}", true
17
16
  end
18
17
  end
19
18
  end
20
19
  end
21
20
  rescue Exception => e
22
- m.reply "#{config[:command]} - exception: #{e.message}"
21
+ m.reply "#{config[:command]} - exception: #{e.message}", true
23
22
  puts e.backtrace
24
23
  ensure
25
24
  @running = nil
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.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Papis