bard 0.6.5 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bard.gemspec +1 -1
  3. data/lib/bard/check.rb +5 -2
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.5
1
+ 0.6.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bard}
8
- s.version = "0.6.5"
8
+ s.version = "0.6.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Micah Geisel", "Nick Hogle"]
@@ -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
- puts red("#{pkg.ljust(9)} (#{actual[pkg]}) ... NEED (#{required[pkg]})")
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel