vagrant-bindfs 1.1.8 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +462 -0
  3. data/README.md +2 -3
  4. data/Vagrantfile +6 -10
  5. data/lib/vagrant-bindfs/bindfs/command.rb +1 -1
  6. data/lib/vagrant-bindfs/bindfs/folder.rb +1 -1
  7. data/lib/vagrant-bindfs/bindfs/option_definitions.json +2 -0
  8. data/lib/vagrant-bindfs/bindfs/option_set.rb +2 -2
  9. data/lib/vagrant-bindfs/bindfs/validators/config.rb +14 -6
  10. data/lib/vagrant-bindfs/bindfs/validators/runtime.rb +5 -5
  11. data/lib/vagrant-bindfs/bindfs/validators.rb +1 -1
  12. data/lib/vagrant-bindfs/bindfs.rb +2 -2
  13. data/lib/vagrant-bindfs/vagrant/actions/concerns/log.rb +1 -1
  14. data/lib/vagrant-bindfs/vagrant/actions/concerns/machine.rb +4 -6
  15. data/lib/vagrant-bindfs/vagrant/actions/concerns.rb +1 -1
  16. data/lib/vagrant-bindfs/vagrant/actions/installer.rb +8 -3
  17. data/lib/vagrant-bindfs/vagrant/actions/mounter.rb +5 -2
  18. data/lib/vagrant-bindfs/vagrant/actions.rb +1 -1
  19. data/lib/vagrant-bindfs/vagrant/capabilities/all/bindfs.rb +11 -2
  20. data/lib/vagrant-bindfs/vagrant/capabilities/all/package_manager.rb +1 -1
  21. data/lib/vagrant-bindfs/vagrant/capabilities/all/system_checks.rb +1 -1
  22. data/lib/vagrant-bindfs/vagrant/capabilities/all.rb +1 -1
  23. data/lib/vagrant-bindfs/vagrant/capabilities/darwin/bindfs.rb +1 -1
  24. data/lib/vagrant-bindfs/vagrant/capabilities/darwin/fuse.rb +3 -3
  25. data/lib/vagrant-bindfs/vagrant/capabilities/darwin/package_manager.rb +1 -1
  26. data/lib/vagrant-bindfs/vagrant/capabilities/darwin/system_checks.rb +1 -1
  27. data/lib/vagrant-bindfs/vagrant/capabilities/darwin.rb +1 -1
  28. data/lib/vagrant-bindfs/vagrant/capabilities/debian/bindfs.rb +8 -4
  29. data/lib/vagrant-bindfs/vagrant/capabilities/debian/fuse.rb +2 -2
  30. data/lib/vagrant-bindfs/vagrant/capabilities/debian/package_manager.rb +1 -1
  31. data/lib/vagrant-bindfs/vagrant/capabilities/debian.rb +1 -1
  32. data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/bindfs.rb +22 -12
  33. data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/fuse.rb +1 -1
  34. data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/package_manager.rb +1 -1
  35. data/lib/vagrant-bindfs/vagrant/capabilities/gentoo.rb +1 -1
  36. data/lib/vagrant-bindfs/vagrant/capabilities/linux/fuse.rb +1 -1
  37. data/lib/vagrant-bindfs/vagrant/capabilities/linux/package_manager.rb +1 -1
  38. data/lib/vagrant-bindfs/vagrant/capabilities/linux/system_checks.rb +1 -1
  39. data/lib/vagrant-bindfs/vagrant/capabilities/linux.rb +1 -1
  40. data/lib/vagrant-bindfs/vagrant/capabilities/redhat/bindfs.rb +3 -3
  41. data/lib/vagrant-bindfs/vagrant/capabilities/redhat/fuse.rb +2 -2
  42. data/lib/vagrant-bindfs/vagrant/capabilities/redhat/package_manager.rb +1 -1
  43. data/lib/vagrant-bindfs/vagrant/capabilities/redhat.rb +1 -1
  44. data/lib/vagrant-bindfs/vagrant/capabilities/suse/bindfs.rb +4 -2
  45. data/lib/vagrant-bindfs/vagrant/capabilities/suse/fuse.rb +2 -2
  46. data/lib/vagrant-bindfs/vagrant/capabilities/suse/package_manager.rb +1 -1
  47. data/lib/vagrant-bindfs/vagrant/capabilities/suse.rb +1 -1
  48. data/lib/vagrant-bindfs/vagrant/capabilities/ubuntu/fuse.rb +1 -1
  49. data/lib/vagrant-bindfs/vagrant/capabilities/ubuntu.rb +1 -1
  50. data/lib/vagrant-bindfs/vagrant/capabilities.rb +1 -1
  51. data/lib/vagrant-bindfs/vagrant/config.rb +1 -1
  52. data/lib/vagrant-bindfs/vagrant/errors.rb +3 -3
  53. data/lib/vagrant-bindfs/vagrant/plugin.rb +5 -7
  54. data/lib/vagrant-bindfs/vagrant.rb +1 -1
  55. data/lib/vagrant-bindfs/version.rb +1 -1
  56. data/lib/vagrant-bindfs.rb +1 -1
  57. data/vagrant-bindfs.gemspec +43 -0
  58. metadata +18 -13
  59. data/Rakefile +0 -25
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantBindfs
4
4
  module Vagrant
