Forum: Ruby-Gnome 2 [HELP] make samples Ruby 1.9 ready

Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2011-02-19 15:59
(Received via mailing list)
Hi,

We have sample programs in sample/ directory. If you
installed Ruby/GTK2 as gem, you will find samples in
$GEM_HOME/gems/gtk2-0.90.7/sample/.

Some of samples aren't Ruby 1.9 ready. We want to make all
samples Ruby 1.9 ready. We want your help. Could you try
all Ruby-GNOME2 (Ruby/GLib2, Ruby/GTK2 and so on) samples,
fix not Ruby 1.9 ready samples and send a patch?

(We don't have a list of all not Ruby 1.9 ready
samples. Sorry.)


Here are main broken reasons:

  1. not M17N ready
     Solution: add "# -*- coding: utf-8 -*-" at the top.

  2. $LOAD_PATH doesn't have '.'
     Solution: add "$LOAD_PATH.unshift('.')".


We hope your help!


Thanks,
--
kou
4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2011-02-20 21:50
I try to help with that in the coming months but personally I am still
using Ruby 1.8.x so it will take me some time before I manage to migrate
to Ruby 1.9.x successfully :)

(I had and still have many problems with the encoding changes in Ruby
1.9.x)

Thanks.
C4a836af7263f84a4f7cc91ed6f3ae77?d=identicon&s=25 Vincent Carmona (vinc-mai)
on 2011-02-21 16:39
(Received via mailing list)
Hi.

Can I find sample codes in svn repo ?
They have eluded me.

(I do not use gems.)

--
Vincent Carmona
C4a836af7263f84a4f7cc91ed6f3ae77?d=identicon&s=25 Vincent Carmona (vinc-mai)
on 2011-02-22 17:38
(Received via mailing list)
I have created a page on the hiki :
http://ruby-gnome2.sourceforge.jp/hiki.cgi?Status+of+samples .
I have list all the ruby files I found in samples directories.
I will test the glib2 samples soon.

--
Vincent Carmona
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2011-02-22 23:29
(Received via mailing list)
Hi,

In <9084f7cbaecfcfee029b49346666f418@ruby-forum.com>
  "Re: [ruby-gnome2-devel-en] [HELP] make samples Ruby 1.9 ready" on
Sun, 20 Feb 2011 21:50:49 +0100,
  Marc Heiler <ruby-forum-incoming@andreas-s.net> wrote:

> I try to help with that in the coming months but personally I am still
> using Ruby 1.8.x so it will take me some time before I manage to migrate
> to Ruby 1.9.x successfully :)
>
> (I had and still have many problems with the encoding changes in Ruby
> 1.9.x)

Thanks!
We'll waiting for you!

--
kou
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2011-02-22 23:33
(Received via mailing list)
Hi,

In <AANLkTi=U1ze_EGZY17Qy8zDbyoYh_7p67RqJgbodi+J2@mail.gmail.com>
  "Re: [ruby-gnome2-devel-en] [HELP] make samples Ruby 1.9 ready" on
Mon, 21 Feb 2011 16:38:36 +0100,
  Vincent Carmona <vinc4mai@gmail.com> wrote:

> Can I find sample codes in svn repo ?

Yes.
You can find sample codes in sample/ directory.

  % svn co
https://ruby-gnome2.svn.sourceforge.net/svnroot/ru...
ruby-gnome2
  % ruby-gnome2
  % ls -d */sample
  gdk_pixbuf2/sample  gstreamer/sample  gtksourceview2/sample
rsvg2/sample
  glib2/sample      gtk2/sample    pango/sample         vte/sample
  goocanvas/sample    gtkmozembed/sample  poppler/sample

Hmm!? You already found sample codes!
I'm sorry for my late response. :<

--
kou
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2011-02-22 23:35
(Received via mailing list)
Hi,

In <AANLkTinf+pZUWFKyL6aCs0KW9NPTcJ3oznqGPTu9RBqj@mail.gmail.com>
  "Re: [ruby-gnome2-devel-en] [HELP] make samples Ruby 1.9 ready" on
Tue, 22 Feb 2011 17:36:47 +0100,
  Vincent Carmona <vinc4mai@gmail.com> wrote:

> I have created a page on the hiki :
> http://ruby-gnome2.sourceforge.jp/hiki.cgi?Status+of+samples .
> I have list all the ruby files I found in samples directories.

Thanks! It's very helpful!

> I will test the glib2 samples soon.

Thanks. We'll waiting for your work.


--
kou
C4a836af7263f84a4f7cc91ed6f3ae77?d=identicon&s=25 Vincent Carmona (vinc-mai)
on 2011-02-23 00:05
(Received via mailing list)
2011/2/22 Kouhei Sutou <kou@cozmixng.org>:
> Thanks! It's very helpful!
>
>> I will test the glib2 samples soon.
>
> Thanks. We'll waiting for your work.

glib2 tests:
- bookmarkfile.rb gives a warning
- completion.rb and keyfile.rb gives an error
- I am not sure how to use iochannel.rb
- all other samples are ruby 1.9 ready

See http://ruby-gnome2.sourceforge.jp/hiki.cgi?Status+... .
>
>
> --
> kou
>



--
Vincent Carmona
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2011-02-25 11:42
(Received via mailing list)
Hi,

In <AANLkTinAquRmm5=9=r4Mct-DZGEi2JG8LaUOH61a1eLd@mail.gmail.com>
  "Re: [ruby-gnome2-devel-en] [HELP] make samples Ruby 1.9 ready" on
Wed, 23 Feb 2011 00:04:55 +0100,
  Vincent Carmona <vinc4mai@gmail.com> wrote:

> glib2 tests:
> - bookmarkfile.rb gives a warning
> - completion.rb and keyfile.rb gives an error
> - I am not sure how to use iochannel.rb
> - all other samples are ruby 1.9 ready
>
> See http://ruby-gnome2.sourceforge.jp/hiki.cgi?Status+... .

Thanks for checking Ruby/GLib2 samples.
Could someone fix the warning and error on Ruby 1.9?


Thanks,
--
kou
C4a836af7263f84a4f7cc91ed6f3ae77?d=identicon&s=25 Vincent Carmona (vinc-mai)
on 2011-02-28 20:21
(Received via mailing list)
Attachment: ruby1.9-sample-gtk-demo.diff (2 KB)
Hi.

I have checked all the gtk-demo samples but the cairo ones.
I will try to commit my changes (see diff file). Should I split them
in 2 commits (main.rb and textview.rb).
Does the syntax of Changelog is correct ?

For the commit should I use this URL
svn+ssh://vinc-mai@ruby-gnome2.svn.sourceforge.net/svnroot/ruby-gnome2
or https protocole is enough ?
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2011-03-01 04:49
(Received via mailing list)
Hi,

In <AANLkTi==43AqeXfgCRTyWyJL9+OSVKLXkEhLixYtEgtm@mail.gmail.com>
  "Re: [ruby-gnome2-devel-en] [HELP] make samples Ruby 1.9 ready" on
Mon, 28 Feb 2011 20:21:12 +0100,
  Vincent Carmona <vinc4mai@gmail.com> wrote:

> I have checked all the gtk-demo samples but the cairo ones.

Thanks!

> I will try to commit my changes (see diff file). Should I split them
> in 2 commits (main.rb and textview.rb).

I've checked your patch. It looks OK to me. Please commit it.

You don't need to split them in 2 commits because both of
them are fixes for Ruby 1.9. If changes aren't relative,
please split them in some commits.

> Does the syntax of Changelog is correct ?

A line following your name line is missing:

Before:
  +2011-02-28  Vincent Carmona
  +       * sample/gtk-demo/main.rb: Add gtk-demo directory to $: to fix
  +       bugs with ruby1.9.
  +       * sample/gtk-demo/textview.rb: add coding header.
  +

After:
  +2011-02-28  Vincent Carmona
  +
  +       * sample/gtk-demo/main.rb: Add gtk-demo directory to $: to fix
  +       bugs with ruby1.9.
  +       * sample/gtk-demo/textview.rb: add coding header.
  +

> For the commit should I use this URL
> svn+ssh://vinc-mai@ruby-gnome2.svn.sourceforge.net/svnroot/ruby-gnome2
> or https protocole is enough ?

You can use https URL:
  https://ruby-gnome2.svn.sourceforge.net/svnroot/ru...


Thanks,
--
kou
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.