vagrant-parallels 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86f3ba721613e8310adfe4cb4adb335703bc398eb6f28e0d8525af257b3be729
4
- data.tar.gz: 389a8f69e3125f0ecd3e66d3b418f16cbb8a424a17097300cde59b9f91ace6df
3
+ metadata.gz: 3ff32a59a5a53f6225bc9595f05ecc24583ffefab4cebd77ad5cbb8901c8725d
4
+ data.tar.gz: 33664d070c0831774d66bfd3c3da5b5a1d3c20456521c543f01aec4c0a9a8911
5
5
  SHA512:
6
- metadata.gz: d36309ae8b86da70114723881277f840d76220fcedb570b047cdc345b0cde34bc7e363614698d3c959429a86e34470c9a2463b9c613b708b1a9046dcf9e9fe6a
7
- data.tar.gz: 97e8598b3ab0ea621264efcae32877f3afb914a73f0d36d9653cce093a01207de46db0a2af619fd6350fa8a078e740e74199294d1f0b05cdaae836898d68a23d
6
+ metadata.gz: fec7982dd9ad7948f5830fae0a13beeada091a0464076df096ead3e8ec03da22f1c4f6f15d7a3af997e8ebd3ea294bb039d326a3ada5b9e16d242acd3fcce76f
7
+ data.tar.gz: fae1a0a7b2e7b414dcba9110309fa41ecfef8244616a6c34d9b9c2ac790a89db648f8fb78bd022f48810e4755bbe15c15cac69721571a0f33c5cecc2965c178a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 2.2.1 (April 14, 2021)
2
+ BUG FIXES:
3
+ - Fixed the compatibility with Vagrant 2.2.15
4
+ [[GH-386](https://github.com/Parallels/vagrant-parallels/pull/386)]
5
+
1
6
  ## 2.2.0 (March 3, 2021)
2
7
  IMPROVEMENTS:
3
8
  - Mount shared folders after manual VM reboot
@@ -30,8 +30,18 @@ module VagrantPlugins
30
30
  return PRL_MOUNT_TYPE
31
31
  end
32
32
 
33
- def self.mount_name(machine, data)
34
- data[:guestpath].gsub(/[*":<>?|\/\\]/,'_').sub(/^_/, '')
33
+ ## We have to support 2 different expected interfaces of `mount_name` call:
34
+ ## Vagrant < 2.2.15: `def self.mount_name(machine, data)`
35
+ ## Vagrant >= 2.2.15: `def self.mount_name(machine, id, data)`
36
+ ## https://github.com/Parallels/vagrant-parallels/issues/384
37
+ def self.mount_name(*args)
38
+ if args.length >= 3
39
+ id = args[1]
40
+ else
41
+ id = args[-1][:guestpath]
42
+ end
43
+
44
+ id.gsub(/[*":<>?|\/\\]/,'_').sub(/^_/, '')
35
45
  end
36
46
  end
37
47
  end
@@ -19,7 +19,7 @@ module VagrantPlugins
19
19
  end
20
20
 
21
21
  defs << {
22
- name: data[:plugin].capability(:mount_name, data),
22
+ name: data[:plugin].capability(:mount_name, id, data),
23
23
  hostpath: hostpath.to_s,
24
24
  }
25
25
  end
@@ -62,7 +62,7 @@ module VagrantPlugins
62
62
  # Mount the actual folder
63
63
  machine.guest.capability(
64
64
  :mount_parallels_shared_folder,
65
- data[:plugin].capability(:mount_name, data),
65
+ data[:plugin].capability(:mount_name, id, data),
66
66
  data[:guestpath],
67
67
  data
68
68
  )
@@ -84,7 +84,7 @@ module VagrantPlugins
84
84
  end
85
85
 
86
86
  # Remove the shared folders from the VM metadata
87
- names = folders.map { |_id, data| data[:plugin].capability(:mount_name, data) }
87
+ names = folders.map { |id, data| data[:plugin].capability(:mount_name, id, data) }
88
88
  driver(machine).unshare_folders(names)
89
89
  end
90
90
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Parallels
3
- VERSION = '2.2.0'
3
+ VERSION = '2.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-parallels
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Zholobov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-03 00:00:00.000000000 Z
12
+ date: 2021-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri