- display more info of resolvables
authorArvin Schnell <aschnell@suse.de>
Wed, 18 Jul 2007 13:21:49 +0000 (13:21 +0000)
committerArvin Schnell <aschnell@suse.de>
Wed, 18 Jul 2007 13:21:49 +0000 (13:21 +0000)
examples/ruby/list_target_resolvables.rb
swig/ByteCount.i
swig/Date.i
swig/NeedAType.i

index fc8f652..a4e40ea 100644 (file)
@@ -15,5 +15,8 @@ r.each do | p |
     # puts p.class
     puts "#{p.kind_to_s} #{p.name} #{p.edition.to_s} #{p.arch.to_s}"
     puts "  #{p.summary}"
+    puts "  #{p.size}"
+    puts "  #{p.vendor}"
+    puts "  #{p.buildtime}"
 end
 
index fb365b8..d4bfa5d 100644 (file)
@@ -7,4 +7,5 @@
 %typemap(out) ByteCount {
   VALUE rbbytenum = INT2NUM( (ByteCount::SizeType) $1 );
   return rbbytenum;
-}
\ No newline at end of file
+}
+
index 0b4538e..930abb5 100644 (file)
@@ -1,12 +1,13 @@
 
-%typemap(rubyin) Date {
+%typemap(in) Date {
   Date::ValueType seconds = (Date::ValueType) NUM2INT( rb_funcall( $input, rb_intern("to_i"), 0, 0) );
   $1 = Date(seconds);
 }
 
-%typemap(rubyout) Date {
+%typemap(out) Date {
   // Time works without require
   VALUE klass = rb_const_get( rb_cObject, rb_intern("Time"));
   VALUE rbtimenum = INT2NUM( (Date::ValueType) $1 );
   $result = rb_funcall( klass, rb_intern("at"), 1, rbtimenum);
 }
+
index a0302ef..23192ce 100644 (file)
@@ -3,3 +3,5 @@ typedef std::string Label;
 
 typedef std::string Text;
 
+typedef std::string Vendor;
+