nu 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nu/cli.rb +5 -0
- data/lib/nu/loader.rb +7 -2
- data/lib/nu/project.rb +7 -0
- metadata +4 -4
data/lib/nu/cli.rb
CHANGED
data/lib/nu/loader.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
require 'rubygems/dependency_installer'
|
2
3
|
|
3
4
|
module Nu
|
4
5
|
class Loader
|
@@ -14,8 +15,12 @@ module Nu
|
|
14
15
|
|
15
16
|
|
16
17
|
if !Gem.available? @gem_to_copy
|
17
|
-
puts "Gem unavailable -
|
18
|
-
|
18
|
+
puts "Gem unavailable - trying to install"
|
19
|
+
inst = Gem::DependencyInstaller.new
|
20
|
+
inst.install @gem_to_copy
|
21
|
+
inst.installed_gems.each do |spec|
|
22
|
+
puts "Successfully installed #{spec.full_name}"
|
23
|
+
end
|
19
24
|
else
|
20
25
|
puts "Found Gem"
|
21
26
|
end
|
data/lib/nu/project.rb
CHANGED
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:
|
4
|
+
hash: 59
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 16
|
10
|
+
version: 0.1.16
|
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-
|
20
|
+
date: 2010-07-22 00:00:00 -05:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|