vagrant-triggers 0.4.0 → 0.4.1

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: 24bfa273b967f208d110651eda1e6c9dc807ecf0
4
- data.tar.gz: 643443292d3045678520d9b864bf00811648e8fc
3
+ metadata.gz: 8b8ad1f94f85b3254ddbe243f0e4624b2cdc2ca4
4
+ data.tar.gz: de5f4ed124442ae02058d9aadea4b04ad5555ff3
5
5
  SHA512:
6
- metadata.gz: 26fafa806afa5d6863033843dfe1329297ade73a8df715945ca1e877100925f12db659d63073b0a91bbc11f59b1d0734b1df3874ca4f073fde8a9eee4e45c9cd
7
- data.tar.gz: d285bca1d4d3c2cba1dea08748cd7434aa8f3d5e8b3dac8a147269c4308cc57ade7e4458c29433d01fb7cf943c81917cb0ea7cde6d92c03dea95efb720aa4355
6
+ metadata.gz: e8a08937ca2418e411d7fb5991cbd39f611785533ad19fb13022f1fa04cbad285adf9018b3f2e70d993eb80ea7ac14d5c3e110866ed12ea4e25ac861902a0f4c
7
+ data.tar.gz: 2e7f17653c43b5893fa791ed0f39b21556e28aff328951a238d023ca0bc4c10d2e82beefa1415aef6f0b3cde31f0382e16355e4f060070b7e95b0492d5e82784
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.4.1 (June 20, 2014)
2
+
3
+ BUG FIXES:
4
+
5
+ - Ensure after triggers are run at the very end of the action [(#14)](https://github.com/emyl/vagrant-triggers/issues/14)
6
+
1
7
  ## 0.4.0 (May 20, 2014)
2
8
 
3
9
  NEW FEATURES:
@@ -13,9 +13,9 @@ module VagrantPlugins
13
13
  end
14
14
 
15
15
  def call(env)
16
- fire_triggers
17
-
16
+ fire_triggers unless @condition == :after
18
17
  @app.call(env) unless @exit
18
+ fire_triggers if @condition == :after
19
19
  end
20
20
 
21
21
  private
@@ -27,9 +27,7 @@ module VagrantPlugins
27
27
  action_hook(:trigger, Plugin::ALL_ACTIONS) do |hook|
28
28
  require_relative "action"
29
29
  unless ENV["VAGRANT_NO_TRIGGERS"]
30
- hook.prepend(Action.action_trigger(:before))
31
- hook.prepend(Action.action_trigger(:instead_of))
32
- hook.append(Action.action_trigger(:after))
30
+ [:before, :instead_of, :after].each { |condition| hook.prepend(Action.action_trigger(condition)) }
33
31
  end
34
32
  end
35
33
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Triggers
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-triggers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emiliano Ticci
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-20 00:00:00.000000000 Z
11
+ date: 2014-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler