simple_workflow 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/History.rdoc +14 -0
- data/README.rdoc +2 -0
- data/lib/simple_workflow/helper.rb +2 -2
- data/lib/simple_workflow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 552d2375c6c63dd25b989ae5d9714ca1ed0fedd0
|
|
4
|
+
data.tar.gz: 5c19a9f27e95880cfab57a3267d79dd12fa51512
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bafd8995f8bc31be46553fbfa06bd310ede4d713efe9c7e40e66fdb6360b9d0a59b9a288e9153a61575a57df02ef24d44f3d751a65b5455e27a2e435accd342
|
|
7
|
+
data.tar.gz: 73a9de4db6f26530a5a5a3c43c72a74c3910c2b98ee1e3dfd95df768d139d8902b71743ce2a94004b8a880e35792dc2584ce92a02743f915ff87e0c47e04efc1
|
data/History.rdoc
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
== 1.0.1 2013-12-23
|
|
2
|
+
|
|
3
|
+
=== Fixes
|
|
4
|
+
|
|
5
|
+
* The second argument to with_detour now overrides the origin path completely instead of merging with the origin params.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
== 1.0.0 2013-12-02
|
|
9
|
+
|
|
10
|
+
=== Features
|
|
11
|
+
|
|
12
|
+
* Stable release!
|
|
13
|
+
|
|
14
|
+
|
|
1
15
|
== 0.4.5 2013-07-03
|
|
2
16
|
|
|
3
17
|
=== Fixes
|
data/README.rdoc
CHANGED
|
@@ -21,6 +21,8 @@ In views:
|
|
|
21
21
|
back_or_link_to :controller => :welcome, :action => :index
|
|
22
22
|
image_button_to :controller => :my_models, :action => :create
|
|
23
23
|
|
|
24
|
+
link_to 'Link with custom origin', with_detour(destination_path, origin_path)
|
|
25
|
+
|
|
24
26
|
In controllers:
|
|
25
27
|
|
|
26
28
|
back_or_redirect_to :controller => :my_models, :action => :index
|
|
@@ -23,8 +23,8 @@ module SimpleWorkflow::Helper
|
|
|
23
23
|
link_with_detour
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
def with_detour(options, back_options =
|
|
27
|
-
detour = params.
|
|
26
|
+
def with_detour(options, back_options = nil)
|
|
27
|
+
detour = back_options || params.reject { |k, v| [:detour, :return_from_detour].include? k.to_sym }
|
|
28
28
|
url = url_for(options)
|
|
29
29
|
return url + (url =~ /\?/ ? '&' : '?') + detour.to_param('detour')
|
|
30
30
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simple_workflow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Uwe Kubosch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-12-
|
|
11
|
+
date: 2013-12-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|