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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca29f07129a3bd5421302dcb0874781a7b24fb54
4
- data.tar.gz: f028ee27c846686197b0123e9499009b32333b51
3
+ metadata.gz: 11cb28be77c99ea61096702aa91925c6fc5f70a0
4
+ data.tar.gz: 7bfe552498e8dc0b263b731b88f21afa203ce906
5
5
  SHA512:
6
- metadata.gz: 7e476dda9b21b6ea7f5656c2c7066862efce98324a1b10992af06354f87bd24bb6e1e9b346939ce315dcc2939cc79b18dc7dda62564d001762296766441ccb84
7
- data.tar.gz: 6f0a215e5a112cdcbd0fbced343382bf58f5dabbc9b011ba0a26e4cf17457aca4bf56cec5fe2ef6f209bbe9900b85a58d61ea92f52cafd7e2f8b9d0b1aae332c
6
+ metadata.gz: f01bf2e83f1a848225a59fa4bf6feb18567c1e14fe116aea9ba69a292a4ca878e35eef48646a013f8a0016c22e5c19a4e474d62c4f62a4ea81b8d5fd17114187
7
+ data.tar.gz: c3d6640feacdee82c98b7c652fbcca9a0414b8669e9bf52e78fee80518c233266da3e99b66eeaa3f3fff2f630cedc696bec64520bf60d06752dc271f628f2c19
@@ -1,5 +1,9 @@
1
1
  ## Master
2
2
 
3
+ ## 1.3.1
4
+
5
+ * Docs and minor fixes
6
+
3
7
  ## 1.3.0
4
8
 
5
9
  * [#201] Avoid Rails 5 deprecations.
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 all gemfiles:
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.to_h if options.respond_to?(:permitted?) && options.respond_to?(:to_h)
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],
@@ -1,3 +1,3 @@
1
1
  module Wicked
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
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.0
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-04-14 00:00:00.000000000 Z
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.5.1
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