Hello community,
here is the log from the commit of package yast2-ruby-bindings for
openSUSE:Factory checked in at 2014-02-06 07:01:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ruby-bindings (Old)
and /work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-ruby-bindings"
Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-ruby-bindings/yast2-ruby-bindings.changes
2014-02-04 22:50:41.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new/yast2-ruby-bindings.changes
2014-02-06 07:01:58.000000000 +0100
@@ -1,0 +2,7 @@
+Wed Feb 5 14:20:37 UTC 2014 - [email protected]
+
+- Builtins.y2milestone(),... marked as deprecated, use Yast::Logger
+ instead in the new code
+- 3.1.8
+
+-------------------------------------------------------------------
Old:
----
yast2-ruby-bindings-3.1.7.tar.bz2
New:
----
yast2-ruby-bindings-3.1.8.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-ruby-bindings.spec ++++++
--- /var/tmp/diff_new_pack.h1tqiw/_old 2014-02-06 07:01:58.000000000 +0100
+++ /var/tmp/diff_new_pack.h1tqiw/_new 2014-02-06 07:01:58.000000000 +0100
@@ -17,7 +17,7 @@
Name: yast2-ruby-bindings
-Version: 3.1.7
+Version: 3.1.8
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-ruby-bindings-%{version}.tar.bz2
++++++ yast2-ruby-bindings-3.1.7.tar.bz2 -> yast2-ruby-bindings-3.1.8.tar.bz2
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-3.1.7/package/yast2-ruby-bindings.changes
new/yast2-ruby-bindings-3.1.8/package/yast2-ruby-bindings.changes
--- old/yast2-ruby-bindings-3.1.7/package/yast2-ruby-bindings.changes
2014-02-04 15:35:54.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.8/package/yast2-ruby-bindings.changes
2014-02-05 15:41:24.000000000 +0100
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Wed Feb 5 14:20:37 UTC 2014 - [email protected]
+
+- Builtins.y2milestone(),... marked as deprecated, use Yast::Logger
+ instead in the new code
+- 3.1.8
+
+-------------------------------------------------------------------
Tue Feb 4 14:34:15 UTC 2014 - [email protected]
- format spec file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-3.1.7/package/yast2-ruby-bindings.spec
new/yast2-ruby-bindings-3.1.8/package/yast2-ruby-bindings.spec
--- old/yast2-ruby-bindings-3.1.7/package/yast2-ruby-bindings.spec
2014-02-04 15:35:54.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.8/package/yast2-ruby-bindings.spec
2014-02-05 15:41:24.000000000 +0100
@@ -17,7 +17,7 @@
Name: yast2-ruby-bindings
-Version: 3.1.7
+Version: 3.1.8
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-ruby-bindings-%{version}.tar.bz2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.1.7/src/ruby/yast/builtins.rb
new/yast2-ruby-bindings-3.1.8/src/ruby/yast/builtins.rb
--- old/yast2-ruby-bindings-3.1.7/src/ruby/yast/builtins.rb 2014-02-04
15:35:54.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.8/src/ruby/yast/builtins.rb 2014-02-05
15:41:24.000000000 +0100
@@ -15,6 +15,9 @@
class FunRef; end
# Contains builtins available in YCP for easier transition. Big part of
methods are deprecated.
+ #
+ # For logging use {Yast::Logger} module instead of deprecated
{Builtins.y2milestone},... functions
+ #
# @note All builtins return copy of result
module Builtins
@@ -604,36 +607,42 @@
end
# Log a message to the y2log.
+ # @deprecated Use {Yast::Logger} instead
def self.y2debug *args
shift_frame_number args
Yast.y2debug *args
end
# Log an error to the y2log.
+ # @deprecated Use {Yast::Logger} instead
def self.y2error *args
shift_frame_number args
Yast.y2error *args
end
# Log an internal message to the y2log.
+ # @deprecated Use {Yast::Logger} instead
def self.y2internal *args
shift_frame_number args
Yast.y2internal *args
end
# Log a milestone to the y2log.
+ # @deprecated Use {Yast::Logger} instead
def self.y2milestone*args
shift_frame_number args
Yast.y2milestone *args
end
# Log a security message to the y2log.
+ # @deprecated Use {Yast::Logger} instead
def self.y2security *args
shift_frame_number args
Yast.y2security *args
end
# Log a warning to the y2log.
+ # @deprecated Use {Yast::Logger} instead
def self.y2warning *args
shift_frame_number args
Yast.y2warning *args
@@ -643,7 +652,7 @@
def self.shift_frame_number args
if args.first.is_a? ::Fixnum
args[0] += 1 if args[0] >= 0
- else
+ else
args.unshift 1
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.1.7/src/ruby/yast/y2logger.rb
new/yast2-ruby-bindings-3.1.8/src/ruby/yast/y2logger.rb
--- old/yast2-ruby-bindings-3.1.7/src/ruby/yast/y2logger.rb 2014-02-04
15:35:54.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.8/src/ruby/yast/y2logger.rb 2014-02-05
15:41:24.000000000 +0100
@@ -45,16 +45,26 @@
# This module provides access to Yast specific logging
#
- # @example Use YastLogger in an easy way
- # class Foo
- # include Yast::Logger
- #
- # def foo
- # # this will be logged into y2log using the usual y2log format
- # log.debug "debug"
- # log.error "error"
- # end
- # end
+ # @example Yast::Logger example
+ # module Yast
+ # class Foo < Client
+ # include Yast::Logger
+ #
+ # def foo
+ # # this will be logged into y2log using the usual y2log format
+ #
+ # # Builtins.y2debug() replacement
+ # log.debug "debug"
+ #
+ # # Builtins.y2milestone() replacement
+ # log.info "info"
+ #
+ # # Builtins.y2error() replacement
+ # log.error "error"
+ # end
+ # end
+ # end
+ #
module Logger
def log
Y2Logger.instance
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]