ruby-shadow 2.3.3 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY +6 -2
- data/README +13 -13
- data/extconf.rb +3 -4
- data/ruby-shadow.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7db5aeea67878e55dc91619492ad2de445594199
|
4
|
+
data.tar.gz: caa37b71c62ba1ba18b46d19c97ef4ce522c3aa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a53e3f71cf061a5250389757c223526f3fd34413b3159e06592622576ffdc67054e51751b083a3ed4839586d017359a087c49f6d065d9aed94e945c1848c48a2
|
7
|
+
data.tar.gz: bc2490b6eb0ba432b33636f3036322229e7964403428e4f1b88caae0223ce3d73644a2e5d5da44c1109a1143ad8c50c51ba60008a05e04d605ff72b927c402c1
|
data/HISTORY
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
+
[2014/04/28]
|
2
|
+
* Added support for more BSDs, thanks to https://github.com/bsiegert.
|
3
|
+
* Simplified compatibility check, removing check for function not actually used in pwd.h implementations.
|
4
|
+
[2014/02/25]
|
1
5
|
[2013/12/18]
|
2
|
-
* Version 2.3.
|
3
|
-
Fix
|
6
|
+
* Version 2.3.3
|
7
|
+
Fix bug in shadow implementations (Linux, solaris) where sp_expired field was incorrectly set as nil. -1 is used to indicate not set. This was introduced 2.3.0.
|
4
8
|
[2013/11/13]
|
5
9
|
* Version 2.3.1
|
6
10
|
- Caleb Land<caleb.land@gmail.com>
|
data/README
CHANGED
@@ -26,19 +26,19 @@ make # use gmake on FreeBSD
|
|
26
26
|
still present, but no promises about earlier versions of Ruby.
|
27
27
|
|
28
28
|
3. Shadow::Passwd module's methods
|
29
|
-
|
30
|
-
Method | Linux | Solaris | OS X |
|
31
|
-
|
32
|
-
getspent | * | * | * |
|
33
|
-
getspnam(name) | * | * | * |
|
34
|
-
setspent | * | * | * |
|
35
|
-
endspent | * | * | * |
|
36
|
-
fgetspent(file) | * | * | N |
|
37
|
-
sgetspent(str) | * | N | N |
|
38
|
-
putspent(entry,file) | * | * | N |
|
39
|
-
lckpwdf,lock | * | * | N |
|
40
|
-
ulckpwdf,unlock | * | * | N |
|
41
|
-
lock? | * | * | N |
|
29
|
+
_________________________________________________________
|
30
|
+
Method | Linux | Solaris | OS X | *BSD
|
31
|
+
_________________________________________________________
|
32
|
+
getspent | * | * | * | *
|
33
|
+
getspnam(name) | * | * | * | *
|
34
|
+
setspent | * | * | * | *
|
35
|
+
endspent | * | * | * | *
|
36
|
+
fgetspent(file) | * | * | N | N
|
37
|
+
sgetspent(str) | * | N | N | N
|
38
|
+
putspent(entry,file) | * | * | N | N
|
39
|
+
lckpwdf,lock | * | * | N | N
|
40
|
+
ulckpwdf,unlock | * | * | N | N
|
41
|
+
lock? | * | * | N | N
|
42
42
|
|
43
43
|
|
44
44
|
4. Structure
|
data/extconf.rb
CHANGED
@@ -16,10 +16,10 @@ $CFLAGS = case RUBY_VERSION
|
|
16
16
|
implementation = case CONFIG['host_os']
|
17
17
|
when /linux/i; 'shadow'
|
18
18
|
when /sunos|solaris/i; 'shadow'
|
19
|
-
when /freebsd|openbsd/i; 'pwd'
|
19
|
+
when /freebsd|mirbsd|netbsd|openbsd/i; 'pwd'
|
20
20
|
when /darwin/i; 'pwd'
|
21
21
|
else; nil
|
22
|
-
"This library works on OS X, FreeBSD, OpenBSD, Solaris and Linux."
|
22
|
+
"This library works on OS X, FreeBSD, MirBSD, NetBSD, OpenBSD, Solaris and Linux."
|
23
23
|
end
|
24
24
|
|
25
25
|
ok = true
|
@@ -48,7 +48,6 @@ when 'pwd'
|
|
48
48
|
ok &= have_func("endpwent")
|
49
49
|
ok &= have_func("getpwent")
|
50
50
|
ok &= have_func("getpwnam")
|
51
|
-
ok &= have_func("getpwnam_r")
|
52
51
|
ok &= have_func("getpwuid")
|
53
52
|
ok &= have_func("setpassent")
|
54
53
|
ok &= have_func("setpwent")
|
@@ -65,5 +64,5 @@ if ok
|
|
65
64
|
|
66
65
|
create_makefile("shadow", implementation)
|
67
66
|
else
|
68
|
-
raise "You are missing some of the required functions from either shadow.h on Linux/Solaris, or pwd.h on FreeBSD/OpenBSD/OS X."
|
67
|
+
raise "You are missing some of the required functions from either shadow.h on Linux/Solaris, or pwd.h on FreeBSD/MirBSD/NetBSD/OpenBSD/OS X."
|
69
68
|
end
|
data/ruby-shadow.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-shadow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Palmblad
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-
|
16
|
+
date: 2014-04-28 00:00:00.000000000 Z
|
17
17
|
dependencies: []
|
18
18
|
description: This module provides access to shadow passwords on Linux, OSX, FreeBSD,
|
19
19
|
OpenBSD, and Solaris
|