simple_workflow 1.0.2 → 1.0.3
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 +7 -0
- data/lib/simple_workflow/helper.rb +3 -3
- 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: 7a3fd13f0e5f2e22766c12b3934b7b2526a29391
|
|
4
|
+
data.tar.gz: a8eaae28c3e9eef111b4d6c708e16e427d786b0c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f172ae3abd7e3fae4e402bb11c25b7f96f1b226a7b881deddc62217fcf928309dc75afbc3ed2049434709951f4f2cf347c65e1895ff3a00270d573ef920fdcaa
|
|
7
|
+
data.tar.gz: f15c8e17c57d2c60235915fa27f8adc901ac9fb968983b65bc451b4538c621db75091df433f7255ae81bdd7706f21ef8cda14ec31fa4778d612ac4134b9eb7c5
|
data/History.rdoc
CHANGED
|
@@ -5,19 +5,19 @@ module SimpleWorkflow::Helper
|
|
|
5
5
|
:onclick => "form.action='#{url_for(options)}'"}.update(html_options)
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
-
def detour_to(title, options, html_options = nil, &block)
|
|
8
|
+
def detour_to(title, options = nil, html_options = nil, &block)
|
|
9
9
|
if block
|
|
10
10
|
html_options = options
|
|
11
11
|
options = title
|
|
12
12
|
link_with_detour = link_to(with_detour(options), html_options, &block)
|
|
13
13
|
else
|
|
14
|
-
link_with_detour = link_to
|
|
14
|
+
link_with_detour = link_to(title, with_detour(options), html_options)
|
|
15
15
|
end
|
|
16
16
|
if link_with_detour.size > 4096 # URL maximum size overflow
|
|
17
17
|
if block
|
|
18
18
|
link_with_detour = link_to(options, html_options, &block)
|
|
19
19
|
else
|
|
20
|
-
link_with_detour = link_to
|
|
20
|
+
link_with_detour = link_to(title, options, html_options)
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
link_with_detour
|
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.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Uwe Kubosch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|