Professional Web Applications Themes

Is 1.8.2 imminent? And detecting Rubyx version - Ruby

I'm holding off an 'official' release of Rubyx (ruby based linux distro) because it hits some bugs in 1.8.1 which have been fixed in cvs I was wondering whether anyone knows when 1.8.2 will be released? Otherwise, is there a way of detecting a version of ruby, which also covers dated stable snapshots? Eg Rubyx needs stable-snapshot-2004-01-14.rar or newer. How can I test for it? Andrew Walrond...

  1. #1

    Default Is 1.8.2 imminent? And detecting Rubyx version

    I'm holding off an 'official' release of Rubyx (ruby based linux distro)
    because it hits some bugs in 1.8.1 which have been fixed in cvs

    I was wondering whether anyone knows when 1.8.2 will be released?

    Otherwise, is there a way of detecting a version of ruby, which also covers
    dated stable snapshots?

    Eg Rubyx needs stable-snapshot-2004-01-14.rar or newer. How can I test for it?

    Andrew Walrond



    Andrew Guest

  2. #2

    Default Re: Is 1.8.2 imminent? And detecting Rubyx version

    That should have said 'detecting _ruby_ version' :)



    Andrew Guest

  3. #3

    Default Re: Is 1.8.2 imminent? And detecting Rubyx version

    On Fri, Feb 06, 2004 at 04:58:03PM +0900, Andrew Walrond wrote: 

    VERSION and RUBY_RELEASE_DATE

    --
    _ _
    | |__ __ _| |_ ___ _ __ ___ __ _ _ __
    | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \
    | |_) | (_| | |_\__ \ | | | | | (_| | | | |
    |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
    Running Debian GNU/Linux Sid (unstable)
    batsman dot geo at yahoo dot com

    And Bruce is effectively building BruceIX
    -- Alan Cox


    Mauricio Guest

  4. #4

    Default Re: Is 1.8.2 imminent? And detecting Rubyx version

    Hi,

    At Fri, 6 Feb 2004 19:03:58 +0900,
    Mauricio Fernández wrote in [ruby-talk:91687]: 

    VERSION is already obsolete and no longer available in 1.9, use
    RUBY_VERSION instead.

    --
    Nobu Nakada



    nobu.nokada@softhome.net Guest

  5. #5

    Default Re: Is 1.8.2 imminent? And detecting Rubyx version

    On Friday 06 Feb 2004 10:03 am, Mauricio Fernández wrote: 
    >
    > VERSION and RUBY_RELEASE_DATE[/ref]

    Thanks! My implementation seems messy though. Can anybody think of how to
    clean it up?


    #Need ruby 1.8.1 stable snapshot >= 2004-01-14
    catch :ok do
    puts("Detected ruby version #{VERSION}, released #{RUBY_RELEASE_DATE}")
    VERSION =~ /(\d*).(\d*).(\d*)/
    v1,v2,v3 = $1.to_i,$2.to_i,$3.to_i
    RUBY_RELEASE_DATE =~ /(\d*)-(\d*)-(\d*)/
    d1,d2,d3 = $1.to_i,$2.to_i,$3.to_i
    throw :ok if v1 > 1 or (v1 == 1 and v2 > 8) or (v1 == 1 and v2 == 8 and v3 
    if v1 == 1 and v2 == 8 and v3 == 1
    throw :ok if d1 > 2004 or (d1 == 2004 and d2 > 1) or (d1 == 2004 and d2
    == 1 and d3 > 13)
    end
    raise "Rubyx needs ruby version 1.8.2 or a 1.8.1 stable snapshot released
    after 2004-02-13"
    end




    Andrew Guest

  6. #6

    Default Re: Is 1.8.2 imminent? And detecting Rubyx version

    On Friday 06 Feb 2004 10:41 am, net wrote: 

    Thanks for that. I'll make the change :)



    Andrew Guest

  7. #7

    Default Re: Is 1.8.2 imminent? And detecting Rubyx version


    Maybe this old posting (Nov 25th 2003) of mine helps:
     
    >
    > A bit more complicated, but could be included in the std.[/ref]
    distribution... 

    Kind regards

    robert


    "Andrew Walrond" <org> schrieb im Newsbeitrag
    news:org... [/ref][/ref]
    distro) [/ref][/ref]
    test 
    > >
    > > VERSION and RUBY_RELEASE_DATE[/ref]
    >
    > Thanks! My implementation seems messy though. Can anybody think of how[/ref]
    to 
    #{RUBY_RELEASE_DATE}") 
    and v3 
    > if v1 == 1 and v2 == 8 and v3 == 1
    > throw :ok if d1 > 2004 or (d1 == 2004 and d2 > 1) or (d1 == 2004[/ref]
    and d2 
    released 

    Robert Guest

  8. #8

    Default Re: Is 1.8.2 imminent? And detecting Rubyx version

    Hi,

    At Fri, 6 Feb 2004 19:42:54 +0900,
    Andrew Walrond wrote in [ruby-talk:91690]: 

    case RUBY_VERSION <=> "1.8.1"
    when 1 then true
    when 0 then RUBY_RELEASE_DATE >= "2004-01-14"
    end or raise "Need ruby 1.8.1 stable snapshot >= 2004-01-14"

    --
    Nobu Nakada


    nobu.nokada@softhome.net Guest

  9. #9

    Default Re: Is 1.8.2 imminent? And detecting Rubyx version

    On Friday 06 Feb 2004 10:55 am, net wrote: 

    Smart- :)

    Thanks!



    Andrew Guest

  10. #10

    Default Re: Is 1.8.2 imminent? And detecting Rubyx version

    Andrew Walrond <org> wrote in message news:<org>... [/ref]

    Hi,

    irb(main):001:0> "1.12.3" <=> "1.8.0"
    => -1

    Does ruby guarantee never to use two-digit version and release
    numbers. If not, your comparison method will fail.

    Cheers,

    Han Holl
    Han Guest

  11. #11

    Default Re: Is 1.8.2 imminent? And detecting Rubyx version

    Hi,

    At Sun, 8 Feb 2004 19:15:00 +0900,
    Han Holl wrote in [ruby-talk:91781]: 

    Yes, guaranteed.

    --
    Nobu Nakada


    nobu.nokada@softhome.net Guest

  12. #12

    Default Re: Is 1.8.2 imminent? And detecting Rubyx version

    Hi,

    In message "Re: Is 1.8.2 imminent? And detecting Rubyx version"
    on 04/02/08, Han Holl <com> writes:

    |Does ruby guarantee never to use two-digit version and release
    |numbers. If not, your comparison method will fail.

    We will never use two digit version. Don't worry.

    matz.


    Yukihiro Guest

Similar Threads

  1. Replies: 0
    Last Post: October 12th, 01:14 AM
  2. Replies: 2
    Last Post: October 2nd, 02:35 PM
  3. Replies: 2
    Last Post: October 2nd, 12:17 PM
  4. Replies: 0
    Last Post: October 1st, 02:30 PM
  5. Replies: 0
    Last Post: September 16th, 02:29 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