kitchen-vagrant 1.0.1 → 1.0.2

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: 2ee72d57d556a167ee66c7d6e9feab387a26568d
4
- data.tar.gz: 73b264e1d64ca412181265fb9823f52b5a77a992
3
+ metadata.gz: 05ed2e3e9d5d34674af87a20b09ac774d3981d8e
4
+ data.tar.gz: 993f6bb3134feaeec34c4f24eebf315a6c79f93b
5
5
  SHA512:
6
- metadata.gz: b7eebf2687a97c3b7b7b6af8f7047e3ddb166887a5012d47bad1c495902df3751cb84a6f39a6def15a27140925482f269fca6e6678c558ce15cafd42a661aabb
7
- data.tar.gz: 3aee9e2aba2d2cc138be17e623d75d3941dabd5cfbb90db8483c78a0fcda9b391687a6deb91fc573e74dca86e38b955275107c57126f9db17aad480dc9d7ba89
6
+ metadata.gz: e460544290ba5a7f7487f7dcf3269d18a0c64703d551b0ec0e14b5392cc23343d6839914cd46d703dd17e4dd122eb199b497368b4144a50a5319ecc581f808e8
7
+ data.tar.gz: d0579858e6613e6141f327eb774dc4aecf738bde8bf375f6cc21b2241f5c59a3211eabbc825c299111fadfbc6f598b0b6d78ab08df22b655f604ca6a468f3a6d
@@ -1,3 +1,12 @@
1
+ # Change Log
2
+
3
+ ## [v1.0.2](https://github.com/test-kitchen/kitchen-vagrant/tree/v1.0.2) (2017-02-13)
4
+ [Full Changelog](https://github.com/test-kitchen/kitchen-vagrant/compare/v1.0.1...v1.0.2)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - Fixed a bug that can occur when `instance` returns `nil` [\#285](https://github.com/test-kitchen/kitchen-vagrant/pull/285) ([Kuniwak](https://github.com/Kuniwak))
9
+
1
10
  ## [v1.0.1](https://github.com/test-kitchen/kitchen-vagrant/tree/v1.0.1) (2017-02-10)
2
11
  [Full Changelog](https://github.com/test-kitchen/kitchen-vagrant/compare/v1.0.0...v1.0.1)
3
12
 
@@ -469,10 +469,13 @@ module Kitchen
469
469
  # instance's Vagrantfile
470
470
  # @api private
471
471
  def vagrant_root
472
- root = File.join(config[:kitchen_root], %w{.kitchen kitchen-vagrant},
473
- "kitchen-#{File.basename(config[:kitchen_root])}-#{instance.name}"
474
- )
475
- @vagrant_root ||= instance.nil? ? nil : root
472
+ if !@vagrant_root && !instance.nil?
473
+ @vagrant_root = File.join(
474
+ config[:kitchen_root], %w{.kitchen kitchen-vagrant},
475
+ "kitchen-#{File.basename(config[:kitchen_root])}-#{instance.name}"
476
+ )
477
+ end
478
+ @vagrant_root
476
479
  end
477
480
 
478
481
  # @param type [Symbol] either `:ssh` or `:winrm`
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for Vagrant Kitchen driver
24
- VAGRANT_VERSION = "1.0.1"
24
+ VAGRANT_VERSION = "1.0.2"
25
25
  end
26
26
  end
@@ -48,6 +48,10 @@ describe Kitchen::Driver::Vagrant do
48
48
  d
49
49
  end
50
50
 
51
+ let(:driver_with_no_instance) do
52
+ driver_object
53
+ end
54
+
51
55
  let(:instance) do
52
56
  Kitchen::Instance.new(
53
57
  :verifier => verifier,
@@ -540,6 +544,12 @@ describe Kitchen::Driver::Vagrant do
540
544
  driver.verify_dependencies
541
545
  end
542
546
 
547
+ it "passes for supported versions of Vagrant when it has no instances" do
548
+ with_modern_vagrant
549
+
550
+ driver_with_no_instance.verify_dependencies
551
+ end
552
+
543
553
  it "raises a UserError for unsupported versions of Vagrant" do
544
554
  with_unsupported_vagrant
545
555
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-vagrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Nichol
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-10 00:00:00.000000000 Z
11
+ date: 2017-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen