vagrant-cucumber 0.0.6 → 0.0.7

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: c41ce1a1d20cf1abebb503c356077cfbe74cdccf
4
- data.tar.gz: 6dedb4b12c7af2c245b6c194e33d654f5c8b3673
3
+ metadata.gz: f2283baeb8bfed395ad1ec585245756528c10d86
4
+ data.tar.gz: d98ac5ae2e18c9c91c9253727111f1638e1ef4d6
5
5
  SHA512:
6
- metadata.gz: 99b6e2310e58360da1f153d1f2e288b7ea676bf4566e9f3da3c450934ef7943adb3345c3486aafede9a10dc3f2c9ed0a9600894e61c4b0d329f7ac5e95da4d5e
7
- data.tar.gz: 9ab30863497064e12773fb1fab48cfaab42ce101efe905b894cbc67edd6d8faa369a5cc57cb91e8032d052212097467433b8e4955f8d4970b75f3f13952fd87e
6
+ metadata.gz: 3e391d8b8737415d4c8541e5d0e3e6d7783497528cb99fec4082739819ce0a384d774fdde76005e0db4df9c19f894cfb0cf293b3652f7e6381b3255498a8932e
7
+ data.tar.gz: 5e04bf5b1845d60259a8e87ca2283df729fe138b661a68396ac55cd7e9b881bb01ccf232a5518b909d68e99ff290b3938a691f7dc7eaaf4c7756e9cb197251c8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.7 (April 28, 2014)
2
+
3
+ * Solves an edge case in environment creation
4
+
1
5
  ## 0.0.6 (March 11, 2014)
2
6
 
3
7
  * Support Vagrant 1.5 approach to plugin loading
data/example/Vagrantfile CHANGED
@@ -1,5 +1,3 @@
1
- Vagrant.require_plugin('vagrant-cucumber')
2
-
3
1
  Vagrant.configure("2") do |config|
4
2
 
5
3
  config.vm.box = "precise64"
@@ -9,6 +9,9 @@ module VagrantPlugins
9
9
 
10
10
  require 'vagrant-cucumber/cucumber/formatter/pretty'
11
11
  require 'vagrant-cucumber/cucumber/formatter/html'
12
+ require 'vagrant-cucumber/glue'
13
+
14
+ VagrantPlugins::Cucumber::Glue::VagrantGlue.set_environment(@env)
12
15
 
13
16
  failure = ::Cucumber::Cli::Main.execute(@argv)
14
17
 
@@ -19,12 +19,15 @@ module VagrantPlugins
19
19
 
20
20
  class VagrantGlue
21
21
 
22
- def initialize
22
+ @@vagrant_env = nil
23
23
 
24
- @vagrant_env = Vagrant::Environment.new(
25
- :ui_class => Vagrant::UI::Basic
26
- )
24
+ def self.set_environment(env)
25
+ @@vagrant_env = env
26
+ end
27
+
28
+ def initialize
27
29
 
30
+ @vagrant_env = @@vagrant_env or raise "The vagrant_env hasn't been set"
28
31
  @last_machine_mentioned = nil
29
32
 
30
33
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Cucumber
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Topper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-11 00:00:00.000000000 Z
11
+ date: 2014-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber