rspec-system 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,10 @@
1
+ 2.2.1
2
+ =====
3
+
4
+ This minor fix release converts the Vagrant/Virtualbox provider to use version 2 of the configuration format, fixing some bugs in relation to warnings being printed to STDOUT instead of STDERR.
5
+
6
+ -------------------------------
7
+
1
8
  2.2.0
2
9
  =====
3
10
 
@@ -10,6 +17,8 @@ This feature release adds the ability to pass a node as a string to helpers, and
10
17
  * Document basic multi-node usage (Ken Barber)
11
18
  * Created an FAQ section and included info about serverspec (Ken Barber)
12
19
 
20
+ -------------------------------
21
+
13
22
  2.1.2
14
23
  =====
15
24
 
@@ -129,17 +129,19 @@ module RSpecSystem
129
129
  log.info "[Vagrant#create_vagrantfile] Creating vagrant file here: #{@vagrant_path}"
130
130
  FileUtils.mkdir_p(@vagrant_path)
131
131
  File.open(File.expand_path(File.join(@vagrant_path, "Vagrantfile")), 'w') do |f|
132
- f.write("Vagrant::Config.run do |c|\n")
132
+ f.write('Vagrant.configure("2") do |c|' + "\n")
133
133
  nodes.each do |k,v|
134
134
  log.debug "Filling in content for #{k}"
135
135
 
136
136
  ps = v.provider_specifics['vagrant']
137
137
 
138
138
  node_config = " c.vm.define '#{k}' do |v|\n"
139
- node_config << " v.vm.host_name = '#{k}'\n"
139
+ node_config << " v.vm.hostname = '#{k}'\n"
140
140
  node_config << " v.vm.box = '#{ps['box']}'\n"
141
141
  node_config << " v.vm.box_url = '#{ps['box_url']}'\n" unless ps['box_url'].nil?
142
- node_config << " v.vm.base_mac = '#{randmac}'\n"
142
+ node_config << " v.vm.provider 'virtualbox' do |vbox|\n"
143
+ node_config << " vbox.customize ['modifyvm',:id,'--macaddress1','#{randmac}']\n"
144
+ node_config << " end\n"
143
145
  node_config << " end\n"
144
146
 
145
147
  f.write(node_config)
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  # Metadata
4
4
  s.name = "rspec-system"
5
- s.version = "2.2.0"
5
+ s.version = "2.2.1"
6
6
  s.authors = ["Ken Barber"]
7
7
  s.email = ["info@puppetlabs.com"]
8
8
  s.homepage = "https://github.com/puppetlabs/rspec-system"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-06 00:00:00.000000000 Z
12
+ date: 2013-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -217,3 +217,4 @@ test_files:
217
217
  - spec/unit/kwalify-schemas/prefabs_schema_spec.rb
218
218
  - spec/unit/result_spec.rb
219
219
  - spec/unit/utils_spec.rb
220
+ has_rdoc: