dohroot 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dohroot.rb +5 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 964f666fa8de25553813222bdc141d1640761b18
4
- data.tar.gz: 34bcfe1fd33fe9b5b81649eadc6a2be620e28791
3
+ metadata.gz: a628c800cf04d1142066cddb9732eeed0e8caafd
4
+ data.tar.gz: a789a6841767f6f37cc00a02247748d7f1e96249
5
5
  SHA512:
6
- metadata.gz: 7aeda966cb08bd6f6224c062d19ebc0a5c61ccb169acb911c24c8e050afc9462800a1d32c986f0543b21e9e4a21b50d19444e45af2c32f7475ba8e793d11f131
7
- data.tar.gz: d860cc510d803f265032925feefb1a3c62d4e3fbeac203bce84e06288ef5ff64914a133decb9ded262eb36e7dc992c1243ea749a8ce8b10bc0b63ee037f0b91e
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.3
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-18 00:00:00.000000000 Z
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: