bard 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bard.gemspec +1 -1
- data/lib/bard/check.rb +5 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.6
|
data/bard.gemspec
CHANGED
data/lib/bard/check.rb
CHANGED
@@ -20,14 +20,17 @@ class Bard < Thor
|
|
20
20
|
'ruby' => 'um... ask micah?'
|
21
21
|
}
|
22
22
|
|
23
|
+
errors = []
|
23
24
|
%w(bard git rubygems ruby).each do |pkg|
|
24
25
|
if actual[pkg] < required[pkg]
|
25
|
-
|
26
|
-
puts red(" #{help[pkg]}")
|
26
|
+
errors << red("#{pkg.ljust(9)} (#{actual[pkg]}) ... NEED (#{required[pkg]})\n #{help[pkg]}")
|
27
27
|
elsif options.verbose?
|
28
28
|
puts green("#{pkg.ljust(9)} (#{actual[pkg]})")
|
29
29
|
end
|
30
30
|
end
|
31
|
+
if not errors.empty?
|
32
|
+
fatal "#{errors.length} problems detected:\n #{errors.join("\n ")}"
|
33
|
+
end
|
31
34
|
end
|
32
35
|
|
33
36
|
def check_project(project)
|