vagrant-scp-sync 0.5.12 → 0.5.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: c034d409b3c2956435b324465f32bb5e24fa49c540c1fb7679915e72a6c8d1f6
4
- data.tar.gz: 732a442ca6213677714a1008f5a732e36fe22c244893de2f0d33ec183d849cc8
3
+ metadata.gz: 0d7890574cfeac17cfa54d6e859a59843468dc9b92ad3b794db653fab88621cf
4
+ data.tar.gz: 590f3b065e047e2dc238b5435e786e3f6f3e6e2008fe098e3d57ebfc69af845a
5
5
  SHA512:
6
- metadata.gz: 778c512ff8d043a5e4bded18c66b8f35cf3e4f8ad1ceb7d683d99be79d2347cab690a4ab915adae677e448ec6dab1df3531f320232e6b6079f3235a9d8af9bba
7
- data.tar.gz: 72e59dc346a18050df0303c6c7ad98637425ad8c54da4914a13b3bb1e63f108ddc1462a1c7a2ddd809fc78bea790c28701b79704ba2dd06d61c65fde997159e4
6
+ metadata.gz: 40988d02a76d1b48976ab8d1059160893abdfec4b03bc4d4b99a5d2735435c8bb7b253d6626b0036473ea3f2bd13de437329ca5da003b9649c9bf72d1cac686d
7
+ data.tar.gz: 918b1764a4dbb4ce9ffd71bf70446528b347b0402620b8215547ddb68aece4e20e956b952be38bc00a6cbf79a77b692a468a2f294e974472c4625f3712d59ed3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.13](https://github.com/STARTcloud/vagrant-scp-sync/compare/v0.5.12...v0.5.13) (2024-12-23)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * single file sync ([e827137](https://github.com/STARTcloud/vagrant-scp-sync/commit/e827137d3b5c64a1e226188ee29b04c205b8a855))
9
+ * single file sync - lint ([7b6d0cf](https://github.com/STARTcloud/vagrant-scp-sync/commit/7b6d0cf504ce0bf93f8e1ed0470b8755721ff23b))
10
+
3
11
  ## [0.5.12](https://github.com/STARTcloud/vagrant-scp-sync/compare/v0.5.11...v0.5.12) (2024-11-20)
4
12
 
5
13
 
@@ -34,7 +34,15 @@ module VagrantPlugins
34
34
  elsif opts[:direction] == :download
35
35
  source = "#{ssh_info[:username]}@#{ssh_info[:host]}:#{sync_source_files}"
36
36
  target = target_files
37
- make_dir = "mkdir -p #{target_files}"
37
+
38
+ # For directory sync or explicit directory target (ends with slash), create the full path
39
+ if has_trailing_slash_source || target.end_with?('/')
40
+ make_dir = "mkdir -p #{target}"
41
+ else
42
+ # For file targets, only create the parent directory if it's not '.'
43
+ parent_dir = File.dirname(target)
44
+ make_dir = parent_dir == '.' ? nil : "mkdir -p #{parent_dir}"
45
+ end
38
46
  end
39
47
 
40
48
  synchronize = build_scp_command(scp_path, ssh_opts, source, target)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Vagrant
4
4
  module ScpSync
5
- VERSION = '0.5.12'
5
+ VERSION = '0.5.13'
6
6
  NAME = 'vagrant-scp-sync'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-scp-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.12
4
+ version: 0.5.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-20 00:00:00.000000000 Z
11
+ date: 2024-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n