ci_slack 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ci_slack/messager.rb +4 -6
- data/lib/ci_slack/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: 89bbba9fc6021358712d8cd09635a8a326adc8d4
|
4
|
+
data.tar.gz: fec9000aaf8703e76fcb642cd9bc74110a792410
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa641b538949133574408048714103116d72a229d541ea27f5014761f109e4706558a1e142bfc7e78e520ae8008abea4cf00d468cd25ac1e0f6f88caa3c16e48
|
7
|
+
data.tar.gz: b644d46a2a24b06041fdbeabac9488bf5ea2e50585c3e6647fe0c88266fa5777a11d0c5bcd12f5832f3fff036debf1d2fbb689e95f60e9df77c43fc7909dcf08
|
data/lib/ci_slack/messager.rb
CHANGED
@@ -3,12 +3,6 @@ require 'ci_slack'
|
|
3
3
|
|
4
4
|
module CiSlack
|
5
5
|
class Messager
|
6
|
-
attr_reader :client, :project
|
7
|
-
|
8
|
-
def initialize
|
9
|
-
@client = ::Slack::Notifier.new(webhook, channel: channel, username: bot_name)
|
10
|
-
end
|
11
|
-
|
12
6
|
def send(message)
|
13
7
|
return unless ENV[ci_computer.to_s]
|
14
8
|
|
@@ -34,5 +28,9 @@ module CiSlack
|
|
34
28
|
def last_git_log
|
35
29
|
`git log -1 --pretty='%an||%s'`.split('||').map(&:strip)
|
36
30
|
end
|
31
|
+
|
32
|
+
def client
|
33
|
+
@client ||= ::Slack::Notifier.new(webhook, channel: channel, username: bot_name)
|
34
|
+
end
|
37
35
|
end
|
38
36
|
end
|
data/lib/ci_slack/version.rb
CHANGED