incredible 0.0.7.pre → 0.0.8.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: 8030f5691f07f8778bb27e3bdf05748b3bc813b3
4
- data.tar.gz: 5f8b07d6ea4c27c8a92c63a2900eefef66509e3b
3
+ metadata.gz: 8a72f9542bb530eb38e4caac850f2467ebfe70ba
4
+ data.tar.gz: 2d6f97d707af105efb96a41c0db2805331a127ad
5
5
  SHA512:
6
- metadata.gz: a51f12343fa4e88857cccc5dccaeb819139bb41288ca882dcf213a3525face93ceddec2e02467710a4690bc89e97ef32f3ae26479bd614c9aa4bbd00488fa241
7
- data.tar.gz: a801fdb39395fa18deb9b33e1e05756efc5ff30b31ef472bc390b367c6c0ece83c0348a790a334b2d9cf9cabdd1f5b8faddb3f7e81c1545c1d1388a677f14d4c
6
+ metadata.gz: cad77921d9430a11864ba59f8b7adeb1d81a807a70f8e06f232afbfb1c79bb7c22bd49a3cfc905593d66ec6349984b3e684faf681094ea4da83802d2ca83f4a4
7
+ data.tar.gz: a8fcf2f285b24b73ddee0c9554d4ba89a1ac3370d8e9f73022659d9fd15406ced048a19277d4ad23cb2f6ce4917c474edfe063c6c297e070d3f9ee0433de9051
@@ -4,9 +4,11 @@ module Incredible
4
4
  attr_accessor :redirect
5
5
  attr_accessor :next_step
6
6
  attr_reader :params
7
+ attr_reader :request
7
8
 
8
- def initialize(params)
9
+ def initialize(params, request)
9
10
  @params = params
11
+ @request = request
10
12
  process
11
13
  end
12
14
 
@@ -1,3 +1,3 @@
1
1
  module Incredible
2
- VERSION = '0.0.7.pre'.freeze
2
+ VERSION = '0.0.8.pre'.freeze
3
3
  end
@@ -22,7 +22,7 @@ module Incredible
22
22
 
23
23
  def load_next_step
24
24
  if incredible_step.rule
25
- @rule = incredible_step.rule.send(:new, params)
25
+ @rule = incredible_step.rule.send(:new, params, request)
26
26
  process_rule
27
27
  elsif incredible_step.next_step
28
28
  jump_to incredible_step.next_step
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incredible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7.pre
4
+ version: 0.0.8.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - pezholio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-20 00:00:00.000000000 Z
11
+ date: 2018-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -228,51 +228,51 @@ signing_key:
228
228
  specification_version: 4
229
229
  summary: Build multi-page forms like a General
230
230
  test_files:
231
- - spec/loader_spec.rb
232
231
  - spec/form_spec.rb
233
232
  - spec/spec_helper.rb
233
+ - spec/controllers/forms_controller_spec.rb
234
234
  - spec/step_spec.rb
235
- - spec/dummy/package.json
236
- - spec/dummy/config/routes.rb
237
- - spec/dummy/config/environments/test.rb
238
- - spec/dummy/config/environments/development.rb
239
- - spec/dummy/config/environments/production.rb
240
- - spec/dummy/config/application.rb
235
+ - spec/loader_spec.rb
236
+ - spec/dummy/config.ru
237
+ - spec/dummy/Rakefile
238
+ - spec/dummy/app/models/application_record.rb
239
+ - spec/dummy/app/models/stub_model.rb
240
+ - spec/dummy/app/rules/step3_rule.rb
241
+ - spec/dummy/app/rules/step1_rule.rb
242
+ - spec/dummy/app/controllers/application_controller.rb
243
+ - spec/dummy/app/controllers/forms_controller.rb
244
+ - spec/dummy/app/controllers/things_controller.rb
245
+ - spec/dummy/app/views/forms/foo.html.erb
246
+ - spec/dummy/app/views/forms/bar.html.erb
247
+ - spec/dummy/app/views/layouts/mailer.html.erb
248
+ - spec/dummy/app/views/layouts/mailer.text.erb
249
+ - spec/dummy/app/views/layouts/application.html.erb
241
250
  - spec/dummy/config/secrets.yml
251
+ - spec/dummy/config/application.rb
242
252
  - spec/dummy/config/environment.rb
253
+ - spec/dummy/config/forms/form.yml
254
+ - spec/dummy/config/forms/bad-yaml.yml
243
255
  - spec/dummy/config/puma.rb
244
256
  - spec/dummy/config/cable.yml
257
+ - spec/dummy/config/routes.rb
258
+ - spec/dummy/config/locales/en.yml
245
259
  - spec/dummy/config/spring.rb
260
+ - spec/dummy/config/initializers/application_controller_renderer.rb
246
261
  - spec/dummy/config/initializers/mime_types.rb
262
+ - spec/dummy/config/initializers/wrap_parameters.rb
263
+ - spec/dummy/config/initializers/inflections.rb
247
264
  - spec/dummy/config/initializers/cookies_serializer.rb
248
- - spec/dummy/config/initializers/assets.rb
249
265
  - spec/dummy/config/initializers/backtrace_silencers.rb
250
- - spec/dummy/config/initializers/application_controller_renderer.rb
251
- - spec/dummy/config/initializers/inflections.rb
252
- - spec/dummy/config/initializers/wrap_parameters.rb
266
+ - spec/dummy/config/initializers/assets.rb
253
267
  - spec/dummy/config/initializers/filter_parameter_logging.rb
268
+ - spec/dummy/config/environments/development.rb
269
+ - spec/dummy/config/environments/production.rb
270
+ - spec/dummy/config/environments/test.rb
254
271
  - spec/dummy/config/boot.rb
255
- - spec/dummy/config/locales/en.yml
256
- - spec/dummy/config/forms/form.yml
257
- - spec/dummy/config/forms/bad-yaml.yml
258
- - spec/dummy/app/rules/step1_rule.rb
259
- - spec/dummy/app/rules/step3_rule.rb
260
- - spec/dummy/app/models/application_record.rb
261
- - spec/dummy/app/models/stub_model.rb
262
- - spec/dummy/app/controllers/forms_controller.rb
263
- - spec/dummy/app/controllers/application_controller.rb
264
- - spec/dummy/app/controllers/things_controller.rb
265
- - spec/dummy/app/views/layouts/mailer.html.erb
266
- - spec/dummy/app/views/layouts/application.html.erb
267
- - spec/dummy/app/views/layouts/mailer.text.erb
268
- - spec/dummy/app/views/forms/foo.html.erb
269
- - spec/dummy/app/views/forms/bar.html.erb
270
- - spec/dummy/Rakefile
271
- - spec/dummy/bin/rails
272
- - spec/dummy/bin/bundle
273
- - spec/dummy/bin/update
274
- - spec/dummy/bin/setup
272
+ - spec/dummy/package.json
275
273
  - spec/dummy/bin/rake
274
+ - spec/dummy/bin/setup
275
+ - spec/dummy/bin/update
276
276
  - spec/dummy/bin/yarn
277
- - spec/dummy/config.ru
278
- - spec/controllers/forms_controller_spec.rb
277
+ - spec/dummy/bin/rails
278
+ - spec/dummy/bin/bundle