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.
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module MIT
2
2
  module LDAP
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_dependency 'ldaptic', '~> 0.2'
22
22
  s.add_dependency 'ruby-ldap', '~> 0.9'
23
+ s.add_dependency 'cocaine', '~> 0.2'
23
24
 
24
25
  s.add_development_dependency "rspec", "~> 2.0"
25
26
  end
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.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-07 00:00:00.000000000 Z
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: &70245228317600 !ruby/object:Gem::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: *70245228317600
24
+ version_requirements: *70102354565940
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ruby-ldap
27
- requirement: &70245228317040 !ruby/object:Gem::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: *70245228317040
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: &70245228316440 !ruby/object:Gem::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: *70245228316440
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