Hello community,

here is the log from the commit of package yast2-ruby-bindings for 
openSUSE:Factory checked in at 2019-05-21 10:36:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ruby-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-ruby-bindings"

Tue May 21 10:36:25 2019 rev:94 rq:704221 version:4.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-ruby-bindings/yast2-ruby-bindings.changes  
2019-03-06 19:02:58.449081520 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new.5148/yast2-ruby-bindings.changes
        2019-05-21 10:36:27.403240142 +0200
@@ -1,0 +2,14 @@
+Mon May 20 09:09:14 UTC 2019 - [email protected]
+
+- Fixup the textdomain change so that yast2.rpm builds (bsc#1130822)
+- 4.2.1
+
+-------------------------------------------------------------------
+Thu May 16 12:19:59 UTC 2019 - [email protected]
+
+- Raise (an Internal Error) if no textdomain is declared for
+  a translatable text and Y2STRICTTEXTDOMAIN is in the environment
+  (bsc#1130822)
+- 4.2.0
+
+-------------------------------------------------------------------

Old:
----
  yast2-ruby-bindings-4.1.4.tar.bz2

New:
----
  yast2-ruby-bindings-4.2.1.tar.bz2

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

Other differences:
------------------
++++++ yast2-ruby-bindings.spec ++++++
--- /var/tmp/diff_new_pack.M9oM37/_old  2019-05-21 10:36:27.947239788 +0200
+++ /var/tmp/diff_new_pack.M9oM37/_new  2019-05-21 10:36:27.947239788 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ruby-bindings
-Version:        4.1.4
+Version:        4.2.1
 Release:        0
 Url:            https://github.com/yast/yast-ruby-bindings
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-ruby-bindings-4.1.4.tar.bz2 -> yast2-ruby-bindings-4.2.1.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-ruby-bindings-4.1.4/Dockerfile 
new/yast2-ruby-bindings-4.2.1/Dockerfile
--- old/yast2-ruby-bindings-4.1.4/Dockerfile    2019-03-05 16:34:56.000000000 
+0100
+++ new/yast2-ruby-bindings-4.2.1/Dockerfile    2019-05-20 13:42:58.000000000 
+0200
@@ -1,4 +1,4 @@
-FROM yastdevel/cpp
+FROM registry.opensuse.org/yast/head/containers/yast-cpp:latest
 # Install tmux to make sure the libyui+YaST integration tests are run
 RUN zypper --non-interactive in tmux
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ruby-bindings-4.1.4/package/yast2-ruby-bindings.changes 
new/yast2-ruby-bindings-4.2.1/package/yast2-ruby-bindings.changes
--- old/yast2-ruby-bindings-4.1.4/package/yast2-ruby-bindings.changes   
2019-03-05 16:34:56.000000000 +0100
+++ new/yast2-ruby-bindings-4.2.1/package/yast2-ruby-bindings.changes   
2019-05-20 13:42:58.000000000 +0200
@@ -1,4 +1,18 @@
 -------------------------------------------------------------------
+Mon May 20 09:09:14 UTC 2019 - [email protected]
+
+- Fixup the textdomain change so that yast2.rpm builds (bsc#1130822)
+- 4.2.1
+
+-------------------------------------------------------------------
+Thu May 16 12:19:59 UTC 2019 - [email protected]
+
+- Raise (an Internal Error) if no textdomain is declared for
+  a translatable text and Y2STRICTTEXTDOMAIN is in the environment
+  (bsc#1130822)
+- 4.2.0
+
+-------------------------------------------------------------------
 Tue Mar  5 14:23:29 UTC 2019 - Ladislav Slezák <[email protected]>
 
 - Always return frozen strings from the translation functions,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ruby-bindings-4.1.4/package/yast2-ruby-bindings.spec 
new/yast2-ruby-bindings-4.2.1/package/yast2-ruby-bindings.spec
--- old/yast2-ruby-bindings-4.1.4/package/yast2-ruby-bindings.spec      
2019-03-05 16:34:56.000000000 +0100
+++ new/yast2-ruby-bindings-4.2.1/package/yast2-ruby-bindings.spec      
2019-05-20 13:42:58.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ruby-bindings
-Version:        4.1.4
+Version:        4.2.1
 Url:            https://github.com/yast/yast-ruby-bindings
 Release:        0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-ruby-bindings-4.1.4/src/ruby/yast/i18n.rb 
new/yast2-ruby-bindings-4.2.1/src/ruby/yast/i18n.rb
--- old/yast2-ruby-bindings-4.1.4/src/ruby/yast/i18n.rb 2019-03-05 
16:34:56.000000000 +0100
+++ new/yast2-ruby-bindings-4.2.1/src/ruby/yast/i18n.rb 2019-05-20 
13:42:58.000000000 +0200
@@ -53,8 +53,12 @@
     def _(str)
       # no textdomain configured yet
       if !@my_textdomain
-        Yast.y2warning("No textdomain configured, cannot translate 
#{str.inspect}")
-        Yast.y2warning("Called from: #{::Kernel.caller(1).first}")
+        if File.exist?(LOCALE_DIR)
+          msg = "No textdomain configured in #{self.class}, " \
+                "cannot translate #{str.inspect}"
+          raise msg if ENV["Y2STRICTTEXTDOMAIN"]
+          Yast.y2warning(1, "%1", msg) # skip 1 frame
+        end
         return str.freeze
       end
 
@@ -121,9 +125,13 @@
     def n_(singular, plural, num)
       # no textdomain configured yet
       if !@my_textdomain
-        # it's enough to log just the singular form
-        Yast.y2warning("No textdomain configured, cannot translate text 
#{singular.inspect}")
-        Yast.y2warning("Called from: #{::Kernel.caller(1).first}")
+        if File.exist?(LOCALE_DIR)
+          # it's enough to log just the singular form
+          msg = "No textdomain configured in #{self.class}, " \
+                "cannot translate #{singular.inspect}"
+          raise msg if ENV["Y2STRICTTEXTDOMAIN"]
+          Yast.y2warning(1, "%1", msg) # skip 1 frame
+        end
         return fallback_n_(singular, plural, num)
       end
 


Reply via email to