Hello community,
here is the log from the commit of package yast2-ruby-bindings for
openSUSE:Factory checked in at 2015-03-16 09:40:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
2015-01-29 09:55:19.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.yast2-ruby-bindings.new/yast2-ruby-bindings.changes
2015-03-16 09:40:49.000000000 +0100
@@ -1,0 +2,13 @@
+Thu Mar 5 15:15:07 UTC 2015 - [email protected]
+
+- Fix building with yast2-core-3.1.16: use C++11 like core does
+ (boo#914255).
+- 3.1.30
+
+-------------------------------------------------------------------
+Tue Feb 24 17:55:42 UTC 2015 - [email protected]
+
+- fix building for ruby2.2
+- 3.1.29
+
+-------------------------------------------------------------------
Old:
----
yast2-ruby-bindings-3.1.28.tar.bz2
New:
----
yast2-ruby-bindings-3.1.30.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-ruby-bindings.spec ++++++
--- /var/tmp/diff_new_pack.JJ872X/_old 2015-03-16 09:40:50.000000000 +0100
+++ /var/tmp/diff_new_pack.JJ872X/_new 2015-03-16 09:40:50.000000000 +0100
@@ -17,7 +17,7 @@
Name: yast2-ruby-bindings
-Version: 3.1.28
+Version: 3.1.30
Release: 0
Url: https://github.com/yast/yast-ruby-bindings
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ yast2-ruby-bindings-3.1.28.tar.bz2 -> yast2-ruby-bindings-3.1.30.tar.bz2
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.1.28/.travis.yml
new/yast2-ruby-bindings-3.1.30/.travis.yml
--- old/yast2-ruby-bindings-3.1.28/.travis.yml 2015-01-28 15:30:12.000000000
+0100
+++ new/yast2-ruby-bindings-3.1.30/.travis.yml 2015-03-05 18:25:14.000000000
+0100
@@ -16,7 +16,5 @@
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DLIB=lib
-DCMAKE_VERBOSE_MAKEFILE=ON
- make -j 4
- sudo make install
- # TODO FIXME: tests temporarily disabled, crypt and a locale test fail,
- # fix it later
- #- (cd tests/ruby && make test ARGS=-V)
+ - (cd tests/ruby && make test ARGS=-V)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.1.28/CMakeLists.txt
new/yast2-ruby-bindings-3.1.30/CMakeLists.txt
--- old/yast2-ruby-bindings-3.1.28/CMakeLists.txt 2015-01-28
15:30:12.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.30/CMakeLists.txt 2015-03-05
18:25:14.000000000 +0100
@@ -10,8 +10,8 @@
project(yast2-ruby-bindings)
set(PACKAGE "yast2-ruby-bindings")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O3 -Wall -Woverloaded-virtual")
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O3 -Wall")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x -g -O3 -Wall
-Woverloaded-virtual")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu++0x -g -O3 -Wall")
#
# Where is YaST ?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-3.1.28/package/yast2-ruby-bindings.changes
new/yast2-ruby-bindings-3.1.30/package/yast2-ruby-bindings.changes
--- old/yast2-ruby-bindings-3.1.28/package/yast2-ruby-bindings.changes
2015-01-28 15:30:12.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.30/package/yast2-ruby-bindings.changes
2015-03-05 18:25:14.000000000 +0100
@@ -1,4 +1,17 @@
-------------------------------------------------------------------
+Thu Mar 5 15:15:07 UTC 2015 - [email protected]
+
+- Fix building with yast2-core-3.1.16: use C++11 like core does
+ (boo#914255).
+- 3.1.30
+
+-------------------------------------------------------------------
+Tue Feb 24 17:55:42 UTC 2015 - [email protected]
+
+- fix building for ruby2.2
+- 3.1.29
+
+-------------------------------------------------------------------
Wed Jan 28 14:12:38 UTC 2015 - [email protected]
- add more shortcuts for RSpec helpers, that makes tests shorter
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-3.1.28/package/yast2-ruby-bindings.spec
new/yast2-ruby-bindings-3.1.30/package/yast2-ruby-bindings.spec
--- old/yast2-ruby-bindings-3.1.28/package/yast2-ruby-bindings.spec
2015-01-28 15:30:12.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.30/package/yast2-ruby-bindings.spec
2015-03-05 18:25:14.000000000 +0100
@@ -17,7 +17,7 @@
Name: yast2-ruby-bindings
-Version: 3.1.28
+Version: 3.1.30
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-3.1.28/src/binary/Builtin.cc
new/yast2-ruby-bindings-3.1.30/src/binary/Builtin.cc
--- old/yast2-ruby-bindings-3.1.28/src/binary/Builtin.cc 2015-01-28
15:30:12.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.30/src/binary/Builtin.cc 2015-03-05
18:25:14.000000000 +0100
@@ -184,7 +184,7 @@
std::string utf_res;
if (!recode(res,utf_res))
return Qnil;
- return rb_utf8_str_new(utf_res);
+ return yrb_utf8_str_new(utf_res);
}
// crypt part taken from y2crypt from yast core
@@ -325,7 +325,7 @@
char * res = crypt_pass(source, type);
if (!res)
return Qnil;
- VALUE ret = rb_utf8_str_new(res);
+ VALUE ret = yrb_utf8_str_new(res);
delete res;
return ret;
}
@@ -553,7 +553,7 @@
}
if (result.solved)
- return rb_utf8_str_new(result.result_str);
+ return yrb_utf8_str_new(result.result_str);
return Qnil;
}
@@ -614,7 +614,7 @@
if (result.solved) {
for (int i = 1; i <= result.match_nb; i++)
{
- rb_ary_push(list, rb_utf8_str_new(result.match_str[i]));
+ rb_ary_push(list, yrb_utf8_str_new(result.match_str[i]));
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.1.28/src/binary/Y2RubyUtils.cc
new/yast2-ruby-bindings-3.1.30/src/binary/Y2RubyUtils.cc
--- old/yast2-ruby-bindings-3.1.28/src/binary/Y2RubyUtils.cc 2015-01-28
15:30:12.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.30/src/binary/Y2RubyUtils.cc 2015-03-05
18:25:14.000000000 +0100
@@ -59,14 +59,14 @@
return module;
}
-VALUE rb_utf8_str_new(const std::string &str) {
+VALUE yrb_utf8_str_new(const std::string &str) {
if (!utf8)
utf8 = rb_enc_find("UTF-8");
return rb_enc_str_new(str.c_str(), str.size(), utf8);
}
-VALUE rb_utf8_str_new(const char *str) {
+VALUE yrb_utf8_str_new(const char *str) {
if (!utf8)
utf8 = rb_enc_find("UTF-8");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.1.28/src/binary/Y2RubyUtils.h
new/yast2-ruby-bindings-3.1.30/src/binary/Y2RubyUtils.h
--- old/yast2-ruby-bindings-3.1.28/src/binary/Y2RubyUtils.h 2015-01-28
15:30:12.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.30/src/binary/Y2RubyUtils.h 2015-03-05
18:25:14.000000000 +0100
@@ -40,7 +40,7 @@
* Create Ruby String object from a C++ string
* The resulting string has UTF-8 encoding
*/
-VALUE rb_utf8_str_new(const std::string &str);
-VALUE rb_utf8_str_new(const char *str);
+VALUE yrb_utf8_str_new(const std::string &str);
+VALUE yrb_utf8_str_new(const char *str);
#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-3.1.28/src/binary/Y2YCPTypeConv.cc
new/yast2-ruby-bindings-3.1.30/src/binary/Y2YCPTypeConv.cc
--- old/yast2-ruby-bindings-3.1.28/src/binary/Y2YCPTypeConv.cc 2015-01-28
15:30:12.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.30/src/binary/Y2YCPTypeConv.cc 2015-03-05
18:25:14.000000000 +0100
@@ -59,7 +59,7 @@
VALUE yast = rb_define_module("Yast");
VALUE cls = rb_const_get(yast, rb_intern("Path"));
- VALUE value = rb_utf8_str_new(ycppath->toString());
+ VALUE value = yrb_utf8_str_new(ycppath->toString());
return rb_class_new_instance(1,&value,cls);
}
@@ -161,7 +161,7 @@
VALUE yast = rb_define_module("Yast");
VALUE cls = rb_const_get(yast, rb_intern("External"));
VALUE tdata = Data_Wrap_Struct(cls, 0, rb_ext_free, new YCPExternal(ext));
- VALUE argv[] = {rb_utf8_str_new(ext->magic())};
+ VALUE argv[] = {yrb_utf8_str_new(ext->magic())};
rb_obj_call_init(tdata, 1, argv);
return tdata;
}
@@ -188,7 +188,7 @@
else if (ycpval->isString())
{
// always use UTF-8 encoding
- return rb_utf8_str_new(ycpval->asString()->value());
+ return yrb_utf8_str_new(ycpval->asString()->value());
}
else if (ycpval->isPath())
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.1.28/src/binary/YRuby.cc
new/yast2-ruby-bindings-3.1.30/src/binary/YRuby.cc
--- old/yast2-ruby-bindings-3.1.28/src/binary/YRuby.cc 2015-01-28
15:30:12.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.30/src/binary/YRuby.cc 2015-03-05
18:25:14.000000000 +0100
@@ -48,7 +48,7 @@
void set_last_exception(VALUE& module,const string& message)
{
- rb_ivar_set(module,rb_intern("@__last_exception"),rb_utf8_str_new(message));
+ rb_ivar_set(module,rb_intern("@__last_exception"),
yrb_utf8_str_new(message));
}
YRuby * YRuby::_yRuby = 0;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-ruby-bindings-3.1.28/src/binary/Yast.cc
new/yast2-ruby-bindings-3.1.30/src/binary/Yast.cc
--- old/yast2-ruby-bindings-3.1.28/src/binary/Yast.cc 2015-01-28
15:30:12.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.30/src/binary/Yast.cc 2015-03-05
18:25:14.000000000 +0100
@@ -118,7 +118,7 @@
if (include_path.empty())
rb_raise(rb_eRuntimeError, "Cannot find client %s", ipath.c_str());
- return rb_utf8_str_new(include_path);
+ return yrb_utf8_str_new(include_path);
}
/*
* ycp_module_each_symbol(namespace) -> iterator
@@ -148,7 +148,7 @@
for (unsigned int i=0; i < ns->symbolCount(); ++i)
{
SymbolEntryPtr s = ns->symbolEntry(i);
- VALUE name = rb_utf8_str_new(s->name());
+ VALUE name = yrb_utf8_str_new(s->name());
VALUE type = ID2SYM(rb_intern(s->catString().c_str()));
rb_hash_aset(res,name,type);
}
@@ -331,7 +331,7 @@
VALUE result = rb_ary_new2(size);
for (int i = 0; i < size; ++i)
{
- rb_ary_push(result,
rb_utf8_str_new(Y2PathSearch::searchPath(Y2PathSearch::GENERIC,i)));
+ rb_ary_push(result,
yrb_utf8_str_new(Y2PathSearch::searchPath(Y2PathSearch::GENERIC,i)));
}
return result;
}
@@ -342,7 +342,7 @@
Data_Get_Struct(self, YCPByteblock, bb);
if (bb)
- return rb_utf8_str_new((*bb)->toString());
+ return yrb_utf8_str_new((*bb)->toString());
else
rb_raise(rb_eRuntimeError, "Byteblock is empty");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-ruby-bindings-3.1.28/tests/ruby/builtins_spec.rb
new/yast2-ruby-bindings-3.1.30/tests/ruby/builtins_spec.rb
--- old/yast2-ruby-bindings-3.1.28/tests/ruby/builtins_spec.rb 2015-01-28
15:30:12.000000000 +0100
+++ new/yast2-ruby-bindings-3.1.30/tests/ruby/builtins_spec.rb 2015-03-05
18:25:14.000000000 +0100
@@ -827,17 +827,29 @@
it "tests float tolstring" do
old_lang = ENV["LANG"]
+ old_language = ENV["LANGUAGE"]
+ lc_all = ENV["LC_ALL"]
ENV["LANG"] = "cs_CZ.utf-8"
- ret = Yast::Builtins::Float.tolstring(0.52,1)
+ ENV["LC_ALL"] = "cs_CZ.utf-8"
+ ret = Yast::Builtins::Float.tolstring(0.52, 1)
expect(ret).to eq("0,5")
expect(ret.encoding).to eq(Encoding::UTF_8)
ENV["LANG"] = old_lang
+ ENV["LC_ALL"] = lc_all
end
it "tests crypt" do
- # crypt is salted so cannot reproduce, just test if run and returns
something useful
- ["", "md5", "blowfish", "sha256", "sha512"].each do |suffix|
+ suffixes = ["", "md5", "blowfish", "sha256", "sha512"]
+
+ # FIXME: Travis hack: skip some tests, only standard crypt and MD5
algorithms
+ # work in Ubuntu, it uses a different cprypto setup in glibc,
+ # cannot be easily fixed :-(
+ suffixes = suffixes[0, 2] if ENV["TRAVIS"]
+
+ suffixes.each do |suffix|
res = Yast::Builtins.send(:"crypt#{suffix}", "test")
+ # crypt result is salted and cannot be reproduced
+ # just test if it runs and returns something meaningfull
expect(res).to be_a String
expect(res.size).to be > 10
end
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]