reviewed-auth 0.2.1 → 0.2.2

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: 1bd4754ffc79b8dbc3959491dc18d38418758149
4
- data.tar.gz: 761b2041c12c606fcf762270396d507b022f7eac
3
+ metadata.gz: 53df05ccad2a8f03cf7cc04ff7e2d2998a5ad74a
4
+ data.tar.gz: 486e8d1129d05ed2e0d08da84568afff0a0e202f
5
5
  SHA512:
6
- metadata.gz: 4bc0b2b0ffd8de2848f106a0fb292409e3428da076909d45a8eb88d039bc0592b5877b0218ad39d1fc12be7295624d8605d2017b9ad75c41cd6199d29c145a12
7
- data.tar.gz: 9900953acd402002847bd7fe2b0716f1e040ee7b9aac619bb2b9ce4cc495501aee8cde5aff07b28fc4f430875415b27a2514689b862f294f8287e6fb1f4b4a7e
6
+ metadata.gz: 48e81ee9ae5d21e1ef2b9192c74aa535d883ab2d1fb8d741b0121c9e84a48e25faf7d2f014651a54bb7be2da7b133942b22ab2c28e1dfa2d93a39cb81bac0bfe
7
+ data.tar.gz: 7755f15536bf04ce9f9b8006eb910ee310c00ea797f88ae0a2062e9a1b8079ea72294bbf96433bd18df968f875229070e1f139f4941f065efae62e7ecb46d5ec
@@ -58,9 +58,11 @@ module Reviewed
58
58
  end
59
59
 
60
60
  def return_to_url(params)
61
- uri = URI(params['return_url'] || Reviewed::Auth.return_url)
61
+ uri = URI(params['return_url'])
62
62
  uri_params = params.reject { |k, v| k == 'return_url' }
63
- uri.query = ::URI.encode_www_form(uri_params)
63
+ query_string = ::URI.encode_www_form(uri_params)
64
+ uri.query = nil
65
+ uri.query = query_string if !query_string.empty?
64
66
  return ::CGI.escape(uri.to_s)
65
67
  end
66
68
  end
@@ -1,5 +1,5 @@
1
1
  module Reviewed
2
2
  module Auth
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
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 %>" />
69
+ <input type="hidden" name="return_url" value="<%= return_to_url || Reviewed::Auth.return_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.1
4
+ version: 0.2.2
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-18 00:00:00.000000000 Z
11
+ date: 2013-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 2.0.2
108
+ rubygems_version: 2.0.3
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Central Authentication Service for Reviewed.com