devise_pam_authenticatable2 8.0.2 → 9.0.0

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: 98ebc063b9743d5b9be6b83c3efac4b12261ef60b9078709eb4f745d7c58621f
4
- data.tar.gz: d1cefe9b39f534108b0e52af758522949baf22017c4f8a0e5c355d639d284874
3
+ metadata.gz: '0297b55e47f45fb7302100ce6390077249242f36f2c4eb54b447692983f3522d'
4
+ data.tar.gz: 40c3561ea94204ed15835569504db428561fc6dab604e1ac30d3172876769426
5
5
  SHA512:
6
- metadata.gz: a4cf642742de989f23211c18694f8e4319814162740acf38efbbcaef19a0609cb6f528032a2484609970e46bdfc2d60045d89c16aea1b3d1c5c5073047f3797a
7
- data.tar.gz: 37ebe7f9a08eb7ef6e0ed87c266fbc5d6efced4c5036769f7c2f7bd2fc4dfe186d5b4df8212e2384b192ac885650c9c5d541eb864bc8cda9417ce0ce39f27334
6
+ metadata.gz: fc528bfb4d86c504ac01dca913f18d8759de146e98e322706d55446edd693b19b57f4752608d80c397ac7fee80c56956715fc8a6e476e7a38567484039e1909d
7
+ data.tar.gz: e198f7757b46b05ee8ab7c278a8cf7ff8230a0d89320d04dddc02fd5dc5fe3083fc1f63888175fafe935526123526da57fd56a687098bfae71bb83b10e231aaf
data/README.md CHANGED
@@ -33,6 +33,8 @@ Some removed code may can clash in earlier versions.
33
33
 
34
34
  Version 5-8 change method names. Check if everything is correct. Sorry for the quick release cycle.
35
35
 
36
+ In version 9 is_pam_account? is changed to pam_managed_user? because some linters hate the former name.
37
+
36
38
  Setup
37
39
  -----
38
40
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 8.0.2
1
+ 9.0.0
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: devise_pam_authenticatable2 8.0.2 ruby lib
5
+ # stub: devise_pam_authenticatable2 9.0.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "devise_pam_authenticatable2".freeze
9
- s.version = "8.0.2"
9
+ s.version = "9.0.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["James Wilson".freeze, "Alexander Kaftan".freeze]
14
- s.date = "2018-01-23"
14
+ s.date = "2018-03-05"
15
15
  s.description = "For authenticating against PAM (Pluggable Authentication Modules)".freeze
16
16
  s.email = "devkral@web.de".freeze
17
17
  s.extra_rdoc_files = [
@@ -26,7 +26,7 @@ module Devise
26
26
  email.slice(0, pos)
27
27
  end
28
28
 
29
- def is_pam_account?
29
+ def pam_managed_user?
30
30
  return false unless pam_get_name
31
31
  Rpam2.account(find_pam_service, pam_get_name)
32
32
  end
@@ -34,7 +34,7 @@ module Devise
34
34
  def pam_conflict?
35
35
  # detect a conflict
36
36
  # use blank password as discriminator between traditional login and pam login
37
- respond_to?('encrypted_password') && encrypted_password.present? && is_pam_account?
37
+ respond_to?('encrypted_password') && encrypted_password.present? && pam_managed_user?
38
38
  end
39
39
 
40
40
  def pam_conflict(_attributes)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_pam_authenticatable2
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.2
4
+ version: 9.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Wilson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-01-23 00:00:00.000000000 Z
12
+ date: 2018-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: devise