hat-trick 0.1.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,5 @@
1
+ * 0.2.0 - Now calls before/after :each callbacks before the step-specific ones
2
+
1
3
  * 0.1.5 - Allow hide_button DSL method inside before / after blocks
2
4
 
3
5
  * 0.1.4 - Make the rails env available in JS as window.hatTrick.railsEnv
@@ -143,7 +143,7 @@ module HatTrick
143
143
  def before_callbacks
144
144
  before_callbacks = [callbacks[:before]]
145
145
  if wizard.before_callback_for_all_steps
146
- before_callbacks << wizard.before_callback_for_all_steps
146
+ before_callbacks.unshift wizard.before_callback_for_all_steps
147
147
  end
148
148
  before_callbacks
149
149
  end
@@ -164,7 +164,7 @@ module HatTrick
164
164
  def after_callbacks
165
165
  after_callbacks = [callbacks[:after]]
166
166
  if wizard.after_callback_for_all_steps
167
- after_callbacks << wizard.after_callback_for_all_steps
167
+ after_callbacks.unshift wizard.after_callback_for_all_steps
168
168
  end
169
169
  after_callbacks
170
170
  end
@@ -1,3 +1,3 @@
1
1
  module HatTrick
2
- VERSION = "0.1.5"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hat-trick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
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-01-25 00:00:00.000000000 Z
12
+ date: 2013-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec