# Ruby

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

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

---

## [How to sanitize sql-column names?](https://www.ruby-forum.com/t/how-to-sanitize-sql-column-names/168653)

<div class="topic-metadata">

**Author:** [@Jan\_LSSS\_hr](https://www.ruby-forum.com/u/Jan_LSSS_hr)\
**Replies:** 4\
**Last updated:** [May 24, 2009, 11:30am UTC](https://www.ruby-forum.com/t/how-to-sanitize-sql-column-names/168653 "2009-05-24T11:30:37Z")

</div>

Hello, I’m developing a search functionality (as part of a RoR-App) and I was wonderinger: Is there a way to sanitize column-names for security? For values, there are prepared statements like: Address.find(:all, :con…

---

## [Looking for more guinea pigs, new icalendar gem](https://www.ruby-forum.com/t/looking-for-more-guinea-pigs-new-icalendar-gem/168673)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 2\
**Last updated:** [May 24, 2009, 1:34am UTC](https://www.ruby-forum.com/t/looking-for-more-guinea-pigs-new-icalendar-gem/168673 "2009-05-24T01:34:31Z")

</div>

I recently made the new icalendar library for Ruby which I’ve been working on for the past six months available on github I plan to also put this on rubyforge (the project has been created already), but I want it to…

---

## [Windows Automation](https://www.ruby-forum.com/t/windows-automation/163699)

<div class="topic-metadata">

**Author:** [@marcc](https://www.ruby-forum.com/u/marcc)\
**Replies:** 6\
**Last updated:** [May 23, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/windows-automation/163699 "2009-05-23T18:08:38Z")

</div>

So, I’m trying to figure out how to automate various programs using ruby, and feeling a bit over my head at the moment. I’m still pretty new to ruby and programming, so maybe this is beyond me, but its the #1 reason …

---

## [Tell me about yourself?](https://www.ruby-forum.com/t/tell-me-about-yourself/168661)

<div class="topic-metadata">

**Author:** [@Jaggu\_BN](https://www.ruby-forum.com/u/Jaggu_BN)\
**Replies:** 0\
**Last updated:** [May 23, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/tell-me-about-yourself/168661 "2009-05-23T17:56:53Z")

</div>

Sample Interview Questions for Job Seekers. check for more details, http://www.netinfocentre.com/InterviewSkills.html Good Luck

---

## [Be healthy live healthy](https://www.ruby-forum.com/t/be-healthy-live-healthy/168651)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 23, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/be-healthy-live-healthy/168651 "2009-05-23T15:31:02Z")

</div>

Get all answers of your questions related to HEALTH.Wanna Lose weight,Get healthy,blood pressure problems,hair fall, height fall,short height,disease,diabetes. FOR MORE INFO LOG ON TO http://www.jusani-health.blogspot…

---

## [Get Into The World Of REAL ESTATE](https://www.ruby-forum.com/t/get-into-the-world-of-real-estate/168639)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 23, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/get-into-the-world-of-real-estate/168639 "2009-05-23T15:11:08Z")

</div>

Get The Most Valuable and Best For Investment Properties IN ASIA, !! Real Estate Builders… Real Estate Dealer Buy, Sell REAL ESTATE IN GULF ,DUBAI AND AUSTRIA For More Info Logon To http://www.jusani-realestate.blo…

---

## [\[Bug #1505\] DL::CPtr#\<=\> doesn't return -1](https://www.ruby-forum.com/t/bug-1505-dl-cptr-doesnt-return-1/168635)

<div class="topic-metadata">

**Author:** [@Takashi\_T](https://www.ruby-forum.com/u/Takashi_T)\
**Replies:** 1\
**Last updated:** [May 23, 2009, 11:57am UTC](https://www.ruby-forum.com/t/bug-1505-dl-cptr-doesnt-return-1/168635 "2009-05-23T11:57:59Z")

</div>

Bug #1505: DL::CPtr#\<=\> doesn’t return -1 http://redmine.ruby-lang.org/issues/show/1505 e$B5/I\<\<Te(B: Takashi T. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext, Target version: 1.9.2 ruby -v: ruby …

---

## [Vertical frames for ruby-doc.org?](https://www.ruby-forum.com/t/vertical-frames-for-ruby-doc-org/168615)

<div class="topic-metadata">

**Author:** [@Michael\_JSISJacks](https://www.ruby-forum.com/u/Michael_JSISJacks)\
**Replies:** 2\
**Last updated:** [May 23, 2009, 11:40am UTC](https://www.ruby-forum.com/t/vertical-frames-for-ruby-doc-org/168615 "2009-05-23T11:40:58Z")

</div>

Hi all, Is anyone aware of a good hack to make the frames display vertically instead of horizontally on ruby-doc.org? I have much more screen width than I have height, and it would be a bit easier on the eyes I think. …

---

## [How does array.each element work?](https://www.ruby-forum.com/t/how-does-array-each-element-work/168564)

<div class="topic-metadata">

**Author:** [@Neela\_megha\_shyam\_C](https://www.ruby-forum.com/u/Neela_megha_shyam_C)\
**Replies:** 2\
**Last updated:** [May 23, 2009, 10:09am UTC](https://www.ruby-forum.com/t/how-does-array-each-element-work/168564 "2009-05-23T10:09:11Z")

</div>

Hi All, Here is my code snippet:- my\_array = \[1,2,3\] puts my\_array.each {} or my\_array = \[1,2,3\] my\_array.each {|x| puts x} O/p:- 1 2 3 I want to know how the array.each works. How the compiler interprets and …

---

## [\[ANN\] gettext-2.0.4, gettext\_activerecord-2.0.4, gettext\_rails-2.0.4](https://www.ruby-forum.com/t/ann-gettext-2-0-4-gettext-activerecord-2-0-4-gettext-rails-2-0-4/168636)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [May 23, 2009, 9:05am UTC](https://www.ruby-forum.com/t/ann-gettext-2-0-4-gettext-activerecord-2-0-4-gettext-rails-2-0-4/168636 "2009-05-23T09:05:52Z")

</div>

Hi, Ruby-GetText-Package-2.0.4 and the families (gettext-2.0.4, gettext\_activerecord-2.0.4 and gettext\_rails-2.0.4) are now available. Ruby-GetText-Package is the library/tools for message localization. gettext - M…

---

## [\[ANN\] locale-2.0.4, locale\_rails-2.0.4](https://www.ruby-forum.com/t/ann-locale-2-0-4-locale-rails-2-0-4/168634)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [May 23, 2009, 9:05am UTC](https://www.ruby-forum.com/t/ann-locale-2-0-4-locale-rails-2-0-4/168634 "2009-05-23T09:05:17Z")

</div>

Hi, Ruby-Locale(locale-2.0.4) and Ruby-Locale for Ruby on Rails(locale\_rails-2.0.4) are now available. Ruby-Locale is the library to manage/detect various format of locale IDs(language tags), and provide ISO 639-3, …

---

## [Eventmachine 0.12.8](https://www.ruby-forum.com/t/eventmachine-0-12-8/168626)

<div class="topic-metadata">

**Author:** [@tmm1](https://www.ruby-forum.com/u/tmm1)\
**Replies:** 0\
**Last updated:** [May 23, 2009, 4:57am UTC](https://www.ruby-forum.com/t/eventmachine-0-12-8/168626 "2009-05-23T04:57:22Z")

</div>

I am happy to announce the release of eventmachine 0.12.8. Gems (including binary builds for win32 and jruby) have been uploaded to rubyforge and should be available via gem install shortly. This release contains al…

---

## [Require not working correctly?](https://www.ruby-forum.com/t/require-not-working-correctly/168448)

<div class="topic-metadata">

**Author:** [@Adlai](https://www.ruby-forum.com/u/Adlai)\
**Replies:** 7\
**Last updated:** [May 23, 2009, 4:48am UTC](https://www.ruby-forum.com/t/require-not-working-correctly/168448 "2009-05-23T04:48:01Z")

</div>

I’m just starting out in Ruby, and I used the one-click installer. The version on my computer seems to be Ruby 1.8.6-27. I’m working through some of the examples in Why’s Poignant Guide, and things seem to have broken…

---

## [Rake tests status](https://www.ruby-forum.com/t/rake-tests-status/168621)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 2\
**Last updated:** [May 23, 2009, 2:24am UTC](https://www.ruby-forum.com/t/rake-tests-status/168621 "2009-05-23T02:24:07Z")

</div>

I updated http://www.ironruby.net/Documentation/Real\_Ruby\_Applications with this… Rake To use Rake, install Rake using igem i rake. The IronRuby zip file includes bin\\irake.bat which is a shortcut you can then use to…

---

## [Ruby2java 0.0.1 Released](https://www.ruby-forum.com/t/ruby2java-0-0-1-released/168624)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 1\
**Last updated:** [May 23, 2009, 1:26am UTC](https://www.ruby-forum.com/t/ruby2java-0-0-1-released/168624 "2009-05-23T01:26:13Z")

</div>

ruby2java version 0.0.1 has been released! http://kenai.com/projects/ruby2java/pages/Home The Ruby2Java compiler inspects the runtime definition of classes to produce a normal-looking Java class. All metaprogrammed m…

---

## [Review: Added Rake tests to irtests.bat](https://www.ruby-forum.com/t/review-added-rake-tests-to-irtests-bat/168622)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [May 23, 2009, 12:59am UTC](https://www.ruby-forum.com/t/review-added-rake-tests-to-irtests-bat/168622 "2009-05-23T00:59:55Z")

</div>

Thanks, Shri

---

## [Sending extend and include to your own class definition](https://www.ruby-forum.com/t/sending-extend-and-include-to-your-own-class-definition/168613)

<div class="topic-metadata">

**Author:** [@rlf](https://www.ruby-forum.com/u/rlf)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 11:02pm UTC](https://www.ruby-forum.com/t/sending-extend-and-include-to-your-own-class-definition/168613 "2009-05-22T23:02:53Z")

</div>

hello. I’m trying to learn the ruby way of doing things, and ran across some code that I’m finding hard to understand. It seems to be sending extend and include messages of inner modules to the class def itself. I’…

---

## [Code Review: regressions](https://www.ruby-forum.com/t/code-review-regressions/168618)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 10:47pm UTC](https://www.ruby-forum.com/t/code-review-regressions/168618 "2009-05-22T22:47:38Z")

</div>

tfpt review “/shelveset:regressions;REDMOND\\jdeville” Comment : Regressions tests for the following CP bugs. !!!Note that closing 1351 means we are upgrading redist-libs and rubygems!!! : ID Title 374 irails…

---

## [Extending Float](https://www.ruby-forum.com/t/extending-float/168506)

<div class="topic-metadata">

**Author:** [@jphastings](https://www.ruby-forum.com/u/jphastings)\
**Replies:** 5\
**Last updated:** [May 22, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/extending-float/168506 "2009-05-22T21:29:08Z")

</div>

Maybe I haven’t wrapped my head around OOP in the way I should have, can anyone explain to me why I can’t do this?: class Percentage \< Float def to\_s(decimalplaces = 0) (((self \* 10\*\*(decimalplaces+2)).round)/10\*\*deci…

---

## [Jruby Rack Error](https://www.ruby-forum.com/t/jruby-rack-error/167917)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 9\
**Last updated:** [May 22, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/jruby-rack-error/167917 "2009-05-22T21:25:37Z")

</div>

for some reason we are getting this all of a sudden, any ideas ? jruby 1.2.0 rack 0.9.4 jruby-openssl 0.4 SEVERE: Error: application initialization failed org.jruby.rack.RackInitializationException: unable to create…

---

## [MSN adCenter API](https://www.ruby-forum.com/t/msn-adcenter-api/168610)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 9:17pm UTC](https://www.ruby-forum.com/t/msn-adcenter-api/168610 "2009-05-22T21:17:15Z")

</div>

Also anything out there for MSN adCenter API in Ruby? TIA, GP

---

## [Gem naming recommendation](https://www.ruby-forum.com/t/gem-naming-recommendation/168608)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 8:56pm UTC](https://www.ruby-forum.com/t/gem-naming-recommendation/168608 "2009-05-22T20:56:21Z")

</div>

I wrote up my thoughts on naming gems: http://blog.segment7.net/articles/2009/05/20/a-project-naming-recommendation To summarize, I like underscored\_names so that you can have an underscore\_name-with\_some\_plugin and e…

---

## [What's the purpose of IRB.confand/or TOPLEVEL\_BINDING?](https://www.ruby-forum.com/t/whats-the-purpose-of-irb-confand-or-toplevel-binding/168542)

<div class="topic-metadata">

**Author:** [@ghorner](https://www.ruby-forum.com/u/ghorner)\
**Replies:** 1\
**Last updated:** [May 22, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/whats-the-purpose-of-irb-confand-or-toplevel-binding/168542 "2009-05-22T20:21:13Z")

</div>

Hi all, I’m peering into irb’s internals and am wondering what’s the purpose of IRB.conf\[:CONTEXT\_MODE\]? I understand most of the ruby code but all my googling has yet to bring up anyone who uses this. Here is a link …

---

## ["consuming" the hash instead of just fetching from it](https://www.ruby-forum.com/t/consuming-the-hash-instead-of-just-fetching-from-it/168565)

<div class="topic-metadata">

**Author:** [@balint](https://www.ruby-forum.com/u/balint)\
**Replies:** 4\
**Last updated:** [May 22, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/consuming-the-hash-instead-of-just-fetching-from-it/168565 "2009-05-22T19:47:15Z")

</div>

Hi, Deleting (vs. just fetching) the hash key from an options hash that was passed in as an argument to the method seems prevalent. I saw it in several high-quality OS projects (e.g DataMapper, Rails) For example: u…

---

## [RubyMacros 0.1.4 Released](https://www.ruby-forum.com/t/rubymacros-0-1-4-released/168591)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 6:37pm UTC](https://www.ruby-forum.com/t/rubymacros-0-1-4-released/168591 "2009-05-22T18:37:29Z")

</div>

RubyMacros version 0.1.4 has been released! http://github.com/coatl/rubymacros/ http://rubyforge.org/projects/rubymacros/ RubyMacros is a lisp-like macro pre-processor for Ruby. More than just a purely textual substi…

---

## [RedParse 0.8.2 Released](https://www.ruby-forum.com/t/redparse-0-8-2-released/168588)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/redparse-0-8-2-released/168588 "2009-05-22T18:08:44Z")

</div>

RedParse version 0.8.2 has been released! http://github.com/coatl/redparse/ http://rubyforge.org/projects/redparse/ RedParse is a ruby parser written in pure ruby. Instead of YACC or ANTLR, it’s parse tool is a home-…

---

## [Gsub choking on fixnum](https://www.ruby-forum.com/t/gsub-choking-on-fixnum/168462)

<div class="topic-metadata">

**Author:** [@caliwildman](https://www.ruby-forum.com/u/caliwildman)\
**Replies:** 9\
**Last updated:** [May 22, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/gsub-choking-on-fixnum/168462 "2009-05-22T18:00:35Z")

</div>

I recently upgrade Ruby from 1.8.5 to 1.8.6. With 1.8.5, gsub handled a fixnum just fine but choked on it in 1.8.6. Casting the fixnum to a string solved my problem but I’m wondering if this is a bug or it was a bug a…

---

## [\[Bug #1075\](Rejected) \\r\\n $B$H(B \\n $B$,:.:\_$7$?(B CSV $B$,%(%i!\<$K$J$k(B](https://www.ruby-forum.com/t/bug-1075-rejected-r-n-b-h-b-n-b-7-b-csv-b-i-k-j-k-b/168586)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/bug-1075-rejected-r-n-b-h-b-n-b-7-b-csv-b-i-k-j-k-b/168586 "2009-05-22T18:00:31Z")

</div>

e$B%A%1%C%He(B #1075 e$B$,99?7$5$l$^$7$?!#e(B (by James G.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BRejectede$B$KJQ99e(B Ruby 1.9 uses an all new CSV library. It’s somewhat more strict in it’s parsing as a means to get dramat…

---

## [Spicycode-rcov binaries for windows machine](https://www.ruby-forum.com/t/spicycode-rcov-binaries-for-windows-machine/168574)

<div class="topic-metadata">

**Author:** [@linewriter](https://www.ruby-forum.com/u/linewriter)\
**Replies:** 3\
**Last updated:** [May 22, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/spicycode-rcov-binaries-for-windows-machine/168574 "2009-05-22T17:58:54Z")

</div>

hi, I am (sadly) PC user and i would like to get spicycode-rcov working for cucumber and selenium. I could not compile and install spicycode-rcov since i dont have nmake.exe and cl.exe which is only part of visula stu…

---

## [RubyLexer 0.7.4 Released](https://www.ruby-forum.com/t/rubylexer-0-7-4-released/168585)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 0\
**Last updated:** [May 22, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/rubylexer-0-7-4-released/168585 "2009-05-22T17:47:37Z")

</div>

rubylexer version 0.7.4 has been released! http://github.com/coatl/rubylexer/ http://rubyforge.org/projects/rubylexer/ RubyLexer is a lexer library for Ruby, written in Ruby. Rubylexer is meant as a lexer for Ruby t…

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

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