concourse-fuselage 0.1.0 → 0.1.1

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: 975402edab7f41d684ccf38764222e64c329697f
4
- data.tar.gz: b04adc7c4b1fda6d307c4523a3806c0a73cfcec7
3
+ metadata.gz: 8a2d5584951ed3f78432d026689a6b7615ca66a1
4
+ data.tar.gz: edcc83b5c677242e3a54f85c1e64d9c5906a74b0
5
5
  SHA512:
6
- metadata.gz: 136fc2d48953ec7ca86e76b26d2de562356f3c2b607fc1d5178bbb13e2710bf6d2900f2544d9fcf98b10e7151c41e5fe11403d7288b33f91d6c32a40158b4a04
7
- data.tar.gz: 5e367ca85563d78961de384a4d66dcfaaf5abeb71bf2b0fb11e2b9f31d7d020170fbb818ad94d090c28b0364bd00e30939185cbac186537aa46e3e32c4e08b66
6
+ metadata.gz: 8919ae334caa53fdd6a24549098c5c027021658bab12f9ae0c8f2c70163850f87f08a4c27432f97dd575d4595c8781fc0e756d541b9da6a876c0eda8d00c1796
7
+ data.tar.gz: 16e2cbe119f038c182976518c0cfa843f5ba041804355fcef9a781bf2410171ef448dbc2356c18617196c20748f11e4a51e959a9262eb5c03f476be237a571c3
data/Dockerfile ADDED
@@ -0,0 +1,4 @@
1
+ FROM colstrom/ruby
2
+
3
+ RUN apk-install ruby-json
4
+ RUN gem-install concourse-fuselage
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'concourse-fuselage'
3
- gem.version = '0.1.0'
3
+ gem.version = '0.1.1'
4
4
  gem.authors = ['Chris Olstrom']
5
5
  gem.email = 'chris@olstrom.com'
6
6
  gem.license = 'MIT'
@@ -25,7 +25,7 @@ module Fuselage
25
25
 
26
26
  Contract None => String
27
27
  def run
28
- JSON.dump output
28
+ p JSON.dump output
29
29
  end
30
30
  end
31
31
  end
@@ -15,6 +15,7 @@ module Fuselage
15
15
  @version ||= config.fetch 'version'
16
16
  rescue KeyError
17
17
  STDERR.puts 'Configuration payload is missing version'
18
+ abort
18
19
  end
19
20
 
20
21
  Contract None => ArrayOf[Maybe[HashOf[String, String]]]
@@ -35,7 +36,7 @@ module Fuselage
35
36
  Contract None => String
36
37
  def run
37
38
  fetch!
38
- output
39
+ p output
39
40
  end
40
41
  end
41
42
  end
@@ -33,7 +33,7 @@ module Fuselage
33
33
  Contract None => String
34
34
  def run
35
35
  update!
36
- output
36
+ p output
37
37
  end
38
38
  end
39
39
  end
@@ -6,7 +6,7 @@ module Fuselage
6
6
  include ::Contracts::Core
7
7
  include ::Contracts::Builtin
8
8
 
9
- Contract None => Maybe[String]
9
+ Contract None => String
10
10
  def build_id
11
11
  ENV.fetch 'BUILD_ID'
12
12
  rescue KeyError
@@ -14,7 +14,7 @@ module Fuselage
14
14
  abort
15
15
  end
16
16
 
17
- Contract None => Maybe[String]
17
+ Contract None => String
18
18
  def build_name
19
19
  ENV.fetch 'BUILD_NAME'
20
20
  rescue KeyError
@@ -22,7 +22,7 @@ module Fuselage
22
22
  abort
23
23
  end
24
24
 
25
- Contract None => Maybe[String]
25
+ Contract None => String
26
26
  def build_job_name
27
27
  ENV.fetch 'BUILD_JOB_NAME'
28
28
  rescue KeyError
@@ -30,7 +30,7 @@ module Fuselage
30
30
  abort
31
31
  end
32
32
 
33
- Contract None => Maybe[String]
33
+ Contract None => String
34
34
  def build_pipeline_name
35
35
  ENV.fetch 'BUILD_PIPELINE_NAME'
36
36
  rescue KeyError
@@ -38,7 +38,7 @@ module Fuselage
38
38
  abort
39
39
  end
40
40
 
41
- Contract None => Maybe[String]
41
+ Contract None => String
42
42
  def atc_external_url
43
43
  ENV.fetch 'ATC_EXTERNAL_URL'
44
44
  rescue KeyError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concourse-fuselage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-24 00:00:00.000000000 Z
11
+ date: 2016-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contracts
@@ -37,6 +37,7 @@ extensions: []
37
37
  extra_rdoc_files: []
38
38
  files:
39
39
  - ".gitignore"
40
+ - Dockerfile
40
41
  - Gemfile
41
42
  - Gemfile.lock
42
43
  - LICENSE.txt