Hello community, here is the log from the commit of package rubygem-cfa_grub2 for openSUSE:Factory checked in at 2017-03-29 13:22:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-cfa_grub2 (Old) and /work/SRC/openSUSE:Factory/.rubygem-cfa_grub2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-cfa_grub2" Wed Mar 29 13:22:11 2017 rev:6 rq:481352 version:0.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-cfa_grub2/rubygem-cfa_grub2.changes 2016-12-09 09:35:48.952960447 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-cfa_grub2.new/rubygem-cfa_grub2.changes 2017-03-29 13:22:12.980436728 +0200 @@ -1,0 +2,6 @@ +Mon Mar 20 13:52:28 UTC 2017 - jreidinger@suse.com + +- adapt to new cfa version (bsc#1023204) +- 0.6.0 + +------------------------------------------------------------------- Old: ---- cfa_grub2-0.5.3.gem New: ---- cfa_grub2-0.6.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-cfa_grub2.spec ++++++ --- /var/tmp/diff_new_pack.iTm3aX/_old 2017-03-29 13:22:13.600349058 +0200 +++ /var/tmp/diff_new_pack.iTm3aX/_new 2017-03-29 13:22:13.600349058 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-cfa_grub2 # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: rubygem-cfa_grub2 -Version: 0.5.3 +Version: 0.6.0 Release: 0 %define mod_name cfa_grub2 %define mod_full_name %{mod_name}-%{version} ++++++ cfa_grub2-0.5.3.gem -> cfa_grub2-0.6.0.gem ++++++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/cfa/grub2/default.rb new/lib/cfa/grub2/default.rb --- old/lib/cfa/grub2/default.rb 2016-12-07 09:36:07.000000000 +0100 +++ new/lib/cfa/grub2/default.rb 2017-03-20 15:31:04.000000000 +0100 @@ -185,6 +185,7 @@ def add_parameter(key, value, placer = AppendPlacer.new) element = placer.new_element(@tree) + element[:operation] = :add element[:key] = key element[:value] = value end @@ -192,31 +193,29 @@ # Removes parameter from kernel command line. # @param matcher [Matcher] to find entry to remove def remove_parameter(matcher) - @tree.data.reject!(&matcher) + @tree.data.select(&matcher).each { |e| e[:operation] = :remove } end # Represents parsed kernel parameters tree. Parses in initialization # and backserilized by `to_string`. # TODO: replace it via augeas parser when someone write lense class ParamTree - attr_reader :data - def initialize(line) - line ||= "" - pairs = line.split(/\s/) - .reject(&:empty?) - .map { |e| e.split("=", 2) } + pairs = (line || "").split(/\s/) + .reject(&:empty?) + .map { |e| e.split("=", 2) } @data = pairs.map do |k, v| { - key: k, - value: v || true, # kernel param without value have true + key: k, + value: v || true, # kernel param without value have true + operation: :keep } end end def to_string - snippets = @data.map do |e| + snippets = data.map do |e| if e[:value] == true e[:key] else @@ -226,6 +225,14 @@ snippets.join(" ") end + + def data + @data.select { |e| e[:operation] != :remove }.freeze + end + + def all_data + @data + end end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2016-12-07 09:36:33.000000000 +0100 +++ new/metadata 2017-03-20 15:31:04.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: cfa_grub2 version: !ruby/object:Gem::Version - version: 0.5.3 + version: 0.6.0 platform: ruby authors: - Josef Reidinger autorequire: bindir: bin cert_chain: [] -date: 2016-12-07 00:00:00.000000000 Z +date: 2017-03-20 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: cfa @@ -16,14 +16,14 @@ requirements: - - "~>" - !ruby/object:Gem::Version - version: '0.3' + version: '0.5' type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - "~>" - !ruby/object:Gem::Version - version: '0.3' + version: '0.5' description: Models allowing easy read and modification of GRUB2 configuration files. It is a plugin for cfa framework. email: @@ -56,8 +56,9 @@ version: 1.3.6 requirements: [] rubyforge_project: -rubygems_version: 2.4.5.1 +rubygems_version: 2.2.2 signing_key: specification_version: 4 summary: Models for GRUB2 configuration files. test_files: [] +has_rdoc: