326135-350613

325974-333106 subjects 326319-327220

Rubygems and ~/.gem
326135 [m.fellinger@] I've been very happy to see the latest improvments in rubygems
326136 [m.fellinger@] @home_install_warning = true

Getting LoadError when using ruby and gem
326141 [bkondepudi@g] I m seeing below error when I m trying to run one of the application.
326163 [abc3def@gm i] Try this

clicking links in mechanize with :text=> nokogiri.css('a.l')
326148 [edrd.dantes@] i cannot click links in mechanize through their text content.
326169 [lparravi@gm ] There is no link with text 'parsing'. Just tried that google search

Check for two strings
326152 [revathy.p@an] Is this possible to check for two strings.
326154 [shortcutter@] What kind of test do you want? Do you want both or at least one of them?
326221 [revathy.p@an] i have tried your code.

MiniTest: a curious case of include (1.8 vs 1.9)
326165 [simon.a.chia] I've been messing around with minitest and came across something very
326174 [simon.a.chia] As an additional note to this, assigning constants in a describe under
326176 [dblack@ru yp] It's not specific to minitest; it's a change in how constants are
326182 [simon.a.chia] Interesting.  I expected it would be something like this.  Kinda makes
326185 [dblack@ru yp] All it means is that you can't make an assertion in the spec that
326291 [simon.a.chia] I guess there's something to that.  Here's a good workaround that
326640 [jtprince@gm ] Here's a workaround that combines the include call with a const_get

[ANN] The RSpec Book is now in beta
326166 [dchelimsky@g] I=92m pleased to announce the beta release of the Pragmatic Bookshelf=92s =

Add randomize method to array?
326170 [bart.braem@g] Perhaps a silly question. What is the best way to add a randomize
326171 [dblack@ru yp] I have no idea how performant this is compared to other ways but the
326172 [lparravi@gm ] Ruby 1.8.7 also have shuffle and shuffle!
326173 [dblack@ru yp] I consider 1.8.7 to be 1.9.-1 :-)
326248 [shortcutter@] Of one make ten,

RDoc plain text docs with command to create an HTML table?
326175 [bschmeil@au ] for quite some time I'm trying to get RDoc to display an HTML table
326225 [drbrain@se m] $ echo "<table><tr><td>1<td>2<tr><td>3<td>4</table>" > blah.txt
326252 [bschmeil@au ] thanks a lot for your answer. Unfortunatly this still does not work for
326277 [drbrain@se m] Then don't escape it.

New window screwing up my Ncurses script!
326177 [tmcdowell@gm] require 'rubygems'
326232 [sentinel.200] If you would follow the examples provided, you would be able to complete
326237 [tmcdowell@gm] I thought using :: and . were interchangeable? Guess not. I had been

Ruby 1.9, Ruby Mysql 2.8, Compiling
326183 [mwlang@gm il] I have successfully compiled and install Ruby 1.9.1.rc2 on 32-bit
326184 [rogerpack200] I think it's from 1.8 and mysql lib isn't quite 1.9 compat
326209 [mwlang@gm il] Thanks!  That gets me a working mysql connector in a straight IRB
326267 [rogerpack200] doing a
326372 [mwlang@gm il] Good gosh.  Wish I'd tried that at the outset, but nooo, I had to go

Testing file system manipulations
326186 [c.j.vincent@] I am currently writing a class which processes a log file, inserts some
326381 [andrew@an re] You should use mock objects in place of file operations.
326382 [jamesmead44@] You can find Mocha here: http://mocha.rubyforge.org/

Re: Errno::ENOMEM reading a device in Ruby, not in Java thou
326187 [rogerpack200] Interesting.
326189 [matz@ru y- a] ios.read([length [, buffer]])    => string, buffer, or nil
338862 [rogerpack200] Interesting.
350608 [rogerpack200] As a followup gotcha (in case anybody runs into this).
350609 [matz@ru y- a] rewind it first to clear buffering.
350613 [rogerpack200] Interesting.  It seems to indeed allow for it.

Reading a file in chunks, to a byte array
326192 [draygen@co c] ...
326195 [shortcutter@] It's not fully clear to me which one is the driving application here.
326215 [draygen@co c] ...

Help translating C# socket code equivalent Ruby socket code
326193 [kamaljeet_si] Possible to help in translating the following C# socket code to Ruby
326212 [mark@th ma z] On Jan 29, 4:30=A0pm, Kamaljeet Saini
326227 [kamaljeet_si] The C# code make sense and understandable but the basic ruby socket

How to do a for loop...and iterate a set number of times?
326196 [dan.cao.nguy] So painfully basic, but I'm just starting Ruby and am coming to it from
+ 326197 [dominikho@gm] for thing in things[0..9]
| 326208 [robert.dober] maybe
+ 326198 [ibc@al ax ne] things.each {|thing|
+ 326200 [TimHunter@nc] Usually collections define an each method. Each call into the block gets
| + 326206 [julian@co et] ary[0..9]
| + 326207 [julian@co et] It actually requires a little bit different thinking because once you
+ 326234 [julian@co et] Um the beginning is the beginning and the end is the end. It's simple.
  326279 [robert.dober] We shall however consider the possibility that the properties of

problem with accessors and dsl's
326199 [lyon2003@ly ] class CommandHandler
+ 326201 [vjoel@pa h. ] This is interpreted as local variable assignment. You can use the
+ 326203 [dblack@ru yp] See Joel's answer; I just wanted to add the gloss that the interpreter

Zlib.dll
326204 [azimuth-ruby] I've been keeping an eye on the mailing list and I haven't seen something

Odd Ruby 1.9.1.rc2 error message
326210 [mwlang@gm il] I've been largely successful in compiling Ruby 1.9.1.rc2 and launching
+ 326236 [julian@co et] How come 1.9.1 how come rc2 isn't on the site announced?
+ 326245 [matz@ru y- a] I think you've omitted important part of the message.  Could you fully
  326375 [mwlang@gm il] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 matz.

Can't create a new file
326216 [nebs_man@ho ] I have no idea what's going on.  I've read about a dozen forums about
326218 [botp@de mo t] # myfile = File.new("somefile.txt", "r+")
326222 [nebs_man@ho ] Thanks, it works now.  It had to do with opening for writing only.  I
326255 [shortcutter@] Well, you can do that but you need a different open mode: open for

active_scaffold
326220 [drubdrub@gm ] Trying to use active_scaffold.

API to determine traveling distance between two locations?
326226 [Aldric Giaco] I am looking for an API to allow me to look up traveling distance
326326 [vjoel@pa h. ] Just need to translate from js. HTH.
326327 [vjoel@pa h. ] Oh, just realized maybe you mean road distance, rather than great circle
326530 [Aldric Giaco] Yep.. That's what I mean :/

win32ole method missing
326228 [honksandsire] There seems to be a method missing in the TimeScaleValue object of
326230 [honksandsire] I should mention the TimeScaleValue object is part of Microsoft

[ANN] camellia_rb 1.2
326229 [sugano@ar e-] camellia_rb version 1.2 released.

Saving the web, charset problems and symbols problems
326231 [sak@pr xe to] I think that a lot of ruby scripts are for web crawling, web scrapping

YAML to anchor same strings in dumps
326233 [Gennady.Byst] Is there any way to make YAML alias same strings in dumps? The following co=
326334 [Gennady.Byst] module ComplexYamlObject

HABTM insertion deletes old entries
326235 [preethi1.s@t] I've 2 models Profile & User and they have HABTM relationship.
326257 [scott@th re ] In a HABTM relationship, assigning a new collection (using =) will delete
326260 [preethi1.s@t] It is working now.

Bug appears...
326238 [takashiemo_1] ...
326269 [rogerpack200] running ruby from within gdb then using "bt" backtrace might tell you

Object#singleton_class in Ruby 1.9?
326241 [ snk@gn .o g] I was under the impresssion that Ruby 1.9 will provide
326249 [dblack@ru yp] Not that I remember hearing about. I'd certainly like to see it.
326270 [matz@ru y- a] We still don't have consensus on the name.  eigenclass?
+ 326271 [gregory.t.br] I wonder if this controversy has died down.   There are people with
| + 326273 [james@gr yp ] I'm for singleton_class.  It's what the official documentation has
| | + 326278 [gwtmp01@ma .] eigenton_class?  :-)
| | | 326336 [jgabrielygal] I completely agree with this point of view. I don't mind which name
| | | 326347 [transfire@gm] I thought you were making an exclamation, until I realized that was
| | | 326367 [jgabrielygal] No problem. In Spain my name is used as an exclamation when someone
| | + 326428 [ snk@gn .o g] I filed a request for Object#singleton_class in the Ruby Issue Tracking
| |   326434 [dblack@ru yp] Good ol' RCR 231, or whatever it was :-)
| + 326314 [radek.bulat@] singleton_class is definitely the best (specially when we consider
+ 326288 [transfire@gm] Since you make mention of "eigenclass", that would seem to be your bent.
| 326292 [ snk@gn .o g] In that case, could we make the names more readable by adding an
| 326300 [transfire@gm] Interesting, I find the other more readable, 'class' is like a suffix to
| 326309 [ snk@gn .o g] The problem I have with words like "basename" is that, to me, they are
| 326323 [transfire@gm] Never_the_less this is English, a close relative of German, and it these
| 326329 [ snk@gn .o g] Good point and excellent illustration!  Until seeing your example, I
+ 326289 [dblack@ru yp] No, *please* don't. It would mean having to re-edit books as well as
| 326301 [transfire@gm] David! How else are you supposed to sell 2nd and 3rd editions! ;)
+ 326290 [ snk@gn .o g] Sorry, I only mentioned the other names because they were all proposed
+ 326380 [sean.ohalpin] Personally, I prefer singleton_class. But I would rather it had an
| 326394 [gregory.t.br] Definitely.  I was implying that I don't think *too* many people hate
| 326423 [james@gr yp ] matz_class()
+ 326400 [robert.dober] Actually I am totally against it, in core that is. It would be nice to
  + 326415 [transfire@gm] You are against having a method altogether, you mean?
  | 326460 [sean.ohalpin] I like this - how do you see it working alongside the proposed
  | + 326465 [dblack@ru yp] I wouldn't want to see 'extend' start to mean both adding a module to
  | | + 326474 [sean.ohalpin] I agree. After all, subclasses lookup class methods in a parent
  | | | 326494 [dblack@ru yp] But 'extend' already means something: add a module to the lookup path.
  | | | 326516 [sean.ohalpin] Yes - to the special lookup path shared by subclasses qua instances and clones.
  | | | 326554 [dblack@ru yp] I'm not sure what you mean by special. Every object has only one
  | | + 326526 [transfire@gm] Ah, sorry I wasn't more clear. Yes, I meant it would create an anonymous
  | |   + 326555 [dblack@ru yp] I'd be interested in seeing that article if you can find it. It
  | |   | 326595 [transfire@gm] Yea I found it!
  | |   | + 326598 [james@gr yp ] Those are great reading.  Thanks for sharing.
  | |   | + 326620 [dblack@ru yp] I think it's very good advice for many situations (#extend has always
  | |   |   326729 [transfire@gm] Can you think of a good example of where it is NOT good? All I can think
  | |   |   326736 [dblack@ru yp] I disagree. I think that excessive meta-ness is to a large extent in
  | |   |   326798 [robert.dober] Well is that not exactly what Tom meant? Maybe someone can update me
  | |   |   326801 [dblack@ru yp] It depends what you mean by shielded. If I use a library that extends
  | |   |   326845 [robert.dober] It is IMHO preferable that, in case of a name conflict, the framework
  | |   |   326854 [dblack@ru yp] To be honest, I'm having a hard time even thinking of a case when
  | |   + 326583 [robert.dober] ed module.
  | + 326467 [robert.dober] We surely can!
  | + 326529 [transfire@gm] Hey, that's a really good point. #class_extension is very much the same
  + 326421 [dblack@ru yp] I'd like to have a singleton_class method, but even if there isn't
    326436 [robert.dober] I think #singleton_class is a great name. I want it, but rather than

MySQL gem maintainer and project page?
326247 [luislavena@g] I'm looking into RubyForge and the gem specification for any reference
326268 [rogerpack200] might help
326389 [abc3def@gm i] I have been playing with mysql-ruby-2.8 compilation last few days, and
326407 [rogerpack200] That's a great idea.  If either of you would like contribute your

Creating a ruby class with mass assignment
326253 [uslxycdabssm] How do I create a ruby class that has mass assignment functionality?  I
+ 326256 [rupert@ru es] def initialize(args = {})
+ 326261 [shortcutter@] irb(main):001:0> Test = Struct.new :foo, :bar, :baz do

uninitialized constant error
326254 [youhaodeyi@g] 1. base_cls.rb
326295 [perfectly.no] Maybe you meant to prefix the first line in base_cls.rb with "require"?
326352 [youhaodeyi@g] Oh, sorry, I forgot to type the 'require'. But the problem is still

Re: RDoc 2.3 now with Darkfish, without CHM and extra HTML t
326272 [rogerpack200] It definitely looks better.
+ 326274 [rogerpack200] +1 for me.
| 329866 [rogerpack200] Now that I think about it, including the source of C methods which have
+ 326321 [drbrain@se m] I'll fix this, either these files shouldn't show up (RDoc bug) or
| 326348 [drbrain@se m] Actually, it's a Hoe issue. I'll have fixed documentation up when I'm
+ 326325 [transfire@gm] Right. I see. It's on the class pages, but not on the main page.

[ANN] Ruby 1.9.1 is released
326276 [yugui@yu ui ] I am proud to announce the release of Ruby 1.9.1. This is the first
+ 326281 [paqs140482@g] Good news.
+ 326283 [james@gr yp ] Three cheers for the entire Ruby core team who has worked so hard to
| + 326284 [gregory.t.br] Nah, we'll need to wait for Ruby 2 for that :)
| | 326285 [james@gr yp ] We may still have time to get that out too.  ;)
| | 326286 [acooper@pr t] I think that as long as the language changes faster than COBOL we are
| + 326313 [robert.dober] Wait 1 minute, I thought this *was* Perl 6, do not tell me I am in the
| + 326335 [billk@ct .c ] +1        !!!
+ 326287 [gregory.t.br] A huge thanks to all of ruby-core for this, and for your hard work on
| 326713 [roberto@RE O] Kudos to the team!
+ 326294 [takahashimm@] Congrats!!!
+ 326296 [why@ru y- an] Capital job, all of you. Nobu, Tanaka Akira, usa, yugui. And
+ 326303 [janfri.rubyf] Thanks a lot.
| 326310 [dave@pr gp o] Final beta pushes early next week :)
| 326312 [radek.bulat@] Congratulations and thanks for all your job to Matz, ko1 and the rest of us=
+ 326305 [charles.nutt] Congratulations! Now that the stable release is out, we will pull 1.9.1
| 326306 [devrubygem@g] Congradulations guys!! I am a noob so this might be a silly question to the
| 326330 [hramrach@ce ] I suggest you wait for the Windows One Click installer for 1.9/2.0.
| 326333 [devrubygem@g] Hahahahaa Thanks Michal, you answered my question at the same time I was
+ 326328 [gethemant@gm] Awesome all the way!
| 326331 [devrubygem@g] Are there going to be a one click installer for this new version? I'm having
| 326339 [hramrach@ce ] The problem is not with Ruby itself but with the libraries it uses
| + 326341 [devrubygem@g] Cool, thanks!!! I will be patiently waiting :)
| + 326343 [azimuth-ruby] Yeah, I'm having some problems installing too... I can do the compiling,
+ 326376 [sean.ohalpin] Wonderful news! Congratulations!
+ 327496 [villas82@gm ] I'm a kind of confused. It seem as this is the first production
  327505 [james@gr yp ] Sorry.  I have updated the link now.

[QUIZ] Hexagonal Grid Game Board (#190)
326280 [yahivin@gm i] Summary of quiz #189 coming in a day or two.
+ 326282 [james@gr yp ] Ooo, I like this problem.  Nice one Daniel!  :)
| 326317 [jgabrielygal] Me too, crossing my fingers to have some time to make a try...
+ 326621 [sander.land@] Here is my solution.
+ 326683 [cmdicely@gm ] Here's my solution. The request for the unobstructed distance and then
+ 327288 [yahivin@gm i] There were two solutions to this weeks quiz. One by Sander Land using

Re: Ruby 1.9.1 is released
326293 [james.herdma] /repos/ruby/tags/v1_9_1_0/NEWS.
326298 [rmagick@gm i] Con grat u lations to Matz, Koichi, Yugui, and everybody who worked so
326299 [boblmartens@] Congratulations to everyone involved. Fine work!
326304 [ snk@gn .o g] Well put, sir!  Indeed,
326344 [sb@6t se se ] Thanks for this awesome release!
326345 [rogerpack200] Luis plans on releasing a mingw 1.8.6 and a mingw 1.9, so yeah [he was
326346 [devrubygem@g] Cool.. :)
326363 [ansuga@gm il] Thanks to all the Ruby's team development for their incredible job.
326366 [azimuth-ruby] Fantastic! Thanks!
326368 [maurice.enci] Ruby banzaaaaaaaaaai!
326371 [saravani20@g] Ruby Rocks :)
326386 [wujunchen@gm] How can I make it works in cygwin?
326387 [wujunchen@gm] After downloaded the package from the ftp instead of checking out from
326418 [danielroux@g] Thanks to everybody involved, for all the effort you put into this, for
326445 [aquasync@gm ] This is great - nice work by the ruby team!
326511 [parasew@gm i] we are currently preparing Ruby 1.9.1-p0 and 1.8.7-p72 binary packages

binding in ruby1.9
326297 [tim.pease@gm] Could someone explain why this code does not work in ruby1.9 and
326307 [charles.nutt] What an unusual feature to keep coming up.
326311 [tim.pease@gm] Okay, that explanation makes sense. My new implementation (following
326316 [charles.nutt] Even better!
threads.html
top