authentication-zero 0.0.17 → 0.0.18

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
  SHA256:
3
- metadata.gz: efb4d895a3678027d6ead3a365d35a5cd7d5b7fc87c7ffe69140b9f4d9fcd705
4
- data.tar.gz: 8757ea47c7e1a86abac000c42689e6e05c987609037a66254308135c4662dc77
3
+ metadata.gz: 5f48325c2122dac114a46a7949ba07ab7693872f198076dc7bcfae87b31441c1
4
+ data.tar.gz: 4117615d796766e17a773707f2dba9616eaf1ca7a59c007c831431d9b09e18eb
5
5
  SHA512:
6
- metadata.gz: e68ee610e427b081e6e462a86651382e556a674242f66154a51727b2c396f907417509a80aa4aaf343433ddf8f02bfb30af099f75b49657232fc47282930a964
7
- data.tar.gz: 43afeb2c6e2b0444c5b7970839b698934e37c85befb1b35b60eac0d43128cb22b63a2d18e1fc3d64796628ddebc27e6e879989e11bda9d56a84cbc584439d373
6
+ metadata.gz: a6c76a600c3a82bb51bdb638bc1d114aef80ed13b2a252af3fac6bd4e1cd05992004a9bb6ec33457cb56e0fa93a3f48209acfb5d9c41c1ca7f9542104166e01b
7
+ data.tar.gz: 277192f60768925670f1580c13a0f593e27f92656987171818e09edff379b7571b88abcf0460ae9961477557bfe186e7b1a4e05e46c1ff24f760e2d0ff959301
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- authentication-zero (0.0.17)
4
+ authentication-zero (0.0.18)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module AuthenticationZero
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
@@ -60,7 +60,7 @@ class AuthenticationGenerator < Rails::Generators::NamedBase
60
60
  private
61
61
  def authenticate
62
62
  if #{singular_table_name} = authenticate_with_http_token { |t, _| #{class_name}.find_signed_session_token(t) }
63
- Current.user = #{singular_table_name}
63
+ Current.#{singular_table_name} = #{singular_table_name}
64
64
  else
65
65
  request_http_token_authentication
66
66
  end
@@ -74,7 +74,7 @@ class AuthenticationGenerator < Rails::Generators::NamedBase
74
74
  private
75
75
  def authenticate
76
76
  if #{singular_table_name} = #{class_name}.find_by_session_token(cookies.signed[:session_token])
77
- Current.user = #{singular_table_name}
77
+ Current.#{singular_table_name} = #{singular_table_name}
78
78
  else
79
79
  redirect_to sign_in_path, alert: "You need to sign in or sign up before continuing"
80
80
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentication-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nixon