redirect_to_back_url 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README ADDED
@@ -0,0 +1 @@
1
+ Redirects to a previously stored URL
@@ -2,7 +2,7 @@ module RedirectToBackUrl
2
2
  module ApplicationHelper
3
3
  def save_back_url(back_url_key = "back_url")
4
4
  url = params[back_url_key] || request.referer
5
- return "<input type='hidden' name='#{back_url_key}' value='#{url}' />"
5
+ return "<input type='hidden' name='#{back_url_key}' value='#{url}' />" unless url.blank?
6
6
  end
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module RedirectToBackUrl
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -7,9 +7,9 @@ Gem::Specification.new do |s|
7
7
  s.version = RedirectToBackUrl::VERSION
8
8
  s.authors = ["razenha"]
9
9
  s.email = ["rubem.azenha@gmail.com"]
10
- s.homepage = ""
11
- s.summary = %q{Redirects to a previously stored url}
10
+ s.homepage = "http://github.com/razenha/redirect_to_back_url"
12
11
  s.summary = %q{Redirects to a previously stored url}
12
+ s.description = %q{Redirects to a previously stored url}
13
13
 
14
14
  s.rubyforge_project = "redirect_to_back_url"
15
15
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redirect_to_back_url
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - razenha
@@ -15,10 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-24 00:00:00 Z
18
+ date: 2011-07-28 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
- description:
21
+ description: Redirects to a previously stored url
22
22
  email:
23
23
  - rubem.azenha@gmail.com
24
24
  executables: []
@@ -30,13 +30,14 @@ extra_rdoc_files: []
30
30
  files:
31
31
  - .gitignore
32
32
  - Gemfile
33
+ - README
33
34
  - Rakefile
34
35
  - lib/redirect_to_back_url.rb
35
36
  - lib/redirect_to_back_url/application_helper.rb
36
37
  - lib/redirect_to_back_url/controller.rb
37
38
  - lib/redirect_to_back_url/version.rb
38
39
  - redirect_to_back_url.gemspec
39
- homepage: ""
40
+ homepage: http://github.com/razenha/redirect_to_back_url
40
41
  licenses: []
41
42
 
42
43
  post_install_message: