depwhack 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.textile +2 -0
  2. data/bin/depwhack +7 -2
  3. metadata +1 -1
data/README.textile CHANGED
@@ -8,6 +8,8 @@ Change directory to your Rails project and run:
8
8
 
9
9
  <code>depwhack server</code>
10
10
 
11
+ This works best with ssh keys set up, else it'll prompt you a lot.
12
+
11
13
  h3. Installation
12
14
 
13
15
  This gem is hosted on "gemcutter":http://gemcutter.org
data/bin/depwhack CHANGED
@@ -13,14 +13,19 @@ end
13
13
  def red(text); colorize(text, "#{27.chr}[31m"); end
14
14
  def green(text); colorize(text, "#{27.chr}[32m"); end
15
15
 
16
+ begin
17
+ gems = eval `#{remote_command} "#{gem_list_code}"`
18
+ rescue
19
+ puts "[#{red 'ERROR'}] Please run this command from a Rails project's path."
20
+ exit 1
21
+ end
22
+
16
23
  gem_list_code =<<RUBY
17
24
  at_exit do
18
25
  p Gem.loaded_specs.collect { |g| [g.first, g[1].version.to_s] }
19
26
  end
20
27
  RUBY
21
28
 
22
- gems = eval `#{remote_command} "#{gem_list_code}"`
23
-
24
29
  gems.each do |name, version|
25
30
  output = %x{#{ssh_bin} #{server} '#{gem_bin} search #{name}'}
26
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: depwhack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex R. Young