gocd-slack-server 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0d113398a91474eb2fed3330a93457c7980b435
4
- data.tar.gz: 1a6900436e45706d25f23329ecab10a3705fe336
3
+ metadata.gz: 6c5156ba95a91df3039533aeccf5cd353e29f41f
4
+ data.tar.gz: 78fc6a20acd60d76c21686cf9371ee46a42e6b01
5
5
  SHA512:
6
- metadata.gz: 752a81779e0c3e619eec8adfcbad9a381cf36a326687d0f8681bc185cdf7bdbd7200ae0129af8a1d71960ddd677646f3360a3792a9d8d72ffcf6c6d231913d8b
7
- data.tar.gz: 07e08158e28917fd221688c7f3c6e527882232dbc9bd9feec7a13c57e5d2f9e7f60e8b2ce846146d6226e01b74a127b8dd453b79e1692774aa963bc5c1f0085a
6
+ metadata.gz: f47aec58d5d5c8a0c50635f69850d56c4d19e2ee4e60ff8248e5213cf89e5401cc911f746b2f6e842d0df29c1e6013338cbabe373104589452fe3579a3185a46
7
+ data.tar.gz: 6dc27a6f9089d72ccb35c2761ba637ab7d86c3c1a245d1313a85521e90b3d9b82b9e6184176158645ba0c1120a28c5cc9245e2e54fedb5d50131b4d000e0ae69
data/README.md CHANGED
@@ -1,12 +1,23 @@
1
1
  ![gocd-slack-server: A ruby library for managing GitHub pull requests](https://raw.githubusercontent.com/sotownsend/gocd-slack-server/master/logo.png)
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/gocd-slack-server.svg)](http://badge.fury.io/rb/gocd-slack-server)
4
- [![Build Status](https://travis-ci.org/sotownsend/gocd-slack-server.svg?branch=master)](https://travis-ci.org/sotownsend/gocd-slack-server)
5
- [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/sotownsend/gocd-slack-server/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
6
- [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/sotownsend/gocd-slack-server/blob/master/LICENSE)
3
+ ![Gem Version](https://badge.fury.io/rb/gocd-slack-server.svg)](http://badge.fury.io/rb/gocd-slack-server)
4
+ ![Build Status](https://travis-ci.org/sotownsend/gocd-slack-server.svg?branch=master)](https://travis-ci.org/sotownsend/gocd-slack-server)
5
+ ![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/sotownsend/gocd-slack-server/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
6
+ ![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/sotownsend/gocd-slack-server/blob/master/LICENSE)
7
7
 
8
8
  # What is this?
9
- gocd-slack-server was purpose built for Fittr® to provide information from our gocd server to our slack channel. This is a standalone server that relays gocd information directly to slack. **It is not a gocd plugin and relies on gocd's API for communication**
9
+ gocd-slack-server was purpose built for Fittr® to provide information from our gocd server to our slack channel. This is a standalone server that relays gocd information directly to slack. **It is not a gocd plugin and relies on gocd's API for communication**. Currently will monitor all pipelines for activity.
10
+
11
+ # What it looks like
12
+
13
+ Failing will post a random fail gif
14
+ ![Fail](https://raw.githubusercontent.com/sotownsend/gocd-slack-server/master/fail.gif)
15
+
16
+ Passing
17
+ ![Pass](https://raw.githubusercontent.com/sotownsend/gocd-slack-server/master/pass.gif)
18
+
19
+ Cancelling
20
+ ![Cancelled](https://raw.githubusercontent.com/sotownsend/gocd-slack-server/master/cancelled.gif)
10
21
 
11
22
  # What's gocd?
12
23
  [Go | Continuous Deployment](http://www.go.cd/) is a free and open source deployment server.
data/bin/gocdss CHANGED
@@ -16,12 +16,12 @@ end
16
16
  usage unless gocd_addr and slack_hook and bot_name
17
17
 
18
18
  server = Gocdss::Server.new gocd_addr: gocd_addr, slack_hook: slack_hook, bot_name: bot_name, user_pass:user_pass
19
- server.start
19
+ #server.start
20
20
 
21
- #require 'json'
22
- #events = JSON.parse(File.read "./spec/assets/merge_failed")
21
+ require 'json'
22
+ events = JSON.parse(File.read "./spec/assets/cancelled_first")
23
23
 
24
- #loop do
25
- #server.process_event events.shift
26
- #break if events.empty?
27
- #end
24
+ loop do
25
+ server.process_event events.shift
26
+ break if events.empty?
27
+ end
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module Gocdss
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.16'
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gocd-slack-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seo Townsend
@@ -81,11 +81,14 @@ files:
81
81
  - README.md
82
82
  - Rakefile
83
83
  - bin/gocdss
84
+ - cancelled.gif
85
+ - fail.gif
84
86
  - gocd-slack-server.gemspec
85
87
  - lib/gocdss.rb
86
88
  - lib/gocdss/server.rb
87
89
  - lib/gocdss/version.rb
88
90
  - logo.png
91
+ - pass.gif
89
92
  - spec/assets/both_passed
90
93
  - spec/assets/cancelled_first
91
94
  - spec/assets/log