ruby-shadow 2.3.4 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/HISTORY +9 -2
- data/README +1 -0
- data/pwd/shadow.c +3 -1
- data/ruby-shadow.gemspec +1 -1
- data/shadow/shadow.c +4 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d5753f3a919b10c965a820c66df3d7f7cb9f80e
|
4
|
+
data.tar.gz: 12bd84a043a09aecf505d1daf15a050813615fc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35151b1f476afc8a109f727205c80c9323b4efb5d346358c8f28322dddbd093da40c5c5e100c0a07005fa2c4a8b73d4a14a69e2464bf5f55569c2384c247d0ff
|
7
|
+
data.tar.gz: 11b1ebc1806a81bca965778b7e59bceb54afdf10087b06bc60c30f83e8f9c20697845e26a0ce10e439c320721e72d3aff96e5b7db4242d5144fd2420e2376149
|
data/HISTORY
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
+
[2014/12/02]
|
2
|
+
* Version 2.4.1
|
3
|
+
- sp_loginclass support should NOT have been added to password implementation
|
4
|
+
[2014/12/01]
|
5
|
+
* Version 2.4.0
|
6
|
+
- Add support for sp_loginclass via pwd.h
|
1
7
|
[2014/04/28]
|
2
|
-
|
3
|
-
|
8
|
+
* Version 2.3.3
|
9
|
+
- Added support for more BSDs, thanks to https://github.com/bsiegert.
|
10
|
+
- Simplified compatibility check, removing check for function not actually used in pwd.h implementations.
|
4
11
|
[2014/02/25]
|
5
12
|
[2013/12/18]
|
6
13
|
* Version 2.3.3
|
data/README
CHANGED
data/pwd/shadow.c
CHANGED
@@ -66,6 +66,7 @@ static VALUE convert_pw_struct( struct passwd *entry )
|
|
66
66
|
INT2FIX(difftime(entry->pw_change, 0) / (24*60*60)), /* pw_change */
|
67
67
|
INT2FIX(difftime(entry->pw_expire, 0) / (24*60*60)), /* sp_expire */
|
68
68
|
Qnil, /* sp_flag */
|
69
|
+
rb_tainted_str_new2(entry->pw_class), /* sp_loginclass, user access class */
|
69
70
|
NULL);
|
70
71
|
}
|
71
72
|
|
@@ -107,7 +108,8 @@ Init_shadow()
|
|
107
108
|
"sp_namp","sp_pwdp","sp_lstchg",
|
108
109
|
"sp_min","sp_max","sp_warn",
|
109
110
|
"sp_inact","pw_change",
|
110
|
-
"sp_expire","sp_flag",
|
111
|
+
"sp_expire","sp_flag",
|
112
|
+
"sp_loginclass", NULL);
|
111
113
|
rb_sGroupEntry = rb_struct_define("GroupEntry",
|
112
114
|
"sg_name","sg_passwd",
|
113
115
|
"sg_adm","sg_mem",NULL);
|
data/ruby-shadow.gemspec
CHANGED
data/shadow/shadow.c
CHANGED
@@ -44,6 +44,7 @@ static VALUE convert_pw_struct( struct spwd *entry )
|
|
44
44
|
Qnil, /* used by BSD, pw_change, date when the password expires, in days since Jan 1, 1970 */
|
45
45
|
INT2FIX(entry->sp_expire),
|
46
46
|
INT2FIX(entry->sp_flag),
|
47
|
+
Qnil,
|
47
48
|
NULL);
|
48
49
|
};
|
49
50
|
static VALUE
|
@@ -243,7 +244,9 @@ Init_shadow()
|
|
243
244
|
rb_sPasswdEntry = rb_struct_define("PasswdEntry",
|
244
245
|
"sp_namp","sp_pwdp","sp_lstchg",
|
245
246
|
"sp_min","sp_max","sp_warn",
|
246
|
-
"sp_inact", "pw_change",
|
247
|
+
"sp_inact", "pw_change",
|
248
|
+
"sp_expire","sp_flag",
|
249
|
+
"sp_loginclass", NULL);
|
247
250
|
rb_sGroupEntry = rb_struct_define("GroupEntry",
|
248
251
|
"sg_name","sg_passwd",
|
249
252
|
"sg_adm","sg_mem",NULL);
|
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.
|
4
|
+
version: 2.4.1
|
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-12-02 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
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.2
|
58
|
+
rubygems_version: 2.4.2
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: "*nix Shadow Password Module"
|