wicked 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +11 -2
- data/lib/wicked/controller/concerns/path.rb +1 -1
- data/lib/wicked/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11cb28be77c99ea61096702aa91925c6fc5f70a0
|
4
|
+
data.tar.gz: 7bfe552498e8dc0b263b731b88f21afa203ce906
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f01bf2e83f1a848225a59fa4bf6feb18567c1e14fe116aea9ba69a292a4ca878e35eef48646a013f8a0016c22e5c19a4e474d62c4f62a4ea81b8d5fd17114187
|
7
|
+
data.tar.gz: c3d6640feacdee82c98b7c652fbcca9a0414b8669e9bf52e78fee80518c233266da3e99b66eeaa3f3fff2f630cedc696bec64520bf60d06752dc271f628f2c19
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -192,6 +192,10 @@ jump_to(:specific_step) # Jump to :specific_step
|
|
192
192
|
render_wizard # Renders the current step
|
193
193
|
render_wizard(@user) # Shows next_step if @user.save, otherwise renders
|
194
194
|
wizard_steps # Gets ordered list of steps
|
195
|
+
past_step?(step) # does step come before the current request's step in wizard_steps
|
196
|
+
future_step?(step) # does step come after the current request's step in wizard_steps
|
197
|
+
previous_step?(step) # is step immediately before the current request's step
|
198
|
+
next_step?(step) # is step immediately after the current request's step
|
195
199
|
```
|
196
200
|
|
197
201
|
**Redirect options**
|
@@ -433,7 +437,13 @@ Note: Rails 3.0 support is only for Ruby 1.9.3 or JRuby, not Ruby 2.0.0 or newer
|
|
433
437
|
|
434
438
|
## Running Gem Tests
|
435
439
|
|
436
|
-
First install
|
440
|
+
First, install the development gems:
|
441
|
+
|
442
|
+
```
|
443
|
+
$ bundle install
|
444
|
+
```
|
445
|
+
|
446
|
+
Now that `appraisal` is installed, use it to set up all the gemfiles for the test matrix:
|
437
447
|
|
438
448
|
```
|
439
449
|
$ appraisal install
|
@@ -458,4 +468,3 @@ gemfile if you are using a current version of Ruby.
|
|
458
468
|
## Contributing
|
459
469
|
|
460
470
|
See the [Contributing guide](https://github.com/schneems/wicked/blob/master/CONTRIBUTING.md).
|
461
|
-
|
@@ -20,7 +20,7 @@ module Wicked::Controller::Concerns::Path
|
|
20
20
|
|
21
21
|
|
22
22
|
def wizard_path(goto_step = nil, options = {})
|
23
|
-
options = options.
|
23
|
+
options = options.respond_to?(:to_h) ? options.to_h : options
|
24
24
|
options = { :controller => wicked_controller,
|
25
25
|
:action => 'show',
|
26
26
|
:id => goto_step || params[:id],
|
data/lib/wicked/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wicked
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Schneeman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
228
|
rubyforge_project:
|
229
|
-
rubygems_version: 2.
|
229
|
+
rubygems_version: 2.6.4
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: Use Wicked to turn your controller into a wizard
|