Skip to content

Commit

Permalink
Merge pull request #1 from damncabbage/removes-as
Browse files Browse the repository at this point in the history
Removes dependency on ActiveSupport's blank? from the CircleCI job.
  • Loading branch information
mtchavez committed Jul 11, 2014
2 parents 9637a86 + 054dc78 commit 7172b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jobs/circleci.rb
Expand Up @@ -25,7 +25,7 @@ def broken_or_no_builds
end

def get_climate(builds = [])
return '|' if builds.blank?
return '|' if builds.empty?
statuses = builds[0..10].map { |build| build['status'] if build['branch'] == 'master' }.compact
weight = nil

Expand All @@ -46,7 +46,7 @@ def get_climate(builds = [])
end

def get_build_info(builds=[])
return broken_or_no_builds if builds.blank?
return broken_or_no_builds if builds.empty?
build = builds.detect { |b| b['branch'] == 'master' }
{
label: "Build ##{build['build_num']}",
Expand Down

0 comments on commit 7172b72

Please sign in to comment.