vagrant-hostmanager 1.8.7 → 1.8.8

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
  SHA1:
3
- metadata.gz: 273021939378ee108fee40f695d83d106052d8c1
4
- data.tar.gz: 41a2dc129bc330935a9b3220cffb65ef00594a86
3
+ metadata.gz: fdb0a0eb13e64cf9530407a15bf5efe9523a7968
4
+ data.tar.gz: '0629a70649acb753bed9936af7e06c8c0324ff0a'
5
5
  SHA512:
6
- metadata.gz: e359ce04cb48c23abb4e1fde31405c4cc302cfc9cf6c1c44252e2804dd74b1b16d3b33ecae4f333f739d081efa29e745b9503bf57c9c341d80ad7f913aec2438
7
- data.tar.gz: 389d7c2418f96085b9b6e071be00b61e98df6327b812c81da8b4cd90077c43c54906cb6a150cf53b58421df31358d69f6b45623bec204986d90e36a85df60402
6
+ metadata.gz: 9ac3e558ebade1adaca93526218eec2fa70ac89157691c1f691397d885b02e5d2f5dd294f9f35cf0a0aa77be546e0eaaca267021b88efdb3efd49cbdecdf2ea3
7
+ data.tar.gz: b409c3c0586a870a43266fab2eefabe5fcdbebe3cb65bd0171d26636f0bc7f2b26c211f63a873e282ea24e97c9395c5f354bc15ce18e7bf0e9ffe743edf8d931
data/README.md CHANGED
@@ -212,7 +212,7 @@ To release a new version of vagrant-hostmanager you will need to do the followin
212
212
 
213
213
  *(only contributors of the GitHub repo and owners of the project at RubyGems will have rights to do this)*
214
214
 
215
- 1. First, bump the version in ~/lib/vagrant-hostmanager/version.rb:
215
+ 1. First, bump, commit, and push the version in ~/lib/vagrant-hostmanager/version.rb:
216
216
  * Follow [Semantic Versioning](http://semver.org/).
217
217
  2. Then, create a matching GitHub Release (this will also create a tag):
218
218
  * Preface the version number with a `v`.
@@ -45,7 +45,7 @@ module VagrantPlugins
45
45
  if windir
46
46
  machine.communicate.sudo("mv -force /tmp/hosts.#{machine.name} #{realhostfile}")
47
47
  else
48
- machine.communicate.sudo("cat /tmp/hosts.#{machine.name} > #{realhostfile} && rm /tmp/hosts.#{machine.name}")
48
+ machine.communicate.sudo("cat /tmp/hosts.#{machine.name} > #{realhostfile} && rm -f /tmp/hosts.#{machine.name}")
49
49
  end
50
50
  end
51
51
 
@@ -65,7 +65,7 @@ module VagrantPlugins
65
65
  line_endings = "crlf"
66
66
  else
67
67
  hosts_location = '/etc/hosts'
68
- copy_proc = Proc.new { `[ -w #{hosts_location} ] && cat #{file} > #{hosts_location} || sudo cp #{file} #{hosts_location}` }
68
+ copy_proc = Proc.new { `[ -w "#{hosts_location}" ] && cat "#{file}" > "#{hosts_location}" || sudo cp "#{file}" "#{hosts_location}"` }
69
69
  line_endings = "lf"
70
70
  end
71
71
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module HostManager
3
- VERSION = '1.8.7'
3
+ VERSION = '1.8.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-hostmanager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.7
4
+ version: 1.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shawn Dahlen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-11 00:00:00.000000000 Z
12
+ date: 2018-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.6.12
94
+ rubygems_version: 2.5.2
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: A Vagrant plugin that manages the /etc/hosts file within a multi-machine