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 CHANGED
@@ -1 +1 @@
1
- 0.2.1
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Roger Pack