foobara-files-generator 0.1.4 → 0.1.5

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: 8cf98ecb24a6c06ed9168b0dbf7c14a4d6aa19b7a0365684634a295de86fed57
4
- data.tar.gz: 2626b68d7005938cc276c044523857154aee0fbde4a4ce1717df847b7dc35cbe
3
+ metadata.gz: a3461e9456b77d42ef2b18982335d6dc249e4ab9d31aaa8021b53175994d1b6b
4
+ data.tar.gz: ce0b2ffa4258580acf8bdba8de4e02472e93bdcdff9a84da2e3195096e675312
5
5
  SHA512:
6
- metadata.gz: 65e71db48ca1463143cfbab679dba25423992018fddc5fe19858d2d7ccd8f5bd355600e4bb47727ac45e23c08a5b759b3e92908521422a6e07ac7c8b43356a52
7
- data.tar.gz: a51167675d456aa2686f283f1679c929471d28f233f8599e7fc6d0909f0a7a392d224166ebc094fe25ffc00f7cf75359ed7129979717e44ff7396b7795de89f5
6
+ metadata.gz: 6f814407b5a575d59e94d54de20c793e50b9acb8a60c88ff08f0b7340bcad7c060df879da05925c3864e5282cac99de71daba7f2864ee967c0012581114d8308
7
+ data.tar.gz: fba7d452ac12189ed7507217e3b2478dfb34204690ed4afdf3202163300e2b3440bbd9e334e9fa1f5f6cf2f408a27ef805ac251a7793f275fb736bf88b237b15
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.1.5] - 2026-09-20
2
+
3
+ - Don't fail if symlink already exists
4
+
1
5
  ## [0.1.4] - 2026-09-19
2
6
 
3
7
  - Support creating symlinks
@@ -48,7 +48,9 @@ module Foobara
48
48
  end
49
49
 
50
50
  paths_to_source_code.map do |path, contents|
51
- Thread.new { write_file_to_disk(path, contents) unless path == generated_files_json_filename }
51
+ Thread.new do
52
+ write_file_to_disk(path, contents) unless path == generated_files_json_filename
53
+ end
52
54
  end.each(&:join)
53
55
  end
54
56
 
@@ -58,7 +60,11 @@ module Foobara
58
60
 
59
61
  if contents.is_a?(FilesGenerator::Symlink)
60
62
  if FilesGenerator::Symlink.supported?
61
- File.symlink(contents, path)
63
+ # simplecov:disable
64
+ unless File.symlink?(path)
65
+ # simplecov:enable
66
+ File.symlink(contents, path)
67
+ end
62
68
  # simplecov:disable
63
69
  else
64
70
  # TODO: come up with a way to test this path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-files-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi