cow_auth 0.4.0 → 0.4.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: c9b457d5e613359cad57b0ef426979f534089cc8
4
- data.tar.gz: b11a6ac0f2852dbcf3b5215df6147c9133618d75
3
+ metadata.gz: 8a04da1623077325b6fcfd473d24756eba41cac3
4
+ data.tar.gz: dae5348ed8065a6632bcb727369163139c384276
5
5
  SHA512:
6
- metadata.gz: 780843129e5e37b30fc2ece5185392bd431ad5d9e48aaa761823922de61e5d15b16dd649accc845e2430d633c54272a8f8e746e56789c7a84c6c570243dc1b4f
7
- data.tar.gz: 0c70f12f43f00e3d5dd1d1828f2212f8033f0ca98ac72a5c6b95c6249b2bab4ff488de87092353090bfe89fc4523d92118cc8fec9cf6533646cf4da42372e645
6
+ metadata.gz: '0872f0f79362209f6ad2b9e47be1ef98342326629751751b3a430ea2a6588feae1e30ce5748ce2686688d37babfeb27f711ff8f32a44e8559a9fcb9e1faa4842'
7
+ data.tar.gz: 63459f76b4abeb7114a37c5885a66d9351769ac61071a7ebc304adb1fc6512ebf6a065c6934b158048047226640d7f48a9a01ce84f8cc276601ad0e0c596662f
@@ -12,6 +12,10 @@ module CowAuth
12
12
  raise CowAuth::NotAuthenticatedError.new('User not authenticated.') if @current_user.blank?
13
13
  return true
14
14
  end
15
+
16
+ def current_user
17
+ return @current_user
18
+ end
15
19
  end
16
20
  end
17
21
  end
@@ -15,6 +15,10 @@ module CowAuth
15
15
  return true
16
16
  end
17
17
  end
18
+
19
+ def current_user
20
+ return @current_user
21
+ end
18
22
  end
19
23
  end
20
24
  end
@@ -18,7 +18,7 @@ module CowAuth
18
18
 
19
19
  def destroy
20
20
  if @current_user.try(:api_sign_out)
21
- head :ok
21
+ head :no_content
22
22
  else
23
23
  raise CowAuth::NotAuthenticatedError.new('Could not sign user out.')
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module CowAuth
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cow_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickey Cowden
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-27 00:00:00.000000000 Z
11
+ date: 2017-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler