wslc-wip 0.7.1 → 0.7.2

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: 32ea123050e99bb4a99db8c16a4c0b679d3bdbfcb777f32145df54d9331a67e2
4
- data.tar.gz: f6278d370efe1820d7527fba81f289f8c7a58d7f34a516726a2aa79359f509ab
3
+ metadata.gz: '029d796a1f1d80a039fc1765f194b6b9cd144ceed002568bc9f38275814bb31a'
4
+ data.tar.gz: 13c45a601b75b7a32dba0824a3424f1f34adc86dc176957318eabc783416ca2d
5
5
  SHA512:
6
- metadata.gz: fc3f205b9d8d919821ec7d63bc63f6e99f38022b0adc7d7ef0da32686d98d4fac2a5cbac8a39352f4717ca6239e212f6c35ba415e719668eadac383950d46f04
7
- data.tar.gz: deec9093d981214126432c14e48e41b0965168e662131792d8ac7295b45e1791cd0a47ec3127e4872a88c6f80c3bcc304b86c481e3a293454a66873da291ec89
6
+ metadata.gz: b9941bb1dab65040e55e2711681283ab43a12c5715ea3af8a64b349a110a80e2066380109d6567667bb00fa898b9f66b34f5c000d382d989419e310d14a27531
7
+ data.tar.gz: 6e5f11ceb6282415d6f8d164c3bde0620c9d2f9886af96d8c08f55d329ebb21efd65d4198dad3669e19566075b08df324abdfe3c0feb57eb605820f5ccff1447
@@ -46,7 +46,11 @@ module Wip
46
46
  return open_log(@log, "streaming resource snapshots to #{@log}") if @log
47
47
  return nil if live
48
48
 
49
- file = Tempfile.new(['wip-debug-', '.log'])
49
+ # `Tempfile.create`, unlike `Tempfile.new`, leaves the file on disk after
50
+ # we close it, so the path printed just below is still there to read.
51
+ # It still creates with O_EXCL and 0600, which is what stops a
52
+ # predictable name in a shared /tmp from being pre-created as a symlink.
53
+ file = Tempfile.create(['wip-debug-', '.log'])
50
54
  file.sync = true
51
55
  @out.puts "wip: [debug] command owns the terminal; streaming resource snapshots to #{file.path}"
52
56
  file
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.7.1'
4
+ VERSION = '0.7.2'
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.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wip contributors