Merge pull request #136 from fluent/fix_type_error_on_fluent_gem_list_method

Fix to avoid pass Enumerator to Rails.cache.fetch
This commit is contained in:
uu59 2015-01-14 15:32:20 +09:00
commit b3290456f0

View File

@ -21,7 +21,7 @@ module FluentGem
if $? && $?.exitstatus != 0 # NOTE: $? will be nil on CircleCI, so check $? at first if $? && $?.exitstatus != 0 # NOTE: $? will be nil on CircleCI, so check $? at first
raise GemError, "failed command: `#{gem} list`" raise GemError, "failed command: `#{gem} list`"
end end
output.lines output.lines.to_a
end end
end end