5
- class Plugin < ::Vagrant.plugin('2')
5
+ class Plugin < ::Vagrant.plugin('2') # :nodoc:
6
6
  name 'bindfs'
7
7
  description <<-DESC
8
8
  A Vagrant plugin to automate bindfs mount in the VM. This allow you to change owner, group and permissions on files and, for example, work around NFS share permissions issues.
@@ -25,12 +25,10 @@ module VagrantBindfs
25
25
 
26
26
  class << self
27
27
  def hooks
28
- @hooks ||= begin
29
- {
30
- synced_folders: synced_folders_hook,
31
- provision: ::Vagrant::Action::Builtin::Provision
32
- }
33
- end
28
+ @hooks ||= {
29
+ synced_folders: synced_folders_hook,
30
+ provision: ::Vagrant::Action::Builtin::Provision
31
+ }
34
32
  end
35
33
 
36
34
  def synced_folders_hook
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VagrantBindfs
4
- module Vagrant
4
+ module Vagrant # :nodoc:
5
5
  autoload :Plugin, 'vagrant-bindfs/vagrant/plugin'
6
6
  autoload :Config, 'vagrant-bindfs/vagrant/config'
7
7
  autoload :Capabilities, 'vagrant-bindfs/vagrant/capabilities'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VagrantBindfs
4
- VERSION = '1.1.8'
4
+ VERSION = '1.2.0'
5
5
  end
@@ -6,7 +6,7 @@ rescue LoadError
6
6
  raise 'The Vagrant bindfs plugin must be run within Vagrant'
7
7
  end
8
8
 
9
- module VagrantBindfs
9
+ module VagrantBindfs # :nodoc:
10
10
  autoload :Vagrant, 'vagrant-bindfs/vagrant'
11
11
  autoload :Bindfs, 'vagrant-bindfs/bindfs'
12
12
  end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'vagrant-bindfs/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'vagrant-bindfs'
9
+ spec.version = VagrantBindfs::VERSION
10
+ spec.licenses = ['MIT']
11
+ spec.authors = ['Gaël-Ian Havard', 'Igor Serebryany', 'Thomas Boerger']
12
+ spec.email = ['gaelian.havard@gmail.com', 'igor.serebryany@airbnb.com']
13
+
14
+ spec.summary = 'A Vagrant plugin to automate bindfs mount in the VM'
15
+ spec.description = <<-DESC.gsub(/\s+/, ' ')
16
+ A Vagrant plugin to automate bindfs mount in the VM.
17
+ Allows you to change owner, group and permissions on files and work around NFS share permissions issues.
18
+ DESC
19
+ spec.homepage = 'https://github.com/gael-ian/vagrant-bindfs'
20
+
21
+ raise 'RubyGems 2.0 or newer is required.' unless spec.respond_to?(:metadata)
22
+
23
+ spec.metadata = {
24
+ 'allowed_push_host' => 'https://rubygems.org',
25
+ 'rubygems_mfa_required' => 'true',
26
+
27
+ 'bug_tracker_uri' => 'https://github.com/gael-ian/vagrant-bindfs/issues',
28
+ 'changelog_uri' => 'https://github.com/gael-ian/vagrant-bindfs/blob/main/CHANGELOG.md',
29
+ 'homepage_uri' => 'https://github.com/gael-ian/vagrant-bindfs',
30
+ 'source_code_uri' => 'https://github.com/gael-ian/vagrant-bindfs',
31
+ 'funding_uri' => 'https://opencollective.com/notus-sh'
32
+ }
33
+
34
+ spec.require_paths = ['lib']
35
+
36
+ excluded_dirs = %r{^(.github|spec)/}
37
+ excluded_files = %w[.gitignore .rspec .rubocop.yml Gemfile Gemfile.lock Rakefile]
38
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
39
+ f.match(excluded_dirs) || excluded_files.include?(f)
40
+ end
41
+
42
+ spec.required_ruby_version = '>= 2.7'
43
+ 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: 1.1.8
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaël-Ian Havard
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-09-04 00:00:00.000000000 Z
13
+ date: 2023-03-07 00:00:00.000000000 Z
14
14
  dependencies: []
15
- description: " A Vagrant plugin to automate bindfs mount in the VM. This allow you
16
- to change owner, group and permissions on files and, for example, work around NFS
17
- share permissions issues. "
15
+ description: " A Vagrant plugin to automate bindfs mount in the VM. Allows you to
16
+ change owner, group and permissions on files and work around NFS share permissions
17
+ issues. "
18
18
  email:
19
19
  - gaelian.havard@gmail.com
20
20
  - igor.serebryany@airbnb.com
@@ -22,9 +22,9 @@ executables: []
22
22
  extensions: []
23
23
  extra_rdoc_files: []
24
24
  files:
25
+ - CHANGELOG.md
25
26
  - MIT-LICENSE
26
27
  - README.md
27
- - Rakefile
28
28
  - Vagrantfile
29
29
  - lib/vagrant-bindfs.rb
30
30
  - lib/vagrant-bindfs/bindfs.rb
@@ -80,30 +80,35 @@ files:
80
80
  - lib/vagrant-bindfs/vagrant/plugin.rb
81
81
  - lib/vagrant-bindfs/version.rb
82
82
  - locales/en.yml
83
+ - vagrant-bindfs.gemspec
83
84
  homepage: https://github.com/gael-ian/vagrant-bindfs
84
85
  licenses:
85
86
  - MIT
86
87
  metadata:
87
88
  allowed_push_host: https://rubygems.org
88
- issue_tracker: https://github.com/gael-ian/vagrant-bindfs/issues
89
+ rubygems_mfa_required: 'true'
90
+ bug_tracker_uri: https://github.com/gael-ian/vagrant-bindfs/issues
91
+ changelog_uri: https://github.com/gael-ian/vagrant-bindfs/blob/main/CHANGELOG.md
92
+ homepage_uri: https://github.com/gael-ian/vagrant-bindfs
93
+ source_code_uri: https://github.com/gael-ian/vagrant-bindfs
94
+ funding_uri: https://opencollective.com/notus-sh
89
95
  post_install_message:
90
96
  rdoc_options: []
91
97
  require_paths:
92
98
  - lib
93
99
  required_ruby_version: !ruby/object:Gem::Requirement
94
100
  requirements:
95
- - - "~>"
101
+ - - ">="
96
102
  - !ruby/object:Gem::Version
97
- version: '2.4'
103
+ version: '2.7'
98
104
  required_rubygems_version: !ruby/object:Gem::Requirement
99
105
  requirements:
100
106
  - - ">="
101
107
  - !ruby/object:Gem::Version
102
- version: 1.3.6
108
+ version: '0'
103
109
  requirements: []
104
- rubygems_version: 3.0.3
110
+ rubygems_version: 3.3.7
105
111
  signing_key:
106
112
  specification_version: 4
107
113
  summary: A Vagrant plugin to automate bindfs mount in the VM
108
- test_files:
109
- - Vagrantfile
114
+ test_files: []
data/Rakefile DELETED
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rubygems'
4
- require 'bundler/setup'
5
- require 'rspec/core/rake_task'
6
- require 'rubocop/rake_task'
7
-
8
- # Immediately sync all stdout
9
- $stdout.sync = true
10
- $stderr.sync = true
11
-
12
- # Change to the directory of this file
13
- Dir.chdir(__dir__)
14
-
15
- # Installs the tasks for gem creation
16
- Bundler::GemHelper.install_tasks
17
-
18
- # Install the `spec` task so that we can run tests
19
- RSpec::Core::RakeTask.new
20
-
21
- # Add Rubocop tasks
22
- RuboCop::RakeTask.new
23
-
24
- # Default task is to run the unit tests
25
- task default: 'spec'