nu 0.1.11 → 0.1.12

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.
Files changed (2) hide show
  1. data/lib/nu/loader.rb +14 -0
  2. metadata +4 -4
@@ -28,6 +28,8 @@ module Nu
28
28
  puts "Copy To: #{to}"
29
29
 
30
30
  FileUtils.copy_entry start_here, to
31
+
32
+ process_dependencies
31
33
  end
32
34
 
33
35
  def self.get_libdir(name)
@@ -66,5 +68,17 @@ module Nu
66
68
  to
67
69
  end
68
70
 
71
+ def self.process_dependencies
72
+ spec = get_gemspec @gem_to_copy
73
+ spec.dependencies.each do |d|
74
+ if Gem.available? d.name
75
+ puts "loading #{d.name}"
76
+ load d.name, @location
77
+ else
78
+ puts "#{d.name} is not installed locally"
79
+ puts "please run 'gem install #{d.name}"
80
+ end
81
+ end
82
+ end
69
83
  end
70
84
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nu
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 11
10
- version: 0.1.11
9
+ - 12
10
+ version: 0.1.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dru Sellers
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-07-16 00:00:00 -05:00
20
+ date: 2010-07-17 00:00:00 -05:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency