# 0.19

**URL:** <https://www.ruby-forum.com/t/0-19/168815>\
**Category:** Ruby-Gnome 2\
**Created:** [May 26, 2009, 11:19am UTC](https://www.ruby-forum.com/t/0-19/168815 "2009-05-26T11:19:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 26, 2009, 11:19am UTC](https://www.ruby-forum.com/t/0-19/168815/1 "2009-05-26T11:19:46Z")

</div>

Hi,

yesterday I released a new version of the Teatime applet  
[http://det.cable.nu/teatime/index.rbx](http://det.cable.nu/teatime/index.rbx) which uses the new functionality  
of context menus for applets. Today the first Linux distributor asked  
me, when 0.19 will get released, cause the build failed with 0.18.1.

So I forward this question 🙂

Cheers, detlef

–  
[http://det.cable.nu](http://det.cable.nu)

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 26, 2009, 1:03pm UTC](https://www.ruby-forum.com/t/0-19/168815/2 "2009-05-26T13:03:01Z")

</div>

Hi,

2009/5/26 Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> yesterday I released a new version of the Teatime applet  
> [http://det.cable.nu/teatime/index.rbx](http://det.cable.nu/teatime/index.rbx) which uses the new functionality  
> of context menus for applets. Today the first Linux distributor asked  
> me, when 0.19 will get released, cause the build failed with 0.18.1.
> 
> So I forward this question 🙂

I wanted to release 0.19 as development seriese but my computer isn’t  
good condition now…

I already updated NEW file and prepared Rakefile.  
Could someone (one of commiters) release 0.19 for me?  
Pleaese…

I think that remaind tasks are here:

- confirm packages are buildable (rake build?)
- confirm tests are passed (rake test?)
- make packages (rake dist?)
- release packages (rake release?)
- confirm released packages are correct (download packages and build  
them)
- tag (rake tag?)
- announce the release on the Wiki, ruby-gnome2-devel-en@ ML

The list may not be correct… If you find some wrong step, please write  
it to RELEASING and add it to the Ruby-GNOME2 repository.  
ref. cairo has RELEASING document:  
[http://cgit.freedesktop.org/cairo/tree/RELEASING](http://cgit.freedesktop.org/cairo/tree/RELEASING)

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 26, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/0-19/168815/3 "2009-05-26T13:16:30Z")

</div>

On Tue, May 26, 2009 at 12:59, Kouhei S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 2009/5/26 Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > yesterday I released a new version of the Teatime applet  
> > [http://det.cable.nu/teatime/index.rbx](http://det.cable.nu/teatime/index.rbx) which uses the new functionality  
> > of context menus for applets. Today the first Linux distributor asked  
> > me, when 0.19 will get released, cause the build failed with 0.18.1.

> > So I forward this question 🙂

> I wanted to release 0.19 as development seriese but my computer isn’t  
> good condition now…

I just wanted to report that my gio bindings have been completed.  
I’ll try to get them out the door soon. I have been more or less been  
singlehandedly responsible for migrating from GroupWise to Exchange at  
work, which has required an incredible amount of work, so this has  
been on hold. I need to make sure that my sourceforge account works  
and stuff (I haven’t logged in in a long time). I’m not sure if I  
(pcppopper) still have commit access, either.

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 26, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/0-19/168815/4 "2009-05-26T14:49:13Z")

</div>

Le mardi 26 mai 2009 à 19:59 +0900, Kouhei S. a écrit :

> - confirm packages are buildable (rake build?)
> - confirm tests are passed (rake test?)
> - make packages (rake dist?)
> - release packages (rake release?)
> - confirm released packages are correct (download packages and build them)
> - tag (rake tag?)
> - announce the release on the Wiki, ruby-gnome2-devel-en@ ML

I successfuly built everything except for gtkmozembed

I also built all except gtkmozembed using generated  
ruby-gnome2-all-0.19.0.tar.gz

Concerning the tests I get :

## Tue May 26 14:32:51 +0200 2009 running test for /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/poppler

Loaded suite .  
Started  
…E…O

Finished in 1.194534 seconds.

1. Error:  
test\_get\_image(TestPage):  
NoMethodError: undefined method `get_image' for #<Poppler::Page:0xb65c52e0 ptr=0x85c2400> ./test/test_page.rb:6:in `test\_get\_image’

2. Omission: We doesn’t have a PDF that has a thumbnail…  
test\_thumbnail\_pixbuf(TestPage)  
./test/test\_page.rb:40:in `test\_thumbnail\_pixbuf’

## 28 tests, 55 assertions, 0 failures, 1 errors, 0 pendings, 1 omissions, 0 notifications

## Tue May 26 14:33:06 +0200 2009 running test for /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/pango

Loaded suite .  
Started  
F…

Finished in 0.010049 seconds.

1. Failure:  
test\_end\_index(TestAttribute) [./test/test-attribute.rb:15]:  
\<-1\> expected but was  
\<4294967295\>.

## 4 tests, 7 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

## Tue May 26 14:33:06 +0200 2009 running test for /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk

Loaded suite .  
Started  
…F…F…

Finished in 0.431199 seconds.

1. Failure:  
test\_broadcast\_startup\_message(TestGdkDisplay)  
[/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test\_gdk\_display.rb:27]:  
Exception raised:  
Class:   
Message: \<"undefined method `broadcast_startup_message' for #<Gdk::DisplayX11:0xb7449a00 ptr=0x9f5d0c8>"> ---Backtrace--- /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gdk_display.rb:28:in `test\_broadcast\_startup\_message’  
/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test\_gdk\_display.rb:27:in  
`test\_broadcast\_startup\_message’

* * *

1. Failure:  
test\_program\_name(TestGtkAboutDialog)  
[/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test\_gtk\_about\_dialog.rb:10]:  
\<“run-test.rb”\> expected but was  
\<“ruby”\>.

## 45 tests, 89 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

Other modules are OK

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 27, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/0-19/168815/5 "2009-05-27T12:59:50Z")

</div>

Hi,

I’ve also run the test suite, but complete. All parts build and  
installed successfully.

I got several unicode conversion errors, which are not popped up in  
Pascals test, as this tests are skipped if the libuconv is not  
installed.

To the poppler/test/test\_page.rb that reports

1. Omission: We doesn’t have a PDF that has a thumbnail…

I’ve tested the thumbnail extraction with poppler and Gdk::Pixbuf on  
many documents and it works well. An example you can download here  
[http://www.datasheetdir.com/go/-xxx-x-lcvb.pdf](http://www.datasheetdir.com/go/-xxx-x-lcvb.pdf) . It contains thumbnails  
for six pages. May be we should just drop this test (it works) if no one  
can provide a free test PDF.

Cheers, detlef

## /usr/bin/ruby1.8 run-test.rb Wed May 27 03:25:38 +0200 2009 running test for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib

Loaded suite test  
Started  
…/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test\_iochannel.rb:  
line 39 GLib-CRITICAL \*\*:g\_io\_channel\_read\_to\_end: assertion  
`channel->is_readable' failed /home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_iochannel.rb: line 54 GLib-CRITICAL **:g_io_channel_read_to_end: assertion `channel-\>is\_readable’  
failed  
/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test\_iochannel.rb:  
line 59 GLib-WARNING \*\*:Invalid file descriptor.

…EF…F…FFFF…F…F  
F…O…

Finished in 0.905522 seconds.

1. Error:  
test\_ucs4\_to\_utf16(TestGLibUnicode):  
GLib::ConvertError: Character out of range for UTF-16  
/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test\_unicode.rb:321:in  
`to_utf16' /home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_unicode.rb:321:in `test\_ucs4\_to\_utf16’

2. Failure:  
test\_ucs4\_to\_utf8(TestGLibUnicode)  
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test\_unicode.rb:330]:  
\<“ã‚ã„ã†ãˆãŠ”\> expected but was \<“ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½”\>.

3. Failure:  
test\_unichar\_to\_utf8(TestGLibUnicode)  
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test\_unicode.rb:336]:  
\<“ã‚”\> expected but was \<“ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½”\>.

4. Failure:  
test\_unicode\_canonical\_decomposition(TestGLibUnicode)  
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test\_unicode.rb:170]:  
\<“a\000\000\000\001\003\000\000”\> expected but was \<“\000\000\000a\000  
\000\003\001”\>.

5. Failure:  
test\_unicode\_canonical\_ordering(TestGLibUnicode)  
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test\_unicode.rb:162]:  
\<“a\000\000\000#\003\000\000\b\003\000\000e\000\000\000#\003\000\000\004  
\003\000\000\001\003\000\000”\> expected but was \<“a\000\000\000\b\003  
\000\000#\003\000\000e\000\000\000\004\003\000\000\001\003\000\000#\003  
\000\000”\>.

6. Failure:  
test\_utf16\_to\_ucs4(TestGLibUnicode)  
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test\_unicode.rb:307]:  
\<“B0\000\000D0\000\000F0\000\000H0\000\000J0\000\000”\> expected but was  
\<“\000\000B0\000\000D0\000\000F0\000\000H0\000\000J0”\>.

diff:

- B0D0F0H0J0  
? –

- B0D0F0H0J0  
? ++

1. Failure:  
test\_utf8\_to\_utf16(TestGLibUnicode)  
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test\_unicode.rb:288]:  
\<“B0D0F0H0J0”\> expected but was \<“0B0D0F0H0J”\>.

diff:

- B0D0F0H0J0  
? -

- 0B0D0F0H0J  
? +

1. Omission: Only for Win32 platform  
test\_get\_package\_install\_directory\_of\_module(TestGLibWin32)  
/home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/glib-test-utils.rb:10:in  
`only_win32' /home/ich/sonstiges/prog/src/ruby-gnome2-dev/glib/test/test_win32.rb:7:in `test\_get\_package\_install\_directory\_of\_module’

## 92 tests, 321 assertions, 9 failures, 1 errors, 0 pendings, 1 omissions, 0 notifications

## Wed May 27 03:25:40 +0200 2009 running test for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtk

