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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dd6080849e524768a895b23a0de8e9cef4aba5c
4
- data.tar.gz: 2cb3a574cc6ccf1a6bcc1cc78d45b91e4ca30381
3
+ metadata.gz: 89bbba9fc6021358712d8cd09635a8a326adc8d4
4
+ data.tar.gz: fec9000aaf8703e76fcb642cd9bc74110a792410
5
5
  SHA512:
6
- metadata.gz: d770339dfaf4d44be06b5c7fd8020ed58124ea1dd8e9169df8a2f09f335ceae686ca95f8b032b67be551f51fa88cd7e8ba726ea67ab497f4506069a38e49e5cb
7
- data.tar.gz: 60f3659efadefea3dd298eb800492e57799b3fecebb80d1448fdd3064a828dade54df0acb87d82873856a69abc80581b89b4e2667ef59fa35b32d747200fb209
6
+ metadata.gz: fa641b538949133574408048714103116d72a229d541ea27f5014761f109e4706558a1e142bfc7e78e520ae8008abea4cf00d468cd25ac1e0f6f88caa3c16e48
7
+ data.tar.gz: b644d46a2a24b06041fdbeabac9488bf5ea2e50585c3e6647fe0c88266fa5777a11d0c5bcd12f5832f3fff036debf1d2fbb689e95f60e9df77c43fc7909dcf08
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CiSlack
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - skrinits