nu 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/nu/loader.rb +10 -5
  2. metadata +3 -3
@@ -16,11 +16,16 @@ module Nu
16
16
 
17
17
  if !Gem.available? @gem_to_copy
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
+ begin
20
+ inst = Gem::DependencyInstaller.new
21
+ inst.install @gem_to_copy
22
+ inst.installed_gems.each do |spec|
23
+ puts "Successfully installed #{spec.full_name}"
24
+ end
25
+ rescue Gem::GemNotFoundException => e
26
+ puts "ERROR: #{e.message}"
27
+ return #GTFO
28
+ end
24
29
  else
25
30
  puts "Found Gem"
26
31
  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: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 16
10
- version: 0.1.16
9
+ - 17
10
+ version: 0.1.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dru Sellers