vagrant-parallels 1.3.7 → 1.3.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: dfd2fa5af56237ca2457bd7c63abf411c45e8b6f
4
- data.tar.gz: b24c41c2ee88f3693b984e5e6a904abf290111f8
3
+ metadata.gz: 59cc5882980f59c4a61187d797eeec20196a07db
4
+ data.tar.gz: 01e32966ec0b3e3479cb899e3d4de0c0e6e28a6f
5
5
  SHA512:
6
- metadata.gz: 0717e0ffb04952ef5f2a0ee20e27472d08936bb59e3b5b1e5a406071558ce50817537fe25aa6bc99f94cab83d36a19bff2553b0f5ca3f82d85a8096c9a960fd9
7
- data.tar.gz: 668f8dfdcd42b7e694b672676bee2ef292d08595be7c8f45eeeb8724f81b1742f9361772e29630f5ed8f781ce24400abed47ace47efe2267463b7e984593f198
6
+ metadata.gz: 4c90fccd4bc5393b1c5fff1e6811e5f0797ef0473bf696c93c4a8799db456120627fc69989b9d4d6feb42808c03a3bbe838bc68425bad7d009f2a587141b4c56
7
+ data.tar.gz: a8f5be1fe10c4c93bcfd386e7a958a17d988fcec3e5f087530e2f99879e79f9f53a508848152f25599fdd20f8249f65f901f2025a1cd3a7a4e11ca8fdc5fb18a
@@ -185,8 +185,7 @@ module VagrantPlugins
185
185
 
186
186
  b1.use Call, IsState, :running do |env2, b2|
187
187
  if !env2[:result]
188
- b2.use Message, I18n.t("vagrant.commands.common.vm_not_running")
189
- next
188
+ raise Vagrant::Errors::VMNotRunningError
190
189
  end
191
190
 
192
191
  b2.use SSHExec
@@ -207,8 +206,7 @@ module VagrantPlugins
207
206
 
208
207
  b1.use Call, IsState, :running do |env2, b2|
209
208
  if !env2[:result]
210
- b2.use Message, I18n.t("vagrant.commands.common.vm_not_running")
211
- next
209
+ raise Vagrant::Errors::VMNotRunningError
212
210
  end
213
211
 
214
212
  b2.use SSHRun
@@ -308,7 +308,7 @@ module VagrantPlugins
308
308
 
309
309
  def read_mac_addresses
310
310
  macs = read_vm_option('mac').strip.split(' ')
311
- Hash[macs.map.with_index{ |mac, ind| [ind.to_s, mac.gsub(':', '')] }]
311
+ Hash[macs.map.with_index{ |mac, ind| [ind, mac.gsub(':', '')] }]
312
312
  end
313
313
 
314
314
  def read_network_interfaces
@@ -24,8 +24,6 @@ module VagrantPlugins
24
24
 
25
25
  # Temporary disable automatically pre-configured forwarded ports
26
26
  # for SSH, since it is working not so well [GH-146]
27
- # TODO: Roll it back when forwarded ports will be completely
28
- # fixed in Parallels Desktop 10
29
27
  next if id == 'ssh'
30
28
 
31
29
  mappings[host_port.to_s + protocol.to_s] =
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Parallels
3
- VERSION = '1.3.7'
3
+ VERSION = '1.3.8'
4
4
  end
5
5
  end
@@ -187,8 +187,8 @@ shared_examples "parallels desktop driver" do |options|
187
187
  describe "read_mac_addresses" do
188
188
  it "returns MAC addresses of all network interface cards" do
189
189
  subject.read_mac_addresses.should be_kind_of(Hash)
190
- subject.read_mac_addresses.should include("0")
191
- subject.read_mac_addresses["0"].should be_kind_of(String)
190
+ subject.read_mac_addresses.should include(0)
191
+ subject.read_mac_addresses[0].should be_kind_of(String)
192
192
  end
193
193
  end
194
194
 
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: 1.3.7
4
+ version: 1.3.8
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: 2014-12-25 00:00:00.000000000 Z
12
+ date: 2015-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler