Hello community,

here is the log from the commit of package yast2 for openSUSE:Factory checked 
in at 2017-07-22 02:32:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2 (Old)
 and      /work/SRC/openSUSE:Factory/.yast2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2"

Sat Jul 22 02:32:02 2017 rev:408 rq:511883 version:3.3.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2/yast2.changes      2017-07-17 
10:31:24.873508492 +0200
+++ /work/SRC/openSUSE:Factory/.yast2.new/yast2.changes 2017-07-22 
02:32:04.474650749 +0200
@@ -1,0 +2,21 @@
+Fri Jul 21 14:18:57 UTC 2017 - lsle...@suse.cz
+
+- cwm/rspec.rb: added tests in "CWM::RadioButtons" group for
+  optional #hspacing and #vspacing methods
+
+-------------------------------------------------------------------
+Thu Jul 20 08:17:41 UTC 2017 - jreidin...@suse.com
+
+- CWM::WrapperWidget#cwm_defintion: also include widget id,
+  otherwise the widget would not show in a Pager, eg. Tabs
+  (bsc#1049595)
+- 3.3.4
+
+-------------------------------------------------------------------
+Tue Jul 18 10:14:07 UTC 2017 - igonzalezs...@suse.com
+
+- Add YaST2 logs to the default list of files for System Log browser
+  (bsc#1049138)
+- 3.3.3
+
+-------------------------------------------------------------------

Old:
----
  yast2-3.3.2.tar.bz2

New:
----
  yast2-3.3.4.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2.spec ++++++
--- /var/tmp/diff_new_pack.NL90IS/_old  2017-07-22 02:32:05.070566512 +0200
+++ /var/tmp/diff_new_pack.NL90IS/_new  2017-07-22 02:32:05.070566512 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2
-Version:        3.3.2
+Version:        3.3.4
 Release:        0
 Summary:        YaST2 - Main Package
 License:        GPL-2.0

++++++ yast2-3.3.2.tar.bz2 -> yast2-3.3.4.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.3.2/library/cwm/src/lib/cwm/rspec.rb 
new/yast2-3.3.4/library/cwm/src/lib/cwm/rspec.rb
--- old/yast2-3.3.2/library/cwm/src/lib/cwm/rspec.rb    2017-07-13 
14:12:05.456949739 +0200
+++ new/yast2-3.3.4/library/cwm/src/lib/cwm/rspec.rb    2017-07-21 
16:47:07.716722812 +0200
@@ -88,9 +88,26 @@
   include_examples "CWM::AbstractWidget"
 end
 
+RSpec.shared_examples "CWM spacing" do |method|
+  describe "##{method}" do
+    it "returns and Integer or a Float number if defined" do
+      if subject.respond_to?(method)
+        expect(subject.send(method)).to be_an(Integer).or be_a(Float)
+      end
+    end
+
+    it "returns a positive number or zero if defined" do
+      expect(subject.send(method)).to be >= 0 if subject.respond_to?(method)
+    end
+  end
+end
+
 RSpec.shared_examples "CWM::RadioButtons" do
   include_examples "CWM::AbstractWidget"
   include_examples "CWM::ItemsSelection"
+
+  include_examples "CWM spacing", :hspacing
+  include_examples "CWM spacing", :vspacing
 end
 
 RSpec.shared_examples "CWM::ValueBasedWidget" do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-3.3.2/library/cwm/src/lib/cwm/wrapper_widget.rb 
new/yast2-3.3.4/library/cwm/src/lib/cwm/wrapper_widget.rb
--- old/yast2-3.3.2/library/cwm/src/lib/cwm/wrapper_widget.rb   2017-07-13 
14:12:05.456949739 +0200
+++ new/yast2-3.3.4/library/cwm/src/lib/cwm/wrapper_widget.rb   2017-07-21 
16:47:07.732722812 +0200
@@ -25,7 +25,7 @@
 
     # returns given hash specification
     def cwm_definition
-      @content
+      @content.merge("_cwm_key" => widget_id)
     end
 
     def handle_all_events
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.3.2/library/cwm/test/wrapper_widget_test.rb 
new/yast2-3.3.4/library/cwm/test/wrapper_widget_test.rb
--- old/yast2-3.3.2/library/cwm/test/wrapper_widget_test.rb     2017-07-13 
14:12:05.460949739 +0200
+++ new/yast2-3.3.4/library/cwm/test/wrapper_widget_test.rb     2017-07-21 
16:47:07.768722812 +0200
@@ -7,15 +7,20 @@
 describe CWM::WrapperWidget do
   describe "#cwm_definition" do
     it "returns passed hash content" do
-      content = { "test" => "test" }
-      expect(described_class.new(content).cwm_definition).to eq content
+      content = { "test" => "value" }
+      expect(described_class.new(content).cwm_definition["test"]).to eq "value"
+    end
+
+    it "return hash that has _cwm_key key with widget id" do
+      content = { "test" => "value" }
+      expect(described_class.new(content, id: 
"wid").cwm_definition["_cwm_key"]).to eq "wid"
     end
   end
 
   describe "#widget_id" do
     it "returns passed widget id" do
-      content = { "test" => "test" }
-      expect(described_class.new(content, id: "test").widget_id).to eq "test"
+      content = { "test" => "value" }
+      expect(described_class.new(content, id: "wid").widget_id).to eq "wid"
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-3.3.2/library/system/src/clients/view_anymsg.rb 
new/yast2-3.3.4/library/system/src/clients/view_anymsg.rb
--- old/yast2-3.3.2/library/system/src/clients/view_anymsg.rb   2017-07-13 
14:12:05.528949739 +0200
+++ new/yast2-3.3.4/library/system/src/clients/view_anymsg.rb   2017-07-21 
16:47:08.272722812 +0200
@@ -48,6 +48,13 @@
   class ViewAnymsgClient < Client
     using Yast::CoreExt::AnsiString
 
+    # [String] Default list of log files
+    DEFAULT_FILENAMES = [
+      "/var/log/boot.log",
+      "/var/log/messages",
+      "/var/log/YaST2/y2log"
+    ].freeze
+
     def main
       Yast.import "UI"
       textdomain "base"
@@ -77,15 +84,13 @@
       @filenames = Convert.to_string(
         SCR.Read(path(".target.string"), Ops.add(@vardir, "/filenames"))
       )
-      if !@filenames || @filenames.empty?
-        @filenames = ""
-        @filenames << "/var/log/boot.log\n"
-        @filenames << "/var/log/messages\n"
-      end
+
+      @filenames ||= ""
 
       # convert \n separated string to ycp list.
 
       @all_files = Builtins.splitstring(@filenames, "\n")
+      @all_files |= DEFAULT_FILENAMES
 
       @set_default = false
       @combo_files = []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.3.2/package/yast2.changes 
new/yast2-3.3.4/package/yast2.changes
--- old/yast2-3.3.2/package/yast2.changes       2017-07-13 14:12:05.560949739 
+0200
+++ new/yast2-3.3.4/package/yast2.changes       2017-07-21 16:47:08.384722812 
+0200
@@ -1,4 +1,25 @@
 -------------------------------------------------------------------
+Fri Jul 21 14:18:57 UTC 2017 - lsle...@suse.cz
+
+- cwm/rspec.rb: added tests in "CWM::RadioButtons" group for
+  optional #hspacing and #vspacing methods
+
+-------------------------------------------------------------------
+Thu Jul 20 08:17:41 UTC 2017 - jreidin...@suse.com
+
+- CWM::WrapperWidget#cwm_defintion: also include widget id,
+  otherwise the widget would not show in a Pager, eg. Tabs
+  (bsc#1049595)
+- 3.3.4
+
+-------------------------------------------------------------------
+Tue Jul 18 10:14:07 UTC 2017 - igonzalezs...@suse.com
+
+- Add YaST2 logs to the default list of files for System Log browser
+  (bsc#1049138)
+- 3.3.3
+
+-------------------------------------------------------------------
 Thu Jul 13 10:45:59 UTC 2017 - jreidin...@suse.com
 
 - Add Yast::Execute.on_target! and Yast::Execute.locally! variants
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.3.2/package/yast2.spec 
new/yast2-3.3.4/package/yast2.spec
--- old/yast2-3.3.2/package/yast2.spec  2017-07-13 14:12:05.560949739 +0200
+++ new/yast2-3.3.4/package/yast2.spec  2017-07-21 16:47:08.384722812 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2
-Version:        3.3.2
+Version:        3.3.4
 Release:        0
 Summary:        YaST2 - Main Package
 License:        GPL-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.3.2/test/yast2_test.rb 
new/yast2-3.3.4/test/yast2_test.rb
--- old/yast2-3.3.2/test/yast2_test.rb  2017-07-13 14:12:05.560949739 +0200
+++ new/yast2-3.3.4/test/yast2_test.rb  2017-07-21 16:47:08.428722812 +0200
@@ -4,12 +4,18 @@
 
 require "cheetah"
 
-additional_y2dir = File.expand_path("../test_y2dir", __FILE__)
-ENV["Y2DIR"] += ":#{additional_y2dir}"
 TEST_DIR = File.expand_path("../../scripts", __FILE__)
 
 describe "yast2 script" do
-  it "pass properly all arguments" do
+  around do |example|
+    old_y2dir = ENV["Y2DIR"]
+    additional_y2dir = File.expand_path("../test_y2dir", __FILE__)
+    ENV["Y2DIR"] = ENV["Y2DIR"] + ":#{additional_y2dir}"
+    example.run
+    ENV["Y2DIR"] = old_y2dir
+  end
+
+  it "passes properly all arguments" do
     Cheetah.run(TEST_DIR + "/yast2", "args_test_client", 'abc"\'\\|;&<>! ', 
"second", env: { "TESTING_YAST2" => "1" })
   end
 end


Reply via email to