vagrant-bindfs 0.4.6 → 0.4.7

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
  SHA1:
3
- metadata.gz: 03447cbefb5f00d27df5588aa7f37d54847d8486
4
- data.tar.gz: f8626ab22a603e32a3f93f90b49e5430b7c7a020
3
+ metadata.gz: 8e3b0e00aeeef8a74d411193632fc75722c99f63
4
+ data.tar.gz: 72f1752dc5801fb57aa73bb55fe87e280f98668e
5
5
  SHA512:
6
- metadata.gz: 3fb6ae47ab0e1332dfd254a13fb317df9a5139831db40593c42c1c286cf9dfa6c48959ed5bc67ea884f5da46b617e7a6a9e94e29a2c0a249af521a6fef149887
7
- data.tar.gz: e8e755c8b377d97d5a3306f9f83ec439801e4136016ec70ba9f84dc5cee7e1193d4f6c257d678226c480f5aaf2060d115f30fde1f190c69afc0c195cb342e168
6
+ metadata.gz: 0b523b6f6f4a2e6746875c92835eec97e656cb36189d090e292007a58e78f37ada54939ee34545f82e828b3d1dbfcef12c837d8e1b382b1e64a97b8ba12e9ee1
7
+ data.tar.gz: cd0e34a55113c3b3c28905967cc343fa0f28ff0d7b2ad2834bd417058b192d17bef88cce6a5d9f3f976da2323589136ca1b1a52be363de27e96d8ea12dc36706
data/README.md CHANGED
@@ -92,7 +92,7 @@ end
92
92
  ### bindfs support
93
93
 
94
94
  The `bind_folder` config accept any option you can pass to bindfs.
95
- vagrant-bindfs is compatible with bindfs from version 1.9 to 1.12.6.
95
+ vagrant-bindfs is compatible with bindfs from version 1.9 to 1.13.0.
96
96
  Check [lib/vagrant-bindfs/command.rb](https://github.com/gael-ian/vagrant-bindfs/blob/master/lib/vagrant-bindfs/command.rb#L66) for a complete list of supported options and default values.
97
97
 
98
98
  Both long arguments and shorthand are supported.
@@ -46,7 +46,7 @@ module VagrantPlugins
46
46
  next
47
47
  end
48
48
 
49
- unless options[:skip_verify_user] == true || @machine.communicate.test("getent passwd #{command.user.shellescape}")
49
+ unless options[:skip_verify_user] == true || command.user.nil? || @machine.communicate.test("getent passwd #{command.user.shellescape}")
50
50
  @env[:ui].error I18n.t(
51
51
  "vagrant.config.bindfs.errors.user_not_exist",
52
52
  user: command.user
@@ -54,7 +54,7 @@ module VagrantPlugins
54
54
  next
55
55
  end
56
56
 
57
- unless options[:skip_verify_user] == true || @machine.communicate.test("getent group #{command.group.shellescape}")
57
+ unless options[:skip_verify_user] == true || command.group.nil? || @machine.communicate.test("getent group #{command.group.shellescape}")
58
58
  @env[:ui].error I18n.t(
59
59
  "vagrant.config.bindfs.errors.group_not_exist",
60
60
  group: command.group
@@ -178,9 +178,11 @@ module VagrantPlugins
178
178
  %{sudo bindfs --version | cut -d" " -f2},
179
179
  %{sudo -i bindfs --version | cut -d" " -f2}
180
180
  ].each do |command|
181
- @machine.communicate.execute(command) do |type, version|
182
- @env[:ui].info("#{command}: #{version.inspect}") if @machine.config.bindfs.debug
183
- throw(:version, Gem::Version.new(version)) if Gem::Version.correct?(version)
181
+ @machine.communicate.execute(command) do |type, output|
182
+ @env[:ui].info("#{command}: #{output.inspect}") if @machine.config.bindfs.debug
183
+
184
+ version = output.strip
185
+ throw(:version, Gem::Version.new(version)) if version.length > 0 && Gem::Version.correct?(version)
184
186
  end
185
187
  end
186
188
  Gem::Version.new("0.0")
@@ -1,6 +1,6 @@
1
1
  module VagrantPlugins
2
2
  module Bindfs
3
- VERSION = "0.4.6"
3
+ VERSION = "0.4.7"
4
4
  SOURCE_VERSION = "1.13.0"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-bindfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaël-Ian Havard
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-30 00:00:00.000000000 Z
13
+ date: 2016-04-21 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: A Vagrant plugin to automate bindfs mount in the VM. This allow you to
16
16
  change owner, group and permissions on files and, for example, work around NFS share
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  version: '0'
61
61
  requirements: []
62
62
  rubyforge_project:
63
- rubygems_version: 2.2.2
63
+ rubygems_version: 2.5.1
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: A Vagrant plugin to automate bindfs mount in the VM