# Ruby

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

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

---

## [Address of Mechanize::Page?](https://www.ruby-forum.com/t/address-of-mechanize-page/84425)

<div class="topic-metadata">

**Author:** [@endy](https://www.ruby-forum.com/u/endy)\
**Replies:** 2\
**Last updated:** [February 6, 2007, 6:05am UTC](https://www.ruby-forum.com/t/address-of-mechanize-page/84425 "2007-02-06T06:05:56Z")

</div>

Hi, I am using the Mechanize library to follow a link in a webpage. require ‘rubygems’ require ‘mechanize’ agent = WWW::Mechanize.new page = agent.get(ARGV\[0\]) link1 = page.links.find{|l| l.href.match Regexp.new(AR…

---

## [What is the best GUI toolkit that can be used along with Rub](https://www.ruby-forum.com/t/what-is-the-best-gui-toolkit-that-can-be-used-along-with-rub/84351)

<div class="topic-metadata">

**Author:** [@Kiran\_KSK](https://www.ruby-forum.com/u/Kiran_KSK)\
**Replies:** 2\
**Last updated:** [February 6, 2007, 5:36am UTC](https://www.ruby-forum.com/t/what-is-the-best-gui-toolkit-that-can-be-used-along-with-rub/84351 "2007-02-06T05:36:55Z")

</div>

I would like to build a thick client using Ruby what are the choices that I have. I also need the client work on Linux, Windows and Mac.

---

## [Mysql-ruby won't connect](https://www.ruby-forum.com/t/mysql-ruby-wont-connect/80932)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [February 6, 2007, 5:35am UTC](https://www.ruby-forum.com/t/mysql-ruby-wont-connect/80932 "2007-02-06T05:35:55Z")

</div>

I’m trying to get my first ruby box set up. I’m so far unable to connect to the mysql database with mysql-ruby. I’m on an Intel Mac, running macosx tiger 10.4.8. At first, I couldn’t even compile the plugin, there i…

---

## [A ruby-web (but not rails) question](https://www.ruby-forum.com/t/a-ruby-web-but-not-rails-question/84569)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 1\
**Last updated:** [February 6, 2007, 3:43am UTC](https://www.ruby-forum.com/t/a-ruby-web-but-not-rails-question/84569 "2007-02-06T03:43:50Z")

</div>

I am trying to do something very simple. My web dir structure: home/ index.html cgi-bin/ login (a ruby script) I have a form/button in index.html, and when submitted the action is to run cgi-bin/login. I have the…

---

## [Win32ole and installshield automation](https://www.ruby-forum.com/t/win32ole-and-installshield-automation/84573)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [February 6, 2007, 2:20am UTC](https://www.ruby-forum.com/t/win32ole-and-installshield-automation/84573 "2007-02-06T02:20:41Z")

</div>

I’m trying to use win32ole to automate some builds in Installshield using ISWiAuto11.ISWiProject. Everything seems to work fine except at this line: project = WIN32OLE.new(‘ISWiAuto11.ISWiProject’) The problem is In…

---

## [Object#\*methods](https://www.ruby-forum.com/t/object-methods/84537)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 1\
**Last updated:** [February 6, 2007, 1:32am UTC](https://www.ruby-forum.com/t/object-methods/84537 "2007-02-06T01:32:39Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B Object#\*methodse$B$,e(BSymbole$BG\[Ns$rJV$9$h$&$K$J$C$?$N$H!“e(BSymbole$B$,e(BString e$B$N%5%V%/%i%9$8$c$J$/$J$C$?$N$H$G!“F0$+$J$/$J$C$?%3!\<%I$,$”$ke(B e$B$h$&$G$9!#e(B …

---

## [Rubyforge login page not working?](https://www.ruby-forum.com/t/rubyforge-login-page-not-working/84557)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 2\
**Last updated:** [February 6, 2007, 1:01am UTC](https://www.ruby-forum.com/t/rubyforge-login-page-not-working/84557 "2007-02-06T01:01:37Z")

</div>

http://rubyforge.org/account/login.php yields an empty page. What gives? Clifford H…

---

## [Require statement clarification](https://www.ruby-forum.com/t/require-statement-clarification/84559)

<div class="topic-metadata">

**Author:** [@nevf](https://www.ruby-forum.com/u/nevf)\
**Replies:** 3\
**Last updated:** [February 6, 2007, 1:00am UTC](https://www.ruby-forum.com/t/require-statement-clarification/84559 "2007-02-06T01:00:03Z")

</div>

For require “filename” if the filename doesn’t include an extension is .rb assumed. I’ve been unable to find any documentation on this. Also the Ruby distribution telnet.rb source file includes: require “socket” howe…

---

## [Scrubyt.org - your source of scRUBYt! tutorials, howtos, new](https://www.ruby-forum.com/t/scrubyt-org-your-source-of-scrubyt-tutorials-howtos-new/84561)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 0\
**Last updated:** [February 6, 2007, 12:39am UTC](https://www.ruby-forum.com/t/scrubyt-org-your-source-of-scrubyt-tutorials-howtos-new/84561 "2007-02-06T00:39:35Z")

</div>

Hello, This is the last ann from me today, I promise :slight\_smile: Writing thorough documentation, tutorials and other info was a primary concern since the beginning of hacking on scRUBYt!. I am not yet ready with e…

---

## [scRUBYt! 0.2.0 - WWW::Mechanize and Hpricot on steroids](https://www.ruby-forum.com/t/scrubyt-0-2-0-www-mechanize-and-hpricot-on-steroids/102673)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 0\
**Last updated:** [February 6, 2007, 12:38am UTC](https://www.ruby-forum.com/t/scrubyt-0-2-0-www-mechanize-and-hpricot-on-steroids/102673 "2007-02-06T00:38:35Z")

</div>

Hello, I am pleased to announce the first public release of scRUBYt!, a simple to learn and use, yet very powerful web extraction framework written in Ruby. Details follow from the README: ==========================…

---

## [Enumerated Types](https://www.ruby-forum.com/t/enumerated-types/84379)

<div class="topic-metadata">

**Author:** [@Dan\_Stevens\_SIAmAI](https://www.ruby-forum.com/u/Dan_Stevens_SIAmAI)\
**Replies:** 5\
**Last updated:** [February 6, 2007, 12:34am UTC](https://www.ruby-forum.com/t/enumerated-types/84379 "2007-02-06T00:34:35Z")

</div>

As part of a solution, I wish the value of an attribute to be one of a finite set of values, in other words I believe I want an ‘enumerated type’. I’ve look at the ‘Enumerable’ and ‘Enumerator’ class and they appear t…

---

## [Module#nesting (NOT the class method - instance method)](https://www.ruby-forum.com/t/module-nesting-not-the-class-method-instance-method/84542)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 5, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/module-nesting-not-the-class-method-instance-method/84542 "2007-02-05T23:54:33Z")

</div>

harp:~ \> cat a.rb class Module def nesting parent, child = nil name.split(’::’).inject(Object){|parent, child| parent.const\_get child} Object == parent ? nil : parent end end class A class B class C class D …

---

## [Exception never raised when threading an eval containing a m](https://www.ruby-forum.com/t/exception-never-raised-when-threading-an-eval-containing-a-m/84498)

<div class="topic-metadata">

**Author:** [@darkswoop](https://www.ruby-forum.com/u/darkswoop)\
**Replies:** 4\
**Last updated:** [February 5, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/exception-never-raised-when-threading-an-eval-containing-a-m/84498 "2007-02-05T22:03:15Z")

</div>

Hello everyone! I’ve encountered a strange issue when coding a tool extending ruby, and was wondering if I was missing something… I’m working under windows with the last stable release of ruby (1.8.5-21) and did not …

---

## ['ruby' exit code 32512](https://www.ruby-forum.com/t/ruby-exit-code-32512/84543)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [February 5, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/ruby-exit-code-32512/84543 "2007-02-05T21:51:14Z")

</div>

Hi, I was having trouble with what seems to be an inconsistency in ruby exit codes. I can explain this best with examples: On Windows XP, the command: ruby -e ‘exit(32512)’ || echo hi yeilds output (as it seems it s…

---

## [Net::ldap - add\_attribute](https://www.ruby-forum.com/t/net-ldap-add-attribute/84285)

<div class="topic-metadata">

**Author:** [@rcmn](https://www.ruby-forum.com/u/rcmn)\
**Replies:** 10\
**Last updated:** [February 5, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/net-ldap-add-attribute/84285 "2007-02-05T21:15:08Z")

</div>

i’m trying to add a workstation “monnomdemachine” to a group “mygroup” but i get “#\<OpenStruct message=“Unwilling to perform”, code=53\>” require ‘net/ldap’ look up Machine to ProdWindowsXPWorkstations ldap = Net::LDAP…

---

## [Ruby Blocks and Template Method Pattern](https://www.ruby-forum.com/t/ruby-blocks-and-template-method-pattern/84541)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 5, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/ruby-blocks-and-template-method-pattern/84541 "2007-02-05T20:42:04Z")

</div>

I was reading the Programming Ruby book yesterday and the explanation for Ruby blocks sounded very similar to Template Method pattern that I used in other object-oriented languages. Is my understanding correct? TIA

---

## [Rcodetools 0.5.0 (TDD++, automagic assertions, 100% accurate](https://www.ruby-forum.com/t/rcodetools-0-5-0-tdd-automagic-assertions-100-accurate/83686)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 4\
**Last updated:** [February 5, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/rcodetools-0-5-0-tdd-automagic-assertions-100-accurate/83686 "2007-02-05T20:21:02Z")

</div>

rcodetools is a collection of Ruby code manipulation tools. It includes xmpfilter and editor-independent Ruby development helper tools, as well as emacs and vim interfaces. Currently, rcodetools comprises: xmpfilte…

---

## [Gem Namespaces](https://www.ruby-forum.com/t/gem-namespaces/84368)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 8\
**Last updated:** [February 5, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/gem-namespaces/84368 "2007-02-05T20:16:02Z")

</div>

Hi– I know I will probably be lambasted by the usual lambasting sort, nonetheless I think its worth suggesting that all gems have a project namespace. As things stand a project on Rubyforge can create gems with any n…

---

## [Getting started in the mailing list business](https://www.ruby-forum.com/t/getting-started-in-the-mailing-list-business/84534)

<div class="topic-metadata">

**Author:** [@rasta\_lion05](https://www.ruby-forum.com/u/rasta_lion05)\
**Replies:** 0\
**Last updated:** [February 5, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/getting-started-in-the-mailing-list-business/84534 "2007-02-05T19:34:57Z")

</div>

HOW TO MAKE EASY MONEY FAST AND LEGALLY!!! This seems to really have potential. This is the way the original post appeared when I first found it. Read it all then decide for yourself. It works for me! I found this on …

---

## [Changing rake task dependencies, runs in wrong order](https://www.ruby-forum.com/t/changing-rake-task-dependencies-runs-in-wrong-order/84530)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [February 5, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/changing-rake-task-dependencies-runs-in-wrong-order/84530 "2007-02-05T18:53:53Z")

</div>

I’m confused. I’m trying to alter the dependencies of a premade rake task, and while it accepts it, it’s actully running the dependcy after the task rather than before it. With this: Rake::GemPackageTask.new(spec) do …

---

## [Installing SQLite](https://www.ruby-forum.com/t/installing-sqlite/84524)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 2\
**Last updated:** [February 5, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/installing-sqlite/84524 "2007-02-05T18:25:51Z")

</div>

I have installed the sqlite3 gem for ruby. The installation was succesful: gem install sqlite3-ruby --source code.whytheluckystiff.net Afterwards, I downloaded the sqlite-3.3.7 exe, and the dll (same version). I’ve d…

---

## [Net::POP and SLL?](https://www.ruby-forum.com/t/net-pop-and-sll/84348)

<div class="topic-metadata">

**Author:** [@Wim\_Vander\_S](https://www.ruby-forum.com/u/Wim_Vander_S)\
**Replies:** 1\
**Last updated:** [February 5, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/net-pop-and-sll/84348 "2007-02-05T18:14:50Z")

</div>

Hi, I’ve been trying to make a web based interface to several mailing lists (something like ruby-forums does for this mailing list) but I can’t seem to use an SSL POP3 server with Net::POP. Is there an easy way to ad…

---

## [Coredump on Mac OS X](https://www.ruby-forum.com/t/coredump-on-mac-os-x/83675)

<div class="topic-metadata">

**Author:** [@T.Kanai](https://www.ruby-forum.com/u/T.Kanai)\
**Replies:** 7\
**Last updated:** [February 5, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/coredump-on-mac-os-x/83675 "2007-02-05T18:05:50Z")

</div>

e$B$O$8$a$^$7$F!"$^$k$^$ke(B e$B$H?=$7$^$9!#e(B Mac OS X 10.4 e$B$G$be(B \[ruby-dev:30198\] coredump on NetBSD e$B$HF1MM$N\>I\>u$,e(B e$B8+$i$l$^$7$?$N$G!"$4Js9pCW$7$^$9!#e(B e$B$?$@$7!"e(BOS X e$B$G$Oe(B Revision11540 …

---

## [Mixing Rake and Turn](https://www.ruby-forum.com/t/mixing-rake-and-turn/84308)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 8\
**Last updated:** [February 5, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/mixing-rake-and-turn/84308 "2007-02-05T17:17:45Z")

</div>

Hi all, I’ve got some test tasks that I’ve got setup via a Rakefile. I’d like to see the output in the ‘turn’ format. However, simply sticking ‘require “turn”’ at the top of the Rakefile doesn’t quite do the trick: …

---

## [Tmail: Saving Excel attachments to disk](https://www.ruby-forum.com/t/tmail-saving-excel-attachments-to-disk/84515)

<div class="topic-metadata">

**Author:** [@Andrew\_MSCampbell](https://www.ruby-forum.com/u/Andrew_MSCampbell)\
**Replies:** 2\
**Last updated:** [February 5, 2007, 4:44pm UTC](https://www.ruby-forum.com/t/tmail-saving-excel-attachments-to-disk/84515 "2007-02-05T16:44:42Z")

</div>

I’m using ActionMailer, which uses Tmail, to save Excel attachments to disk. I found a tutorial for saving attachments. However whether I decode the message part or not. Excel says the file is corrupt. I’m using W…

---

## [rSpec and behavior driven development questions](https://www.ruby-forum.com/t/rspec-and-behavior-driven-development-questions/84480)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 5, 2007, 2:18pm UTC](https://www.ruby-forum.com/t/rspec-and-behavior-driven-development-questions/84480 "2007-02-05T14:18:29Z")

</div>

The rSpec tutorial (http://rspec.rubyforge.org/tutorials/stack\_03.html) shows a new spec as: context “A stack with one item” do specify “should return top when you send it ‘top’” do end end This empty context and e…

---

## [Method visibility VS accessibility](https://www.ruby-forum.com/t/method-visibility-vs-accessibility/84465)

<div class="topic-metadata">

**Author:** [@lnthai2002](https://www.ruby-forum.com/u/lnthai2002)\
**Replies:** 5\
**Last updated:** [February 5, 2007, 1:51pm UTC](https://www.ruby-forum.com/t/method-visibility-vs-accessibility/84465 "2007-02-05T13:51:26Z")

</div>

Hi guys, I’ve done java for a few years and ruby is pretty new to me. In java, a method has visibility(private, protected, public) and accessibility(static, non-static); however, in ruby how can I declare the method:…

---

## [Copying changed files in a tree](https://www.ruby-forum.com/t/copying-changed-files-in-a-tree/84492)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 3\
**Last updated:** [February 5, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/copying-changed-files-in-a-tree/84492 "2007-02-05T13:50:26Z")

</div>

Do any of the ruby build tools (rake, rant, somethingelse?) support the task “copy all the files that have changed since the last time i ran the copy task” across an entire directory tree? e.g. if I have the structure …

---

## [File icons](https://www.ruby-forum.com/t/file-icons/84505)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 0\
**Last updated:** [February 5, 2007, 1:27pm UTC](https://www.ruby-forum.com/t/file-icons/84505 "2007-02-05T13:27:25Z")

</div>

Anyone involved with the KDE project - there’s a vacuum where the source\_ruby mimetype icon ought to be :slight\_smile: martin

---

## [Mixin advantage](https://www.ruby-forum.com/t/mixin-advantage/84487)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 1\
**Last updated:** [February 5, 2007, 10:48am UTC](https://www.ruby-forum.com/t/mixin-advantage/84487 "2007-02-05T10:48:08Z")

</div>

Hi. Please proofread whether the following statement (written by me) about Mixin in Ruby is true: “Mixin is the way to incorporate certain functionalities into a class without messing up inheritance hierarchy. Especi…

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

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