dotsync 0.3.0 → 0.3.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: 710780a2db7e818a04b5eca4d4546b3fb6f085fc4b0eaba11df1bcab6bfc0ebd
4
- data.tar.gz: 4e41f76afbbce3996c723e681d9af06d6babd2e69533b6b67ac687fe15e06864
3
+ metadata.gz: 0c385c8eed3cda30997c16a18593919ccd91e66cb9867c6426b9754766feec1e
4
+ data.tar.gz: 0636ec7e59bb3abe38547d66090305ce23035a0297b2edcdaff7e24b132ba691
5
5
  SHA512:
6
- metadata.gz: 57e5da2e7b69b306a01709a5d6ebcc2e2d7cfd7fdd767bae7ab2bbc9957034abbd6dca04a9d0d237b6cd442ae6ac570c57bce15761ebabe865dc2730b1fb3558
7
- data.tar.gz: adf1fb97f5fa7ca956653617c2d574f556e9bb6c9ed7407384e480de7f6694bd770776eed99d8a0474d7b1399d8f0616948e8e4d12e4aab0f242681371c2ab9f
6
+ metadata.gz: 2f8d30e519f03d03049bfe5ac0f2816ff0208ec445a259ceaa0c617daf9a8f3a5e46ac562fce617ff42fe238bcdd7486127a1ed5294fd971a4ff920db469bba6
7
+ data.tar.gz: 6c6eeb9add7b30806722c482f085ce76747399908ac0cd298a16d998e130ffff02b1f30af4f8478e10321e3e1d7882f6cea7a891c0c8c9664ac2c4e6d6b6f9a1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [0.3.2] - 2026-02-14
2
+
3
+ ### Fixed
4
+
5
+ - Fix hook runner not expanding env vars in file paths (#24)
6
+
7
+ ### Dependencies
8
+
9
+ - Bump version to 0.3.2
10
+
11
+ ## [0.3.1] - 2026-02-14
12
+
13
+ ### Fixed
14
+
15
+ - Fix config cache swallowing ConfigError and returning nil (#22)
16
+ - Fix release tasks reading installed gem version instead of local
17
+
18
+ ### Dependencies
19
+
20
+ - Bump version to 0.3.1
21
+
1
22
  ## [0.3.0] - 2026-02-14
2
23
 
3
24
  **New Features:**
@@ -429,3 +450,6 @@ Add gem executables
429
450
  # 0.1.0
430
451
 
431
452
  Initial version
453
+
454
+ [0.3.2]: https://github.com/dsaenztagarro/dotsync/compare/v0.3.1...v0.3.2
455
+ [0.3.1]: https://github.com/dsaenztagarro/dotsync/compare/v0.3.0...v0.3.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dotsync (0.3.0)
4
+ dotsync (0.3.2)
5
5
  fileutils (~> 1.7.3)
6
6
  find (~> 0.2.0)
7
7
  listen (~> 3.9.0)
@@ -26,6 +26,8 @@ module Dotsync
26
26
 
27
27
  # Fast path: load from cache
28
28
  Marshal.load(File.binread(@cache_file))
29
+ rescue ConfigError
30
+ raise
29
31
  rescue StandardError
30
32
  # Fallback: reparse if cache corrupted or any error
31
33
  parse_and_cache
@@ -67,13 +69,14 @@ module Dotsync
67
69
  config = resolve_config
68
70
 
69
71
  # Write cache files
70
- FileUtils.mkdir_p(@cache_dir)
71
- File.binwrite(@cache_file, Marshal.dump(config))
72
- File.write(@meta_file, JSON.generate(build_metadata))
72
+ begin
73
+ FileUtils.mkdir_p(@cache_dir)
74
+ File.binwrite(@cache_file, Marshal.dump(config))
75
+ File.write(@meta_file, JSON.generate(build_metadata))
76
+ rescue StandardError
77
+ # If caching fails, still return the parsed config
78
+ end
73
79
 
74
- config
75
- rescue StandardError
76
- # If caching fails, still return the parsed config
77
80
  config
78
81
  end
79
82
 
@@ -5,6 +5,8 @@ require "shellwords"
5
5
 
6
6
  module Dotsync
7
7
  class HookRunner
8
+ include Dotsync::PathUtils
9
+
8
10
  def initialize(mapping:, changed_files:, logger:)
9
11
  @mapping = mapping
10
12
  @changed_files = changed_files
@@ -24,7 +26,7 @@ module Dotsync
24
26
 
25
27
  private
26
28
  def expand_template(command)
27
- files_str = @changed_files.map { |f| Shellwords.escape(f) }.join(" ")
29
+ files_str = @changed_files.map { |f| Shellwords.escape(sanitize_path(f)) }.join(" ")
28
30
 
29
31
  command
30
32
  .gsub("{files}", files_str)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dotsync
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Sáenz