# Ruby

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

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

---

## [Hooky 1.0.0 Released](https://www.ruby-forum.com/t/hooky-1-0-0-released/174118)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 4\
**Last updated:** [August 21, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/hooky-1-0-0-released/174118 "2009-08-21T16:45:53Z")

</div>

hooky version 1.0.0 has been released! http://github.com/jbarnette/hooky http://www.kernel.org/pub/software/scm/git/docs/githooks.html Hooky lets you write Git repository hooks with Rake. If you already have a Rakefi…

---

## [Ruby List Roast - A Tentative Attempt](https://www.ruby-forum.com/t/ruby-list-roast-a-tentative-attempt/174061)

<div class="topic-metadata">

**Author:** [@hoplis](https://www.ruby-forum.com/u/hoplis)\
**Replies:** 8\
**Last updated:** [August 21, 2009, 4:19pm UTC](https://www.ruby-forum.com/t/ruby-list-roast-a-tentative-attempt/174061 "2009-08-21T16:19:32Z")

</div>

Dear ruby list members Ruby is great…no, it’s awesome! And you people make it even better by answering all those questions that Ruby users sometimes have. But you’re one funny bunch fore sure. After reading this list …

---

## [Extending ruby - handling errors](https://www.ruby-forum.com/t/extending-ruby-handling-errors/174086)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 10\
**Last updated:** [August 21, 2009, 4:16pm UTC](https://www.ruby-forum.com/t/extending-ruby-handling-errors/174086 "2009-08-21T16:16:36Z")

</div>

I want to raise an ArgumentError, “Function only takes numeric objects.” if a non-numeric argument is passed to the existing Ruby method, Numeric.ceil. #Here is my feeble attempt to extend Ruby: irb(main):001:0\> clas…

---

## [New version 1.5.0 of the ibm\_db gem is now available](https://www.ruby-forum.com/t/new-version-1-5-0-of-the-ibm-db-gem-is-now-available/196990)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [August 21, 2009, 4:01pm UTC](https://www.ruby-forum.com/t/new-version-1-5-0-of-the-ibm-db-gem-is-now-available/196990 "2009-08-21T16:01:23Z")

</div>

Hi, New version, 1.5.0, of IBM\_DB ruby gem, the Rails adapter/ Ruby Driver for IBM Data Servers, is now available. This release of the gem enhances the performance of the Ruby driver for IBM Data Servers on Ruby 1.9,…

---

## [List of quiz questions](https://www.ruby-forum.com/t/list-of-quiz-questions/174124)

<div class="topic-metadata">

**Author:** [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Replies:** 5\
**Last updated:** [August 21, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/list-of-quiz-questions/174124 "2009-08-21T16:00:48Z")

</div>

hello, do you know where I can find a list of the quiz questions of the comp.lang.ruby ML? I found it some time ago, but impossible to retrieve it now. thanks, lolveley.

---

## [New to Classes](https://www.ruby-forum.com/t/new-to-classes/174123)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 3\
**Last updated:** [August 21, 2009, 3:42pm UTC](https://www.ruby-forum.com/t/new-to-classes/174123 "2009-08-21T15:42:03Z")

</div>

Hello. I’m new to making and defining your own classes (well really to Ruby in general)and need some of your help with areas of my code. Here is the code for the game: class Die def roll @numberShowing = 1 + rand(6) …

---

## [Help: \`method\_missing' called on terminated object](https://www.ruby-forum.com/t/help-method-missing-called-on-terminated-object/174111)

<div class="topic-metadata">

**Author:** [@Mike\_Owens](https://www.ruby-forum.com/u/Mike_Owens)\
**Replies:** 1\
**Last updated:** [August 21, 2009, 12:38pm UTC](https://www.ruby-forum.com/t/help-method-missing-called-on-terminated-object/174111 "2009-08-21T12:38:14Z")

</div>

I am getting this on Ubuntu Jaunty 64 with Ruby 1.9.1-p243. I have tried 1.9.1-p129 and 1.9.2-preview and it happens with all of them. This works with 1.9.1-243 on Hardy 32. NotImplementedError: method \`method\_missing…

---

## [Mapping git repos to ruby objects und vice versa, need ideas](https://www.ruby-forum.com/t/mapping-git-repos-to-ruby-objects-und-vice-versa-need-ideas/174146)

<div class="topic-metadata">

**Author:** [@Florian\_ASSSSmann](https://www.ruby-forum.com/u/Florian_ASSSSmann)\
**Replies:** 0\
**Last updated:** [August 21, 2009, 10:49am UTC](https://www.ruby-forum.com/t/mapping-git-repos-to-ruby-objects-und-vice-versa-need-ideas/174146 "2009-08-21T10:49:54Z")

</div>

Hi folks, my last mail got a ambiguous subject so I try again with another one, since this isn’t a job offer… :slight\_smile: I’m working on a lib called Chambermaid that creates snapshots of ruby objects and stores …

---

## [Showing dot each second until the script ends](https://www.ruby-forum.com/t/showing-dot-each-second-until-the-script-ends/174136)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 3\
**Last updated:** [August 21, 2009, 9:53am UTC](https://www.ruby-forum.com/t/showing-dot-each-second-until-the-script-ends/174136 "2009-08-21T09:53:41Z")

</div>

I have a ruby script, which takes about 20 seconds to execute. I want to show a dot (.) sign each second. I think I need to use “sleep” method and a loop, but I don’t know how to add the functionality to my script. A…

---

## [Gmail\_contacts 1.5 Released](https://www.ruby-forum.com/t/gmail-contacts-1-5-released/174117)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [August 21, 2009, 1:57am UTC](https://www.ruby-forum.com/t/gmail-contacts-1-5-released/174117 "2009-08-21T01:57:47Z")

</div>

gmail\_contacts version 1.5 has been released! http://seattlerb.rubyforge.org/gmail\_contacts Simple Gmail contacts extraction using GData. gmail\_contacts development was sponsored by AT&T Interactive. Changes: 1.5 …

---

## [\[Bug #1957\] NKF.nkf $B$G%7%U%H(BJIS$B$N(B "\\e" $B$,(B "" $B$KJQ49$5$l$k(B](https://www.ruby-forum.com/t/bug-1957-nkf-nkf-b-g-7-u-h-bjis-b-n-b-e-b-b-b-kjq49-5-l-k-b/174116)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [August 21, 2009, 1:49am UTC](https://www.ruby-forum.com/t/bug-1957-nkf-nkf-b-g-7-u-h-bjis-b-n-b-e-b-b-b-kjq49-5-l-k-b/174116 "2009-08-21T01:49:01Z")

</div>

e$B%A%1%C%He(B #1957 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) e$B$=$l$G$O:G?7$Ne(Bnkfe$B$G$O=$@5$7$F$$-$^$9!#e(B 1.8.7e$B$O$=$N$^$^$K$7$F$$-$^$7$g$&!#e(B http://redmine.ruby-lang.org/issues/show/1957

---

## [How do I estimate how long it will take a calculation to complete?](https://www.ruby-forum.com/t/how-do-i-estimate-how-long-it-will-take-a-calculation-to-complete/174088)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 9\
**Last updated:** [August 20, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/how-do-i-estimate-how-long-it-will-take-a-calculation-to-complete/174088 "2009-08-20T20:30:37Z")

</div>

Hi there, I wrote a short ruby script to calculate the prime factors of a given number. I wrote it based on a question someone asked me. It seems to work well for “reasonable” numbers but then I fed it an unreasonabl…

---

## [Crown 1.0.0](https://www.ruby-forum.com/t/crown-1-0-0/174052)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 5\
**Last updated:** [August 20, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/crown-1-0-0/174052 "2009-08-20T19:13:21Z")

</div>

Quoting the README at GitHub - vjoel/crown: Gather gem lib and bin files under one directory for fast loading and predictable behavior. : The crown program gathers gem lib and bin files under one directory for fast loa…

---

## [Help Wanted - Chambermaid](https://www.ruby-forum.com/t/help-wanted-chambermaid/174093)

<div class="topic-metadata">

**Author:** [@Florian\_ASSSSmann](https://www.ruby-forum.com/u/Florian_ASSSSmann)\
**Replies:** 0\
**Last updated:** [August 20, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/help-wanted-chambermaid/174093 "2009-08-20T18:52:51Z")

</div>

Hi folks, I’m working on a lib called Chambermaid that creates snapshots of ruby objects and stores them in a git repository. The main objective of Chambermaid is not to mess with your classes or objects. Instead Cha…

---

## [Time.now and System::Text::EncoderFallbackException](https://www.ruby-forum.com/t/time-now-and-system-encoderfallbackexception/174087)

<div class="topic-metadata">

**Author:** [@maslov](https://www.ruby-forum.com/u/maslov)\
**Replies:** 0\
**Last updated:** [August 20, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/time-now-and-system-encoderfallbackexception/174087 "2009-08-20T17:48:48Z")

</div>

Hi all, I’ve got a strange problem with Time.now (and System.DateTime.Now, of course) when the current culture is set to ‘ru-RU’, ‘pl-PL’ or some other cultures: V:\\PROGS\\Ruby\\Migrate\\ClearQuest\>D:\\Progs\\Ruby\\IronRub…

---

## [Ruby 1.9 and qt 4.5](https://www.ruby-forum.com/t/ruby-1-9-and-qt-4-5/174010)

<div class="topic-metadata">

**Author:** [@artbot](https://www.ruby-forum.com/u/artbot)\
**Replies:** 4\
**Last updated:** [August 20, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/ruby-1-9-and-qt-4-5/174010 "2009-08-20T17:21:30Z")

</div>

hi, i would like to install ruby 1.9 and qt 4.5 on an windows xp (yes, i usually also prefer linux, but unfortunately i need this for my job … ) box, but didn’t find any sites with installation packages (i did succe…

---

## [How exit a block?](https://www.ruby-forum.com/t/how-exit-a-block/145904)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 6\
**Last updated:** [August 20, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/how-exit-a-block/145904 "2009-08-20T16:45:16Z")

</div>

I found a suggestion that says to use return, but this generates a syntax error colors = \[‘red’, ‘yellow’, ‘green’, ‘blue’\] colors.each do |color| p color return color if color == ‘yellow’ end My actual code is a …

---

## [\#has\_arguments?](https://www.ruby-forum.com/t/has-arguments/173993)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 22\
**Last updated:** [August 20, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/has-arguments/173993 "2009-08-20T16:33:27Z")

</div>

Messing with optional argument check for the umpteenth time, eg. def meth(a=Exception) if a != Exception … else … end end Other’s might do: def meth(\*a) if !a.empty? a = a.first … else … end end Neither …

---

## [Looksee 0.1.0 Released](https://www.ruby-forum.com/t/looksee-0-1-0-released/174077)

<div class="topic-metadata">

**Author:** [@cage](https://www.ruby-forum.com/u/cage)\
**Replies:** 0\
**Last updated:** [August 20, 2009, 3:29pm UTC](https://www.ruby-forum.com/t/looksee-0-1-0-released/174077 "2009-08-20T15:29:07Z")

</div>

looksee version 0.1.0 has been released! http://github.com/oggy/looksee Looksee lets you examine the method lookup path of objects in ways not possible in plain ruby. Changes: 0.1.0 2009-08-20 Add methods undefin…

---

## [\[Feature #1866\] redefinable not (!) operators for 1.8](https://www.ruby-forum.com/t/feature-1866-redefinable-not-operators-for-1-8/173113)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 2\
**Last updated:** [August 20, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/feature-1866-redefinable-not-operators-for-1-8/173113 "2009-08-20T15:20:55Z")

</div>

Feature #1866: redefinable not (!) operators for 1.8 http://redmine.ruby-lang.org/issues/show/1866 e$B5/I\<\<Te(B: Shyouhei U. e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Low e$BC4Ev\<Te(B: Akinori MUSHA, e$B%+%F%4%je(B: …

---

## [How to handle pivot table window and its controls using ruby](https://www.ruby-forum.com/t/how-to-handle-pivot-table-window-and-its-controls-using-ruby/174072)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 0\
**Last updated:** [August 20, 2009, 11:57am UTC](https://www.ruby-forum.com/t/how-to-handle-pivot-table-window-and-its-controls-using-ruby/174072 "2009-08-20T11:57:00Z")

</div>

Hi i want to handle the PivotTable window and its controlls like radio buttons and buttons in excel using ruby. i tried but no luck.is there any tutorial or can any one help me out. require “win32ole” excel=WIN32OLE…

---

## [\`init': OCI Library Initialization Error (DBI::DatabaseError](https://www.ruby-forum.com/t/init-oci-library-initialization-error-dbi-databaseerror/174070)

<div class="topic-metadata">

**Author:** [@namitjain](https://www.ruby-forum.com/u/namitjain)\
**Replies:** 0\
**Last updated:** [August 20, 2009, 11:06am UTC](https://www.ruby-forum.com/t/init-oci-library-initialization-error-dbi-databaseerror/174070 "2009-08-20T11:06:31Z")

</div>

Hi All I tried to connect Oracle with Ruby but on executing the ruby script it gave the following error \`init’: OCI Library Initialization Error (DBI::DatabaseError}. To connect to DB I had the following configuratio…

---

## [API Change to Timeout?](https://www.ruby-forum.com/t/api-change-to-timeout/174068)

<div class="topic-metadata">

**Author:** [@Chris\_Eppstein](https://www.ruby-forum.com/u/Chris_Eppstein)\
**Replies:** 1\
**Last updated:** [August 20, 2009, 10:41am UTC](https://www.ruby-forum.com/t/api-change-to-timeout/174068 "2009-08-20T10:41:07Z")

</div>

---

## [TCPServer Error while I'm using WEBRick](https://www.ruby-forum.com/t/tcpserver-error-while-im-using-webrick/174038)

<div class="topic-metadata">

**Author:** [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Replies:** 1\
**Last updated:** [August 20, 2009, 10:22am UTC](https://www.ruby-forum.com/t/tcpserver-error-while-im-using-webrick/174038 "2009-08-20T10:22:48Z")

</div>

Hi. When I’m starting a ruby script with a WEBRick server included I’m receiving TCPServer Error. Here is the output: \[2009-08-19 22:57:00\] INFO WEBrick 1.3.1 \[2009-08-19 22:57:00\] INFO ruby 1.9.1 (2009-07-16) \[i6…

---

## [Cannot install shotgun with RubyGems](https://www.ruby-forum.com/t/cannot-install-shotgun-with-rubygems/174013)

<div class="topic-metadata">

**Author:** [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Replies:** 8\
**Last updated:** [August 20, 2009, 9:38am UTC](https://www.ruby-forum.com/t/cannot-install-shotgun-with-rubygems/174013 "2009-08-20T09:38:43Z")

</div>

Hello, I want to install shotgun for sinatra (see: Sinatra: Frequently Asked Questions). Installing the shotgun gem seems to work fine, the output of sudo gem install shotgun is: Successfully installed shotgun-0.4 …

---

## [Rubygems-isit19 1.0 Released](https://www.ruby-forum.com/t/rubygems-isit19-1-0-released/174058)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [August 20, 2009, 7:24am UTC](https://www.ruby-forum.com/t/rubygems-isit19-1-0-released/174058 "2009-08-20T07:24:26Z")

</div>

rubygems-isit19 version 1.0 has been released! http://isitruby19.com http://seattlerb.rubyforge.org/rubygems-isit19 Lets you figure out if your gems and gems you install might work on 1.9. Uses http://isitruby19.co…

---

## [Rubygems-isit19 1.0 Released](https://www.ruby-forum.com/t/rubygems-isit19-1-0-released/174057)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [August 20, 2009, 7:19am UTC](https://www.ruby-forum.com/t/rubygems-isit19-1-0-released/174057 "2009-08-20T07:19:45Z")

</div>

rubygems-isit19 version 1.0 has been released! http://isitruby19.com http://seattlerb.rubyforge.org/rubygems-isit19 Lets you figure out if your gems and gems you install might work on 1.9. Uses http://isitruby19.com …

---

## [CompilationRybu what an option --with-static-linked-ext](https://www.ruby-forum.com/t/compilationrybu-what-an-option-with-static-linked-ext/174056)

<div class="topic-metadata">

**Author:** [@yaroslav](https://www.ruby-forum.com/u/yaroslav)\
**Replies:** 0\
**Last updated:** [August 20, 2009, 7:09am UTC](https://www.ruby-forum.com/t/compilationrybu-what-an-option-with-static-linked-ext/174056 "2009-08-20T07:09:23Z")

</div>

At performance of scripts produces an error: /home/yaroslav/ruby/lib/ruby/1.8/openssl/ssl.rb:26: uninitialized constant OpenSSL::SSL::VERIFY\_PEER (NameError) from /home/yaroslav/ruby/lib/ruby/1.8/openssl.rb:23:in \`req…

---

## [Class name as a variable](https://www.ruby-forum.com/t/class-name-as-a-variable/174036)

<div class="topic-metadata">

**Author:** [@Im\_still](https://www.ruby-forum.com/u/Im_still)\
**Replies:** 4\
**Last updated:** [August 20, 2009, 5:12am UTC](https://www.ruby-forum.com/t/class-name-as-a-variable/174036 "2009-08-20T05:12:45Z")

</div>

Hi all I’m thinking about a question, that is : Several classes will have a method in a same name (probably do same thing too). then in a program I want the method calling class name coming from a variable( or maybe…

---

## [Bizarre Range behavior](https://www.ruby-forum.com/t/bizarre-range-behavior/173201)

<div class="topic-metadata">

**Author:** [@scottbrisko](https://www.ruby-forum.com/u/scottbrisko)\
**Replies:** 41\
**Last updated:** [August 20, 2009, 4:54am UTC](https://www.ruby-forum.com/t/bizarre-range-behavior/173201 "2009-08-20T04:54:01Z")

</div>

Can someone please explain this behavior in ruby (1.8.6p111): (“2”…“8”).to\_a =\> \[“2”, “3”, “4”, “5”, “6”, “7”\] (“2”…“8”).to\_a =\> \[“2”, “3”, “4”, “5”, “6”, “7”, “8”\] (“2”…“9”).to\_a =\> \[“2”, “3”, “4”, “5”, “6”,…

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

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