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 CHANGED
@@ -36,6 +36,11 @@ module Nu
36
36
  @proj.use_long_names
37
37
  end
38
38
 
39
+ desc "useshortnames", "turn the option of name + version number off"
40
+ def useshortnames
41
+ @proj.use_short_names
42
+ end
43
+
39
44
  def self.source_root
40
45
  File.dirname(__FILE__)
41
46
  end
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 - please install it"
18
- return
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
@@ -36,6 +36,13 @@ module Nu
36
36
  save_file(opts)
37
37
  nil
38
38
  end
39
+ #need to meta awesome this
40
+ def use_short_names
41
+ opts = get_options
42
+ opts['uselongnames']=false
43
+ save_file(opts)
44
+ nil
45
+ end
39
46
 
40
47
 
41
48
  def add_file(name, content)
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: 5
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 15
10
- version: 0.1.15
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-21 00:00:00 -05:00
20
+ date: 2010-07-22 00:00:00 -05:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency