233677-237122

233474-234665 subjects 233921-237792

rake test help
233677 [jeff.grice@g] I am having difficulty using rake to run tests on a gem I have created.
233713 [jeremy@hi eg] project_dir/
233721 [jeff.grice@g] ...
233797 [jeremy@hi eg] Glad to help.  Keep on having fun :)

Suggestions for new RCR process
233681 [gavin@re in ] 1) I would like the website to show the mailing list archive for each

unsubscribe
233702 [dannymacny@g] ...

IDE
233703 [adrian@ha g1] I was wishing to get an IDE to use with ruby, after trying eclipse
+ 233707 [lyle.johnson] The answer to this question can be found in the FXRuby User's Guide.
+ 233810 [sachin.gadka] ...

Rake, Hoe, Meta-Programming, and Warnings (oh my!)
233706 [tim.pease@gm] Is there a way to disable specific warnings from within a Ruby program
+ 233715 [flori@ni e. ] old, $VERBOSE = $VERBOSE, nil
+ 233716 [djberg96@gm ] Sure - redefine Kernel#warn. ;)
| 233720 [tim.pease@gm] Long answers are usually the most educational ones (or the most inflammatory).
+ 233729 [james@gr yp ] #!/usr/bin/env ruby -w
| 233741 [tim.pease@gm] Hey James!  That did the trick.
+ 233751 [GENIE@pr di ] I understand that this isn't identical to what you're doing, but it
  233754 [tim.pease@gm] There is going to be a performance hit with define_method.  Since the

RCR again (Integer#succ!, Integer#pred!)
233714 [robert.dober] ...
+ 233717 [gregory.t.br] This is probably in the same vein as ++.
| 233719 [djberg96@gm ] How about....x++ ?
| + 233727 [logancapaldo] Maybe x++. I'm pretty sure it can't be a method.
| + 233738 [dblack@wo bl] Even when it's 2007++ integers will still be immutable, immediate
| | 233750 [gavin@re in ] To be fair, that's a perfectly reasonable argument if ++ were to be a
| | 233764 [dblack@wo bl] I don't think that's ever been in doubt (that the parser could be
| | 233800 [robert.dober] ...
| | 233918 [robert.dober] ...
| + 233745 [danfinnie@op] x++ in languages that implement it (PHP I'm sure of, Java and C++ I'm
+ 233730 [james@gr yp ] What does pred stand for?  I must be slow today.
| 233732 [martindemell] predecessor, by symmetry with successor
| 233733 [james@gr yp ] Duh.  Thank you.
+ 233737 [dblack@wo bl] I don't consider that obvious at all.  Integers are immutable, and

get rid of scaffold pluralization
233723 [4m@da id ul ] I'm new to RoR and I was wondering how I can stop RoR from requiring
233734 [gdonald@gm i] config.active_record.pluralize_table_names = false

Script Exiting Unexpectedly
233725 [greg.kujawa@] Outlook's Contact list. What I've found is that without explicitly

net/toc, disconnects, and aol
233728 [cmshea@gm il] I've been using the Net::TOC library

Problem with open-uri
233735 [davidsulc@gm] require 'rexml/document'
+ 233739 [chris.hulan@] <?xml version='1.0' encoding='UTF-8'?>
| 233747 [davidsulc@gm] ...
+ 233755 [gregory.t.br] if it works on strings just do
  233756 [danfinnie@op] xml = REXML::Document.new(open("http://myoms.net/soap/oms2.wsdl")*.read*)
  233761 [davidsulc@gm] That seems to work. I had tried, but apparently with the wrong syntax.

What does this mean? ||=
233742 [jko170@ya oo] def current_account
+ 233743 [pfortuny@gm ] ...
| 233752 [keith@au io ] Just to be explicit, it's both 'nil' or 'false' that will be reset to
| 233762 [slamboy@gm i] ...
+ 233744 [the.mindstor] var ||= value is
+ 233759 [robert.worle] If @account is nil it'll look in the database to find an account using
+ 233760 [kabigon@gm i] Much like 'x += 1' is a shortcut for 'x = x + 1', 'x ||= 1' is a
| + 233768 [dblack@wo bl] Your first example doesn't set @account; it just tests it.  You'd need
| + 233795 [jko170@ya oo] Great explanation! Thanks.
+ 233796 [lists@be tr ] def meth parm = nil

Running Webrick alongside IIS on port 80
233763 [prashant.dev] I am hosting a couple of asp.net sites on IIS on my server.
+ 233765 [shortcutter@] Um, you cannot have to processes listen on the same port on one
| 233823 [rm_rails@ch ] Sure you can.  You can if you give the interface card 2 IP addresses
| 233848 [shortcutter@] You actually can have *two* IP addresses on *one* NIC?  Are you sure
| + 233851 [ljz@as as .c] This varies slightly under different flavors of Linux.  On one of the
| + 233853 [hassan.schro] man ifconfig  :-)
|   + 233923 [ben54007@gm ] First,stop you iis,then start webrick like this:ruby script/server -p
|   + 233924 [ben54007@gm ] First,stop you iis,then start webrick like this:ruby script/server -p
+ 233771 [james.britt@] No.  There are several options for hosting Ruby code.  Plain CGI or
| 233930 [alex@bl ck e] How's this for an idea:  run Mongrel on port 80, and proxy requests that
| 234175 [mguterl@gm i] ...
+ 233922 [robert.worle] It's not possible to have both IIS and webrick listen on port 80. You

RubyX11 and MetaRuby
233775 [matju@ar en ] ...
+ 233791 [transfire@gm] Have any links to more information about these projects?
+ 233952 [umageller@gm] Mathieu, just curious... could you please tell us

Optional Dependencies in Rubygems
233778 [cdcarter@gm ] Ok, so after the long Hoe discussion, I have decided to add
233932 [alex@bl ck e] The obvious one:  you've already got -y/--include-dependencies, so why

ruby-fr@ruby-lang.org is dead
233779 [matju@ar en ] ...
233935 [user@do ai .] It's maybe because a french newsgroup on ruby has been created since, in

read data embedded in a program
233780 [chen_li3@ya ] I run a script copied from "the Ruby way" but it
233781 [danfinnie@op] There are two underscores.
+ 233782 [chen_li3@ya ] Thanks. Now it works.
+ 233783 [chen_li3@ya ] Thanks. Now it works.
+ 233784 [chen_li3@ya ] Thanks. Now it works.

check performance with Benchmark
233793 [chen_li3@ya ] I know I can use this format to check the performance
+ 233807 [jan.svitok@g] 1. you can put the script in a method/function and call that.
| 233811 [chen_li3@ya ] Jan,
+ 233808 [shortcutter@] Just look at the various pieces of sample code using benchmark that are

eruby and charset
233798 [unbewusst.se] <http://www.yvon-thoraval.com/eruby/index.rhtml>

[ANN] Ruby Reports Mailing List moves to google
233799 [gregory.t.br] To deal with various problems with our current setup and possibly gain
233803 [ttmrichter@g] Wow!  This notice came almost a year late!  :-D
233804 [gregory.t.br] Michael, Nice catch.  Seeing as I do not have a time machine, make

Hi-res Matz's photo
233801 [threeeyedfis] Does anyone know where can I get a high resolution Matz's photo (To
+ 233805 [matz@ru y- a] Give me a break. ;-)
| + 233806 [ariekusumaat] 私もあなたの写真がほしいのです。
| + 233826 [    s@xs .d ] We actually need *several* matz photos ...
| | 233830 [schapht@gm i] Maybe I could just post a big sheet that said "松本様" on my cube
| | 233832 [michael.gors] I see that the Cult of Ruby flourishes ;-)
| + 236839 [Tim.Bray@Su ] I think he wants to throw darts at it. -T
|   + 236840 [matz@ru y- a] Yeah, that's the language designers' destiny.  Pity.
|   + 236984 [threeeyedfis] NO!
|     237103 [tim.pease@gm] Meditation is good for achieving personal enlightenment.
|     237122 [threeeyedfis] Just joking :)
+ 233834 [wilsonb@gm i] Is 300dpi high enough? Surely you want 2400dpi so that you can see

recurring intervals in ruby
233802 [snacktime@gm] I'm setting about to write a mini language of sorts for defining
233841 [lrlebron@gm ] You may to look at the chronic library

[ANN] rcodetools 0.4.1 (TDD++, automagic assertions, accurate completion, doc/code browsing...)
233812 [ mfp@ac .o g] rcodetools is a collection of Ruby code manipulation tools. It includes

MD5 BSD like passwords
233815 [fcruxen@gm i] I'm coding a "postfixadmin" using ruby, so, all the passwords are stored
+ 233816 [jan.svitok@g] require 'digest/md5'
+ 233825 [fred@la av .] If that's really a BSD-like password (in the form $n$aaaaaaa$aa...), the
| 234945 [fcruxen@gm i] Thanks a bunch for the reply. I'll take a good look at the documents.
+ 233831 [fcruxen@gm i] just found out facets library, sorry for the stupid question.

WWW::Mechanize problem
233817 [peter@ru yr ] agent = WWW::Mechanize.new
+ 233819 [stefan@ma li] You could try
| 233821 [peter@ru yr ] Hey, that worked! Thanks a lot.
+ 233820 [jan.svitok@g] search_form['field-keywords'] = "Ruby"

RDoc Improvement Request
233827 [matt@ke tl w] In searching through the online docs, I noticed that attributes are not
+ 233829 [james.britt@] If methods are defined using attr_* then rdoc does not list them as methods.
| 233844 [felipenavas@] I agree too! Yesterday i send an RDoc to my team partner (very new to
| + 233846 [matt@ke tl w] My take was based on the documentation of a method as follows from
| + 233879 [cdcarter@gm ] It is because RDoc parses the actual method definition.  Attr_* does
+ 233899 [drbrain@se m] Eric Hodel - drbrain@segment7.net - http://blog.segment7.net

Rake aborted problem
233838 [greg.pederso] ...
233881 [greg.pederso] ...

Re: A Heartfelt Plea for a Universal Open Source Package Management System
233845 [matt@ke tl w] The point was that there be a universal packaging system. I don't think
+ 233847 [vincent.four] I understand what you mean but there is need for a much better
+ 233850 [dblack@wo bl] Plugins, engines, and components are Rails add-ons.  They don't
  233852 [matt@ke tl w] That was my point exactly!  Rails is nothing more than an extension of
  233854 [halostatue@g] There are folks who are working on a system for enabling gems as
  233862 [james.britt@] Asking for the One True Package Manager seems similar to asking for the
  233863 [cdcarter@gm ] Don't worry, I like both gems and deb and I wouldn't want to be stuck
  233865 [vincent.four] You seem to forget one thing: language-specific packagings are in
  233870 [eolamey@gm i] I don't know about debian, but David Lutterkort produced a nice
  233973 [ruby@an hr p] 1) anything that's installable comes in a single, downloadable file (e.g.

Extract array values when using Object.send?
233856 [beingthexemp] How can I take an array, extract each top level value when using
233859 [cdcarter@gm ] t.send('test', *args)
233860 [beingthexemp] ...

Extracting array values in Object.send.
233858 [beingthexemp] How can I exract array values when using Object.send. See the example
233866 [ snk@gn .o g] Use the splat operator to expand the array into individual method

ruby documentation browsing
233874 [gmarik@gm il] I'm new to ruby, and Ruby rox.
+ 233876 [gregory.t.br] You can view the rdoc here: http://ruby-doc.org/core/
+ 233901 [lists@ka am ] I like fxri: http://rubyforge.org/projects/fxri/ It's basically a GUI
+ 233933 [jan.svitok@g] If you run RDoc on the ruby sources, you'll most probably get what you

[ANN] SQLite3/Ruby 1.2.0
233877 [jamis@37 ig ] After two long years, SQLite3/Ruby 1.2.0 is now available. SQLite3/Ruby

[ANN] Ruby-VPI 15.0.0
233878 [ snk@gn .o g] Ruby-VPI is a Ruby interface to IEEE 1364-2005 Verilog VPI.

Re: Number Spiral (#109)
233880 [rubytraining] Quiz #109 even leaves it up to the implementer whether to go clockwise
233959 [fordbc@gm il] Here is my solution. I used a recursive printing routine to handle the
234009 [twa@po t. om] My answers assumes an odd numbered spirals (I inferred it from "The
+ 234032 [w_a_x_man@ya] I can't get this to work.
| 234036 [w_a_x_man@ya] irb(main):006:0> s=1; x=5; [*s...s+x]
| 234041 [SimonKroeger] Hmm.
| 234044 [w_a_x_man@ya] ruby 1.8.2 (2004-12-25) [i386-mswin32]
| + 234046 [w_a_x_man@ya] ["stuff"]+[[4,5,6],[:x,:y,:z]].reverse.transpose
| + 235110 [SimonKroeger] It may be invisible but it will void your solution on codegolf.com.
+ 234033 [danfinnie@op] a = 5
+ 234184 [james@gr yp ] But the quiz example is an even spiral.  ;)
+ 234444 [twa@po t. om] This one works for even and odd spirals (obvious really)

[ANN] RubyJS - Convert Ruby to Javascript
233882 [mneumann@nt ] Long time since I announced my last project....
+ 233883 [danfinnie@op] Is there a way to download it without installing Mercurial?  I looked
| + 233884 [ezmobius@gm ] Yeah could you please post a tarball somewhere? I don't have
| + 233926 [mneumann@nt ] Uploaded a temporary tarball here: http://ntecs.de/hg-projects/rubyjs.tar.gz
+ 233911 [unbewusst.se] yes but how to interact with the browser window, for example, say i have
  233927 [mneumann@nt ] Well, does it work in Ruby? NO! So it doesn't work in RubyJS as well :)
  + 233928 [mneumann@nt ] def puts(str)
  + 233943 [unbewusst.se] fine thanks a lot, same syntax as using command line shell tools...
  + 233988 [r.mark.volkm] Very cool! I'm played with Google Web Toolkit and really like it ...
  + 234068 [unbewusst.se] ../bin/../lib/rubyjs/method_generator.rb:1040:in `method_missing': Not
    234164 [mneumann@nt ] Ah, that seems to be a different problem. Can I see your "Ruby/JS" code?
    234291 [unbewusst.se] not at all, as i said, i've just simplified your HelloWorld class but
    234304 [mneumann@nt ] Change #{ ... } to #< ... >
    234309 [unbewusst.se] OK fine, thanks.

[ANN] Rassmalog 2.2.0
233886 [ snk@gn .o g] Rassmalog is a static blog engine based on RSS 2.0, YAML,

yaml.rb and YAML "%" directives
233888 [rbysamppi@gm] I'm new to Ruby, and it really is fun. Right now, I'm playing with YAML...
233909 [why@ru y- an] Okay, so, the reason is: Ruby's builtin YAML library only does YAML

checking if a string matches a regexp - am I missing something?
233889 [rsanheim@gm ] I figure that I must be missing something really obvious with this
+ 233891 [james@gr yp ] "string" =~ reg # => int results are +true+ and nil is +false+
| 233893 [rsanheim@gm ] def valid_query?
| + 233895 [james@gr yp ] !!(query =~ regex)
| + 233896 [logancapaldo] The caller is poorly written then :)
| + 233898 [w_a_x_man@ya] What does the caller do when it receives 0?
|   + 233897 [w_a_x_man@ya] Make that
|   + 234015 [rsanheim@gm ] "should.be(true)" and "should.be(false)", which is using assert_same
|     234016 [wilsonb@gm i] "blah".should =~ /ah/
|     234017 [rsanheim@gm ] Well the method under test (under spec?) wasn't dealing with regex.
+ 233892 [khaines@en g] What am I not understanding here?

Ssh output buffer getting cut off
233894 [raymond.jaco] ...
233944 [jan.svitok@g] Long time ago somebody had similar problem with ssh truncating data. I

Long quotes on multiple lines
233900 [srobertjames] Is there an idiomatic way to continue a long quote on a separate line,
+ 233902 [w_a_x_man@ya] two \
+ 233903 [nobu@ru y- a] # string literal concatenation
| + 233904 [vjoel@pa h. ] Is this deprecated and planned for removal at some point? I seem to
| | 233907 [nobu@ru y- a] Maybe in the future, but it's not deprecated nor planned yet
| + 233942 [shortcutter@] irb(main):004:0> s="foo
|   233966 [invalid@gm .] require 'facet/string/margin'
+ 233940 [david.krmpot] Hmm, I don't think you can..
  234055 [aquasync@gm ] At a guess, I would say that using + means it has to go through
  234125 [david.krmpot] "asdf asdf" \

Question about Class Variable and Class Instance Variables?
233905 [rubylearner@] ...

install ruby offline with openssl
233908 [huangye177@g] I know this is an old problem, but I still feel puzzled about it.
233913 [huangye177@g] I think this could be described in one word, how could i install ruby

Re: rcodetools 0.4.1 (TDD++, automagic assertions, accurate completion, doc/code browsing...)
233912 [gsinclair@gm] Very nice idea.
233979 [ben@ri ce .c] Somebody started a rubytidy (a'la perltidy), but it appears stagnant -

Hoe poisoned in Rubyforge
233914 [drbrain@se m] $ sudo gem install hoe
+ 233916 [ryand-ruby@z] This is obviously the work of someone extending rubygems to have
| 233929 [rosco@ro co ] Is the implication here that someone on seattle.rb uploaded a new gem, or
| 233937 [drbrain@se m] You can upload a gem of any name to any rubyforge project including
| + 233951 [rosco@ro co ] Gotcha. I didn't realise that. It's kind of worrying actually. Maybe
| | 233957 [gregory.t.br] Hmm... I think this is not entirely a RubyForge problem, but also
| + 233983 [ben@bl yt in] This happened quite inadvertently to me this summer, and at the time,
| + 233990 [tom@in oe he] That's true.  For example, I could upload a gem called "rails-2.0.gem"
|   233995 [djberg96@gm ] WTF? The "foo" project is MY project! What do you think you're doing?!
+ 233917 [drbrain@se m] gem install hoe
+ 233958 [cdcarter@gm ] I want to apologize to the group on this one.  It was cause my my
  + 233960 [gregory.t.br] Please do not use RubyForge for testing without asking Tom first.
  + 233961 [sonoflilit@g] ...
  | + 233962 [gregory.t.br] I think if security is an issue, you should not download directly from
  | | 233965 [sonoflilit@g] ...
  | | 233967 [gregory.t.br] Tom is very responsive.   This is not entirely a RubyForge issue
  | + 233993 [tom@in oe he] We built various checks into the gem index builder on RubyForge
  | | 233999 [tom@in oe he] Also, it seemed prudent to not deploy any more gems until we get this
  | | + 234258 [ezmobius@gm ] Hey Tom-
  | | | 234279 [ryand-ruby@z] Basically, until we can get rubygems shored up to the point where
  | | | 234287 [ezmobius@gm ] Yeah I'm fine with waiting on releases to get this fixed myself.
  | | | 234299 [tom@in oe he] Yup, sorry for the delay.  Eric Hodel and Paul Duncan had some good
  | | + 234569 [tom@in oe he] There's a fix in place for this now and gems are being deployed as
  | |   + 234574 [nicksieger@g] ...
  | |   | 234584 [tom@in oe he] Nope, it just means that you won't be able to release a gem who's
  | |   + 234577 [hungrylist@g] First of all I want to thank you and all the people who worked hard in
  | |   | 234585 [tom@in oe he] Thanks!
  | |   + 234603 [ryand-ruby@z] Tom, given that rake's gem tasks are almost always creating the file
  | |     234604 [tom@in oe he] Here's an example: "fxruby-1.6.2-ruby1.8.5-mswin32.gem".  Most of the
  | |     234625 [lyle.johnson] For the record, that one was originally named
  | |     234628 [tom@in oe he] Yup, I'm not sure about what's a good way to name these more specific
  | + 234676 [pabs@pa lo r] It is very bad.  This is the exact problem the package signing in
  |   234677 [tom@in oe he] Well, maybe "was", since the problem "SonOfLilit" was talking about has
  + 233992 [tom@in oe he] Can you please drop me a note offlist at tom@infoether.com?  It seems
  + 233996 [robert.dober] ...
  + 234007 [gregory.t.br] yep, Turns out that ruport-lean was getting installed over ruport due
  + 234013 [why@ru y- an] I broke Ruby 1.8.3.  So don't feel too bad!!
  | 234021 [rsanheim@gm ] _why for the win.
  + 234025 [james@gr yp ] Ryan's and Eric's, yes.  They immediately assumed the worst and it's
  + 234027 [johnwilger@g] Chris,
    + 234028 [gregory.t.br] I agree with the sentiments and it's nice for folks to address this,
    | 234074 [robert.dober] ...
    | + 234077 [tom@in oe he] That's an interesting idea.  We do run some tests on the gems before
    | | 234097 [d454d@we .d ] executing code in the uploaded gems (if this is the case here - didn't
    | | 234102 [tom@in oe he] Yup.  Right now we parse the gem file itself, so that shouldn't happen.
    | + 234186 [drbrain@se m] If you're working on project X that you don't normally work on, look
    | + 234471 [steven@lu os] A lot of people wouldn't have done that.  Anyone who was surprised by
    |   234600 [robert.dober] ...
    |   234673 [steven@lu os] My fault.  I was replying to your "well there were but who would not
    + 234030 [mikeisgreat@] ...
threads.html
top