# Ruby

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

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

---

## [NaN Error](https://www.ruby-forum.com/t/nan-error/92180)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 9:19am UTC](https://www.ruby-forum.com/t/nan-error/92180 "2007-04-17T09:19:36Z")

</div>

ruby --version ruby 1.8.5 (2006-12-25 patchlevel 12) \[sparc-solaris2.8\] irb Float::MAX =\> 1.79769313486232e+308 1.0e+300 =\> 1.0e300 1.0e+301 =\> NaN 1.0e+308 =\> NaN 1.0e+309 =\> NaN 1.0e+700 =\> …

---

## [\[ANN\] Rassmalog 4.0.0](https://www.ruby-forum.com/t/ann-rassmalog-4-0-0/92226)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 8:32am UTC](https://www.ruby-forum.com/t/ann-rassmalog-4-0-0/92226 "2007-04-17T08:32:48Z")

</div>

Rassmalog is a static blog engine based on RSS 2.0, YAML, and Textile. It features an extensible blog formatting mechanism, easy configuration, and automatic tagging, archiving, syntax coloring, and table of contents. …

---

## [Suggestions needed to go DRY](https://www.ruby-forum.com/t/suggestions-needed-to-go-dry/92105)

<div class="topic-metadata">

**Author:** [@gaurav\_bagga](https://www.ruby-forum.com/u/gaurav_bagga)\
**Replies:** 3\
**Last updated:** [April 17, 2007, 6:41am UTC](https://www.ruby-forum.com/t/suggestions-needed-to-go-dry/92105 "2007-04-17T06:41:25Z")

</div>

Hi All, Recently I was in a situation where I needed to add a functionality to a method but I couldn’t change the method signature as people in my team were using the same method at many places.I joined the team la…

---

## [Iterate through an array of method names to an object](https://www.ruby-forum.com/t/iterate-through-an-array-of-method-names-to-an-object/92186)

<div class="topic-metadata">

**Author:** [@sheepfunk](https://www.ruby-forum.com/u/sheepfunk)\
**Replies:** 5\
**Last updated:** [April 17, 2007, 4:43am UTC](https://www.ruby-forum.com/t/iterate-through-an-array-of-method-names-to-an-object/92186 "2007-04-17T04:43:10Z")

</div>

I’ve been trying to create a iterator that will run through and array of method names, sending each one to an object. For some reason the object doesn’t like the method names if I send them via an iterator, but if I s…

---

## [Ext/pty/expect\_sample.rb](https://www.ruby-forum.com/t/ext-pty-expect-sample-rb/92128)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 4:41am UTC](https://www.ruby-forum.com/t/ext-pty-expect-sample-rb/92128 "2007-04-17T04:41:10Z")

</div>

è¥¿å±±å’Œåºƒã§ã™ã€‚ expect\_sample.rb ã‚’è©¦ã—ã¦ã¿ãŸã‚‰ã€expect("\> ")ãŒã‚·ãƒ³ãƒœãƒªãƒƒã‚¯ãƒªãƒ³ã‚¯ã« ã²ã£ã‹ã‹ã£ã¦ã€ã†ã¾ãå‹•ã„ã¦ã„ã¾ã›ã‚“ã§ã—ãŸã€‚

---

## [Rocket Doc-it 1.0.0](https://www.ruby-forum.com/t/rocket-doc-it-1-0-0/92135)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 3:20am UTC](https://www.ruby-forum.com/t/rocket-doc-it-1-0-0/92135 "2007-04-17T03:20:06Z")

</div>

=Rocket Doc-it: Community Commented Rdocs == What it is \*Rocket Dock-it is a simple way for the Ruby community to interact with Rdocs. Most of the user documentation for Ruby is spread out over many different webs…

---

## [Tcp socket error](https://www.ruby-forum.com/t/tcp-socket-error/92204)

<div class="topic-metadata">

**Author:** [@tomrobinson](https://www.ruby-forum.com/u/tomrobinson)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 2:53am UTC](https://www.ruby-forum.com/t/tcp-socket-error/92204 "2007-04-17T02:53:04Z")

</div>

I’ve had no problem with this program with windows 2000 and xp. However I bought a computer and vista comes with it. With Ruby 1.8.6-i386-mswin I get the following error: require ‘net/ftp’ ftp = Net::FTP.new(‘ftp.nw…

---

## [Verifying that RSpec mock object methods are called with a b](https://www.ruby-forum.com/t/verifying-that-rspec-mock-object-methods-are-called-with-a-b/92198)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 1:19am UTC](https://www.ruby-forum.com/t/verifying-that-rspec-mock-object-methods-are-called-with-a-b/92198 "2007-04-17T01:19:58Z")

</div>

In RSpec, is there a way to verify that a mock object method was called with a block? For example, something like this: context “A mock object method” do specify “should verify that it was called with a block” do m =…

---

## [Continue execution when TEST::UNIT assertion fails](https://www.ruby-forum.com/t/continue-execution-when-test-unit-assertion-fails/92153)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 12:28am UTC](https://www.ruby-forum.com/t/continue-execution-when-test-unit-assertion-fails/92153 "2007-04-17T00:28:54Z")

</div>

Hi, Is is possible not to halt the execution of a ruby script when an TEST::UNIT assertion fails? cheers aidy

---

## ["restoring" classes after changing stuff](https://www.ruby-forum.com/t/restoring-classes-after-changing-stuff/92189)

<div class="topic-metadata">

**Author:** [@marcelo\_a](https://www.ruby-forum.com/u/marcelo_a)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 12:23am UTC](https://www.ruby-forum.com/t/restoring-classes-after-changing-stuff/92189 "2007-04-17T00:23:54Z")

</div>

Hi, Well, I’m new to Ruby (I’ve been working and playing with it for the last 6 months only), and I know there’s probably another way in which this could work, but somehow I feel like the code below should work. Let…

---

## [Woooooooooooooooooow The Best Music Search Engine](https://www.ruby-forum.com/t/woooooooooooooooooow-the-best-music-search-engine/102878)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 12:02am UTC](https://www.ruby-forum.com/t/woooooooooooooooooow-the-best-music-search-engine/102878 "2007-04-17T00:02:50Z")

</div>

http://www.freemp3sky.com

---

## [Gems install failing](https://www.ruby-forum.com/t/gems-install-failing/92187)

<div class="topic-metadata">

**Author:** [@mrrobert](https://www.ruby-forum.com/u/mrrobert)\
**Replies:** 1\
**Last updated:** [April 16, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/gems-install-failing/92187 "2007-04-16T23:59:50Z")

</div>

We are trying to install ruby and rubygems on a RedHat AS 3 server. It is behind a firewall and uses a proxy. The rubygems Setup.rb is failing. Thanks in advance for any help. here is the output.(curl works fine wit…

---

## [Superclass of eigenclass in 1.8.6](https://www.ruby-forum.com/t/superclass-of-eigenclass-in-1-8-6/92194)

<div class="topic-metadata">

**Author:** [@paolo\_p](https://www.ruby-forum.com/u/paolo_p)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/superclass-of-eigenclass-in-1-8-6/92194 "2007-04-16T23:55:50Z")

</div>

Test script: class Object good old eigenclass accessor def eigenclass; class \<\< self; self; end; end end class A; end class B \< A; end b = B.new p “super of eigen of b: #{b.eigenclass.superclass}” p “super of eig…

---

## [RubyGems installation on redhat fails! (proxy problem?)](https://www.ruby-forum.com/t/rubygems-installation-on-redhat-fails-proxy-problem/92192)

<div class="topic-metadata">

**Author:** [@Lloyd\_Kalicki](https://www.ruby-forum.com/u/Lloyd_Kalicki)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/rubygems-installation-on-redhat-fails-proxy-problem/92192 "2007-04-16T23:41:31Z")

</div>

Hi all Ok I have searched the forums and still cant come up with anything. When running the command:\> ruby setup.rb I get the output below. I have set the http\_proxy as well as HTTP\_PROXY and ALL\_PROXY. any ideas? T…

---

## [RubyScript2Exe 0.5.2](https://www.ruby-forum.com/t/rubyscript2exe-0-5-2/92088)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 2\
**Last updated:** [April 16, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-0-5-2/92088 "2007-04-16T23:37:49Z")

</div>

I’ve released RubyScript2Exe 0.5.2. RubyScript2Exe transforms your Ruby script into a standalone Windows or Linux executable. You can look at it as a “compiler”, for it collects all necessary files to run your script…

---

## [Getting HTML attributes, and dropping that HTML tag](https://www.ruby-forum.com/t/getting-html-attributes-and-dropping-that-html-tag/92182)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/getting-html-attributes-and-dropping-that-html-tag/92182 "2007-04-16T22:59:42Z")

</div>

I’m stumped a bit, at the current problem in ClothRed development: Since Textile supports HTML-attributes, I have to implement them somehow. The suggestion to look at Hpricot was neat, but it doesn’t do what I need (a…

---

## [Translate Perl diamond operator to Ruby](https://www.ruby-forum.com/t/translate-perl-diamond-operator-to-ruby/92075)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 12\
**Last updated:** [April 16, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/translate-perl-diamond-operator-to-ruby/92075 "2007-04-16T21:03:29Z")

</div>

Over the years, I’ve found the following to be an excellent way to whip up quick, very useful Perl scripts: #!/usr/bin/perl while(\<\>) { # do stuff . . . } Is there an equivalent idiom in Ruby? So far as I’m aware,…

---

## [Executing a system command and stopping it after a specified](https://www.ruby-forum.com/t/executing-a-system-command-and-stopping-it-after-a-specified/92043)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 8\
**Last updated:** [April 16, 2007, 8:36pm UTC](https://www.ruby-forum.com/t/executing-a-system-command-and-stopping-it-after-a-specified/92043 "2007-04-16T20:36:24Z")

</div>

I’d like to run a system command and then stop it after specified amount of time (in seconds or milliseconds.) What’s the best way to do it? e.g. exec(“cat /dev/video \> test.mpg”) then kill the process after so man…

---

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

<div class="topic-metadata">

**Author:** [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Replies:** 12\
**Last updated:** [April 16, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/nameerror-uninitialized-constant-date-abbr-months/91652 "2007-04-16T18:46:13Z")

</div>

DATE::ABBR\_MONTHS exists in this doc here. http://www.ruby-doc.org/stdlib/libdoc/date/rdoc/index.html Still I get the error. ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) \[i386-mswin32\] irb(main):001:0\> require “da…

---

## [Openstruct / constant negating question](https://www.ruby-forum.com/t/openstruct-constant-negating-question/92149)

<div class="topic-metadata">

**Author:** [@pugalp](https://www.ruby-forum.com/u/pugalp)\
**Replies:** 2\
**Last updated:** [April 16, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/openstruct-constant-negating-question/92149 "2007-04-16T18:05:05Z")

</div>

Hello, I am a newbie to Ruby. I have a nested hash converted to openstruct (primarily for ease of access). PreProduction webServers webServer1 webServer2 appServers appServer1 appServer2 etc., I have the follow…

---

## [Spambots: was Re: Ruby widgets](https://www.ruby-forum.com/t/spambots-was-re-ruby-widgets/92152)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/spambots-was-re-ruby-widgets/92152 "2007-04-16T18:00:06Z")

</div>

Would it be mean if there were a way to only accept emails from members of the list? I’d really like that. Instead of getting this crapola spam. –Kyle

---

## [Ruby Reports 0.8.14 and some project news](https://www.ruby-forum.com/t/ruby-reports-0-8-14-and-some-project-news/92151)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/ruby-reports-0-8-14-and-some-project-news/92151 "2007-04-16T17:36:03Z")

</div>

== Ruport 0.8.14 : The ‘sweet goodbye to 0.8’ release == I usually don’t announce maintenance releases on RubyTalk, but since this will be the final stable snapshot of Ruport before 1.0, I figured I’d post here. Als…

---

## [SMTP server (my first gem)](https://www.ruby-forum.com/t/smtp-server-my-first-gem/92126)

<div class="topic-metadata">

**Author:** [@xinit](https://www.ruby-forum.com/u/xinit)\
**Replies:** 3\
**Last updated:** [April 16, 2007, 3:26pm UTC](https://www.ruby-forum.com/t/smtp-server-my-first-gem/92126 "2007-04-16T15:26:46Z")

</div>

Hi all! After searching for some generic SMTP Server classes, I found out that ruby seems to lack this. Therefore I ported Perl’s Net::SMTP::Server to Ruby. My work can be found at http://www.evenflow.nl/dev, where I…

---

## [Parseexcel](https://www.ruby-forum.com/t/parseexcel/79732)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 6\
**Last updated:** [April 16, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/parseexcel/79732 "2007-04-16T15:20:44Z")

</div>

Hi all, I can use parseexcel to open excel file and process the data within excel. 1)But I am not sure how to write the processed data back to excel using parseexcel. What is the syntax for this? 2) How to select a r…

---

## [Having a problem with DRb](https://www.ruby-forum.com/t/having-a-problem-with-drb/92047)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 8\
**Last updated:** [April 16, 2007, 2:18pm UTC](https://www.ruby-forum.com/t/having-a-problem-with-drb/92047 "2007-04-16T14:18:32Z")

</div>

It won’t connect. I tried it with a friend 400 miles away, and I tried it on 2 comps here on my home network. I get a DRbConnError no matter what variation I try. Firewall off/on, port forwarding and port triggerin…

---

## [ANN: Sequel 0.0.19 Released and Sequel discussion list](https://www.ruby-forum.com/t/ann-sequel-0-0-19-released-and-sequel-discussion-list/92123)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 11:50am UTC](https://www.ruby-forum.com/t/ann-sequel-0-0-19-released-and-sequel-discussion-list/92123 "2007-04-16T11:50:09Z")

</div>

== Sequel 0.0.19 Released Sequel: Concise ORM for Ruby. Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Version 0.0.19 fixes a bunch of minor bu…

---

## [How can I download the dump file?](https://www.ruby-forum.com/t/how-can-i-download-the-dump-file/92108)

<div class="topic-metadata">

**Author:** [@deepak](https://www.ruby-forum.com/u/deepak)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 8:50am UTC](https://www.ruby-forum.com/t/how-can-i-download-the-dump-file/92108 "2007-04-16T08:50:20Z")

</div>

Hello All, I want to download the dump file. I am using send\_file but it is giving an error. Any help would be appreciated .

---

## [End-of-file character](https://www.ruby-forum.com/t/end-of-file-character/92086)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 8\
**Last updated:** [April 16, 2007, 7:44am UTC](https://www.ruby-forum.com/t/end-of-file-character/92086 "2007-04-16T07:44:43Z")

</div>

Hey Guys, Does anyone know of a cross-platform way of generating an ‘end-of-file’ character? Alternatively, does anyone know how to figure out what the ‘end-of-file’ character is for a particular OS? Sonny.

---

## [Proofread Ruby sections of thesis?](https://www.ruby-forum.com/t/proofread-ruby-sections-of-thesis/92089)

<div class="topic-metadata">

**Author:** [@Ben\_Pharr](https://www.ruby-forum.com/u/Ben_Pharr)\
**Replies:** 3\
**Last updated:** [April 16, 2007, 5:56am UTC](https://www.ruby-forum.com/t/proofread-ruby-sections-of-thesis/92089 "2007-04-16T05:56:38Z")

</div>

Hi everyone, I’m writing my Masters thesis on object-oriented programming language features. It’s a survey of seven different languages: Smalltalk, Eiffel, Objective-C, C++, Java, Python, and Ruby. I’m trying to get …

---

## [Undefining a method?](https://www.ruby-forum.com/t/undefining-a-method/92098)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 5\
**Last updated:** [April 16, 2007, 4:58am UTC](https://www.ruby-forum.com/t/undefining-a-method/92098 "2007-04-16T04:58:34Z")

</div>

Is it possible to undefine a method. For example: class A def method end end A.undefine\_method(:method) Is this possible? I need to do this because I’m dynamically building methods into a class and it would make …

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

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