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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/HISTORY +6 -2
  3. data/README +13 -13
  4. data/extconf.rb +3 -4
  5. data/ruby-shadow.gemspec +1 -1
  6. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00dc5e2fb7b9124c5e9489f228d5d35ed06487d3
4
- data.tar.gz: 18183d816f024a50f1bde785048d9476e4c893e7
3
+ metadata.gz: 7db5aeea67878e55dc91619492ad2de445594199
4
+ data.tar.gz: caa37b71c62ba1ba18b46d19c97ef4ce522c3aa6
5
5
  SHA512:
6
- metadata.gz: b3ad44e8ce154effe359199c0db55a90d88f9e8d57d6b5de84b96eca95eb20489604359288716f7062d2d53790e8994f57821401114b48f5bef3b3123ed41776
7
- data.tar.gz: d60ce3599b533e8a54664184a3918a64b8cd9785a0f45d7f80fd4cb65e0a930a549cf458e661be115bf77333aac4e55308637828126583d0cdc91c36f8c0b1cb
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.2
3
- Fix up compilation issues causing problems with a non-GNU make.
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 | 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
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
@@ -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.3'
22
+ spec.version = '2.3.4'
23
23
  spec.license = "Public Domain License"
24
24
  end
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.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-02-25 00:00:00.000000000 Z
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