Hello community, here is the log from the commit of package yast2-ruby-bindings for openSUSE:Factory checked in at 2013-07-04 18:07:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 2013-07-03 10:28:36.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new/yast2-ruby-bindings.changes 2013-07-04 18:07:39.000000000 +0200 @@ -1,0 +2,12 @@ +Thu Jul 4 09:13:59 UTC 2013 - jreidinger@suse.com + +- allow passing single value to Ops.index and Ops.assign +- revert term immutable change as there is modification operation + on it +- create shortcuts for is builtins +- implement conversion from and to byteblock +- skip fast_gettext initialization if the locale directory does not + exist +- 1.1.3 + +------------------------------------------------------------------- Old: ---- yast2-ruby-bindings-1.1.2.tar.bz2 New: ---- yast2-ruby-bindings-1.1.3.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-ruby-bindings.spec ++++++ --- /var/tmp/diff_new_pack.lc7mPl/_old 2013-07-04 18:07:40.000000000 +0200 +++ /var/tmp/diff_new_pack.lc7mPl/_new 2013-07-04 18:07:40.000000000 +0200 @@ -21,7 +21,7 @@ # Name: yast2-ruby-bindings -Version: 1.1.2 +Version: 1.1.3 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: yast2-ruby-bindings-%{version}.tar.bz2 ++++++ yast2-ruby-bindings-1.1.2.tar.bz2 -> yast2-ruby-bindings-1.1.3.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-1.1.2/VERSION.cmake new/yast2-ruby-bindings-1.1.3/VERSION.cmake --- old/yast2-ruby-bindings-1.1.2/VERSION.cmake 2013-06-27 09:20:58.000000000 +0200 +++ new/yast2-ruby-bindings-1.1.3/VERSION.cmake 2013-07-04 11:53:18.000000000 +0200 @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "1") SET(VERSION_MINOR "1") -SET(VERSION_PATCH "2") +SET(VERSION_PATCH "3") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-1.1.2/package/yast2-ruby-bindings.changes new/yast2-ruby-bindings-1.1.3/package/yast2-ruby-bindings.changes --- old/yast2-ruby-bindings-1.1.2/package/yast2-ruby-bindings.changes 2013-06-27 09:20:58.000000000 +0200 +++ new/yast2-ruby-bindings-1.1.3/package/yast2-ruby-bindings.changes 2013-07-04 11:53:18.000000000 +0200 @@ -1,4 +1,16 @@ ------------------------------------------------------------------- +Thu Jul 4 09:13:59 UTC 2013 - jreidinger@suse.com + +- allow passing single value to Ops.index and Ops.assign +- revert term immutable change as there is modification operation + on it +- create shortcuts for is builtins +- implement conversion from and to byteblock +- skip fast_gettext initialization if the locale directory does not + exist +- 1.1.3 + +------------------------------------------------------------------- Thu Jun 27 07:12:13 UTC 2013 - jreidinger@suse.com - make term and path class immutable, so deep copy can be diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-1.1.2/package/yast2-ruby-bindings.spec new/yast2-ruby-bindings-1.1.3/package/yast2-ruby-bindings.spec --- old/yast2-ruby-bindings-1.1.2/package/yast2-ruby-bindings.spec 2013-07-02 11:01:51.000000000 +0200 +++ new/yast2-ruby-bindings-1.1.3/package/yast2-ruby-bindings.spec 2013-07-04 11:54:03.000000000 +0200 @@ -6,7 +6,7 @@ # norootforbuild Name: yast2-ruby-bindings -Version: 1.1.2 +Version: 1.1.3 Release: 0 License: GPL-2.0 Group: System/YaST diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-1.1.2/src/ruby/yast/i18n.rb new/yast2-ruby-bindings-1.1.3/src/ruby/yast/i18n.rb --- old/yast2-ruby-bindings-1.1.2/src/ruby/yast/i18n.rb 2013-07-01 09:25:58.000000000 +0200 +++ new/yast2-ruby-bindings-1.1.3/src/ruby/yast/i18n.rb 2013-07-02 18:40:53.000000000 +0200 @@ -21,7 +21,7 @@ available = available_locales if FastGettext.available_locales != available # reload the translations, a new language is available - FastGettext.translation_repositories.keys.each {|dom| FastGettext.add_text_domain(domain, :path => LOCALE_DIR)} + FastGettext.translation_repositories.keys.each {|dom| FastGettext.add_text_domain(dom, :path => LOCALE_DIR)} FastGettext.available_locales = available end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-1.1.2/src/ruby/yast/ops.rb new/yast2-ruby-bindings-1.1.3/src/ruby/yast/ops.rb --- old/yast2-ruby-bindings-1.1.2/src/ruby/yast/ops.rb 2013-07-02 13:18:57.000000000 +0200 +++ new/yast2-ruby-bindings-1.1.3/src/ruby/yast/ops.rb 2013-07-02 14:46:32.000000000 +0200 @@ -256,6 +256,12 @@ return first >= second end + TYPES_MAP.keys.each do |type| + class_eval "def self.is_#{type}? (object) + Ops.is(object, \"#{type}\") + end" + end + def self.is (object, type) type = "function" if type =~ /\(.*\)/ #reference to function type.gsub!(/<.*>/, "") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-1.1.2/tests/ruby/ops_test.rb new/yast2-ruby-bindings-1.1.3/tests/ruby/ops_test.rb --- old/yast2-ruby-bindings-1.1.2/tests/ruby/ops_test.rb 2013-06-28 09:01:39.000000000 +0200 +++ new/yast2-ruby-bindings-1.1.3/tests/ruby/ops_test.rb 2013-07-02 14:46:32.000000000 +0200 @@ -462,5 +462,13 @@ end end + def test_is + assert Yast::Ops.is("t", "string") + assert !Yast::Ops.is("t", "integer") + end + def test_is_shortcut + assert Yast::Ops.is_string?("t") + assert !Yast::Ops.is_void?("t") + end end -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org