dotsync 0.1.12 → 0.1.13

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: 2f547b92c47c8fc439eb6e46ab2fb858d6ad7ec8d424c67c76611b990fae88c9
4
- data.tar.gz: 910ff1e02a260708a8b5dee75a665db652b47936bc565c5b435ca26c31d58c4b
3
+ metadata.gz: 6902bf77ffae5ae4fa88c9a35e452207c7ee5fd1cc274690023a5e2622079681
4
+ data.tar.gz: 024ac7795cae1eee0a342f96b7957a024297d64bac16e1375b7541b0e963e8b5
5
5
  SHA512:
6
- metadata.gz: b60dfcd57e1c676ed7a9f2a003610066c37d57689bbb90f864ecae9d5277ad95e9df76794f932858ba486b63f5a9d9ca8990ad4b27ecef73622145647e877526
7
- data.tar.gz: 242485598ab533582382f2452ce63bf4772a8f4c3f5178b27a1e74712b31ebffe816550046b1519d02a39cdd360a14d5afa1a776342ec8090e3b4653990e9535
6
+ metadata.gz: aa928d590ce5a9fc6e7494e9c31c542ed336e0ce7a46afaf3050847acefb9033c9b7812027661e49c963f1cb17204e4b0ab81820ccb2544964aaa1d8159f97ba
7
+ data.tar.gz: 17d532898d18d4b11a11f649fdfd097f37af75dbd091096b52da9eb6ba420cce28657f37872c912636a71e7206ae391f30c69523a4b59ae214e5fdab9ac54027
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.1.13
2
+
3
+ - PullAction: backup message simplified
4
+ - MappingsTransfer: show No differences
5
+
1
6
  # 0.1.12
2
7
 
3
8
  - FileTransfer: apply ignores both to src and dest
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dotsync (0.1.12)
4
+ dotsync (0.1.13)
5
5
  fileutils (~> 1.7.3)
6
6
  find (~> 0.2.0)
7
7
  listen (~> 3.9.0)
@@ -24,8 +24,5 @@ module Dotsync
24
24
  info("Options:", icon: :options)
25
25
  logger.log(" Apply: #{options[:apply] ? "TRUE" : "FALSE"}")
26
26
  end
27
-
28
- def show_env_vars
29
- end
30
27
  end
31
28
  end
@@ -28,18 +28,21 @@ module Dotsync
28
28
  diffs = valid_mappings.map do |mapping|
29
29
  Dotsync::DirectoryDiffer.new(mapping).diff
30
30
  end
31
- if diffs.any?
32
- info("Diff:", icon: :diff)
33
- diffs.flat_map(&:additions).sort.each do |path|
34
- logger.log(" #{path}", color: Dotsync::Colors.diff_additions)
35
- end
36
- diffs.flat_map(&:modifications).sort.each do |path|
37
- logger.log(" #{path}", color: Dotsync::Colors.diff_modifications)
38
- end
39
- diffs.flat_map(&:removals).sort.each do |path|
40
- logger.log(" #{path}", color: Dotsync::Colors.diff_removals)
41
- end
31
+ has_diff = false
32
+ info("Diff:", icon: :diff)
33
+ diffs.flat_map(&:additions).sort.each do |path|
34
+ logger.log(" #{path}", color: Dotsync::Colors.diff_additions)
35
+ has_diff = true
36
+ end
37
+ diffs.flat_map(&:modifications).sort.each do |path|
38
+ logger.log(" #{path}", color: Dotsync::Colors.diff_modifications)
39
+ has_diff = true
40
+ end
41
+ diffs.flat_map(&:removals).sort.each do |path|
42
+ logger.log(" #{path}", color: Dotsync::Colors.diff_removals)
43
+ has_diff = true
42
44
  end
45
+ logger.log(" No differences") unless has_diff
43
46
  end
44
47
 
45
48
  def transfer_mappings
@@ -54,9 +54,7 @@ module Dotsync
54
54
  def purge_old_backups
55
55
  backups = Dir[File.join(backups_root, "*")].sort.reverse
56
56
  if backups.size > 10
57
- logger.log("Maximum of 10 backups retained")
58
-
59
- action("Backup deleted:")
57
+ action("Oldest backup deleted:")
60
58
  backups[10..].each do |path|
61
59
  FileUtils.rm_rf(path)
62
60
  logger.log(" #{path}")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dotsync
4
- VERSION = "0.1.12"
4
+ VERSION = "0.1.13"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Sáenz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-02 00:00:00.000000000 Z
11
+ date: 2025-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toml-rb