Loaded suite .  
Started  
…F…F…

Finished in 1.010254 seconds.

1. Failure:  
test\_broadcast\_startup\_message(TestGdkDisplay)  
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtk/test/test\_gdk\_display.rb:27]:  
Exception raised: Class:   
Message: \<"undefined method `broadcast_startup_message' for #<Gdk::DisplayX11:0x486ba300 ptr=0x10210080>"> ---Backtrace--- /home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtk/test/test_gdk_display.rb:28:in `test\_broadcast\_startup\_message’  
/home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtk/test/test\_gdk\_display.rb:27:in  
`test\_broadcast\_startup\_message’

* * *

1. Failure:  
test\_program\_name(TestGtkAboutDialog)  
[/home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtk/test/test\_gtk\_about\_dialog.rb:10]:  
\<“run-test.rb”\> expected but was \<“ruby1.8”\>.

## 45 tests, 89 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

## Wed May 27 03:25:43 +0200 2009 running test for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtkmozembed

Loaded suite .  
Started  
..

Finished in 0.011747 seconds.

## 2 tests, 23 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

## Wed May 27 03:25:46 +0200 2009 running test for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/gtksourceview2

Loaded suite .  
Started  
.

Finished in 0.069847 seconds.

## 1 tests, 3 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

## Wed May 27 03:25:48 +0200 2009 running test for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/gstreamer

Loaded suite .  
Started  
…F…P…  
…

Finished in 12,114583 seconds.

1. Failure:  
test\_create\_clock(TestClock) [./test/test\_clock.rb:3]:  
 exception expected but none was thrown.

2. Pending: Async is correct behavior?  
test\_state(TestElement)  
./test/test\_element.rb:60:in `test\_state’

## 112 tests, 282 assertions, 1 failures, 0 errors, 1 pendings, 0 omissions, 0 notifications

## Wed May 27 03:26:01 +0200 2009 running test for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/pango

Loaded suite .  
Started  
F…

Finished in 0.142499 seconds.

1. Failure:  
test\_end\_index(TestAttribute) [./test/test-attribute.rb:15]:  
\<-1\> expected but was  
\<4294967295\>.

## 4 tests, 7 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

## Wed May 27 03:26:03 +0200 2009 running test for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/poppler

Loaded suite .  
Started  
…O

Finished in 1.396346 seconds.

1. Omission: We doesn’t have a PDF that has a thumbnail…  
test\_thumbnail\_pixbuf(TestPage)  
./test/test\_page.rb:40:in `test\_thumbnail\_pixbuf’

## 28 tests, 57 assertions, 0 failures, 0 errors, 0 pendings, 1 omissions, 0 notifications

## Wed May 27 03:26:12 +0200 2009 running test for /home/ich/sonstiges/prog/src/ruby-gnome2-dev/gnomeprint

Loaded suite .  
Started  
../test/test\_context.rb: line 16  
GnomePrint-CRITICAL \*\*:gnome\_print\_lineto: assertion `pc->haspage' failed ./test/test_context.rb: line 22 GnomePrint-CRITICAL **:gnome_print_lineto: assertion `gp\_gc\_has\_currentpoint (pc-\>gc)’ failed ..

Finished in 0.126727 seconds.

## 3 tests, 11 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

–  
[http://det.cable.nu](http://det.cable.nu)

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 27, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/0-19/168815/6 "2009-05-27T13:57:25Z")

</div>

Hi,

2009/5/26 Pascal T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I also built all except gtkmozembed using generated  
> ruby-gnome2-all-0.19.0.tar.gz

Thanks for confirming.

> 1. Error:  
> test\_get\_image(TestPage):  
> NoMethodError: undefined method `get_image' for #<Poppler::Page:0xb65c52e0 ptr=0x85c2400> ./test/test_page.rb:6:in `test\_get\_image’

This test requires cairo supported Ruby/Poppler.  
We should check Ruby/Poppler supports cairo with  
Poppler.cairo\_available?  
If you can, could you fix the test to work on non cairo supported  
Ruby/Poppler  
environment too.

> * * *
> 
> ## Tue May 26 14:33:06 +0200 2009 running test for /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/pango

> 1. Failure:  
> test\_end\_index(TestAttribute) [./test/test-attribute.rb:15]:  
> \<-1\> expected but was  
> \<4294967295\>.

This will be fixed with your patch.

> * * *
> 
> ## Tue May 26 14:33:06 +0200 2009 running test for /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk

> 1. Failure:  
> test\_broadcast\_startup\_message(TestGdkDisplay)  
> [/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test\_gdk\_display.rb:27]:  
> Exception raised:  
> Class:   
> Message: \<"undefined method `broadcast_startup_message' for #<Gdk::DisplayX11:0xb7449a00 ptr=0x9f5d0c8>"> ---Backtrace--- /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test_gdk_display.rb:28:in `test\_broadcast\_startup\_message’  
> /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test\_gdk\_display.rb:27:in `test\_broadcast\_startup\_message’

Ah. This test requires GLib fix.  
I submitted a patch for that but it doesn’t checked yet.

> **[Bug 528020 – language bindings friendly...](https://bugzilla.gnome.org/show_bug.cgi?id=528020)**

We can omit the test. Could you add omit(…) in the test?

> 1. Failure:  
> test\_program\_name(TestGtkAboutDialog)  
> [/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test\_gtk\_about\_dialog.rb:10]:  
> \<“run-test.rb”\> expected but was  
> \<“ruby”\>.

This test will work well with “cd gtk && test/run-test.rb”.

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 27, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/0-19/168815/7 "2009-05-27T15:02:46Z")

</div>

Hi,

2009/5/27 Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I’ve also run the test suite, but complete. All parts build and  
> installed successfully.

Thanks for confirming!

> I got several unicode conversion errors, which are not popped up in  
> Pascals test, as this tests are skipped if the libuconv is not  
> installed.

It seems that endian is different.

