ruby-shadow 2.3.1 → 2.3.2

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.
data/HISTORY CHANGED
@@ -1,3 +1,6 @@
1
+ [2013/12/18]
2
+ * Version 2.3.2
3
+ Fix up compilation issues causing problems with a non-GNU make.
1
4
  [2013/11/13]
2
5
  * Version 2.3.1
3
6
  - Caleb Land<caleb.land@gmail.com>
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 FreeBSD.
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
@@ -1,9 +1 @@
1
- ifneq (,$(findstring 1.9,$(ruby_version)))
2
- io_lib=$(hdrdir)/ruby/ruby/io.h
3
- hdr=$(hdrdir)/ruby/ruby.h
4
- else
5
- io_lib=$(hdrdir)/ruby/rubyio.h
6
- hdr=$(hdrdir)/ruby.h
7
- endif
8
-
9
- shadow.o: shadow.c $(hdr) $(io_lib)
1
+ shadow.o: shadow.c
@@ -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 RUBY19
21
- #include <ruby/io.h>
20
+ #ifdef HAVE_RUBY_IO_H
21
+ #include "ruby/io.h"
22
22
  #else
23
23
  #include "rubyio.h"
24
24
  #endif
@@ -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.1'
22
+ spec.version = '2.3.2'
23
23
  spec.license = "Public Domain License"
24
24
  end
@@ -1,9 +1 @@
1
- ifneq (,$(findstring 1.9,$(ruby_version)))
2
- io_lib=$(hdrdir)/ruby/ruby/io.h
3
- hdr=$(hdrdir)/ruby/ruby.h
4
- else
5
- io_lib=$(hdrdir)/ruby/rubyio.h
6
- hdr=$(hdrdir)/ruby.h
7
- endif
8
-
9
- shadow.o: shadow.c $(hdr) $(io_lib)
1
+ shadow.o: shadow.c
@@ -9,8 +9,8 @@
9
9
 
10
10
  #include <shadow.h>
11
11
  #include "ruby.h"
12
- #ifdef RUBY19
13
- #include <ruby/io.h>
12
+ #ifdef HAVE_RUBY_IO_H
13
+ #include "ruby/io.h"
14
14
  #else
15
15
  #include "rubyio.h"
16
16
  #endif
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.1
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-11-13 00:00:00.000000000 Z
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: []