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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7db5aeea67878e55dc91619492ad2de445594199
4
- data.tar.gz: caa37b71c62ba1ba18b46d19c97ef4ce522c3aa6
3
+ metadata.gz: 5d5753f3a919b10c965a820c66df3d7f7cb9f80e
4
+ data.tar.gz: 12bd84a043a09aecf505d1daf15a050813615fc9
5
5
  SHA512:
6
- metadata.gz: a53e3f71cf061a5250389757c223526f3fd34413b3159e06592622576ffdc67054e51751b083a3ed4839586d017359a087c49f6d065d9aed94e945c1848c48a2
7
- data.tar.gz: bc2490b6eb0ba432b33636f3036322229e7964403428e4f1b88caae0223ce3d73644a2e5d5da44c1109a1143ad8c50c51ba60008a05e04d605ff72b927c402c1
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
- * 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.
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
@@ -56,6 +56,7 @@ Shadow::Passwd::Entry (Struct::PasswdEntry)
56
56
  considered inactive and disabled.
57
57
  sp_expire - days since Jan 1, 1970 when account will be
58
58
  disabled
59
+ sp_loginclass - pointer to null-terminated user login class.
59
60
 
60
61
 
61
62
  5. Description
@@ -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", NULL);
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);
@@ -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.4'
22
+ spec.version = '2.4.1'
23
23
  spec.license = "Public Domain License"
24
24
  end
@@ -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", "sp_expire","sp_flag", NULL);
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.3.4
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-04-28 00:00:00.000000000 Z
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.1
58
+ rubygems_version: 2.4.2
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: "*nix Shadow Password Module"