diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-05-15 13:19:56 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-05-15 13:19:56 +0100 |
commit | d302a5d7fc9caafba5c8a404f2891bb6ccdec311 (patch) | |
tree | 2a3ee43f080d1d0086964de8c29ccf1021fdfda7 /dev-ruby/redcloth/files | |
parent | ea31ad0ed5501d0bf92267c35beaf06ac016bad2 (diff) |
gentoo resync : 15.05.2018
Diffstat (limited to 'dev-ruby/redcloth/files')
-rw-r--r-- | dev-ruby/redcloth/files/redcloth-4.3.2-load-documents.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-ruby/redcloth/files/redcloth-4.3.2-load-documents.patch b/dev-ruby/redcloth/files/redcloth-4.3.2-load-documents.patch new file mode 100644 index 000000000000..f390afd58268 --- /dev/null +++ b/dev-ruby/redcloth/files/redcloth-4.3.2-load-documents.patch @@ -0,0 +1,30 @@ +From 00b55ace17ed408b1b6129e1ba6c90fd4f0a6d2c Mon Sep 17 00:00:00 2001 +From: Matijs van Zuijlen <matijs@matijs.net> +Date: Tue, 29 Aug 2017 08:08:36 +0200 +Subject: [PATCH] Replace deprecated YAML.load_documents + +The .load_documents method is deprecated and seems to have been removed +entirely in the upcoming Ruby 2.5. +--- + spec/spec_helper.rb | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb +index af6279a..74a5cae 100644 +--- a/spec/spec_helper.rb ++++ b/spec/spec_helper.rb +@@ -26,11 +26,11 @@ def fixtures + Dir[File.join(File.dirname(__FILE__), *%w[fixtures *.yml])].each do |testfile| + testgroup = File.basename(testfile, '.yml') + num = 0 +- YAML::load_documents(File.open(testfile)) do |doc| ++ YAML::load_stream(File.open(testfile)) do |doc| + name = doc['name'] || num + @fixtures["#{testgroup} #{name}"] = doc + num += 1 + end + end + @fixtures +-end +\ No newline at end of file ++end |