> To the poppler/test/test\_page.rb that reports
> 
> 1. Omission: We doesn’t have a PDF that has a thumbnail…
> 
> I’ve tested the thumbnail extraction with poppler and Gdk::Pixbuf on  
> many documents and it works well. An example you can download here  
> [http://www.datasheetdir.com/go/-xxx-x-lcvb.pdf](http://www.datasheetdir.com/go/-xxx-x-lcvb.pdf) . It contains thumbnails  
> for six pages. May be we should just drop this test (it works) if no one  
> can provide a free test PDF.

Does someone have a free test PDF?  
If nobody have it, I’ll ask Calros, the maintainer of Poppler glib  
bindings,  
about it later.

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 27, 2009, 4:16pm UTC](https://www.ruby-forum.com/t/0-19/168815/8 "2009-05-27T16:16:55Z")

</div>

Hi,

2009/5/27 Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > > I got several unicode conversion errors, which are not popped up in  
> > > Pascals test, as this tests are skipped if the libuconv is not  
> > > installed.
> > 
> > It seems that endian is different.
> 
> My dev computer is a PowerPc mac (big-enidan)

OK. Maybe uconv doesn’t support big-endian.  
We should use NKF.nkf instead of uconv.  
e.g.  
Uconv.u8tou4 → NKF.nkf(“-W -w16B”, string) on big-endian  
Uconv.u8tou4 → NKF.nkf(“-W -w16L”, string) on little-endian

> Because I am not in this test stuff and can’t really test cause I have  
> cairo installed, short question: OK to commit?

It seems that two “\_” exists. (typo?)  
Others are OK for me.

> ```
> assert_kind_of(Cairo::ImageSurface, page.get_image
> 
> ```
> 
> (mapping.image\_id)) assert\_kind\_of(Cairo::ImageSurface, mapping.image)  
> else

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 27, 2009, 4:36pm UTC](https://www.ruby-forum.com/t/0-19/168815/9 "2009-05-27T16:36:23Z")

</div>

Hi,

Kouhei S. schrieb:

> It seems that two “\_” exists. (typo?)

_outch_ thanks for pointing this out!

Cheer, detlef

–  
[http://det.cable.nu](http://det.cable.nu)

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 27, 2009, 3:22pm UTC](https://www.ruby-forum.com/t/0-19/168815/10 "2009-05-27T15:22:10Z")

</div>

Hi,

Kouhei S. schrieb:

> Hi,
> 
> 2009/5/27 Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
> 
> > I got several unicode conversion errors, which are not popped up in  
> > Pascals test, as this tests are skipped if the libuconv is not  
> > installed.
> 
> It seems that endian is different.

My dev computer is a PowerPc mac (big-enidan)

[copied from other mail]

> 1. Error:  
> test\_get\_image(TestPage):  
> NoMethodError: undefined method `get_image' for #<Poppler::Page:0xb65c52e0 ptr=0x85c2400> ./test/test_page.rb:6:in `test\_get\_image’

This test requires cairo supported Ruby/Poppler.  
We should check Ruby/Poppler supports cairo with  
Poppler.cairo\_available? If you can, could you fix the test to work on  
non cairo supported Ruby/Poppler environment too.

Because I am not in this test stuff and can’t really test cause I have  
cairo installed, short question: OK to commit?

ruby-gnome2/poppler/test/test\_page.rb  
ruby-gnome2-dev/poppler/test/test\_page.rb  
— ruby-gnome2/poppler/test/test\_page.rb 2009-05-27  
15:11:27.000000000 +0200 +++  
ruby-gnome2-dev/poppler/test/test\_page.rb 2009-05-23  
03:36:31.000000000 +0200 @@ -2,7 +2,7 @@ def test\_get\_image  
document = Poppler::Document.new(image\_pdf)  
page, mapping = find\_first\_image\_mapping(document)

- if later\_version?(0, 7, 2) and Poppler.cairo\_\_available?

- if later\_version?(0, 7, 2)  
assert\_kind\_of(Cairo::ImageSurface, page.get\_image  
(mapping.image\_id)) assert\_kind\_of(Cairo::ImageSurface, mapping.image)  
else

Cheers, detlef

–  
[http://det.cable.nu](http://det.cable.nu)

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 27, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/0-19/168815/11 "2009-05-27T17:21:36Z")

</div>

Le mercredi 27 mai 2009 à 20:56 +0900, Kouhei S. a écrit :

> Ah. This test requires GLib fix.  
> I submitted a patch for that but it doesn’t checked yet.  
> [Bug 528020 – language bindings friendly gdk\_x11\_display\_broadcast\_startup\_message()](http://bugzilla.gnome.org/show_bug.cgi?id=528020)
> 
> We can omit the test. Could you add omit(…) in the test?

Done

> > 1. Failure:  
> > test\_program\_name(TestGtkAboutDialog)  
> > [/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test\_gtk\_about\_dialog.rb:10]:  
> > \<“run-test.rb”\> expected but was  
> > \<“ruby”\>.
> 
> This test will work well with “cd gtk && test/run-test.rb”.

hmm no it does not, I still get “ruby”

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 28, 2009, 1:07am UTC](https://www.ruby-forum.com/t/0-19/168815/12 "2009-05-28T01:07:50Z")

</div>

Hi,

Pascal T. schrieb:

> > > 1. Failure:  
> > > test\_program\_name(TestGtkAboutDialog)  
> > > [/home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test\_gtk\_about\_dialog.rb:10]:  
> > > \<“run-test.rb”\> expected but was  
> > > \<“ruby”\>.
> > 
> > This test will work well with “cd gtk && test/run-test.rb”.
> 
> hmm no it does not, I still get “ruby”

this comes from gtk/src/gtkmain.c in the gtk\_m\_init function. There is  
the following code block:

```
gargv = ALLOCA_N(char *, gargc + 1);
gargv[0] = RVAL2CSTR(rb_argv0);

for (i = 0; i < gargc; i++) {
    if (TYPE(RARRAY_PTR(argary)[i]) == T_STRING) {
        gargv[i+1] = RVAL2CSTR(RARRAY_PTR(argary)[i]);
    }
    else {
        gargv[i+1] = "";
    }
}

```

8\<----------snip----------  
is\_initialized = gtk\_init\_check(&gargc, &gargv);

The value of rb\_argv0 is pushed in the first position of the parameters  
of the gtk\_init\_check call. At this point rb\_argv0 is “ruby”.

If my traces are right, the gtk\_m\_init function is the first function in  
ruby-gtks code space. So, for me, the rb\_argv0 value seems unusable for  
this task. AFAIK $0 always contains the programs name. So with this  
little patch we get, what we expect.

— ruby-gnome2/gtk/src/rbgtkmain.c 2009-05-27  
22:36:18.000000000 +0200 +++ ruby-gnome2-dev/gtk/src/rbgtkmain.c  
2009-05-28 00:44:50.000000000 +0200 @@ -93,6 +93,7 @@  
gint i, gargc;  
VALUE argary;  
gchar\*\* gargv;

- VALUE progname;

- 

- gargv = ALLOCA\_N(char \*, gargc + 1);

- gargv[0] = RVAL2CSTR(rb\_argv0);

- progname = rb\_eval\_string(“$0”);

- gargv[0] = RVAL2CSTR(progname);

I know, that the use of rb\_eval\_string may not be the right™ way,  
but I don’t wanted to bother with this strange func pointers for hooked  
variables. If someone wants to change this: feel free to do so.

Cheers, detlef

–  
[http://det.cable.nu](http://det.cable.nu)

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 28, 2009, 4:17pm UTC](https://www.ruby-forum.com/t/0-19/168815/13 "2009-05-28T16:17:26Z")

</div>

Hi,

2009/5/28 Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> ```
> Check_Type(argary, T_ARRAY);
> if (TYPE(RARRAY_PTR(argary)[i]) == T_STRING) {
> 
> ```
> 
> I know, that the use of rb\_eval\_string may not be the right™ way,  
> but I don’t wanted to bother with this strange func pointers for hooked  
> variables. If someone wants to change this: feel free to do so.

You can use rb\_gv\_get(“$0”).

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 28, 2009, 4:16pm UTC](https://www.ruby-forum.com/t/0-19/168815/14 "2009-05-28T16:16:15Z")

</div>

Hi,

2009/5/28 Pascal T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > > /home/a/rpm/BUILD/ruby-gnome2-all-0.19.0/gtk/test/test\_gdk\_display.rb:27:in `test\_broadcast\_startup\_message’
> > 
> > Ah. This test requires GLib fix.  
> > I submitted a patch for that but it doesn’t checked yet.  
> > [Bug 528020 – language bindings friendly gdk\_x11\_display\_broadcast\_startup\_message()](http://bugzilla.gnome.org/show_bug.cgi?id=528020)
> > 
> > We can omit the test. Could you add omit(…) in the test?
> 
> Done

Thanks!

I want Pascal or Detlef to release 0.19.0. Could you release it, please?

–  
kou

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 29, 2009, 12:26am UTC](https://www.ruby-forum.com/t/0-19/168815/15 "2009-05-29T00:26:21Z")

</div>

Hi,

Kouhei S. schrieb:

> You can use rb\_gv\_get(“$0”).

thanks, I didn’t knew this function.

A grep over the sources shows, that rb\_argv0 is used in several other  
places as the program name, too. May be they also need to be fixed.

If no one is faster than me (_wink_ 😉 ) I will take a look at it in  
the next week.

Cheers, detlef

–  
[http://det.cable.nu](http://det.cable.nu)

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 29, 2009, 1:20am UTC](https://www.ruby-forum.com/t/0-19/168815/16 "2009-05-29T01:20:49Z")

</div>

Hi,

Kouhei S. schrieb:

> I want Pascal or Detlef to release 0.19.0. Could you release it, please?

I’m very sorry, but the time I can spend for ruby-gnome until next  
Monday goes straight to zero. The only thing, I will commit the program  
name fix in the next few minutes.

Cheers, detlef

–  
[http://det.cable.nu](http://det.cable.nu)

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 29, 2009, 1:43am UTC](https://www.ruby-forum.com/t/0-19/168815/17 "2009-05-29T01:43:37Z")

</div>

Le jeudi 28 mai 2009 à 23:21 +0200, Detlef R. a écrit :

> name fix in the next few minutes.  
> I can’t do it tonight but will try tomorrow

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 29, 2009, 12:00pm UTC](https://www.ruby-forum.com/t/0-19/168815/18 "2009-05-29T12:00:34Z")

</div>

Le jeudi 28 mai 2009 à 23:27 +0200, Pascal T. a écrit :

> > Monday goes straight to zero. The only thing, I will commit the program  
> > name fix in the next few minutes.
> 
> I can’t do it tonight but will try tomorrow

I guess I’m not allowed to do so, rake release fails :

misc/release.rb:77:in `find_target_release_link': can't find package ID (RuntimeError) from misc/release.rb:98:in `go\_edit\_release\_page’

And I don’t see any link on the webpage to manage the files

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 29, 2009, 4:16pm UTC](https://www.ruby-forum.com/t/0-19/168815/19 "2009-05-29T16:16:29Z")

</div>

Hi,

In [1243591164.12871.1.camel@plop](mailto:1243591164.12871.1.camel@plop)  
“Re: [ruby-gnome2-devel-en] 0.19” on Fri, 29 May 2009 11:59:23 +0200,  
Pascal T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I guess I’m not allowed to do so, rake release fails :
> 
> misc/release.rb:77:in `find_target_release_link': can't find package ID (RuntimeError) from misc/release.rb:98:in `go\_edit\_release\_page’
> 
> And I don’t see any link on the webpage to manage the files

I’m sorry. I’ve update your permission.  
Please try again!

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 29, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/0-19/168815/20 "2009-05-29T17:09:12Z")

</div>

Le vendredi 29 mai 2009 à 22:51 +0900, Kouhei S. a écrit :

> > from misc/release.rb:98:in `go\_edit\_release\_page’
> > 
> > And I don’t see any link on the webpage to manage the files
> 
> I’m sorry. I’ve update your permission.  
> Please try again!

rake release failed on submitting news :

misc/release.rb:207:in `submit_news': undefined method `summary=’ for  
nil:NilClass (NoMethodError)  
from misc/release.rb:235:in `main’  
from misc/release.rb:239  
rake aborted!

The tarballs are however available and checked and the release is tagged

I will update the wiki later and post a real announce here (except if  
someone want to do it before 🙂 )

[Next page](https://www.ruby-forum.com/t/0-19/168815.md?page=2)
