# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=1160

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1161

---

## [Multiple rake build files? large rake files](https://www.ruby-forum.com/t/multiple-rake-build-files-large-rake-files/133140)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 12, 2008, 9:29am UTC](https://www.ruby-forum.com/t/multiple-rake-build-files-large-rake-files/133140 "2008-04-12T09:29:35Z")

</div>

I’m using rake to build small java applications and have hit the ceiling, or my ceiling, for how “large” a single file should be. I want to break my rake files into pieces somehow, and even have multiple rake files …

---

## [Delete\_if, select and (lack of) delete\_if!, self.POLS == false](https://www.ruby-forum.com/t/delete-if-select-and-lack-of-delete-if-self-pols-false/134527)

<div class="topic-metadata">

**Author:** [@Saku\_Y](https://www.ruby-forum.com/u/Saku_Y)\
**Replies:** 23\
**Last updated:** [April 12, 2008, 8:56am UTC](https://www.ruby-forum.com/t/delete-if-select-and-lack-of-delete-if-self-pols-false/134527 "2008-04-12T08:56:49Z")

</div>

Hey everyone, I was looking today for version of Array#select that would mutate the array by deleting selected elements from it. I first looked at delete\_if, then noticed that it actually mutates original array and…

---

## [Update on specs and String](https://www.ruby-forum.com/t/update-on-specs-and-string/134575)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 8:24am UTC](https://www.ruby-forum.com/t/update-on-specs-and-string/134575 "2008-04-12T08:24:41Z")

</div>

I’ve spent the better part of this week working on String with the targeted goal of implementing the subset of String that’s required to run Rails. Below is a list of the methods that we see Rails using, and the specs…

---

## [$B%V%m%C%/$KBP$9$k%V%m%C%/0z?t$N07$$$K$D$$$F(B](https://www.ruby-forum.com/t/b-v-m-c-kbp-9-k-v-m-c-0z-t-n07-k-d-f-b/134271)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 2\
**Last updated:** [April 12, 2008, 8:22am UTC](https://www.ruby-forum.com/t/b-v-m-c-kbp-9-k-v-m-c-0z-t-n07-k-d-f-b/134271 "2008-04-12T08:22:21Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B 1.9e$B$G$O!"%V%m%C%/$N0z?t$K%V%m%C%/0z?t$r4^$a$k$3$H$,$G$-$k$h$&$G$9$,e(B e$B%V%m%C%/$r\<u$1\<h$C$?\>l9g$K$be(B block\_given? e$B$O56$G$"$je(B e$B$^$?e(B yield e$B$b$G$-$J$$\>uBV$K$J$C$F$$$^$9!#e(B …

---

## [Ruby\_init\_stack and Init\_stack](https://www.ruby-forum.com/t/ruby-init-stack-and-init-stack/134573)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 6:28am UTC](https://www.ruby-forum.com/t/ruby-init-stack-and-init-stack/134573 "2008-04-12T06:28:21Z")

</div>

e$B$J$+$@$G$9!#e(B e$B$3$NFs$D$N4X?t$O$\[$H$s$IF10l$J$N$G$^$H$a$h$&$H;W$$$^$9$,!"$3$l$Ge(B ia64-freebsde$B$G$NF0:n$OLdBj$J$$$G$7$g$&$+!#e(B Index: include/ruby/ruby.h — include/ruby/ruby.h (revision 15984) +++ includ…

---

## [Ruby Debugger](https://www.ruby-forum.com/t/ruby-debugger/134218)

<div class="topic-metadata">

**Author:** [@samrus](https://www.ruby-forum.com/u/samrus)\
**Replies:** 7\
**Last updated:** [April 12, 2008, 6:24am UTC](https://www.ruby-forum.com/t/ruby-debugger/134218 "2008-04-12T06:24:50Z")

</div>

Before I start I’d like to say how happy I am for finding this forum, and the mailing list. I’m very glad to find like-minded Ruby enthusiasts like you guys! Right, as you can see from the link below, I have a custom-…

---

## [Packing GC globals](https://www.ruby-forum.com/t/packing-gc-globals/134570)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 6:09am UTC](https://www.ruby-forum.com/t/packing-gc-globals/134570 "2008-04-12T06:09:39Z")

</div>

e$B$J$+$@$G$9!#e(B gc.ce$B$N%0%m!\<%P%kJQ?t$r9=B$BN$K$^$H$a$h$&$H;W$$$^$9$,!"L\>A0$H$+9=e(B e$BB$$H$+!"8f0U8+Jg=8!#e(B Index: gc.c — gc.c (revision 15984) +++ gc.c (working copy) @@ -85,17 +85,7 @@ void \*alloca (); …

---

## [Source\_filenames removed](https://www.ruby-forum.com/t/source-filenames-removed/134567)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 5:45am UTC](https://www.ruby-forum.com/t/source-filenames-removed/134567 "2008-04-12T05:45:42Z")

</div>

e$B$J$+$@$G$9!#e(B e$B$9$G$Ke(Biseqe$B$K%3%s%Q%$%k$7$?8e$G$Oe(Bnd\_filee$B$O;H$o$J$/$J$C$F$$$k$N$G!"e(B source\_filenamese$B4X78$r\>C$7$^$7$?!#2?$+LdBj$,5/$-$?$i65$($F$/$@$5e(B e$B$$!#e(B

---

## [My error or bug in "attr\_reader"?](https://www.ruby-forum.com/t/my-error-or-bug-in-attr-reader/134324)

<div class="topic-metadata">

**Author:** [@Hexren](https://www.ruby-forum.com/u/Hexren)\
**Replies:** 12\
**Last updated:** [April 12, 2008, 5:21am UTC](https://www.ruby-forum.com/t/my-error-or-bug-in-attr-reader/134324 "2008-04-12T05:21:10Z")

</div>

Hi guys. The code posted below actually modifies the array in the object. Am I doing something wrong here ? If not, this should imho be included in the doc. It seems counterintuitive to me :wink: Regards Oliver c…

---

## [Writing a customised Ruby interpreter with Rice](https://www.ruby-forum.com/t/writing-a-customised-ruby-interpreter-with-rice/134568)

<div class="topic-metadata">

**Author:** [@unnali](https://www.ruby-forum.com/u/unnali)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 4:45am UTC](https://www.ruby-forum.com/t/writing-a-customised-ruby-interpreter-with-rice/134568 "2008-04-12T04:45:32Z")

</div>

Hi all, I don’t normally write on the topic of Ruby itself, but I figure this might be useful to those out there interested in extending Ruby with C++/classes: http://tinyurl.com/69ett9 - Writing a customised Ruby in…

---

## [Need help in option parser](https://www.ruby-forum.com/t/need-help-in-option-parser/134561)

<div class="topic-metadata">

**Author:** [@kgoh](https://www.ruby-forum.com/u/kgoh)\
**Replies:** 3\
**Last updated:** [April 12, 2008, 1:15am UTC](https://www.ruby-forum.com/t/need-help-in-option-parser/134561 "2008-04-12T01:15:40Z")

</div>

I am using optionparser to take in arguement. However, it seems like the option parser does not accept “&” “|” “\<” “\>” as the arguement when they are entered from the command line. For example, I use opts.on("-d optio…

---

## [Ruby is Almost Ready!](https://www.ruby-forum.com/t/ruby-is-almost-ready/134548)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 3\
**Last updated:** [April 12, 2008, 12:05am UTC](https://www.ruby-forum.com/t/ruby-is-almost-ready/134548 "2008-04-12T00:05:17Z")

</div>

Down in the dumps because Ruby’s just not ready for the enterprise? Well cheer up! Help is on the way, from Phusion! http://www.rubyenterpriseedition.com/ (Coming Soon) Soon to be followed by Enterprise Ruby Beans, W…

---

## [Random name generator!](https://www.ruby-forum.com/t/random-name-generator/134451)

<div class="topic-metadata">

**Author:** [@probability](https://www.ruby-forum.com/u/probability)\
**Replies:** 3\
**Last updated:** [April 11, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/random-name-generator/134451 "2008-04-11T23:11:00Z")

</div>

Hello to all; I’m testing out different ways to output randomly generated names. I’ve toyed with some basic algorithms but recently I’ve become hooked on the idea of using a Markov chain in the process to generate nam…

---

## [Which way is the best way to require another file in .rb](https://www.ruby-forum.com/t/which-way-is-the-best-way-to-require-another-file-in-rb/134531)

<div class="topic-metadata">

**Author:** [@Eddy\_Xu](https://www.ruby-forum.com/u/Eddy_Xu)\
**Replies:** 5\
**Last updated:** [April 11, 2008, 8:31pm UTC](https://www.ruby-forum.com/t/which-way-is-the-best-way-to-require-another-file-in-rb/134531 "2008-04-11T20:31:08Z")

</div>

I put all source in to lib/ path, and named a lib/foo path for my foo project. However, is there a better approach to require the ruby source which in lib/foo/ from the file in the same path. For example, lib/foo/db.…

---

## [Sending emails](https://www.ruby-forum.com/t/sending-emails/134509)

<div class="topic-metadata">

**Author:** [@mickey](https://www.ruby-forum.com/u/mickey)\
**Replies:** 7\
**Last updated:** [April 11, 2008, 7:52pm UTC](https://www.ruby-forum.com/t/sending-emails/134509 "2008-04-11T19:52:23Z")

</div>

Is there a gem for sending emails? I want to automate a process for sending emails containing images. I have it running in perl using Mime::Lite, and I was hoping that there was something similar in Ruby.

---

## [Ditz 0.2 Released](https://www.ruby-forum.com/t/ditz-0-2-released/134530)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 0\
**Last updated:** [April 11, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/ditz-0-2-released/134530 "2008-04-11T19:12:29Z")

</div>

ditz version 0.2 has been released! http://ditz.rubyforge.org Ditz is a simple, light-weight distributed issue tracker designed to work with distributed version control systems like darcs and git. Ditz maintains an…

---

## [Tulsa Ruby Workshop, April 26th](https://www.ruby-forum.com/t/tulsa-ruby-workshop-april-26th/134526)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 11, 2008, 6:24pm UTC](https://www.ruby-forum.com/t/tulsa-ruby-workshop-april-26th/134526 "2008-04-11T18:24:10Z")

</div>

I wanted to get the word out about the upcoming Tulsa Ruby Workshop. This will take place on April 26th, from 10 AM to 4 PM in Tulsa, OK. The workshop has a great line up of intro Ruby and Rail content. I’m honored t…

---

## [OT: "Unix" in Japanese](https://www.ruby-forum.com/t/ot-unix-in-japanese/134409)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 12\
**Last updated:** [April 11, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/ot-unix-in-japanese/134409 "2008-04-11T17:22:54Z")

</div>

Since I figure there are probably a few Japanese Unix hackers on this list (Matz at minimum), this might be the place to ask: How do you “spell” the word “Unix” in Japanese? Do you use some kind of katakana formation…

---

## [Binding of caller in Ruby 1.9](https://www.ruby-forum.com/t/binding-of-caller-in-ruby-1-9/134460)

<div class="topic-metadata">

**Author:** [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Replies:** 1\
**Last updated:** [April 11, 2008, 5:11pm UTC](https://www.ruby-forum.com/t/binding-of-caller-in-ruby-1-9/134460 "2008-04-11T17:11:38Z")

</div>

Does anybody know of a way to get access in Ruby 1.9 to the binding of the caller of the function that’s currently executing? –Ken

---

## [Zlib file decompression EOL issue](https://www.ruby-forum.com/t/zlib-file-decompression-eol-issue/134517)

<div class="topic-metadata">

**Author:** [@peho](https://www.ruby-forum.com/u/peho)\
**Replies:** 0\
**Last updated:** [April 11, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/zlib-file-decompression-eol-issue/134517 "2008-04-11T17:06:28Z")

</div>

Hi, first thx for helping ! I’m trying to decompress some .gz files with zlip. Here’s the code that i use, taken from here http://www.misuse.org/science/2007/09/07/ruby-zlib-buffer-error-on-windows/ and modified to …

---

## [Gems setup.rb continued](https://www.ruby-forum.com/t/gems-setup-rb-continued/134371)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 1\
**Last updated:** [April 11, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/gems-setup-rb-continued/134371 "2008-04-11T16:56:57Z")

</div>

After a hack to work around the previous regular expression substitution problem, we continue … throw exception “Malformed version number” (due to $1 returning nil after a successful match) fixed my previous Rege…

---

## [SVN r93 is up](https://www.ruby-forum.com/t/svn-r93-is-up/134213)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 3\
**Last updated:** [April 11, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/svn-r93-is-up/134213 "2008-04-11T16:43:56Z")

</div>

We now pass 1541/2468 specs (62%). A bunch of String specs were re-enabled since we no longer crash when parsing them. Work is still ongoing to start running the trunk rubinius specs, but we need some more features in…

---

## [Hash#flatten](https://www.ruby-forum.com/t/hash-flatten/134511)

<div class="topic-metadata">

**Author:** [@okkez](https://www.ruby-forum.com/u/okkez)\
**Replies:** 1\
**Last updated:** [April 11, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/hash-flatten/134511 "2008-04-11T16:35:07Z")

</div>

okkez e$B$G$9!#e(B e$B%j%U%!%l%s%9%^%K%e%"%k$N:n6H$r$7$F$$$F5$$E$$$?$N$G$9$,!"e(BHash#flatten e$B$NF0:n$,%3%a%s%H$He(B e$B0\[$J$C$F$$$k$h$&$G$9!#%3!\<%I$NF0$-$K%3%a%s%H$r9g$o$;$k%Q%C%A$r=q$$$F$\_$^$7$?!#e(B Index: hash.…

---

## [FXRuby versus Tk](https://www.ruby-forum.com/t/fxruby-versus-tk/134329)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 16\
**Last updated:** [April 11, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/fxruby-versus-tk/134329 "2008-04-11T16:32:09Z")

</div>

I’ve done some GUI program with Ruby/Tk, and am able to use it fairly well, but am considering a switch to FXRuby. Can someone give me a comparison of the two and provide me with a reason to either switch to FXRuby o…

---

## [Perspectives for unit and ui testing for Dynamic Silverlight](https://www.ruby-forum.com/t/perspectives-for-unit-and-ui-testing-for-dynamic-silverlight/134375)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 2\
**Last updated:** [April 11, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/perspectives-for-unit-and-ui-testing-for-dynamic-silverlight/134375 "2008-04-11T16:28:37Z")

</div>

Hi, I just watched Jeff Wilcox videos about the Silverlight testing framework (http://www.jeff.wilcox.name/2008/03/20/vid-silverlight-control-ut/) and questions come to my mind. Is this framework planned to be the “…

---

## [Saving form fields not working](https://www.ruby-forum.com/t/saving-form-fields-not-working/134472)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 3\
**Last updated:** [April 11, 2008, 3:12pm UTC](https://www.ruby-forum.com/t/saving-form-fields-not-working/134472 "2008-04-11T15:12:07Z")

</div>

I have a form on a page add\_flight.rhtml - \<%=form\_tag({:controller=\>“local\_flights”,:action=\>“shared”}, {:id=\>“add\_flight”, :method=\>“post”})%\> … \<%=submit\_tag(“Add your Flight Request”)%\> Then,\* in controller - \* …

---

## [Imap.fetch results in segfault (Ubuntu Dapper LTS, amd64)](https://www.ruby-forum.com/t/imap-fetch-results-in-segfault-ubuntu-dapper-lts-amd64/134504)

<div class="topic-metadata">

**Author:** [@alangano](https://www.ruby-forum.com/u/alangano)\
**Replies:** 0\
**Last updated:** [April 11, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/imap-fetch-results-in-segfault-ubuntu-dapper-lts-amd64/134504 "2008-04-11T14:41:22Z")

</div>

Hi all, I have a Dapper LTS box (amd64) and since I’ve applied this update (USN-596-1: Ruby vulnerabilities | Ubuntu security notices | Ubuntu) a mail script I have that has worked for a while now pauses for a minute o…

---

## [How to assignee each value to correspoding key while updat](https://www.ruby-forum.com/t/how-to-assignee-each-value-to-correspoding-key-while-updat/134471)

<div class="topic-metadata">

**Author:** [@bishnubapi](https://www.ruby-forum.com/u/bishnubapi)\
**Replies:** 1\
**Last updated:** [April 11, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/how-to-assignee-each-value-to-correspoding-key-while-updat/134471 "2008-04-11T14:29:28Z")

</div>

Hi all \*\*--my problem is that i get key and value .but i have to save in the database. but while saving it will save only one key and corresponding value ,but if i want to save more than one value to corresponding …

---

## [Trying (and failing) to load specific version of gem](https://www.ruby-forum.com/t/trying-and-failing-to-load-specific-version-of-gem/134502)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 2\
**Last updated:** [April 11, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/trying-and-failing-to-load-specific-version-of-gem/134502 "2008-04-11T14:06:00Z")

</div>

I wonder if someone can help with a problem which I’m sure is very simple and obvious, but I’m tearing my hair out. I have rubygems 1.0.1 installed. I have two gems of ActiveRecord installed (1.15.3 and 2.0.2). I si…

---

## [Var = nil if false; p var.nil? #=\> true | bug of the day?](https://www.ruby-forum.com/t/var-nil-if-false-p-var-nil-true-bug-of-the-day/134474)

<div class="topic-metadata">

**Author:** [@Arie\_Kusuma\_A](https://www.ruby-forum.com/u/Arie_Kusuma_A)\
**Replies:** 6\
**Last updated:** [April 11, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/var-nil-if-false-p-var-nil-true-bug-of-the-day/134474 "2008-04-11T12:53:27Z")

</div>

I tested it using Ruby 1.8.6 patch 111 and also Ruby 1.9.0 (revision 15968). var = nil if false var.nil? #=\> true I actually saw it from tobi’s blog, then I discussed with a perler who loves ruby as well, here’s a c…

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=1159)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=1161)
