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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 392190bd79beccb1158f024ce202b030e5562234
4
- data.tar.gz: 7461592fb033c2dfda92f728115700bca351807f
3
+ metadata.gz: 7a3fd13f0e5f2e22766c12b3934b7b2526a29391
4
+ data.tar.gz: a8eaae28c3e9eef111b4d6c708e16e427d786b0c
5
5
  SHA512:
6
- metadata.gz: a2810369d12143bec73624433748261a7088091e5f68ea60887a3f5aa0ce77d8b02a6f622a9b7a0f1d7d9014e1299919b3fd5702313aeafc364e73777e4d0603
7
- data.tar.gz: 538d592465e224915133d5a8bf2b420ab98642026d00e8c830fcc0f077c80fbc09347d116c8d7d43e6fb38cf2cd08ffb14aef8fc92d0d8a14bfe8333b24b64bf
6
+ metadata.gz: f172ae3abd7e3fae4e402bb11c25b7f96f1b226a7b881deddc62217fcf928309dc75afbc3ed2049434709951f4f2cf347c65e1895ff3a00270d573ef920fdcaa
7
+ data.tar.gz: f15c8e17c57d2c60235915fa27f8adc901ac9fb968983b65bc451b4538c621db75091df433f7255ae81bdd7706f21ef8cda14ec31fa4778d612ac4134b9eb7c5
data/History.rdoc CHANGED
@@ -1,3 +1,10 @@
1
+ == 1.0.3 2014-02-28
2
+
3
+ === Fixes
4
+
5
+ * The second argument to detour_to is optional if a block is given.
6
+
7
+
1
8
  == 1.0.1 2014-02-10
2
9
 
3
10
  === Fixes
@@ -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 title, with_detour(options), html_options
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 title, with_detour(options), html_options
20
+ link_with_detour = link_to(title, options, html_options)
21
21
  end
22
22
  end
23
23
  link_with_detour
@@ -1,3 +1,3 @@
1
1
  module SimpleWorkflow
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  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.2
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-10 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails