Skip to content

Commit

Permalink
Update to v1.3.0 of coffeelint
Browse files Browse the repository at this point in the history
Fix display_test_results to return the correct error value

Fix #14
  • Loading branch information
zmbush committed Apr 21, 2014
1 parent 86d92a4 commit 3166540
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Coffeelint [![Build Status](https://travis-ci.org/zmbush/coffeelint-ruby.svg?branch=master)](https://travis-ci.org/zmbush/coffeelint-ruby) [![Gem Version](https://badge.fury.io/rb/coffeelint.png)](http://badge.fury.io/rb/coffeelint)

Using coffeelint version: v1.2.0-4-g25e1fc8
Using coffeelint version: v1.3.0

Coffeelint is a set of simple ruby bindings for [coffeelint](https://github.com/clutchski/coffeelint).

Expand Down
6 changes: 3 additions & 3 deletions lib/coffeelint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def self.display_test_results(name, errors, pretty_output = true)
puts " #{good} " + Coffeelint.green(name, pretty_output)
return true
else
failed = false
no_failures = true
if errors.any? {|e| e["level"] == "error"}
failed = true
no_failures = false
puts " #{bad} " + Coffeelint.red(name, pretty_output)
else
puts " #{warn} " + Coffeelint.yellow(name, pretty_output)
Expand All @@ -93,7 +93,7 @@ def self.display_test_results(name, errors, pretty_output = true)
end
puts ": #{error["message"]}. #{error["context"]}."
end
return failed
return no_failures
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/coffeelint/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Coffeelint
VERSION = "0.2.6"
VERSION = "0.2.7"
end

0 comments on commit 3166540

Please sign in to comment.