From: hiracy <leizhen@mbr.nifty.com>
Date: Fri, 16 Nov 2018 19:43:15 +0900
Acked-By: Daniel Leidert <dleidert@debian.org>
Origin: https://github.com/hiracy/serverspec-runner/commit/c459787defe1b08bbe46a5acf0ea07039fe44f61.patch
Bug-Debian: https://bugs.debian.org/939645
Description: [PATCH] Support ruby 2.5 over
  Use YAML.load_stream instead of YAML.load_documents.

--- a/Rakefile
+++ b/Rakefile
@@ -165,7 +165,7 @@
   end
 
   File.open(ENV['scenario'] || "#{ENV['specroot']}/scenario.yml") do |f|
-    YAML.load_documents(f).each_with_index do |data, idx|
+    YAML.load_stream(f).each_with_index do |data, idx|
       if idx == 0
         scenarios = data
       else
