wslc-wip 0.17.0 → 0.17.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
  SHA256:
3
- metadata.gz: 0b6d4bd2dc0f6ceb899efeaebe7378c6b043915b2d640bf4efff7501f5ca4852
4
- data.tar.gz: e5d6c0ed4b89bacaa374482bc7e815a5b04883b4d817809b6dbb0a91c9801ae3
3
+ metadata.gz: d462bf5f1448a0488b717c963bccd77fc7c9719d29b74b990226179fd26e75f8
4
+ data.tar.gz: 7c05922ab0abc42995ed495c99704d2dbab435d8ab88ed46c9094a402052abed
5
5
  SHA512:
6
- metadata.gz: aed82d2db66e8036c55986181ce73fc032a1785c3ac3a314aadcc2ef7a8b91f6280dc31cbc209aa97dd25ad5eed536013954ca593b61ed966792004209ebcb2f
7
- data.tar.gz: 94ee0961eddd267ca8fc8e8f1e198dbd4793801b15c2512539ff55c6cb5223c5ae7e331807030f7eca8d5264b38527db6f4e993ae61fb14d4ef6bdbf26eaf1ad
6
+ metadata.gz: 0cfc54266fde234fceac4dffc6f43968ab27123704040eaf6183dec8c54f25bc33daad08a5bd03a7552554474dc14848162dca40b0ebcde6a785c721632cc0b1
7
+ data.tar.gz: f4bfd8777b2f23b9f5c688b2d5794219914df74f42e44bb3a99b5c209e32fc262f240803ff5b8c505f427e19c3ee494d035a58fb407a8769c7ef7e9d723c1d14
@@ -26,8 +26,7 @@ module Wip
26
26
  threads.each(&:join)
27
27
  status = wait.value
28
28
  end
29
- hint = @interpreter.interpret(captured)
30
- @stderr.puts("\n#{hint}") if !status.success? && hint
29
+ report_hint(captured) unless status.success?
31
30
  status.exitstatus
32
31
  rescue Errno::ENOENT => e
33
32
  @stderr.puts e.message
@@ -39,6 +38,11 @@ module Wip
39
38
 
40
39
  private
41
40
 
41
+ def report_hint(captured)
42
+ hint = @interpreter.interpret(captured.force_encoding(Encoding::UTF_8).scrub)
43
+ @stderr.puts("\n#{hint}") if hint
44
+ end
45
+
42
46
  # Piping stdin/stdout/stderr (as `run` does above) closes the child's
43
47
  # stdin immediately, which breaks anything that reads from the terminal
44
48
  # (a shell, `rails console`, ...). Inherit the real file descriptors
@@ -122,23 +122,7 @@ module Wip
122
122
  # optional; exec (default, mirrors into the running container) | run (always a fresh container)
123
123
  mode: exec
124
124
 
125
- # image/build below always cover `wip up`'s pre-boot mirror (a throwaway container, since
126
- # the primary one isn't running yet — falls back to the primary image if neither is set).
127
- # With mode: exec above (the default here), `wip sync`/`wip sync --watch` afterward run
128
- # rsync inside the already-running primary container instead, so its own image needs
129
- # rsync installed too — image/build below aren't read for those.
130
-
131
- # image the pre-boot (and, under sync.mode: run, every) mirror container runs
132
- # image: your/image:tag
133
-
134
- # alternative to image — let wip build a small dedicated mirror image itself
135
- # build:
136
- # dockerfile: |
137
- # FROM alpine:latest
138
- # RUN apk add --no-cache rsync
139
-
140
- # optional (default: wip-sync-<container>:latest)
141
- # tag: wip-sync-app:latest
125
+ # sync.image/sync.build required for mode: compose and used by sync.mode: run; see README "Source sync"
142
126
  YAML
143
127
  end
144
128
 
data/lib/wip/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wip
4
- VERSION = '0.17.0'
4
+ VERSION = '0.17.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wslc-wip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wip contributors