space-architect 9.2.0 → 9.2.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: ec005bf012468954875cbbd74a2c3d3a4d2fbc2468523f42ec425777a6e9344a
4
- data.tar.gz: c93720a06c24e62ed03352c243d78a9895c1d98311547b9860e0ad549eea382f
3
+ metadata.gz: 173cd44e1e27f8fc09d46bb0d18a5c7f26138731d4315bc6db1e7cd2c704e0a4
4
+ data.tar.gz: cebbf1f5602efa92a9f3982f31fcc79c202549489531262cfaab3ecc1c25ba13
5
5
  SHA512:
6
- metadata.gz: 416269e2e0d4a3fab56cfd8a3cf5f8afdc63db75ad0b49982e98724fb0eaca66f85970f9c86f07901a543eb198405840c460464e5cb1491fd9d1eaafb9b3624b
7
- data.tar.gz: 1ba4e232aeb7bdea2670fce2864bf4db7484cc60940ec4f242d3744f393f1082592adab9ac422ef39d6f870bcedd7c6cc89c78770d6409ebf9676f1ea01fa120
6
+ metadata.gz: 44430c9d2fb759035df014e4023084424b66edd6dfea696f4e0e0f555ab7d0e3d418410ae8fa117936456fd3b4ea365cf9bf217ffadbb0be184e9ccb6835526a
7
+ data.tar.gz: 5abb3a70daaca512e957ed2a577a45904e709be3cd05c6b57ae49f7e58ce9d612b64c33addb6ba191f49777826258e5b481e27c440bacdfd4f4e8d7f4d997dd0
@@ -1740,7 +1740,12 @@ module Space::Architect
1740
1740
  if prompt
1741
1741
  src = Pathname.new(prompt)
1742
1742
  raise Space::Core::Error, "prompt file not found: #{src}" unless src.exist?
1743
- File.open(prompt_path, "wb") { |f| f.write(File.binread(src)) }
1743
+ # src == dst: the file is already canonical — skip the copy; a truncate-then-
1744
+ # write onto the source itself would destroy the prompt before dispatch (I61
1745
+ # 20261009-pi-port: --prompt <canonical> emptied the kit to 0 bytes).
1746
+ unless src.expand_path == Pathname(prompt_path).expand_path
1747
+ File.binwrite(prompt_path, File.binread(src))
1748
+ end
1744
1749
  end
1745
1750
 
1746
1751
  raise Space::Core::Error, "prompt.md not found: #{prompt_path}" unless prompt_path.exist?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Space
4
4
  module Architect
5
- VERSION = "9.2.0"
5
+ VERSION = "9.2.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: space-architect
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.0
4
+ version: 9.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Jacobs