rspec-system 0.3.3 → 0.3.4

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.
@@ -136,6 +136,7 @@ module RSpecSystem
136
136
  v.vm.host_name = '#{k}'
137
137
  v.vm.box = '#{ps['box']}'
138
138
  v.vm.box_url = '#{ps['box_url']}'
139
+ v.vm.base_mac = '#{randmac}'
139
140
  end
140
141
  EOS
141
142
  end
@@ -198,5 +199,13 @@ module RSpecSystem
198
199
  def tmppath
199
200
  '/tmp/' + random_string
200
201
  end
202
+
203
+ # Return a random mac address
204
+ #
205
+ # @api private
206
+ # @return [String] a random mac address
207
+ def randmac
208
+ "080027" + (1..3).map{"%0.2X"%rand(256)}.join
209
+ end
201
210
  end
202
211
  end
data/rspec-system.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  # Metadata
4
4
  s.name = "rspec-system"
5
- s.version = "0.3.3"
5
+ s.version = "0.3.4"
6
6
  s.authors = ["Ken Barber"]
7
7
  s.email = ["ken@bob.sh"]
8
8
  s.homepage = "https://github.com/kbarber/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: 0.3.3
4
+ version: 0.3.4
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-04-13 00:00:00.000000000 Z
12
+ date: 2013-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec