gocd-slack-server 0.0.23 → 0.0.25
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 +4 -4
- data/README.md +2 -1
- data/lib/gocd-slack-server.rb +1 -2
- data/lib/gocdss/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9ece5cf9e601cb8cc58ada4d20c10d56814e3d1
|
|
4
|
+
data.tar.gz: 150112b9c5b6dfb4139c9fb7023763846304b004
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 217d8ee9665b1d52323677953895bdece4185facb63e1e7946b8610a00826139444ae12d63c79c2fe0be99f3660d945ab34584ac0d133b60fe1579784f8e4b8b
|
|
7
|
+
data.tar.gz: 20966d1b7f2496e29f5061e4a62a89c0dc824ee72612aa354fe57b5a6e6f9816f4312149f8220cf6a9593ab9bddba841174cc965b9a97cf629217fc47f9d7f5b
|
data/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
+
[](https://rubygems.org/gems/gocd-slack-server)
|
|
3
4
|
[](http://badge.fury.io/rb/gocd-slack-server)
|
|
4
5
|
[](https://travis-ci.org/sotownsend/gocd-slack-server)
|
|
5
6
|
[](https://bitdeli.com/free "Bitdeli Badge")
|
|
@@ -25,7 +26,7 @@ gocd-slack-server was purpose built for Fittr® to provide information from our
|
|
|
25
26
|
# Installation
|
|
26
27
|
```sh
|
|
27
28
|
#Setup
|
|
28
|
-
|
|
29
|
+
gem install gocd-slack-server
|
|
29
30
|
|
|
30
31
|
#Run using a service hook with the name 'bot_name' for the gocd server installed on localhost at 8513
|
|
31
32
|
#You *must* use http:// at the beginning for the gocd server host otherwise slack will *not* generate links
|
data/lib/gocd-slack-server.rb
CHANGED
|
@@ -84,8 +84,7 @@ module Gocdss
|
|
|
84
84
|
sleep 3
|
|
85
85
|
|
|
86
86
|
pipelines = Hash.from_xml(`curl -u #{@user_pass} #{@gocd_addr}/go/api/pipelines.xml`)
|
|
87
|
-
pipeline_names = pipelines["pipelines"]
|
|
88
|
-
|
|
87
|
+
pipeline_names = pipelines["pipelines"]["pipeline"].map{|e| e["href"]}.map{|e| e.scan(/pipelines\/(.*)\/stages.xml/)}.flatten
|
|
89
88
|
pipeline_names.each do |pipe_name|
|
|
90
89
|
if @user_pass
|
|
91
90
|
hash = JSON.parse(`curl -u #{@user_pass} #{@gocd_addr}/go/api/pipelines/#{pipe_name}/history 2>/dev/null`)
|
data/lib/gocdss/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gocd-slack-server
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.25
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Seo Townsend
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|