# Ruby

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

[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:** 1490

---

## [The unit test that won't](https://www.ruby-forum.com/t/the-unit-test-that-wont/91655)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 5\
**Last updated:** [April 11, 2007, 10:23am UTC](https://www.ruby-forum.com/t/the-unit-test-that-wont/91655 "2007-04-11T10:23:13Z")

</div>

Aspiring to be a good programmer, I’m using Test::Unit for ClothRed, writing the test before I write the code, even. Which is all well and good, but I have a test, that produces an error while it is executed and not i…

---

## [ClothRed 0.1.0 released](https://www.ruby-forum.com/t/clothred-0-1-0-released/91664)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 10:16am UTC](https://www.ruby-forum.com/t/clothred-0-1-0-released/91664 "2007-04-11T10:16:12Z")

</div>

= ClothRed HTML 2 Textile converter == What it is A script to convert HTML into Textile markup for use, for example, with RedCloth. == Requirements All you need is Ruby. == Get it Available as a gem on RubyForge: …

---

## [Procs vs. nested methods and variable scope](https://www.ruby-forum.com/t/procs-vs-nested-methods-and-variable-scope/91619)

<div class="topic-metadata">

**Author:** [@Jay\_McGavren](https://www.ruby-forum.com/u/Jay_McGavren)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 10:11am UTC](https://www.ruby-forum.com/t/procs-vs-nested-methods-and-variable-scope/91619 "2007-04-11T10:11:12Z")

</div>

I’m going to be re-using this technique at quite a few places in my code, so I want to be certain I have it right… I started with code like this, within a method: for playlist in playlists with\_option\_values(‘find’, …

---

## [What happens to instance variables in modules when they are](https://www.ruby-forum.com/t/what-happens-to-instance-variables-in-modules-when-they-are/91574)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 11, 2007, 10:06am UTC](https://www.ruby-forum.com/t/what-happens-to-instance-variables-in-modules-when-they-are/91574 "2007-04-11T10:06:12Z")

</div>

Hi, Please take a look at the code pasted at this URL (I will include the code in the body of this message (below) for future readers, but the rafb.net post will give readers for the next 24 hours something better to…

---

## ["Portable" Ruby](https://www.ruby-forum.com/t/portable-ruby/91407)

<div class="topic-metadata">

**Author:** [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Replies:** 5\
**Last updated:** [April 11, 2007, 9:57am UTC](https://www.ruby-forum.com/t/portable-ruby/91407 "2007-04-11T09:57:10Z")

</div>

I’m wondering if it’s feasible at all to package a Ruby environment as a “Portable App” (along the lines of http://www.portableapps.com). The idea is to have a fully-functional Ruby environment that executes entirely…

---

## [Subconcious ruby poetry](https://www.ruby-forum.com/t/subconcious-ruby-poetry/83849)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 8:25am UTC](https://www.ruby-forum.com/t/subconcious-ruby-poetry/83849 "2007-04-11T08:25:56Z")

</div>

And here I was, polishing my thesis, a Ruby treatise, when alas! it suddenly occurs to me… within the table of contents sparkles shyly, a thread of subconscious Ruby poetry: 1.6 Ruby programming language 1.6.1 …

---

## [Re. NameError: uninitialized constant Date::ABBR\_MONTHS](https://www.ruby-forum.com/t/re-nameerror-uninitialized-constant-date-abbr-months/91659)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 8:22am UTC](https://www.ruby-forum.com/t/re-nameerror-uninitialized-constant-date-abbr-months/91659 "2007-04-11T08:22:56Z")

</div>

Jigar G. wrote: Please help Hi Gosar, In your irb example you have DATE::ABBR\_MONTHS instead of Date::ABBR\_MONTHS. In this case Ruby interprets DATE as a constant instead of a class, therefore you get an error. He…

---

## [Rake segmentation fault](https://www.ruby-forum.com/t/rake-segmentation-fault/91630)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 7:15am UTC](https://www.ruby-forum.com/t/rake-segmentation-fault/91630 "2007-04-11T07:15:50Z")

</div>

Hello, I have a problem not directly related with the language itself but (maybe) with rake : I get a segfault when running rake:functionals since I’ve updated my system (to rails 1.2.2 and rake 0.7.2) I don’t have an…

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229144)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 5:11am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229144 "2007-04-11T05:11:42Z")

</div>

Begin forwarded message:

---

## [Troubleshooting the 'system' call](https://www.ruby-forum.com/t/troubleshooting-the-system-call/91636)

<div class="topic-metadata">

**Author:** [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 12:50am UTC](https://www.ruby-forum.com/t/troubleshooting-the-system-call/91636 "2007-04-11T00:50:29Z")

</div>

I was tyring to do a system call using sudo, like this: system(“sudo /some/dir/somewhere/rubyprog.rb”,“opt1”, “opt2”) but it kept giving me the wrong answer…always false. After some head knocking, I realized that thi…

---

## [Re. Mac Mail .emlx format](https://www.ruby-forum.com/t/re-mac-mail-emlx-format/91633)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 12:01am UTC](https://www.ruby-forum.com/t/re-mac-mail-emlx-format/91633 "2007-04-11T00:01:26Z")

</div>

which lead me to: Mailbox Converter Hope that helps. Thanks Dale, that will do nicely. I’ll have to start using Google Code Search myself :wink: Cheers, Chris

---

## [Fwd: ruport-util 0.2.0](https://www.ruby-forum.com/t/fwd-ruport-util-0-2-0/91627)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/fwd-ruport-util-0-2-0/91627 "2007-04-10T22:59:20Z")

</div>

Hey Folks, This release of ruport-util integrates Ruport::Mailer, as it will disappear from developmental Ruport as of 0.9.4, due out later today. If you’ve not yet checked out our developmental releases of Ruport, or …

---

## [Uninitialized constant Tidy](https://www.ruby-forum.com/t/uninitialized-constant-tidy/91618)

<div class="topic-metadata">

**Author:** [@harry](https://www.ruby-forum.com/u/harry)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-tidy/91618 "2007-04-10T21:54:48Z")

</div>

Hi, I was trying to start my app, but always got this error: c:/user/software/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_supp ort/dependencies.rb:266:in load\_missing\_constant': uninitialized constant T…

---

## [Ruby classifier](https://www.ruby-forum.com/t/ruby-classifier/90366)

<div class="topic-metadata">

**Author:** [@Ryo\_F](https://www.ruby-forum.com/u/Ryo_F)\
**Replies:** 5\
**Last updated:** [April 10, 2007, 9:43pm UTC](https://www.ruby-forum.com/t/ruby-classifier/90366 "2007-04-10T21:43:22Z")

</div>

I tried installing ruby classifier using sudo gem install classifier but when I try to use classifier I get irb(main):001:0\> require “classifier” LoadError: no such file to load – classifier from (irb):1:in \`require…

---

## [Ruby Gem Creates Broken Batch File for Rake](https://www.ruby-forum.com/t/ruby-gem-creates-broken-batch-file-for-rake/91594)

<div class="topic-metadata">

**Author:** [@runxc](https://www.ruby-forum.com/u/runxc)\
**Replies:** 3\
**Last updated:** [April 10, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/ruby-gem-creates-broken-batch-file-for-rake/91594 "2007-04-10T21:42:09Z")

</div>

Recently I have been integrating Rake with Nant. Specifically, I have been creating Nant tasks that trigger Rake. In the process of doing this, I have run into a problem: namely when Rake fails, Nant thinks that it su…

---

## [Mac Mail .emlx format](https://www.ruby-forum.com/t/mac-mail-emlx-format/91604)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/mac-mail-emlx-format/91604 "2007-04-10T21:41:09Z")

</div>

Hi Everyone, I’m trying to write a Ruby script that needs to convert mail messages from Mac Mail .emlx proprietary format to mbox format. I found an emlx-to-mbox converter, but I’d really like a Ruby library to do the …

---

## [Can erb produce erb?](https://www.ruby-forum.com/t/can-erb-produce-erb/91327)

<div class="topic-metadata">

**Author:** [@talkin\_ruby](https://www.ruby-forum.com/u/talkin_ruby)\
**Replies:** 9\
**Last updated:** [April 10, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/can-erb-produce-erb/91327 "2007-04-10T20:05:52Z")

</div>

just wondering if you could do something like this… ERB.new( some\_erb\_string ).result # ‘\<%= result %\>’ another erb template so that way the result could be processed by another ERB.new

---

## [Re: Getting to 100 (#119)](https://www.ruby-forum.com/t/re-getting-to-100-119/91588)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/re-getting-to-100-119/91588 "2007-04-10T19:54:49Z")

</div>

http://davidtran.doublegifts.com/blog/?p=11 Reuse permutations method on my Ruby Q. (#106) Chess960 solution. def permutations(elements) return \[elements\] if elements.size \<= 1 result = \[\] elements.uniq.each do |p| …

---

## [Fwd: Please Forward: Ruby Quiz Submission](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229089)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229089 "2007-04-10T19:26:44Z")

</div>

Begin forwarded message:

---

## [Ruby and microsoft sql server](https://www.ruby-forum.com/t/ruby-and-microsoft-sql-server/91582)

<div class="topic-metadata">

**Author:** [@PaSSS\_lo\_Geyer](https://www.ruby-forum.com/u/PaSSS_lo_Geyer)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 7:15pm UTC](https://www.ruby-forum.com/t/ruby-and-microsoft-sql-server/91582 "2007-04-10T19:15:41Z")

</div>

hi, anyone here has experience with microsoft sql server? i did this little program: #!/usr/bin/env ruby require ‘dbi’ conn = DBI.connect(‘DBI:ODBC:jornaldedebates’, ‘sa’, ‘fodase’) puts conn.tables but when i try …

---

## [Remote require (was A python question...)](https://www.ruby-forum.com/t/remote-require-was-a-python-question/91585)

<div class="topic-metadata">

**Author:** [@luispulidoman](https://www.ruby-forum.com/u/luispulidoman)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/remote-require-was-a-python-question/91585 "2007-04-10T19:11:41Z")

</div>

On 4/6/07, Luciano R. removed\_email\_address@domain.invalid wrote: Hello, I happen to enjoy Python and Ruby. Importing modules from zip files was proposed in PEP-273 \[1\] Reading about importing from a zip file in Pyt…

---

## [Re: TZ bug in Date and DateTime.strftime formatter?](https://www.ruby-forum.com/t/re-tz-bug-in-date-and-datetime-strftime-formatter/91572)

<div class="topic-metadata">

**Author:** [@jah](https://www.ruby-forum.com/u/jah)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/re-tz-bug-in-date-and-datetime-strftime-formatter/91572 "2007-04-10T17:56:32Z")

</div>

!#$%#$@ (As they used to say in the comic books, not realizing that they were coding in perl) Really? I thought it was a Ruby golf solution. As a newcomer to this list I’m dismayed by the constant anti-Perl snipes…

---

## [Bug in Time.parse?](https://www.ruby-forum.com/t/bug-in-time-parse/91568)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 10, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/bug-in-time-parse/91568 "2007-04-10T16:36:19Z")

</div>

Hi, I stumbled across some odd behavior when using Time.parse. Apparently \<=\> fails on Time objects generated by Time.parse when the compared objects are equal. The parsed object appears smaller to \<=\>. VERSION =\> …

---

## [TZ bug in Date and DateTime.strftime formatter?](https://www.ruby-forum.com/t/tz-bug-in-date-and-datetime-strftime-formatter/90737)

<div class="topic-metadata">

**Author:** [@rhubarb](https://www.ruby-forum.com/u/rhubarb)\
**Replies:** 6\
**Last updated:** [April 10, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/tz-bug-in-date-and-datetime-strftime-formatter/90737 "2007-04-10T16:34:38Z")

</div>

Is this a bug? I’m trying to get ruby to format a date, time or datetime to the proper format for xmltv. they key is in the timezone - I want it in +0100 format. So look at this irb session. First create some summer…

---

## [Regexp -how to match this?](https://www.ruby-forum.com/t/regexp-how-to-match-this/91464)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 9\
**Last updated:** [April 10, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/regexp-how-to-match-this/91464 "2007-04-10T15:51:13Z")

</div>

what kind of pattern will match the part of sentence before a tag? for instance: for this sentence: This forum is connected to a mailing list that is read by thousands of people. it’ll match: This forum is connect…

---

## [Infinate Loop - Please Advise](https://www.ruby-forum.com/t/infinate-loop-please-advise/91478)

<div class="topic-metadata">

**Author:** [@Merrie](https://www.ruby-forum.com/u/Merrie)\
**Replies:** 12\
**Last updated:** [April 10, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/infinate-loop-please-advise/91478 "2007-04-10T15:32:59Z")

</div>

This program produces an infinate loop. I am learning from Learn to Program and do not have a clear example how to do this particular example. It is suppose to count down the bottles and repeat the phrase until it rea…

---

## [What GUI toolkit do you use and why?](https://www.ruby-forum.com/t/what-gui-toolkit-do-you-use-and-why/91523)

<div class="topic-metadata">

**Author:** [@r3madi](https://www.ruby-forum.com/u/r3madi)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 2:43pm UTC](https://www.ruby-forum.com/t/what-gui-toolkit-do-you-use-and-why/91523 "2007-04-10T14:43:50Z")

</div>

Well I have developed GUIs in Python using wxPython so I am not too new to GUI building but I was wondering which GUI toolkit do you guys use? I have googled GUI toolkits and I am pretty impressed with the “fxRuby” to…

---

## [Fwd: PleaseForward: Ruby QuizSubmission](https://www.ruby-forum.com/t/fwd-pleaseforward-ruby-quizsubmission/229086)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 2:12pm UTC](https://www.ruby-forum.com/t/fwd-pleaseforward-ruby-quizsubmission/229086 "2007-04-10T14:12:45Z")

</div>

Begin forwarded message:

---

## [London Ruby User Group - 16th April, 2007](https://www.ruby-forum.com/t/london-ruby-user-group-16th-april-2007/91551)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 11:08am UTC](https://www.ruby-forum.com/t/london-ruby-user-group-16th-april-2007/91551 "2007-04-10T11:08:56Z")

</div>

Hi all, The next meeting of the London Ruby U. Group is fast approaching. Date: April 16th Time: 6:30pm onwards Location: the Skills Matter offices at 1 Sekeford Street, EC1R 0BEL\[1\] Closest tube: Farringdon Talk: …

---

## [Softie in Space - a Duck-Typing connection](https://www.ruby-forum.com/t/softie-in-space-a-duck-typing-connection/91513)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 10:37am UTC](https://www.ruby-forum.com/t/softie-in-space-a-duck-typing-connection/91513 "2007-04-10T10:37:51Z")

</div>

Today, Charles Simonyi, a former Microsoft architect, and Martha Stewart boyfriend, became the latest billionaire space tourist. This news caused me to refresh my knowledge of Simonyi, best known for inventing “hungar…

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

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