Hello community,
here is the log from the commit of package yast2-ruby-bindings for openSUSE:Factory
checked in at Wed Nov 4 12:18:39 CET 2009.
--------
--- yast2-ruby-bindings/yast2-ruby-bindings.changes 2009-11-02 11:32:53.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-ruby-bindings/yast2-ruby-bindings.changes 2009-11-03 16:35:34.000000000 +0100
@@ -1,0 +2,7 @@
+Tue Nov 3 12:43:21 UTC 2009 - dmacvicar@novell.com
+
+- support for nested namespaces (Foo::Bar)
+ (bnc #551881)
+- 0.3.5
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-ruby-bindings-0.3.4.tar.bz2
New:
----
yast2-ruby-bindings-0.3.5.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-ruby-bindings.spec ++++++
--- /var/tmp/diff_new_pack.2coG0k/_old 2009-11-04 12:17:34.000000000 +0100
+++ /var/tmp/diff_new_pack.2coG0k/_new 2009-11-04 12:17:34.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-ruby-bindings (Version 0.3.4)
+# spec file for package yast2-ruby-bindings (Version 0.3.5)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,7 +19,7 @@
Name: yast2-ruby-bindings
-Version: 0.3.4
+Version: 0.3.5
Release: 1
License: GPL
Group: System/YaST
++++++ yast2-ruby-bindings-0.3.4.tar.bz2 -> yast2-ruby-bindings-0.3.5.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-0.3.4/VERSION.cmake new/yast2-ruby-bindings-0.3.5/VERSION.cmake
--- old/yast2-ruby-bindings-0.3.4/VERSION.cmake 2009-11-02 11:31:50.000000000 +0100
+++ new/yast2-ruby-bindings-0.3.5/VERSION.cmake 2009-11-03 16:33:44.000000000 +0100
@@ -1,3 +1,3 @@
SET(VERSION_MAJOR "0")
SET(VERSION_MINOR "3")
-SET(VERSION_PATCH "4")
+SET(VERSION_PATCH "5")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-0.3.4/package/yast2-ruby-bindings.changes new/yast2-ruby-bindings-0.3.5/package/yast2-ruby-bindings.changes
--- old/yast2-ruby-bindings-0.3.4/package/yast2-ruby-bindings.changes 2009-11-02 11:31:50.000000000 +0100
+++ new/yast2-ruby-bindings-0.3.5/package/yast2-ruby-bindings.changes 2009-11-03 16:33:44.000000000 +0100
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Tue Nov 3 12:43:21 UTC 2009 - dmacvicar@novell.com
+
+- support for nested namespaces (Foo::Bar)
+ (bnc #551881)
+- 0.3.5
+
+-------------------------------------------------------------------
Mon Nov 2 09:59:47 UTC 2009 - dmacvicar@suse.de
- fix convertion of ruby hashes to ycp maps
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-0.3.4/src/ruby/CMakeLists.txt new/yast2-ruby-bindings-0.3.5/src/ruby/CMakeLists.txt
--- old/yast2-ruby-bindings-0.3.4/src/ruby/CMakeLists.txt 2009-11-02 11:31:50.000000000 +0100
+++ new/yast2-ruby-bindings-0.3.5/src/ruby/CMakeLists.txt 2009-11-03 16:33:44.000000000 +0100
@@ -7,6 +7,7 @@
Y2RubyTypeTerm.cc # YCP.cc -> ryast_term_init()
Y2RubyTypeConv.cc # YCP.cc -> ycpvalue_2_rbvalue(), rbvalue_2_ycpvalue()
RubyLogger.cc
+ Y2RubyUtils.cc
RubyLogger.h
)
@@ -19,6 +20,7 @@
Y2RubyTypeConv.cc
Y2RubyTypePath.cc
Y2RubyTypeTerm.cc
+ Y2RubyUtils.cc
)
SET(ruby_yast_plugin_HEADERS
@@ -27,6 +29,7 @@
Y2RubyComponent.h
YRuby.h
YRubyNamespace.h
+ Y2RubyUtils.h
Y2RubyTypePath.h
Y2RubyTypeTerm.h
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-0.3.4/src/ruby/Y2RubyUtils.cc new/yast2-ruby-bindings-0.3.5/src/ruby/Y2RubyUtils.cc
--- old/yast2-ruby-bindings-0.3.4/src/ruby/Y2RubyUtils.cc 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-ruby-bindings-0.3.5/src/ruby/Y2RubyUtils.cc 2009-11-03 16:33:44.000000000 +0100
@@ -0,0 +1,20 @@
+#include <vector>
+#include <string>
+
+#include "y2util/stringutil.h"
+#include "Y2RubyUtils.h"
+
+using namespace std;
+
+VALUE y2ruby_nested_const_get(const std::string &name)
+{
+ VALUE module = rb_mKernel;
+ // to save every component of Foo::Bar::Ehh
+ vector<string> name_levels;
+ stringutil::split( name, name_levels, "::", false);
+
+ for ( unsigned i = 0; i < name_levels.size(); ++i ) {
+ module = rb_funcall( module, rb_intern("const_get"), 1, rb_str_new2(name_levels[i].c_str()) );
+ }
+ return module;
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-ruby-bindings-0.3.4/src/ruby/Y2RubyUtils.h new/yast2-ruby-bindings-0.3.5/src/ruby/Y2RubyUtils.h
--- old/yast2-ruby-bindings-0.3.4/src/ruby/Y2RubyUtils.h 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-ruby-bindings-0.3.5/src/ruby/Y2RubyUtils.h 2009-11-03 16:33:44.000000000 +0100
@@ -0,0 +1,34 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| |
+| ruby language support (C) Novell Inc. |
+\----------------------------------------------------------------------/
+
+Author: Duncan Mac-Vicar