specific_install 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rubygems/commands/specific_install_command.rb +5 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -33,12 +33,14 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
33
33
|
# http://github.com/rdp/install_from_git [later]
|
34
34
|
# http://host/gem_name.gem
|
35
35
|
dir = Dir.mktmpdir
|
36
|
+
begin
|
36
37
|
if loc.start_with?('http://') && loc.end_with?('.gem')
|
37
38
|
Dir.chdir dir do
|
38
39
|
say "downloading #{loc}"
|
39
40
|
system("wget #{loc}")
|
40
41
|
if install_gemspec
|
41
42
|
puts "successfully installed"
|
43
|
+
return
|
42
44
|
else
|
43
45
|
puts "failed"
|
44
46
|
end
|
@@ -58,7 +60,10 @@ class Gem::Commands::SpecificInstallCommand < Gem::Command
|
|
58
60
|
end
|
59
61
|
end
|
60
62
|
end
|
63
|
+
puts 'failed'
|
64
|
+
ensure
|
61
65
|
FileUtils.rm_rf dir # just in case [?]
|
66
|
+
end
|
62
67
|
else
|
63
68
|
say 'location is required'
|
64
69
|
end
|