concourse-github-status 0.5.0 → 0.5.7

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
- SHA1:
3
- metadata.gz: baa654c01e7b60d36db60453e72c9748355eb274
4
- data.tar.gz: e1d4d9dcd17810a9330bdc11b2cb6937cb66db8c
2
+ SHA256:
3
+ metadata.gz: e2914d8f2cc2d2a089be65e508ebcaa56add2feb2993bdb196c26897d7c3c109
4
+ data.tar.gz: 29e8d31e7c14a9cc0cb45ea21a6bea544e4436f01d5649541d90a8aa01d0f00d
5
5
  SHA512:
6
- metadata.gz: faa2166fb449d5302340ab7208eebcdb8f239b4ee241c316439d4022759f9064333198017b7555dfaa8120159921480f9264898ffbb8f12b4947432330299380
7
- data.tar.gz: fdd95b279ce3e488ef2addebe320a39322c0f57ebef84b45edb12137bc915ac23d33956e1c458cb5aba2e2e4222055e84721fd3bf4b72709ea907b740d74539c
6
+ metadata.gz: 4f97e52f09ecf1beac259a828d7334459cad4962969ed5fb34c72209ec9a5331fa518206dc47df17c9c5231d246472291f9c1d7f892b7087da0ced34c7c4f0b7
7
+ data.tar.gz: 9c342fc2db883b7021a3dba95e7b78faa6223728123f92f2e922638b6de545f23777419d2616e9f3c79fbbc89aadfde5466a17cbb5adf2079e44d0d1b6b8ecc2
checksums.yaml.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ ���FKJ;X �E�����9���3:�~=n;Op����jnb+^�������Q�����ɾ@9_��(����4A�4�uy΄;p����Or�;��@�Q�ms[CF��cNl���� 9nK��\$��FZ�����!�@ըs(����/�)k�7�K<5f�M��v ;2���}j|� ��K&�zX�ou���s
2
+ {�'�#T-�n��6;ѥ�� �q���D�
data.tar.gz.sig ADDED
Binary file
data/LICENSE.txt CHANGED
@@ -1,13 +1,22 @@
1
- Copyright 2016 Chris Olstrom <chris@olstrom.com>
2
1
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
2
+ The MIT License (MIT)
3
+ Copyright © 2016-2018 Chris Olstrom <chris@olstrom.com>
4
+ Copyright © 2016-2018 SUSE LLC
6
5
 
7
- http://www.apache.org/licenses/LICENSE-2.0
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the “Software”), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
8
12
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
data/README.org CHANGED
@@ -33,6 +33,8 @@ Add the resource to your pipeline's ~resource_types~ (requires Concourse 0.74.0+
33
33
 
34
34
  *** Parameters
35
35
 
36
+ To set a single status for the current commit of the repository specify these parameters:
37
+
36
38
  |-------------+----------+-----------+--------------------------------------------|
37
39
  | Name | Required | Default | Description |
38
40
  |-------------+----------+-----------+--------------------------------------------|
@@ -42,6 +44,27 @@ Add the resource to your pipeline's ~resource_types~ (requires Concourse 0.74.0+
42
44
  | description | No | | A description of the context. |
43
45
  |-------------+----------+-----------+--------------------------------------------|
44
46
 
47
+ It is also possible to set multiple statuses at the same time. This is useful for adding multiple ~pending~ statuses
48
+ initially which will be updated by later jobs to the corresponding state, for example.
49
+ This can be done by specifying a ~statuses~ array:
50
+
51
+ |-------------+----------+-----------+--------------------------------------------|
52
+ | Name | Required | Default | Description |
53
+ |-------------+----------+-----------+--------------------------------------------|
54
+ | path | Yes | | Relative path to the repository |
55
+ | statuses | Yes | | Array of status objects |
56
+ |-------------+----------+-----------+--------------------------------------------|
57
+
58
+ Each of the status objects supports the following parameters:
59
+
60
+ |-------------+----------+-----------+--------------------------------------------|
61
+ | Name | Required | Default | Description |
62
+ |-------------+----------+-----------+--------------------------------------------|
63
+ | state | Yes | | One of ~pending~, ~success~, or ~failure~ |
64
+ | context | No | concourse | The ~context~ for the status being updated |
65
+ | description | No | | A description of the context. |
66
+ |-------------+----------+-----------+--------------------------------------------|
67
+
45
68
  ** ~check~ Get a list of available statuses
46
69
 
47
70
  *** Parameters
@@ -64,7 +87,8 @@ Fetches the state of ~context~ for the current commit of the repository at
64
87
 
65
88
  * License
66
89
 
67
- Apache 2.0 License, see ~LICENSE.txt~ for details.
90
+ ~concourse-github-status~ is available under the [[https://tldrlegal.com/license/mit-license][MIT License]]. See
91
+ ~LICENSE.txt~ for the full text.
68
92
 
69
93
  * Contributors
70
94
 
@@ -1,21 +1,25 @@
1
- require_relative 'lib/github-status'
2
-
3
1
  Gem::Specification.new do |gem|
2
+ tag = `git describe --tags --abbrev=0`.chomp
3
+
4
4
  gem.name = 'concourse-github-status'
5
- gem.version = GitHubStatus::VERSION
6
- gem.license = 'Apache-2.0'
5
+ gem.homepage = 'https://github.com/colstrom/concourse-github-status'
7
6
  gem.summary = 'GitHub Status resource for Concourse'
8
7
 
9
- gem.author = 'Chris Olstrom'
8
+ gem.version = "#{tag}"
9
+ gem.licenses = ['MIT']
10
+ gem.authors = ['Chris Olstrom']
10
11
  gem.email = 'chris@olstrom.com'
11
- gem.homepage = 'https://github.com/colstrom/concourse-github-status'
12
12
 
13
- gem.files = `git ls-files`.split("\n")
14
- gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
15
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
13
+ gem.cert_chain = ['trust/certificates/colstrom.pem']
14
+ gem.signing_key = File.expand_path ENV.fetch 'GEM_SIGNING_KEY'
15
+
16
+ gem.files = `git ls-files -z`.split("\x0")
17
+ gem.executables = `git ls-files -z -- bin/*`.split("\x0").map { |f| File.basename(f) }
18
+ gem.test_files = `git ls-files -z -- {test,spec,features}/*`.split("\x0")
19
+
16
20
  gem.require_paths = ['lib']
17
21
 
18
22
  gem.add_runtime_dependency 'concourse-fuselage', '~> 0.1', '>= 0.1.0'
19
- gem.add_runtime_dependency 'git', '~> 1.3', '>= 1.3.0'
20
- gem.add_runtime_dependency 'octokit', '~> 4.2', '>= 4.2.0'
23
+ gem.add_runtime_dependency 'git', '~> 1.3', '>= 1.3.0'
24
+ gem.add_runtime_dependency 'octokit', '~> 4.2', '>= 4.2.0'
21
25
  end
@@ -21,9 +21,9 @@ module GitHubStatus
21
21
  else
22
22
  statuses.map do |status|
23
23
  options = {
24
- context: status["context"],
24
+ context: status["context"] || "concourse",
25
25
  target_url: target_url,
26
- description: status["description"]
26
+ description: status["description"] || ""
27
27
  }
28
28
  github.create_status repo, sha, status["state"], options
29
29
  end
@@ -1,3 +1,8 @@
1
1
  module GitHubStatus
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = $LOADED_FEATURES
3
+ .map { |f| f.match %r{/concourse-github-status-(?<version>[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(\.pre)?)} }
4
+ .compact
5
+ .map { |gem| gem['version'] }
6
+ .uniq
7
+ .first
3
8
  end
@@ -0,0 +1,25 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIEND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NvyNYVfAa6u6yz4Y
18
+ nEjbEF76zAAxoRfivDApGJ3G9wuZ14cHZswFJppf2N4RG14F8bfLtU1OMYDLw8eK
19
+ QJOpynqHtrSj+FfsyNb6d93K8rlNCEd4UHkdRH1m7VnG6M18HvkbQCRMJtOFg/3j
20
+ c66TgdClDMJJXXiktVinfsmpTwxe2IzjGvwo2CZ/S53WPU/jb4uQMUzY0tMw48rl
21
+ S07/1DQNogstTnLYueqkUS1PYEwtavKVnpAtnaOdf0rJ/Rk4hA36BRgAVyQrp0uu
22
+ mSbo3NCvepJNYsTOUM+Df421VuPq713JV0aJDqltyfPptTM7fmNMcukbRh0aRuMT
23
+ EIKh6yDoB+oCRuiTV0uw/lKE2PtbONhJb7uN1qhZqla/iBpmUjiEu8+skI+ygv9n
24
+ 7Krw8FJrV3+VRCiZTPKHeshAfL9yeIZh
25
+ -----END CERTIFICATE-----
metadata CHANGED
@@ -1,14 +1,40 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concourse-github-status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2017-07-07 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIENDCCApygAwIBAgIBATANBgkqhkiG9w0BAQsFADAiMSAwHgYDVQQDDBdjaHJp
14
+ cy9EQz1vbHN0cm9tL0RDPWNvbTAeFw0xODAzMTUxODMxMTdaFw0xOTAzMTUxODMx
15
+ MTdaMCIxIDAeBgNVBAMMF2NocmlzL0RDPW9sc3Ryb20vREM9Y29tMIIBojANBgkq
16
+ hkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAp31YmQvpMuQSlgX22B++/rxl4p4LYyaq
17
+ cDDbi8DBro9cm2H60lbpCuAUALiED2CagZEK0vel5W8AnZhhns0OEYAlpQtBSJtN
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DqltyfPptTM7fmNMcukbRh0aRuMT
34
+ EIKh6yDoB+oCRuiTV0uw/lKE2PtbONhJb7uN1qhZqla/iBpmUjiEu8+skI+ygv9n
35
+ 7Krw8FJrV3+VRCiZTPKHeshAfL9yeIZh
36
+ -----END CERTIFICATE-----
37
+ date: 2018-03-15 00:00:00.000000000 Z
12
38
  dependencies:
13
39
  - !ruby/object:Gem::Dependency
14
40
  name: concourse-fuselage
@@ -99,9 +125,10 @@ files:
99
125
  - lib/github-status/support/params.rb
100
126
  - lib/github-status/support/source.rb
101
127
  - lib/github-status/version.rb
128
+ - trust/certificates/colstrom.pem
102
129
  homepage: https://github.com/colstrom/concourse-github-status
103
130
  licenses:
104
- - Apache-2.0
131
+ - MIT
105
132
  metadata: {}
106
133
  post_install_message:
107
134
  rdoc_options: []
@@ -119,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
146
  version: '0'
120
147
  requirements: []
121
148
  rubyforge_project:
122
- rubygems_version: 2.6.11
149
+ rubygems_version: 2.7.6
123
150
  signing_key:
124
151
  specification_version: 4
125
152
  summary: GitHub Status resource for Concourse
metadata.gz.sig ADDED
Binary file