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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd8b8f126962dc2704c3cb31b5f373d8fdd41bff
4
- data.tar.gz: c92ccb310d7758db35615a055ceaf33d25aac766
3
+ metadata.gz: 552d2375c6c63dd25b989ae5d9714ca1ed0fedd0
4
+ data.tar.gz: 5c19a9f27e95880cfab57a3267d79dd12fa51512
5
5
  SHA512:
6
- metadata.gz: 5a6215fc2ccab9a7019915f3c3c9b49a26229e3838f928e27f76f076b95c80433413e2e2e160d78de8b68ad138e30ce639d96da6faea0643d3ddc2cfce97cb0a
7
- data.tar.gz: 5cc0473ffafe4557baac85ab37f19ce4cfa200915afc8c106bbf9a905b15ea82831b3524b066c803701ff1ccfdef297ab8c85c9c4335235e35133c96c5b51494
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.merge(back_options).reject { |k, v| [:detour, :return_from_detour].include? k.to_sym }
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
@@ -1,3 +1,3 @@
1
1
  module SimpleWorkflow
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
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.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-02 00:00:00.000000000 Z
11
+ date: 2013-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails