dohroot 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dohroot.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a628c800cf04d1142066cddb9732eeed0e8caafd
|
4
|
+
data.tar.gz: a789a6841767f6f37cc00a02247748d7f1e96249
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba38e9d5becf4d13984ad88fa16ab2374f785f86962e717f38d47c0c149dcdfb453da2b770d2ac0be29c97d9f03bd2ffbb5d9c9d8cceb0f2ea1ff3e0a6543486
|
7
|
+
data.tar.gz: 567ed8a2969ce33d60731188da0845e1a6aeee81f5a511f4f9c7bf6ea882d5c3fda925f52ffefb4157dd6b2561c26d79d838477deee6ff4bf2a6d56fb8a5c2cd
|
data/lib/dohroot.rb
CHANGED
@@ -50,11 +50,16 @@ def use_pkg(init_file, *name_list)
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
+
@pkg_used ||= []
|
53
54
|
name_list.each do |name|
|
55
|
+
next if @pkg_used.include?(name)
|
56
|
+
@pkg_used << name
|
54
57
|
use_one_pkg(init_file, name)
|
55
58
|
end
|
56
59
|
end
|
57
60
|
|
61
|
+
private
|
62
|
+
|
58
63
|
def use_one_pkg(init_file, name)
|
59
64
|
libdir = File.join(Doh.root, "pkg/#{name}/lib")
|
60
65
|
unless $LOAD_PATH.include?(libdir)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dohroot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Makani Mason
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Implements the notion of dohroot that enables most other doh stuff.
|
15
15
|
email:
|