simple_workflow 0.4.4 → 0.4.5

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: 82ab0023138310b33facfbcba779cfc11afc760b
4
- data.tar.gz: 952175a417d735d367fba680da80330c6ef0dd5e
3
+ metadata.gz: ce2c9685c0da7bdcc2fce90f9c33aebd9157316e
4
+ data.tar.gz: 670c4cfcdeed3ac6d9a8a5bc1f59cd8d9205a3f2
5
5
  SHA512:
6
- metadata.gz: b482170725d306eab68fd3fb158a0c17aa9ef8a51ba17cafabf978100b5ac1c765f991418773d48896a32335b727d9980bacfa94397d9ab1bd7b8c7cc25b662c
7
- data.tar.gz: 99da99d93bb3f57aca713b3face8151cb9993905cd0b3db106365720b43a90a36ca46c0c7d4013b50c9b08a37a484b9c41a4f81cdce08224e41d78e46483e15e
6
+ metadata.gz: 0bef8174a00f8f63c991373842b4d5715e6468b16b338201e9dd54c500ca2da76533797a8d9a9ca2b20f372290302389a4a9014904a2f1c71da96539ae9fd207
7
+ data.tar.gz: adcc7039a8dbb3655c7c3f44bfa728872a18217cb0ff6c48746e50bd5465b92c5b94839242751edfe71a2afca9348ddbd2578b9668a7f02a21d07e4ea0ea74ac
data/History.rdoc CHANGED
@@ -1,3 +1,10 @@
1
+ == 0.4.5 2013-07-03
2
+
3
+ === Fixes
4
+
5
+ * Protect against generating too long URLs > 4096 characters.
6
+
7
+
1
8
  == 0.4.4 2013-07-03
2
9
 
3
10
  === Fixes
@@ -6,7 +6,11 @@ module SimpleWorkflow::Helper
6
6
  end
7
7
 
8
8
  def detour_to(title, options, html_options = nil)
9
- link_to title, with_detour(options), html_options
9
+ link_with_detour = link_to title, with_detour(options), html_options
10
+ if link_with_detour.size > 4096 # URL maximum size overflow
11
+ return link_to title, options, html_options
12
+ end
13
+ link_with_detour
10
14
  end
11
15
 
12
16
  def with_detour(options, back_options = {})
@@ -1,3 +1,3 @@
1
1
  module SimpleWorkflow
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uwe Kubosch