ONIG_, regex_ --> onig_) 2. fix some bugs 3. add to support character set EUC-TW, EUC-KR, EUC-CN, KOI8, KOI8-R, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-11 Regards, TAKAHASHI 'Maki' Masayoshi E-mail: org [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <20040212.034830.26322313.maki@rubycolor.org> [ref] => [htmlstate] => on_nl2br [postusername] => Masayoshi [ip] => maki@rubycolor. [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> ruby-dev summary: 22688-22826 - Ruby
Professional Web Applications Themes

ruby-dev summary: 22688-22826 - Ruby

Hello all, This is a summry of ruby-dev ML in these days. [ruby-dev:22688] output directory for extensions Nobu Nakada pointed out that some applications and libraries, such as bin/rdoc and test/runner.rb, need external library and they can not be executed before install. So Nobu made a patch to make temporary directories which has the same hierarchy as one after install. [ruby-dev:22691] new standard library in the next release Shinya Kawaji asked a plan of new standard library for the next release(1.8.2 or 1.9.0). Matz mentioned three points to decide to add as standard with: * need * maturity * maintainer ...

  1. #1

    Default ruby-dev summary: 22688-22826

    Hello all,

    This is a summry of ruby-dev ML in these days.


    [ruby-dev:22688] output directory for extensions

    Nobu Nakada pointed out that some applications and libraries,
    such as bin/rdoc and test/runner.rb, need external library
    and they can not be executed before install.
    So Nobu made a patch to make temporary directories
    which has the same hierarchy as one after install.


    [ruby-dev:22691] new standard library in the next release

    Shinya Kawaji asked a plan of new standard library for the next
    release(1.8.2 or 1.9.0).

    Matz mentioned three points to decide to add as standard with:

    * need
    * maturity
    * maintainer

    and we should review the candidates enough.

    Kawaji recommended rss library made by Kouhei Sutou, and
    Sutou agreed to be a mainteiner.

    Kawaji also recommended ruby-dbi and o_dbm, and Keiju Isuka,
    the author of o_dbm, agreed to be a mainteiner, but he was afraid
    of lack of doents in English.

    Masahiro Tomita proposed to add Ruby/MySQL, MySQL client library
    written in Ruby, in the standard distribution with ruby-dbi.


    [ruby-dev:22763] $: trick in test/*
    [ruby-dev:22788] relative load/require (Re: Re: $: trick in test/*)

    NaHi pointed out that some test cases in src/ruby/test/*
    changed the value of $: and load files in current directories.
    But he didn't think it smart because the value of $: were
    shared with all test cases, so he proposed to delete
    this $: trick.

    But Tanaka Akira had a different opinion. He suggests
    to solve this problem generally; to add a new method
    to load with relative path.
    Matz disagree to make the require method load libraries
    with relative path, but he allowed other method to do it.
    Some details are not determined yet:

    * name
    * handling of symbolic link

    In addition, Tanaka made an advice to record the full path
    in $:. Matz agreed and promised to implement it when
    he has a time to do.


    [ruby-dev:22790] avoid duplicate load/require in Win32

    In relation to the previous topic, take_tk made a request to ignore
    cases of library path in the file system which didn't distinguish
    cases. But Matz felt he should take case of case of path when
    he uses case-insensitive platform, and rejected the request.


    [ruby-dev:22802] [Oniguruma] Version 2.1.0

    Kosako announced that Oniguruma 2.1.0 is released.

    Changes:
    1. change prefix of API (REG_ --> ONIG_, regex_ --> onig_)
    2. fix some bugs
    3. add to support character set
    EUC-TW, EUC-KR, EUC-CN, KOI8, KOI8-R,
    ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,
    ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-11


    Regards,

    TAKAHASHI 'Maki' Masayoshi E-mail: org


    Masayoshi Guest

  2. #2

    Default Re: ruby-dev summary: 22688-22826

    On Thu, Feb 12, 2004 at 03:45:47AM +0900, Masayoshi Takahashi wrote: 

    For the record, I really like both of these ideas; they would completely
    eliminate the use I have for requirelocal/loadlocal in RubyTreasures.
     

    What is "case of case of path"?

    It seems to me the right way to handle this problem is to use a
    case-sensitive require (if the case of the require doesn't match the
    case of the file being required, then raise an exception). The reason
    is that code that assumes case doesn't matter will break when it is
    ported to a system where case does matter.

    Paul



    Paul Guest

  3. #3

    Default Re: ruby-dev summary: 22688-22826

    On Thu, 12 Feb 2004 05:25:50 +0900, Paul Brannan wrote:
     
    >
    > What is "case of case of path"?[/ref]

    I don't know, but you should take care of this kind of things.
    Harpo Guest

  4. #4

    Default Re: ruby-dev summary: 22688-22826

    Hi,

    In message "Re: ruby-dev summary: 22688-22826"
    on 04/02/12, Paul Brannan <com> writes:

    |> Matz disagree to make the require method load libraries
    |> with relative path, but he allowed other method to do it.
    |> Some details are not determined yet:
    |>
    |> * name
    |> * handling of symbolic link
    |>
    |> In addition, Tanaka made an advice to record the full path
    |> in $:. Matz agreed and promised to implement it when
    |> he has a time to do.
    |
    |For the record, I really like both of these ideas; they would completely
    |eliminate the use I have for requirelocal/loadlocal in RubyTreasures.

    Any name suggestion?

    |> [ruby-dev:22790] avoid duplicate load/require in Win32
    |>
    |> In relation to the previous topic, take_tk made a request to ignore
    |> cases of library path in the file system which didn't distinguish
    |> cases. But Matz felt he should take case of case of path when
    |> he uses case-insensitive platform, and rejected the request.
    |
    |What is "case of case of path"?

    Read "Matz felt one should care about case of path even when he/she
    uses case-insensitive platform".

    matz.


    Yukihiro Guest

  5. #5

    Default Re: ruby-dev summary: 22688-22826

    On Thu, 12 Feb 2004, Yukihiro Matsumoto wrote:
     


    * link

    as in ld. i say this because it would be used primarily with
    packages/libraires trying to 'link' to dependancies...

    the sematics of link would be

    - first try relative
    - then try $:

    a notion of version could be added if that could ever be agreed upon, eg

    link 'foobar-1.0.0'

    mighit load foobar-2.1.1 if it were available (using libtool style
    versioning => interface.age.impl)

    * relative

    a keyword/method to transform a path into a relative one

    def this path
    require 'pathname'
    File.join(Pathname.new(File.dirname(File.expand_pa th(__FILE__))).realpath, path)
    end

    require relative 'sub-package'

    * include

    effectively 'require relative'

    -a
    --

    ATTN: please update your address books with address below!

    ================================================== =============================
    | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
    | PHONE :: 303.497.6469
    | ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
    | STP :: http://www.ngdc.noaa.gov/stp/
    | NGDC :: http://www.ngdc.noaa.gov/
    | NESDIS :: http://www.nesdis.noaa.gov/
    | NOAA :: http://www.noaa.gov/
    | US DOC :: http://www.commerce.gov/
    |
    | The difference between art and science is that science is what we
    | understand well enough to explain to a computer.
    | Art is everything else.
    | -- Donald Knuth, "Discover"
    |
    | /bin/sh -c 'for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done'
    ================================================== =============================

    Ara.T.Howard Guest

  6. #6

    Default Re: ruby-dev summary: 22688-22826

    Hi,
     
     

    My thanks go as well to ruby-dev summary team.
     

    Note: all tricks are removed from testcases. Run test through
    test/runner.rb even if you run a test separately. test/runner.rb do
    the trick instead. e.g.
    $ ruby test/runner.rb test/soap/helloworld/test_helloworld.rb

    Regards,
    // NaHi


    NAKAMURA, Guest

  7. #7

    Default Re: ruby-dev summary: 22688-22826

    On Thu, 12 Feb 2004, Tanaka Akira wrote:
     
    >
    > I can't imagine a situation that needs relative path and $: in single method
    > because I know a file which pointed by the relative path is exist or not
    > when I write link '...'. If the file exists, $: is never used. If not,
    > 'require' can be used instead.[/ref]

    the situation is the one where you include a module, say strinio or yaml, with
    your distribution because it is not yet part of ruby. you would like,
    however, for your 'require' line to pick up the system one if it is installed
    locally - i've been here before...
     
    >
    > The relative keyword needs language change. It's too drastic to this issue.
    >
    > I feel the relative method is too tricky.[/ref]

    how so? wouldn't a simple method to transform a path suffice?

    ~/eg/ruby > cat relative.rb
    require 'pathname'

    module Kernel
    def relative path
    File.join(
    Pathname.new(File.dirname(File.expand_path(__FILE_ _))).realpath.to_s,
    path
    )
    end
    end

    p(relative('foo'))
    p(relative('foo.rb'))
    p(relative('foo/bar'))

    #require relative 'foo'

    ~/eg/ruby > ruby relative.rb
    "/home/ahoward/eg/ruby/foo"
    "/home/ahoward/eg/ruby/foo.rb"
    "/home/ahoward/eg/ruby/foo/bar"

    am i missing something?
     
    >
    > It is already used as Module#include.[/ref]

    yes - meant to delete that before sending.


    regards.

    -a
    --

    ATTN: please update your address books with address below!

    ================================================== =============================
    | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
    | PHONE :: 303.497.6469
    | ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
    | STP :: http://www.ngdc.noaa.gov/stp/
    | NGDC :: http://www.ngdc.noaa.gov/
    | NESDIS :: http://www.nesdis.noaa.gov/
    | NOAA :: http://www.noaa.gov/
    | US DOC :: http://www.commerce.gov/
    |
    | The difference between art and science is that science is what we
    | understand well enough to explain to a computer.
    | Art is everything else.
    | -- Donald Knuth, "Discover"
    |
    | /bin/sh -c 'for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done'
    ================================================== =============================

    Ara.T.Howard Guest

  8. #8

    Default Re: ruby-dev summary: 22688-22826

    Hi,

    In message "Re: ruby-dev summary: 22688-22826"
    on 04/02/12, "Ara.T.Howard" <ngdc.noaa.gov> writes:

    |> > * relative
    |> >
    |> > a keyword/method to transform a path into a relative one
    |>
    |> The relative keyword needs language change. It's too drastic to this issue.
    |>
    |> I feel the relative method is too tricky.
    |
    |how so? wouldn't a simple method to transform a path suffice?

    The point is the word "relative" itself is not specifically related to
    file path.

    matz.


    Yukihiro Guest

  9. #9

    Default Re: ruby-dev summary: 22688-22826

    On Fri, 13 Feb 2004, Yukihiro Matsumoto wrote:
     

    at least it's better than cousin or uncle! ;-)

    i see your point... how about 'Kernel.relpath'

    module Kernel
    def relpath path, origin = __FILE__
    File.join(
    Pathname.new(File.dirname(File.expand_path(origin) )).realpath.to_s,
    *(File.split(path))
    )
    end
    end

    tho perhaps that should belong in File instead of Kernel it nicer to see

    require relpath 'foo/bar'

    than

    require File.relpath 'foo/bar'


    maybe both...

    -a
    --
    (short sig)

    Ara.T.Howard Guest

  10. #10

    Default Re: ruby-dev summary: 22688-22826

    il Thu, 12 Feb 2004 06:54:29 -0600, Lyle Johnson <net> ha
    scritto::
     
    >
    >Is it this one:
    >
    > http://raa.ruby-lang.org/list.rhtml?name=rss
    >
    >?[/ref]

    I hope it is. This lib is really clean and easy to use, but I wonder
    how stable/mature it is
    gabriele Guest

  11. #11

    Default Re: ruby-dev summary: 22688-22826

    org (Yukihiro Matsumoto) wrote: 

    Oops, sorry. I always thank for (a lot of) your patience.


    Lyle Johnson <net> wrote: 
    >
    > Is it this one:
    >
    > http://raa.ruby-lang.org/list.rhtml?name=rss
    >
    > ?[/ref]

    Yes. He said he had a plan to improve it, but he wouldn't
    change the API ([ruby-dev:22726]).


    Regards,

    Masayoshi Takahashi (org)






    TAKAHASHI Guest

  12. #12

    Default Re: ruby-dev summary: 22688-22826

    Hi,

    In <com>
    "Re: ruby-dev summary: 22688-22826" on Fri, 13 Feb 2004 02:19:58 +0900,
    gabriele renzi <vip.ukl.> wrote: 
    >
    > how stable/mature it is[/ref]

    I have used this with no problem recently and received no
    bug report.

    --
    kou


    Kouhei Guest

  13. #13

    Default Re: ruby-dev summary: 22688-22826

    il Fri, 13 Feb 2004 20:21:20 +0900, Kouhei Sutou <org> ha
    scritto::
     
    >>
    >> how stable/mature it is[/ref]
    >
    >I have used this with no problem recently and received no
    >bug report.[/ref]

    mh. just a question:
    this feed:
    http://www.scripting.com/rss.xml
    is considered valid from feedvalidator.org, but I don't know how to
    p it with rss/pr, would you please explain it to me?
    gabriele Guest

Similar Threads

  1. ruby-dev summary: 21928-22011
    By Masayoshi in forum Ruby
    Replies: 4
    Last Post: November 29th, 03:12 PM
  2. [ANN] ruby-dev summary index
    By Minero Aoki in forum Ruby
    Replies: 2
    Last Post: October 22nd, 10:08 AM
  3. ruby-dev summary 20489 - 20519
    By TAKAHASHI Masayoshi in forum Ruby
    Replies: 0
    Last Post: July 9th, 05:12 PM
  4. ruby-dev summary 20418 - 20487
    By Kazuo Saito in forum Ruby
    Replies: 0
    Last Post: July 1st, 05:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139