cinch-deploy 1.0.2 → 1.0.3

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 +3 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f36c5a16b70dcdc8119b71b420a2ca7272c44c3
4
- data.tar.gz: 730024c7150ab674cc2cb35ee0698699ff4f203d
3
+ metadata.gz: 54464120ecb5f6306240221af2e7055e4d971529
4
+ data.tar.gz: 43574e6c9bf3e849bb5a1cabcc4280f3d12149f9
5
5
  SHA512:
6
- metadata.gz: b035710d89e959aedc5efd066361ff886d48c74511f6f8571cc2ac69da14749f9a5fcf914f05c3808335a43b6052048495347e22aa02eff170c9602e98ccb648
7
- data.tar.gz: 500701fbf7801967368aac06de7bcac6bb4ada4267085392a3dc725e16e6885650f716470fa65dcca7b02c7a0f269f9ecadc3e67301495f60a4651d8c42313af
6
+ metadata.gz: f799d168f10a017044bb4875e8bd2c36e9c9a1d4e4cbd444ac1d46606e3aa614888d5e5f3db4f0f7f0dc2e74082b1247a3ba5cf78ccb8feee6ea191007a45001
7
+ data.tar.gz: 28fc7f0c457fb719e9ba6fac90d957eb74f2cff110473e092c41fb39265e1dabcaecbefaf9ba382bc324d16211f45d340638e6beca64f0fcc5f6e856896fcf3f
@@ -12,15 +12,14 @@ 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
- m.reply line, true
15
+ m.reply "#{config[:command]} > #{line}", true
16
16
  end
17
17
  end
18
- else
19
- m.reply "ch:#{m.channel.to_s} usr:#{m.user.nick} msg:#{m.message}", true
20
18
  end
21
19
  end
22
20
  rescue Exception => e
23
- m.reply "exception: #{e.message}"
21
+ m.reply "#{config[:command]} - exception: #{e.message}"
22
+ puts e.backtrace
24
23
  ensure
25
24
  @running = nil
26
25
  end
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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Papis