vagrant-multi-hostsupdater 0.0.4 → 0.0.5

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: f4366a15c5d009787a90c0ffb71e02981fc209b1
4
- data.tar.gz: f5d33a4e739a27793cac0186ce4a7dbd6ec9ee9a
3
+ metadata.gz: 54badcf5143d34a0b9263f42716841c79a28d118
4
+ data.tar.gz: 517850ef8113a6eb5b13df709c0ec1f30525d267
5
5
  SHA512:
6
- metadata.gz: 0c41168e7291c5faa50c5efed56afb53fd6b4773c82e85102206eb55492d25ea20e61c02ced49557f40a058d72d669ef20b737a04dda71e16bde28655bde5647
7
- data.tar.gz: 0e27e0649c3797b57bbf99020651a5802dcb6bd12f7eaeec1561805f6413005429595940bbd4ade78d154d4a6da34b015f1bca644257e89bcc6ba2875bab9b67
6
+ metadata.gz: 1d876ea7ae5b7b5a0ed14c1ef3d03181ec763c544007c67f3f66ac31b697ee576f12e636278a47a92638935d4350984775b68b9987b207f9ace65ede266d44fa
7
+ data.tar.gz: 3c131918813217828add4b93f1cb7768c6f971817396720bb8f8c01076bf751b7c9ab7e83f63c0f45d3a4fd1e6f5a349db4d067e99c8ae0eebf6261aacb8e71b
data/README.md CHANGED
@@ -6,6 +6,8 @@ On **up**, **resume** and **reload** commands, it tries to add the information,
6
6
 
7
7
  On **halt** and **destroy**, those entries will be removed again.
8
8
 
9
+ [![Gem Version](https://badge.fury.io/rb/vagrant-multi-hostsupdater.svg)](http://badge.fury.io/rb/vagrant-multi-hostsupdater)
10
+
9
11
  ## Installation
10
12
 
11
13
  $ vagrant plugin install vagrant-multi-hostsupdater
@@ -20,8 +20,8 @@ module VagrantPlugins
20
20
  hostnames = []
21
21
  if @machine.config.multihostsupdater.aliases.is_a?(Hash)
22
22
  hostnames = @machine.config.multihostsupdater.aliases[ip] || hostnames
23
- else
24
- hostnames = Array(@machine.config.vm.hostname)
23
+ elsif @machine.config.multihostsupdater.aliases.is_a?(Array)
24
+ hostnames = Array(@machine.config.vm.hostname) if !@machine.config.vm.hostname.nil?
25
25
  hostnames.concat(@machine.config.multihostsupdater.aliases)
26
26
  end
27
27
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module MultiHostsUpdater
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-multi-hostsupdater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Fellows
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-02 00:00:00.000000000 Z
11
+ date: 2015-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler