From c821c65da01b994874b79bc9ed889bee25373f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B3=A5=E4=BA=95=20=E9=9B=AA?= Date: Wed, 14 Jan 2015 15:24:29 +0900 Subject: [PATCH] Fix to avoid pass Enumerator to Rails.cache.fetch when no data exists --- app/models/fluent_gem.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/fluent_gem.rb b/app/models/fluent_gem.rb index aa52563..b48b5a5 100644 --- a/app/models/fluent_gem.rb +++ b/app/models/fluent_gem.rb @@ -21,7 +21,7 @@ module FluentGem if $? && $?.exitstatus != 0 # NOTE: $? will be nil on CircleCI, so check $? at first raise GemError, "failed command: `#{gem} list`" end - output.lines + output.lines.to_a end end