hat-trick 0.1.1 → 0.1.2

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.
data/Changelog CHANGED
@@ -1,3 +1,5 @@
1
+ * 0.1.2 - Fixes GH issue #4 - Don't run skipped steps' include_data callbacks
2
+
1
3
  * 0.1.1 - Added LICENSE file to license hat-trick under the MIT license.
2
4
 
3
5
  * 0.1 - Initial working release
@@ -1,3 +1,3 @@
1
1
  module HatTrick
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -137,7 +137,7 @@ module HatTrick
137
137
  def include_data
138
138
  return {} if model.nil?
139
139
  inc_data = {}
140
- include_data_steps = steps_before(current_step) << current_step
140
+ include_data_steps = steps_before(current_step).reject(&:skipped?) << current_step
141
141
  include_data_steps.each do |step|
142
142
  step_data = step.run_include_data_callback(controller, model)
143
143
  next if step_data.nil? || !step_data.respond_to?(:as_json)
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.1
4
+ version: 0.1.2
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: 2012-06-18 00:00:00.000000000 Z
12
+ date: 2012-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  segments:
166
166
  - 0
167
- hash: 799965155332108085
167
+ hash: 1450664364923372650
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  none: false
170
170
  requirements:
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: 799965155332108085
176
+ hash: 1450664364923372650
177
177
  requirements: []
178
178
  rubyforge_project: hat-trick
179
179
  rubygems_version: 1.8.23