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 +4 -4
- data/CHANGELOG.md +24 -0
- data/Gemfile.lock +1 -1
- data/lib/dotsync/utils/config_cache.rb +9 -6
- data/lib/dotsync/utils/hook_runner.rb +3 -1
- data/lib/dotsync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c385c8eed3cda30997c16a18593919ccd91e66cb9867c6426b9754766feec1e
|
|
4
|
+
data.tar.gz: 0636ec7e59bb3abe38547d66090305ce23035a0297b2edcdaff7e24b132ba691
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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)
|
data/lib/dotsync/version.rb
CHANGED