mit-ldap 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mit-ldap.rb +6 -1
- data/lib/mit/ldap/version.rb +1 -1
- data/mit-ldap.gemspec +1 -0
- metadata +19 -8
data/lib/mit-ldap.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'rbconfig'
|
2
2
|
require 'ldap'
|
3
3
|
require 'ldaptic'
|
4
|
+
require 'cocaine'
|
4
5
|
|
5
6
|
module MIT
|
6
7
|
|
@@ -13,9 +14,13 @@ module MIT
|
|
13
14
|
private
|
14
15
|
|
15
16
|
def ip_addresses
|
16
|
-
ifconfig = `ifconfig`
|
17
17
|
@ip_addresses ||= ifconfig.split(/\n/).grep(/inet (?:addr:)?((?:\d{1,3}\.){3}\d{1,3})/) { $1 }
|
18
18
|
end
|
19
|
+
|
20
|
+
def ifconfig
|
21
|
+
@ifconfig ||= Cocaine::CommandLine.new('/sbin/ifconfig')
|
22
|
+
@ifconfig.run
|
23
|
+
end
|
19
24
|
end
|
20
25
|
end
|
21
26
|
|
data/lib/mit/ldap/version.rb
CHANGED
data/mit-ldap.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mit-ldap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ldaptic
|
16
|
-
requirement: &
|
16
|
+
requirement: &70102354565940 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70102354565940
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: ruby-ldap
|
27
|
-
requirement: &
|
27
|
+
requirement: &70102354565140 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,21 @@ dependencies:
|
|
32
32
|
version: '0.9'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70102354565140
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: cocaine
|
38
|
+
requirement: &70102354564560 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.2'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70102354564560
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: rspec
|
38
|
-
requirement: &
|
49
|
+
requirement: &70102354563920 !ruby/object:Gem::Requirement
|
39
50
|
none: false
|
40
51
|
requirements:
|
41
52
|
- - ~>
|
@@ -43,7 +54,7 @@ dependencies:
|
|
43
54
|
version: '2.0'
|
44
55
|
type: :development
|
45
56
|
prerelease: false
|
46
|
-
version_requirements: *
|
57
|
+
version_requirements: *70102354563920
|
47
58
|
description: Ruby interface for querying MIT LDAP server (only if you're on MITnet)
|
48
59
|
email:
|
49
60
|
- edd_d@mit.edu
|