concourse-fuselage 0.1.1 → 0.2.0

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: 8a2d5584951ed3f78432d026689a6b7615ca66a1
4
- data.tar.gz: edcc83b5c677242e3a54f85c1e64d9c5906a74b0
3
+ metadata.gz: 1520f471ff04e44bbc889dbdd198cda5874e4ccf
4
+ data.tar.gz: 28fbea705a17d6fdfb8cfbb67fff065654579eb0
5
5
  SHA512:
6
- metadata.gz: 8919ae334caa53fdd6a24549098c5c027021658bab12f9ae0c8f2c70163850f87f08a4c27432f97dd575d4595c8781fc0e756d541b9da6a876c0eda8d00c1796
7
- data.tar.gz: 16e2cbe119f038c182976518c0cfa843f5ba041804355fcef9a781bf2410171ef448dbc2356c18617196c20748f11e4a51e959a9262eb5c03f476be237a571c3
6
+ metadata.gz: c6171f568b1c370e319ff26ec2466b064f1b79d8ca786921c8ccd020f6b8105b07269136e484927f1a48ef7ec44bb3aefee6d3ace4bed108c17557653cb68431
7
+ data.tar.gz: ed5667f35241821e413b260154909fd5e5e91811a24adda39703433e9b3385959bdf6dbc176557a06690996e0f32f5028811497f7399acdb3da818a7108faa1e
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'concourse-fuselage'
3
- gem.version = '0.1.1'
3
+ gem.version = '0.2.0'
4
4
  gem.authors = ['Chris Olstrom']
5
5
  gem.email = 'chris@olstrom.com'
6
6
  gem.license = 'MIT'
@@ -33,7 +33,7 @@ module Fuselage
33
33
  Contract None => String
34
34
  def run
35
35
  update!
36
- p output
36
+ p output.tap { |string| STDERR.puts string if debugging? }
37
37
  end
38
38
  end
39
39
  end
@@ -6,5 +6,6 @@ module Fuselage
6
6
  include ::Contracts::Core
7
7
  include ::Contracts::Builtin
8
8
  include Support::Source
9
+ include Support::Debugging
9
10
  end
10
11
  end
@@ -0,0 +1,22 @@
1
+ require 'contracts'
2
+ require_relative 'source'
3
+
4
+ module Fuselage
5
+ module Support
6
+ module Debugging
7
+ include ::Contracts::Core
8
+ include ::Contracts::Builtin
9
+ include Source
10
+
11
+ Contract None => Maybe[Or[Bool, String]]
12
+ def debug
13
+ source['debug']
14
+ end
15
+
16
+ Contract None => Bool
17
+ def debugging?
18
+ !!debug
19
+ end
20
+ end
21
+ end
22
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concourse-fuselage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom
@@ -50,6 +50,7 @@ files:
50
50
  - lib/concourse-fuselage/step.rb
51
51
  - lib/concourse-fuselage/support/build_metadata.rb
52
52
  - lib/concourse-fuselage/support/config.rb
53
+ - lib/concourse-fuselage/support/debugging.rb
53
54
  - lib/concourse-fuselage/support/params.rb
54
55
  - lib/concourse-fuselage/support/source.rb
55
56
  - lib/concourse-fuselage/support/work_dir.rb