ruby-shadow 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +3 -0
- data/README +14 -14
- data/extconf.rb +7 -4
- data/pwd/depend +1 -9
- data/pwd/shadow.c +3 -3
- data/ruby-shadow.gemspec +2 -2
- data/shadow/depend +1 -9
- data/shadow/shadow.c +2 -2
- metadata +3 -3
data/HISTORY
CHANGED
data/README
CHANGED
@@ -10,7 +10,7 @@ License: See LICENSE
|
|
10
10
|
|
11
11
|
This module provides tools to read, and, on Linux, append, information related to password files.
|
12
12
|
|
13
|
-
Recent versions work on both Linux, Solaris, OS X and
|
13
|
+
Recent versions work on both Linux, Solaris, OS X, FreeBSD and OpenBSD.
|
14
14
|
The functions found are translated to their equivalents in libshadow.
|
15
15
|
|
16
16
|
Note
|
@@ -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 | FreeBSD
|
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
|
29
|
+
______________________________________________________________________
|
30
|
+
Method | Linux | Solaris | OS X | FreeBSD | OpenBSD
|
31
|
+
______________________________________________________________________
|
32
|
+
getspent | * | * | * | * | *
|
33
|
+
getspnam(name) | * | * | * | * | *
|
34
|
+
setspent | * | * | * | * | *
|
35
|
+
endspent | * | * | * | * | *
|
36
|
+
fgetspent(file) | * | * | N | N | N
|
37
|
+
sgetspent(str) | * | N | N | N | N
|
38
|
+
putspent(entry,file) | * | * | N | N | N
|
39
|
+
lckpwdf,lock | * | * | N | N | N
|
40
|
+
ulckpwdf,unlock | * | * | N | N | N
|
41
|
+
lock? | * | * | N | 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/i; 'pwd'
|
19
|
+
when /freebsd|openbsd/i; 'pwd'
|
20
20
|
when /darwin/i; 'pwd'
|
21
21
|
else; nil
|
22
|
-
"This library works on OS X, FreeBSD, Solaris and Linux."
|
22
|
+
"This library works on OS X, FreeBSD, OpenBSD, Solaris and Linux."
|
23
23
|
end
|
24
24
|
|
25
25
|
ok = true
|
@@ -59,8 +59,11 @@ else
|
|
59
59
|
ok = false
|
60
60
|
end
|
61
61
|
|
62
|
+
have_header( "ruby/io.h")
|
63
|
+
|
62
64
|
if ok
|
65
|
+
|
63
66
|
create_makefile("shadow", implementation)
|
64
67
|
else
|
65
|
-
raise "You are missing some of the required functions from either shadow.h on Linux/Solaris, or pwd.h on FreeBSD/OS X."
|
66
|
-
end
|
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."
|
69
|
+
end
|
data/pwd/depend
CHANGED
data/pwd/shadow.c
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* shadow.c
|
3
3
|
*
|
4
|
-
* Ruby extention module for using FreeBSD/OS X pwd.h.
|
4
|
+
* Ruby extention module for using FreeBSD/OpenBSD/OS X pwd.h.
|
5
5
|
*
|
6
6
|
* Copyright (C) 1998-1999 by Takaaki.Tateishi(ttate@jaist.ac.jp)
|
7
7
|
* License: Free for any use with your own risk!
|
@@ -17,8 +17,8 @@
|
|
17
17
|
#define PWTYPE struct passwd
|
18
18
|
|
19
19
|
#include "ruby.h"
|
20
|
-
#ifdef
|
21
|
-
#include
|
20
|
+
#ifdef HAVE_RUBY_IO_H
|
21
|
+
#include "ruby/io.h"
|
22
22
|
#else
|
23
23
|
#include "rubyio.h"
|
24
24
|
#endif
|
data/ruby-shadow.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
'Remi Broemeling',
|
9
9
|
'Takaaki Tateishi']
|
10
10
|
|
11
|
-
spec.description = 'This module provides access to shadow passwords on Linux, OSX, FreeBSD, and Solaris'
|
11
|
+
spec.description = 'This module provides access to shadow passwords on Linux, OSX, FreeBSD, OpenBSD, and Solaris'
|
12
12
|
spec.email = ['adam.palmblad@teampages.com']
|
13
13
|
spec.extensions = ['extconf.rb']
|
14
14
|
spec.files = []
|
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.name = 'ruby-shadow'
|
20
20
|
spec.required_ruby_version = ['>= 1.8']
|
21
21
|
spec.summary = '*nix Shadow Password Module'
|
22
|
-
spec.version = '2.3.
|
22
|
+
spec.version = '2.3.2'
|
23
23
|
spec.license = "Public Domain License"
|
24
24
|
end
|
data/shadow/depend
CHANGED
data/shadow/shadow.c
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.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,10 +14,10 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2013-
|
17
|
+
date: 2013-12-18 00:00:00.000000000 Z
|
18
18
|
dependencies: []
|
19
19
|
description: This module provides access to shadow passwords on Linux, OSX, FreeBSD,
|
20
|
-
and Solaris
|
20
|
+
OpenBSD, and Solaris
|
21
21
|
email:
|
22
22
|
- adam.palmblad@teampages.com
|
23
23
|
executables: []
|