incredible 0.0.2.pre → 0.0.3.pre

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: 2719e5df6c532eb211e72a2ca189e31a7ccf7b8e
4
- data.tar.gz: 1dead0a9b1eeeb8683e42fc97a8c81bf73e1277f
3
+ metadata.gz: 41debf17d70ff5ec110c18adc7e772b56ff48328
4
+ data.tar.gz: 1fa531e0c3b0f7d029918061a96adf8b2fc66752
5
5
  SHA512:
6
- metadata.gz: 49ea21f4e8fb664430e3431f88dd760fffef0d0e1a79cf9c04cfabfe78df2a38319e2eb8e37e4b6b80b6093ceccc202093b3083d3fcec22286827b5a38c1de16
7
- data.tar.gz: f7e187f3cee82ee529b8af163b476728900127e1d378793c406368b338dd27023fc730e7d7aa33bbc9045c5a3a0cb1cde17a8736a8640b0f8b8790434d28b681
6
+ metadata.gz: 95753133501fc2424219e7572c9057b0a188d8e1c4da39a69a057c082bce423d1c6b71ecb12b5b7978f26029babb0bc4f1aae7a49101ebdf0930eeac9515298e
7
+ data.tar.gz: 9e59d02f74d5516d8ae4f6932c8443e3a3d6973e28b6175643a6f283a5401855581be02da12d646b0a92e5a71235f0abd11dec0ec76c4065df2f130632323ddf
@@ -1,3 +1,3 @@
1
1
  module Incredible
2
- VERSION = '0.0.2.pre'.freeze
2
+ VERSION = '0.0.3.pre'.freeze
3
3
  end
@@ -22,7 +22,7 @@ module Incredible
22
22
 
23
23
  def process_rules
24
24
  return unless step_data.rule
25
- next_step = step_data.rule.send(:process, permitted_params)
25
+ next_step = step_data.rule.send(:process, params)
26
26
  jump_to next_step
27
27
  end
28
28
 
@@ -1,7 +1,7 @@
1
1
  class Step1Rule
2
2
 
3
3
  def self.process(params)
4
- return unless params[:name] == 'Mike'
4
+ return unless params[:model][:name] == 'Mike'
5
5
  :step3
6
6
  end
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incredible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.pre
4
+ version: 0.0.3.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - pezholio
@@ -225,49 +225,49 @@ signing_key:
225
225
  specification_version: 4
226
226
  summary: Build multi-page forms like a General
227
227
  test_files:
228
- - spec/spec_helper.rb
229
- - spec/form_spec.rb
230
- - spec/controllers/forms_controller_spec.rb
231
- - spec/loader_spec.rb
232
- - spec/dummy/Rakefile
233
- - spec/dummy/config.ru
234
- - spec/dummy/config/forms/bad-yaml.yml
235
- - spec/dummy/config/forms/form.yml
228
+ - spec/step_spec.rb
229
+ - spec/dummy/config/environments/development.rb
230
+ - spec/dummy/config/environments/test.rb
231
+ - spec/dummy/config/environments/production.rb
236
232
  - spec/dummy/config/application.rb
237
- - spec/dummy/config/environment.rb
238
- - spec/dummy/config/puma.rb
239
- - spec/dummy/config/cable.yml
233
+ - spec/dummy/config/secrets.yml
240
234
  - spec/dummy/config/spring.rb
241
- - spec/dummy/config/environments/production.rb
242
- - spec/dummy/config/environments/test.rb
243
- - spec/dummy/config/environments/development.rb
244
- - spec/dummy/config/boot.rb
245
- - spec/dummy/config/locales/en.yml
235
+ - spec/dummy/config/cable.yml
236
+ - spec/dummy/config/forms/form.yml
237
+ - spec/dummy/config/forms/bad-yaml.yml
238
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
246
239
  - spec/dummy/config/initializers/wrap_parameters.rb
247
240
  - spec/dummy/config/initializers/mime_types.rb
248
- - spec/dummy/config/initializers/inflections.rb
249
- - spec/dummy/config/initializers/assets.rb
250
241
  - spec/dummy/config/initializers/cookies_serializer.rb
251
242
  - spec/dummy/config/initializers/backtrace_silencers.rb
252
- - spec/dummy/config/initializers/filter_parameter_logging.rb
253
243
  - spec/dummy/config/initializers/application_controller_renderer.rb
254
- - spec/dummy/config/secrets.yml
244
+ - spec/dummy/config/initializers/assets.rb
245
+ - spec/dummy/config/initializers/inflections.rb
246
+ - spec/dummy/config/boot.rb
247
+ - spec/dummy/config/environment.rb
248
+ - spec/dummy/config/puma.rb
255
249
  - spec/dummy/config/routes.rb
256
- - spec/dummy/bin/yarn
257
- - spec/dummy/bin/rake
258
- - spec/dummy/bin/bundle
259
- - spec/dummy/bin/rails
260
- - spec/dummy/bin/update
261
- - spec/dummy/bin/setup
262
- - spec/dummy/app/rules/step1_rule.rb
263
- - spec/dummy/app/views/forms/bar.html.erb
250
+ - spec/dummy/config/locales/en.yml
251
+ - spec/dummy/Rakefile
264
252
  - spec/dummy/app/views/forms/foo.html.erb
253
+ - spec/dummy/app/views/forms/bar.html.erb
254
+ - spec/dummy/app/views/layouts/mailer.text.erb
265
255
  - spec/dummy/app/views/layouts/application.html.erb
266
256
  - spec/dummy/app/views/layouts/mailer.html.erb
267
- - spec/dummy/app/views/layouts/mailer.text.erb
257
+ - spec/dummy/app/rules/step1_rule.rb
258
+ - spec/dummy/app/controllers/application_controller.rb
259
+ - spec/dummy/app/controllers/forms_controller.rb
268
260
  - spec/dummy/app/models/application_record.rb
269
261
  - spec/dummy/app/models/stub_model.rb
270
- - spec/dummy/app/controllers/forms_controller.rb
271
- - spec/dummy/app/controllers/application_controller.rb
272
262
  - spec/dummy/package.json
273
- - spec/step_spec.rb
263
+ - spec/dummy/config.ru
264
+ - spec/dummy/bin/rails
265
+ - spec/dummy/bin/setup
266
+ - spec/dummy/bin/rake
267
+ - spec/dummy/bin/update
268
+ - spec/dummy/bin/yarn
269
+ - spec/dummy/bin/bundle
270
+ - spec/form_spec.rb
271
+ - spec/loader_spec.rb
272
+ - spec/spec_helper.rb
273
+ - spec/controllers/forms_controller_spec.rb