reviewed-auth 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c297110edbef5b07508b8655361f83f42113ecb
4
- data.tar.gz: c1f956ccfd45329829903f0b5763c71a93742134
3
+ metadata.gz: 1bd4754ffc79b8dbc3959491dc18d38418758149
4
+ data.tar.gz: 761b2041c12c606fcf762270396d507b022f7eac
5
5
  SHA512:
6
- metadata.gz: 7ca96b969472dcc558c8d71f211e023a5ca036728dba1d7cd29605b2e3214322386f35fe10b5e00d9c27fb4a91b04ef0b076626fc6a551352ce4908d643085eb
7
- data.tar.gz: 4121b8dec3b1d8fe8052faafffe164ae73cfe15e2e3c0603a210b28b1fa31d4605a7d2ddd7e9389543a8ee074fe85d07e5e906b286c79fb332b316193f32cba0
6
+ metadata.gz: 4bc0b2b0ffd8de2848f106a0fb292409e3428da076909d45a8eb88d039bc0592b5877b0218ad39d1fc12be7295624d8605d2017b9ad75c41cd6199d29c145a12
7
+ data.tar.gz: 9900953acd402002847bd7fe2b0716f1e040ee7b9aac619bb2b9ce4cc495501aee8cde5aff07b28fc4f430875415b27a2514689b862f294f8287e6fb1f4b4a7e
@@ -58,7 +58,7 @@ module Reviewed
58
58
  end
59
59
 
60
60
  def return_to_url(params)
61
- uri = URI(params['return_url'])
61
+ uri = URI(params['return_url'] || Reviewed::Auth.return_url)
62
62
  uri_params = params.reject { |k, v| k == 'return_url' }
63
63
  uri.query = ::URI.encode_www_form(uri_params)
64
64
  return ::CGI.escape(uri.to_s)
@@ -1,5 +1,5 @@
1
1
  module Reviewed
2
2
  module Auth
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -66,7 +66,7 @@
66
66
  <form class="form-signin" method="post">
67
67
  <h1>Reviewed.com</h1>
68
68
  <h2 class="form-signin-heading">Please sign in</h2>
69
- <input type="hidden" name="return_url" value="<%= return_to_url || Reviewed::Auth.return_url %>" />
69
+ <input type="hidden" name="return_url" value="<%= return_to_url %>" />
70
70
  <input type="hidden" name="drop_cookie" value="<%= params[:drop_cookie] || Reviewed::Auth.drop_cookie %>" />
71
71
  <input type="text" class="input-block-level" placeholder="Email address" name="email">
72
72
  <input type="password" class="input-block-level" placeholder="Password" name="password">
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reviewed-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Bates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-17 00:00:00.000000000 Z
11
+ date: 2013-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra