# Ruby

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

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

---

## [Gem install mysql - not showing the right options](https://www.ruby-forum.com/t/gem-install-mysql-not-showing-the-right-options/126582)

<div class="topic-metadata">

**Author:** [@Venks](https://www.ruby-forum.com/u/Venks)\
**Replies:** 1\
**Last updated:** [January 20, 2008, 1:40am UTC](https://www.ruby-forum.com/t/gem-install-mysql-not-showing-the-right-options/126582 "2008-01-20T01:40:42Z")

</div>

Hi, I am trying to install the native mysql drivers using “gem install mysql” on Fedora 6 machine and following are the options shown: =============================================== Select which gem to install for y…

---

## [Problems with RMagic under Windows](https://www.ruby-forum.com/t/problems-with-rmagic-under-windows/126585)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 2\
**Last updated:** [January 20, 2008, 12:08am UTC](https://www.ruby-forum.com/t/problems-with-rmagic-under-windows/126585 "2008-01-20T00:08:04Z")

</div>

Team, I just installed RMagic under Windows to learn it. The installation went OK: C:$user\\downloads\\ruby\\RMagick-2.0.0-ImageMagick-6.3.7-8-Q8\>gem install rmagic Successfully installed rmagick-2.0.0-mswin32 1 gem i…

---

## [Ruby with Mac OS X](https://www.ruby-forum.com/t/ruby-with-mac-os-x/126539)

<div class="topic-metadata">

**Author:** [@superfly](https://www.ruby-forum.com/u/superfly)\
**Replies:** 21\
**Last updated:** [January 19, 2008, 10:07pm UTC](https://www.ruby-forum.com/t/ruby-with-mac-os-x/126539 "2008-01-19T22:07:24Z")

</div>

Hello everyone, I have a friend that is having some trouble getting a ruby program to work on her Mac. I’m kind of wondering if there is anything she can do, I’ve looked all over the internet and things, are there an…

---

## [Greedy and non greedy quantifiers](https://www.ruby-forum.com/t/greedy-and-non-greedy-quantifiers/126314)

<div class="topic-metadata">

**Author:** [@dankitania](https://www.ruby-forum.com/u/dankitania)\
**Replies:** 5\
**Last updated:** [January 19, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/greedy-and-non-greedy-quantifiers/126314 "2008-01-19T21:42:36Z")

</div>

Im just after a bit of clarification with quantifiers in regular expressions. I just want to be sure of the differences between the quantifiers. so for these various regular expressions, \[a-z\]\* - this will match an…

---

## [My experience of installing RMagick on windows](https://www.ruby-forum.com/t/my-experience-of-installing-rmagick-on-windows/126581)

<div class="topic-metadata">

**Author:** [@irfan](https://www.ruby-forum.com/u/irfan)\
**Replies:** 5\
**Last updated:** [January 19, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/my-experience-of-installing-rmagick-on-windows/126581 "2008-01-19T21:39:46Z")

</div>

Hi I am trying to install RMagick 2.1.0 on Windows XP. I already have installed the required version of ImageMagick. Here are the steps I adopted. I tried the command “gem install rmagick”, I got this error message …

---

## [RedCloth - unbeautifying quotes](https://www.ruby-forum.com/t/redcloth-unbeautifying-quotes/126571)

<div class="topic-metadata">

**Author:** [@eliben](https://www.ruby-forum.com/u/eliben)\
**Replies:** 1\
**Last updated:** [January 19, 2008, 8:37pm UTC](https://www.ruby-forum.com/t/redcloth-unbeautifying-quotes/126571 "2008-01-19T20:37:21Z")

</div>

Hello, My question pertains to a popular Ruby library - RedCloth (translator for Textile and Markdown to HTML). I hope this list is the proper place to ask the question, if not please accept my apologies and point m…

---

## [WPF etc](https://www.ruby-forum.com/t/wpf-etc/126577)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 0\
**Last updated:** [January 19, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/wpf-etc/126577 "2008-01-19T20:23:16Z")

</div>

Hi In the IronPython samples for Silverlight I can see a really nice way of attaching a python file to the canvas. \<x:Code Source=“myfile.py” Type=“text/python” /\> which for ruby becomes \<x:Code Source=“myfile.rb” T…

---

## [Spec-converter 0.0.3 Released](https://www.ruby-forum.com/t/spec-converter-0-0-3-released/126572)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [January 19, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/spec-converter-0-0-3-released/126572 "2008-01-19T19:32:05Z")

</div>

Relevance is proud to release spec-converter version 0.0.3! == DESCRIPTION Simple converter to go from test-unit or dust style tests to test-spec (http://rubyforge.org/projects/test-spec) specs. == FEATURES/PROBLEMS …

---

## [:IRB Bug](https://www.ruby-forum.com/t/irb-bug/126574)

<div class="topic-metadata">

**Author:** [@WindhamS\_Kristopher](https://www.ruby-forum.com/u/WindhamS_Kristopher)\
**Replies:** 1\
**Last updated:** [January 19, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/irb-bug/126574 "2008-01-19T19:28:32Z")

</div>

trying to help Superfly with his NameError for YAML and Irb really started acting up… anyone able to make any sense out of this? irb(main):001:0\> require ‘yaml’ =\> true irb(main):002:0\> captions\_number = YAML.load(F…

---

## [Ruby syntax in "respond\_to do |format| line -- can clarify?](https://www.ruby-forum.com/t/ruby-syntax-in-respond-to-do-format-line-can-clarify/126354)

<div class="topic-metadata">

**Author:** [@jballanc](https://www.ruby-forum.com/u/jballanc)\
**Replies:** 11\
**Last updated:** [January 19, 2008, 12:13pm UTC](https://www.ruby-forum.com/t/ruby-syntax-in-respond-to-do-format-line-can-clarify/126354 "2008-01-19T12:13:36Z")

</div>

Hi All, I’m new to both Ruby and Rails (I come from an ASP.NET | Open-source web framework for .NET background, mainly, and I also have done a fair amount of PHP). I’m looking at these lines from my controller: resp…

---

## [How to parse directory structure using ruby](https://www.ruby-forum.com/t/how-to-parse-directory-structure-using-ruby/126543)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 2\
**Last updated:** [January 19, 2008, 11:51am UTC](https://www.ruby-forum.com/t/how-to-parse-directory-structure-using-ruby/126543 "2008-01-19T11:51:11Z")

</div>

Hi all, Greetings… In my project i have stuck a place … where i have to parse directory structure. Can you please help me out in this ? The requirement is like… i will give input as name of directory… The program s…

---

## [Not able to click on pop-up window in watir](https://www.ruby-forum.com/t/not-able-to-click-on-pop-up-window-in-watir/126479)

<div class="topic-metadata">

**Author:** [@bhavesh1\_sharma](https://www.ruby-forum.com/u/bhavesh1_sharma)\
**Replies:** 2\
**Last updated:** [January 19, 2008, 7:09am UTC](https://www.ruby-forum.com/t/not-able-to-click-on-pop-up-window-in-watir/126479 "2008-01-19T07:09:46Z")

</div>

Hi, I have to create an script where i have to open an page in IE7. Once page is opened, i have to search something and then have to press the “Delete” button. As soon as i press the “Delete” button, an Windows Inter…

---

## [Gem 'rufus-verbs' released](https://www.ruby-forum.com/t/gem-rufus-verbs-released/126409)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 5\
**Last updated:** [January 19, 2008, 5:24am UTC](https://www.ruby-forum.com/t/gem-rufus-verbs-released/126409 "2008-01-19T05:24:30Z")

</div>

== what is it ? ‘rufus-verbs’ is an extended HTTP client library (gem). It provides the four main HTTP “verbs” as Ruby methods : get, put, post and delete. It wraps a certain number of techniques that make it a decen…

---

## [Ruby annoyances ... mine is line continuation, what's yours?](https://www.ruby-forum.com/t/ruby-annoyances-mine-is-line-continuation-whats-yours/126262)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [January 19, 2008, 4:17am UTC](https://www.ruby-forum.com/t/ruby-annoyances-mine-is-line-continuation-whats-yours/126262 "2008-01-19T04:17:47Z")

</div>

Just thinking how really smart Ruby is in most areas makes it all the more surprising when some of its “warts” start showing. Admittedly, the ones that appear are pretty minor, but still a tad irritating nonetheless. …

---

## [Creating unit-test where RE required](https://www.ruby-forum.com/t/creating-unit-test-where-re-required/126428)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [January 19, 2008, 4:11am UTC](https://www.ruby-forum.com/t/creating-unit-test-where-re-required/126428 "2008-01-19T04:11:56Z")

</div>

Hi All, I have a Search class with a :nameRE setter which may validly be either nil or a regular expression. I setup the unit test: def test\_002\_IfNameGivenThenRE @search.nameRE = ‘/.rb$’ assert\_raise(RuntimeError,…

---

## [RubyGems 1.0.1 in windows](https://www.ruby-forum.com/t/rubygems-1-0-1-in-windows/126265)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [January 19, 2008, 3:51am UTC](https://www.ruby-forum.com/t/rubygems-1-0-1-in-windows/126265 "2008-01-19T03:51:30Z")

</div>

i’m not sure where to report this. in windows XP, using the one-click installer to install either ruby 1.8.6-25 or 1.8.6-26 when you run gem update --system Time::parse doesn’t exist anymore, it works fine with rubyg…

---

## [\[patch\] downto/upto](https://www.ruby-forum.com/t/patch-downto-upto/126238)

<div class="topic-metadata">

**Author:** [@Jb\_Evain](https://www.ruby-forum.com/u/Jb_Evain)\
**Replies:** 1\
**Last updated:** [January 19, 2008, 2:02am UTC](https://www.ruby-forum.com/t/patch-downto-upto/126238 "2008-01-19T02:02:07Z")

</div>

Hey, In the process of running one of my script on IronRuby I needed upto, so here it is, along with his downto friend. I was wondering if I could simply call Step with the relevant limit and step from upto/downto, b…

---

## [Rubyscript2exe](https://www.ruby-forum.com/t/rubyscript2exe/126504)

<div class="topic-metadata">

**Author:** [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Replies:** 5\
**Last updated:** [January 19, 2008, 1:38am UTC](https://www.ruby-forum.com/t/rubyscript2exe/126504 "2008-01-19T01:38:43Z")

</div>

I’m trying to use rubyscript2exe on there website, http://www.erikveen.dds.nl/rubyscript2exe/index.html it says that it can also compile for Linux and Mac. I’m really trying to have this done by next Friday (so a wee…

---

## [External Module.nesting](https://www.ruby-forum.com/t/external-module-nesting/126526)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 2\
**Last updated:** [January 19, 2008, 1:08am UTC](https://www.ruby-forum.com/t/external-module-nesting/126526 "2008-01-19T01:08:19Z")

</div>

Is there an obvious method for a module like A::b::C that would result in A::B? Module.nesting came to mind, but no I didn’t see an obvious way to make it work. Daniel Brumbaugh K.

---

## [Module#class\_eval](https://www.ruby-forum.com/t/module-class-eval/125990)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 2\
**Last updated:** [January 19, 2008, 1:07am UTC](https://www.ruby-forum.com/t/module-class-eval/125990 "2008-01-19T01:07:09Z")

</div>

I have been playing around with implementing Module#class\_eval, partly because I wanted to use it in a test case and partly because I thought it would help my understanding of the guts of IronRuby. I managed to get …

---

## [RubyGame Audio on Mac OS 10.4.11](https://www.ruby-forum.com/t/rubygame-audio-on-mac-os-10-4-11/125779)

<div class="topic-metadata">

**Author:** [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Replies:** 5\
**Last updated:** [January 19, 2008, 12:33am UTC](https://www.ruby-forum.com/t/rubygame-audio-on-mac-os-10-4-11/125779 "2008-01-19T00:33:11Z")

</div>

Hey I managed to get Rubygame successfully installed on mac os x, however using audio still gives me trouble! WAV and MP3 files (the only ones I’ve tested) throw errors and warnings, respectively. I am more focused …

---

## [Windows executables](https://www.ruby-forum.com/t/windows-executables/126509)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 18, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/windows-executables/126509 "2008-01-18T21:27:09Z")

</div>

How can I make my script run directly on the command line in windows like ruby is? ruby -w myscript.rb -o myscript -o

---

## [Regex eating my characters](https://www.ruby-forum.com/t/regex-eating-my-characters/126496)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [January 18, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/regex-eating-my-characters/126496 "2008-01-18T20:56:20Z")

</div>

Hello I am having trouble with this regex My pattern is group 1= any word Group 2= any word group 3 = any sentence irb(main):001:0\> pattern= Regexp.new(’(\\S+)\\s+(\\S+)(.+)’) =\> /(\\S+)\\s+(\\S+)(.+)/ irb(main):002:0\> …

---

## [Warning: already initialized constant TmpCert\_as\_text](https://www.ruby-forum.com/t/warning-already-initialized-constant-tmpcert-as-text/126499)

<div class="topic-metadata">

**Author:** [@heinrich1208](https://www.ruby-forum.com/u/heinrich1208)\
**Replies:** 3\
**Last updated:** [January 18, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/warning-already-initialized-constant-tmpcert-as-text/126499 "2008-01-18T20:14:53Z")

</div>

Hi all, I use this in a ‘loop do’: validationcheck = OpenSSL::X509::Certificate TmpCert\_as\_text = validationcheck.new(File.read(“certs.pem”)).to\_text and I get this warning message: warning: already initialized cons…

---

## [MySQL gem on 64-bit Solaris won't compile](https://www.ruby-forum.com/t/mysql-gem-on-64-bit-solaris-wont-compile/125952)

<div class="topic-metadata">

**Author:** [@armstheykill](https://www.ruby-forum.com/u/armstheykill)\
**Replies:** 8\
**Last updated:** [January 18, 2008, 7:53pm UTC](https://www.ruby-forum.com/t/mysql-gem-on-64-bit-solaris-wont-compile/125952 "2008-01-18T19:53:43Z")

</div>

Hi all, Solaris 10 x86 on a 64-bit Xenon server… Can anyone guess where this is going? root@hostname:~# gem install mysql – –with-mysql-config=/usr/local/mysql/bin/mysql\_config Building native extensions. This cou…

---

## [Parent class cannot call child class method](https://www.ruby-forum.com/t/parent-class-cannot-call-child-class-method/126498)

<div class="topic-metadata">

**Author:** [@Ed\_Hames](https://www.ruby-forum.com/u/Ed_Hames)\
**Replies:** 2\
**Last updated:** [January 18, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/parent-class-cannot-call-child-class-method/126498 "2008-01-18T19:45:24Z")

</div>

Hi guys, I have the following design which is not working as I would like it to: class A def bar raise “Base class can’t do bar!” end def foo bar end end class B \< A def bar puts “B doing bar” end def foo …

---

## [Properly using Ruby's specialness](https://www.ruby-forum.com/t/properly-using-rubys-specialness/126371)

<div class="topic-metadata">

**Author:** [@nefigah](https://www.ruby-forum.com/u/nefigah)\
**Replies:** 8\
**Last updated:** [January 18, 2008, 7:33pm UTC](https://www.ruby-forum.com/t/properly-using-rubys-specialness/126371 "2008-01-18T19:33:40Z")

</div>

I was recently reading a presentation on “10 things Java programmers should know about Ruby.” Like many similar discourses, it talked about classes being objects and singleton methods etc. etc. Now, I am familiar with…

---

## [Help getting dirwatch 0.90 running](https://www.ruby-forum.com/t/help-getting-dirwatch-0-90-running/76101)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 1\
**Last updated:** [January 18, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/help-getting-dirwatch-0-90-running/76101 "2008-01-18T19:23:21Z")

</div>

I’d like to play around with dirwatch but I can’t seem to get it running. After installing all of its dependencies (alib, sldb, lockfile, sqlite, modifying dirwatch.rb to also require rubygems), I started going throug…

---

## [Quit, if a specific key is hit](https://www.ruby-forum.com/t/quit-if-a-specific-key-is-hit/126301)

<div class="topic-metadata">

**Author:** [@pavan1919](https://www.ruby-forum.com/u/pavan1919)\
**Replies:** 6\
**Last updated:** [January 18, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/quit-if-a-specific-key-is-hit/126301 "2008-01-18T17:45:54Z")

</div>

Excuse me, if this is already discussed… but from from here http://www.rubyrailways.com/implementing-15-exercises-for-learning-a-new-programming-language/… the author concludes that the following problem cannot be solv…

---

## [Default script encoding and -K option](https://www.ruby-forum.com/t/default-script-encoding-and-k-option/126334)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 8\
**Last updated:** [January 18, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/default-script-encoding-and-k-option/126334 "2008-01-18T17:18:51Z")

</div>

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B \[ruby-dev:33140\] e$B$G$J$+$\`$i$5$s$,=q$+$l$F$$$^$9$,!"e(B On Thu, 17 Jan 2008 09:42:43 +0900 “U.Nakamura” removed\_email\_address@domain.invalid wrote: e$B$=$7$F!“e(B1.9e$B$Oe(B-…

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

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