File 0002-use-ruby-2.1-syntax.patch of Package rubygem-cfa
From a552d2edefb0ee2103b035d118688d8d821a3659 Mon Sep 17 00:00:00 2001
From: Josef Reidinger <jreidinger@suse.cz>
Date: Wed, 24 Jul 2019 15:49:52 +0200
Subject: [PATCH 2/3] use ruby 2.1 syntax
---
lib/cfa/augeas_parser/writer.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/cfa/augeas_parser/writer.rb b/lib/cfa/augeas_parser/writer.rb
index 5d1379b..b3acf76 100644
--- a/lib/cfa/augeas_parser/writer.rb
+++ b/lib/cfa/augeas_parser/writer.rb
@@ -310,7 +310,7 @@ module CFA
return paths.index(path) if paths.include?(path)
# not found, so it means that some collection or single entry switch
- new_path = +"/"
+ new_path = "/".dup
path.split("/").each do |element|
new_path << "/" unless new_path.end_with?("/")
new_path << pick_candidate(paths, new_path, element)
--
2.16.4