# Ruby

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

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

---

## [Code Review: installer\_and\_versions](https://www.ruby-forum.com/t/code-review-installer-and-versions/185758)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [March 26, 2010, 9:17pm UTC](https://www.ruby-forum.com/t/code-review-installer-and-versions/185758 "2010-03-26T21:17:07Z")

</div>

tfpt review “/shelveset:installer\_and\_versions;REDMOND\\jdeville” Comment : Checks in RC4 changelog Updates config.wxi (need to make this updateable, see http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=424…

---

## [Lower-case inner class support](https://www.ruby-forum.com/t/lower-case-inner-class-support/185828)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [March 26, 2010, 7:46pm UTC](https://www.ruby-forum.com/t/lower-case-inner-class-support/185828 "2010-03-26T19:46:23Z")

</div>

Last night I landed support for lower-case inner classes, which should help folks trying to access R’s inner classes in an Android app. See the comments on this bug for details: http://jira.codehaus.org/browse/JRUBY-4…

---

## [\[ANN\] 1.9.2 release plan](https://www.ruby-forum.com/t/ann-1-9-2-release-plan/185170)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 8\
**Last updated:** [March 26, 2010, 6:55pm UTC](https://www.ruby-forum.com/t/ann-1-9-2-release-plan/185170 "2010-03-26T18:55:27Z")

</div>

Hi, We announce 1.9.2 release plan: 31 Mar. freeze the spec 30 Apr. freeze the code 31 May. release 1.9.2-preview2 30 Jun. release 1.9.2-rc 31 Jul. release 1.9.2-p0 The following will be proceeded at each event: …

---

## [Hash enumeration returning nulls?](https://www.ruby-forum.com/t/hash-enumeration-returning-nulls/185824)

<div class="topic-metadata">

**Author:** [@cczona](https://www.ruby-forum.com/u/cczona)\
**Replies:** 1\
**Last updated:** [March 26, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/hash-enumeration-returning-nulls/185824 "2010-03-26T17:51:40Z")

</div>

Okay, I must just be too sleep-deprived to see it. Why is Hash.each (and the other enumerables) returning nothing but nils when clearly the hash is being populated? $foo={‘a’ =\> ‘1’, ‘b’=\> ‘2’} puts $foo.length pu…

---

## [Any idea of SciTE-ru supporting ruby?](https://www.ruby-forum.com/t/any-idea-of-scite-ru-supporting-ruby/185549)

<div class="topic-metadata">

**Author:** [@rollingwoods](https://www.ruby-forum.com/u/rollingwoods)\
**Replies:** 4\
**Last updated:** [March 26, 2010, 5:40pm UTC](https://www.ruby-forum.com/t/any-idea-of-scite-ru-supporting-ruby/185549 "2010-03-26T17:40:29Z")

</div>

SciTE-ru is a custom version of SciTE developed by Russian developer. It’s an awesome texteditor with code autocomplete, function list, snipts, almost a win/linus Textmate. But SciTE-ru abcent ruby supporting. How cou…

---

## [String array](https://www.ruby-forum.com/t/string-array/185818)

<div class="topic-metadata">

**Author:** [@oziris](https://www.ruby-forum.com/u/oziris)\
**Replies:** 2\
**Last updated:** [March 26, 2010, 5:30pm UTC](https://www.ruby-forum.com/t/string-array/185818 "2010-03-26T17:30:54Z")

</div>

I would like to know how I can put a word into an array character by character, for example the user type the word “hello” and the array would be \[“h”,“e”,“l”,“l”,“o”\], I only know how to this with gets but I don’t wa…

---

## [Index of string from beginning of line vs beginning of file](https://www.ruby-forum.com/t/index-of-string-from-beginning-of-line-vs-beginning-of-file/185756)

<div class="topic-metadata">

**Author:** [@xtremebain](https://www.ruby-forum.com/u/xtremebain)\
**Replies:** 9\
**Last updated:** [March 26, 2010, 5:17pm UTC](https://www.ruby-forum.com/t/index-of-string-from-beginning-of-line-vs-beginning-of-file/185756 "2010-03-26T17:17:30Z")

</div>

I am trying to write a basic script to implement “silent comments” In the example anything from “input.txt” that is enclosed between “–/” and “/–” will not be output to “output.text” It appears that the problem I am h…

---

## [Cognizance presents INSOMNIA: The Midnight Programming Contest](https://www.ruby-forum.com/t/cognizance-presents-insomnia-the-midnight-programming-contest/185817)

<div class="topic-metadata">

**Author:** [@dipit\_grover](https://www.ruby-forum.com/u/dipit_grover)\
**Replies:** 0\
**Last updated:** [March 26, 2010, 5:14pm UTC](https://www.ruby-forum.com/t/cognizance-presents-insomnia-the-midnight-programming-contest/185817 "2010-03-26T17:14:46Z")

</div>

Cognizance 2010 presents Insomnia THE MIDNIGHT PROGRAMMING CONTEST… www.insomnia.cognizance.org.in Starts on : 27th March, 9:00 PM As the word itself implies “sleepless”. Engage your programming faculties in the ul…

---

## [A plugin system using extend](https://www.ruby-forum.com/t/a-plugin-system-using-extend/185479)

<div class="topic-metadata">

**Author:** [@jdv](https://www.ruby-forum.com/u/jdv)\
**Replies:** 16\
**Last updated:** [March 26, 2010, 4:38pm UTC](https://www.ruby-forum.com/t/a-plugin-system-using-extend/185479 "2010-03-26T16:38:07Z")

</div>

Hi. I tried to design a simple plugin system using :extend called upon instance (class Object - RDoc Documentation usual documented behavior), so as to inject some methods redefinitions while keeping the ability to c…

---

## [How to write in an array inside a block?](https://www.ruby-forum.com/t/how-to-write-in-an-array-inside-a-block/185806)

<div class="topic-metadata">

**Author:** [@zathras](https://www.ruby-forum.com/u/zathras)\
**Replies:** 2\
**Last updated:** [March 26, 2010, 2:44pm UTC](https://www.ruby-forum.com/t/how-to-write-in-an-array-inside-a-block/185806 "2010-03-26T14:44:52Z")

</div>

Hello, i want to write all files from my local directory in an array. Something like (not working): d = Dir.new("/Volumes/System/") d.each {|x| file\_list.push(x) } How can i push single filenames through d.each into…

---

## [All contiguous subsets](https://www.ruby-forum.com/t/all-contiguous-subsets/185772)

<div class="topic-metadata">

**Author:** [@joe\_chesak](https://www.ruby-forum.com/u/joe_chesak)\
**Replies:** 4\
**Last updated:** [March 26, 2010, 1:17pm UTC](https://www.ruby-forum.com/t/all-contiguous-subsets/185772 "2010-03-26T13:17:41Z")

</div>

Hello list, I know the ruby community is filled with algorithmic folks. I have a fairly simple algorithm that I have solved, but I know it can be done cleaner than I have. Given a short string of words separated b…

---

## [\[Bug #2995\] TestHash#test\_recursive\_check fails](https://www.ruby-forum.com/t/bug-2995-testhash-test-recursive-check-fails/185607)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 4\
**Last updated:** [March 26, 2010, 11:42am UTC](https://www.ruby-forum.com/t/bug-2995-testhash-test-recursive-check-fails/185607 "2010-03-26T11:42:54Z")

</div>

Bug #2995: TestHash#test\_recursive\_check fails http://redmine.ruby-lang.org/issues/show/2995 e$B5/I\<\<Te(B: Shugo M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Nobuyoshi N., e$B%+%F%4%je(B: core, Targe…

---

## [\[feature:trunk\] warning when Kernel#p is used](https://www.ruby-forum.com/t/feature-trunk-warning-when-kernel-p-is-used/162567)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 6\
**Last updated:** [March 26, 2010, 11:38am UTC](https://www.ruby-forum.com/t/feature-trunk-warning-when-kernel-p-is-used/162567 "2010-03-26T11:38:13Z")

</div>

e$B1sF#$G$9!#e(B Kernel#p e$B$OHs\>o$KJXMx$G$9$,!"%G%P%C%08e$Ke(B p e$B$N8F$S=P$7$r$9$Y$F\>C$;$?$+e(B e$BIT0B$K$J$k$3$H$,$"$j$^$9!#e(B p e$B$H$$$&L\>A0$O;H$&$H$-$OHs\>o$KJXMx$G$9$,!";DG0$J$,$i8!:w$9$k$K$OHs\>o$Ke(B e$BI…

---

## [WhiteBoard Class (for these Boids)](https://www.ruby-forum.com/t/whiteboard-class-for-these-boids/185743)

<div class="topic-metadata">

**Author:** [@thunk](https://www.ruby-forum.com/u/thunk)\
**Replies:** 5\
**Last updated:** [March 26, 2010, 10:35am UTC](https://www.ruby-forum.com/t/whiteboard-class-for-these-boids/185743 "2010-03-26T10:35:35Z")

</div>

http://gist.github.com/343358 This seems to work with decent performance but I have little/no experience using some of these features - almost seems “too good to be true” to this old time programmer that spent days d…

---

## [Saving gzipped string into Sqlite3 via Rails throws unrecognized token error](https://www.ruby-forum.com/t/saving-gzipped-string-into-sqlite3-via-rails-throws-unrecognized-token-error/185794)

<div class="topic-metadata">

**Author:** [@pablitoman](https://www.ruby-forum.com/u/pablitoman)\
**Replies:** 3\
**Last updated:** [March 26, 2010, 8:40am UTC](https://www.ruby-forum.com/t/saving-gzipped-string-into-sqlite3-via-rails-throws-unrecognized-token-error/185794 "2010-03-26T08:40:53Z")

</div>

Not sure if this belongs in the rails forum or here (it’s a little of both)… I’m using rails 2.3 and I’m trying to compress (gzip) text that I’d like to save using ActiveRecord into a sqlite database. However, the co…

---

## [Question about test ironruby for rails](https://www.ruby-forum.com/t/question-about-test-ironruby-for-rails/185797)

<div class="topic-metadata">

**Author:** [@sagasw](https://www.ruby-forum.com/u/sagasw)\
**Replies:** 2\
**Last updated:** [March 26, 2010, 8:28am UTC](https://www.ruby-forum.com/t/question-about-test-ironruby-for-rails/185797 "2010-03-26T08:28:36Z")

</div>

Hi, I just follow the steps with this video http://www.teachmetocode.com/screencasts/6 And has install rails sqlite3-ironruby nifty-generators successfully. I generate a “Welcome” controller, and in routes.rb, change…

---

## [Unit Testing : line by line?](https://www.ruby-forum.com/t/unit-testing-line-by-line/185733)

<div class="topic-metadata">

**Author:** [@onionwushu](https://www.ruby-forum.com/u/onionwushu)\
**Replies:** 3\
**Last updated:** [March 26, 2010, 3:46am UTC](https://www.ruby-forum.com/t/unit-testing-line-by-line/185733 "2010-03-26T03:46:29Z")

</div>

Hi everybody ! I would like to verify some properties in a method, line by line. For example: class Hello def initialize @a = “hi !” end def say\_hi @b = “hi !” # checking here @b = “hello !” # another checking…

---

## [\[Bug #1031\] -U $B%\*%W%7%g%s$N@bL@$,(B --help $B$K$J$$(B](https://www.ruby-forum.com/t/bug-1031-u-b-w-7-g-s-n-bl-b-help-b-k-j-b/185688)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 5\
**Last updated:** [March 26, 2010, 2:39am UTC](https://www.ruby-forum.com/t/bug-1031-u-b-w-7-g-s-n-bl-b-help-b-k-j-b/185688 "2010-03-26T02:39:11Z")

</div>

e$B%A%1%C%He(B #1031 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.) e$B1sF#$G$9!#e(B e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B In message “Re: \[ruby-dev:37818\] \[Bug #1031\] -U e$B%\*%W%7%g%s$N@bL@$,e(B --help e$B$K$J$$e(B” on Th…

---

## [FusionCharts -Jruby](https://www.ruby-forum.com/t/fusioncharts-jruby/185325)

<div class="topic-metadata">

**Author:** [@veena](https://www.ruby-forum.com/u/veena)\
**Replies:** 4\
**Last updated:** [March 26, 2010, 2:18am UTC](https://www.ruby-forum.com/t/fusioncharts-jruby/185325 "2010-03-26T02:18:19Z")

</div>

Hai friends, I am a newbie in Jruby on Rails… while using fusion charts i am not able to generate the XML values using the builder file.I asks for the template for the builder file. Instead if i give the hard coded v…

---

## [Request Error Submitting CGI Form](https://www.ruby-forum.com/t/request-error-submitting-cgi-form/185781)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 2\
**Last updated:** [March 26, 2010, 12:24am UTC](https://www.ruby-forum.com/t/request-error-submitting-cgi-form/185781 "2010-03-26T00:24:50Z")

</div>

Hi guys, I’m trying to submit a form to the following website (http://www.tse.or.jp/tseHpFront/HPLCDS0101E.do) and just want to print out the result. Here’s the code that I’m using. require ‘rubygems’ require ‘mech…

---

## [Re: ir -S gem not working on windows 7 32-bit](https://www.ruby-forum.com/t/re-ir-s-gem-not-working-on-windows-7-32-bit/185776)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 11:31pm UTC](https://www.ruby-forum.com/t/re-ir-s-gem-not-working-on-windows-7-32-bit/185776 "2010-03-25T23:31:20Z")

</div>

Yeah. Thats expected, but we should also fix it. Ir -S igem should work From: Ivan Porto C. removed\_email\_address@domain.invalid Sent: Thursday, March 25, 2010 3:13 PM To: ironruby-core removed\_email\_address@domain.i…

---

## [\[Bug #843\](Closed) RubyGems include useless libraries](https://www.ruby-forum.com/t/bug-843-closed-rubygems-include-useless-libraries/185775)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 11:13pm UTC](https://www.ruby-forum.com/t/bug-843-closed-rubygems-include-useless-libraries/185775 "2010-03-25T23:13:47Z")

</div>

e$B%A%1%C%He(B #843 e$B$,99?7$5$l$^$7$?!#e(B (by Eric H.) e$B%9%F!\<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B lib/rubygems/test\_utilities.rb is generally useful for people writing RubyGems extensions. Moving it to …

---

## [Ir -S gem not working on windows 7 32-bit](https://www.ruby-forum.com/t/ir-s-gem-not-working-on-windows-7-32-bit/185774)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 11:13pm UTC](https://www.ruby-forum.com/t/ir-s-gem-not-working-on-windows-7-32-bit/185774 "2010-03-25T23:13:12Z")

</div>

Hi just for information: On a clean instance of windows 7, with the latest ironruby release and using cmd.exe I’m unable to run ir -S gem install rails can’t find C:\\users\\ivan\\gem is the error message. Met vriend…

---

## [\--disable-gems permanent?](https://www.ruby-forum.com/t/disable-gems-permanent/185773)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 10:53pm UTC](https://www.ruby-forum.com/t/disable-gems-permanent/185773 "2010-03-25T22:53:07Z")

</div>

Before I report a bug report to core on this one, thought I’d see if anybody had some feedback first. Currently with 1.9.1, if you run $ ruby --disable-gems test.rb where test.rb is: require ‘rubygems’ require ‘ge…

---

## [Actuve Record](https://www.ruby-forum.com/t/actuve-record/197032)

<div class="topic-metadata">

**Author:** [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/actuve-record/197032 "2010-03-25T18:43:55Z")

</div>

HI all in my application , i have 2 tables subjects and teachers. the relation is one to many. i have to display the subjects first and when i click on the subjects i have to display the teachers. and i have to add …

---

## [Problem sorting](https://www.ruby-forum.com/t/problem-sorting/185750)

<div class="topic-metadata">

**Author:** [@augus](https://www.ruby-forum.com/u/augus)\
**Replies:** 3\
**Last updated:** [March 25, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/problem-sorting/185750 "2010-03-25T18:43:20Z")

</div>

I am trying to sort an array using a block but somehow I am not seeing what I am want. First I want to sort the total, then break the tie on gold goldcount, silvercount and finally on bronzcount Here is my code. what …

---

## [\[Bug #2703\] make test failed](https://www.ruby-forum.com/t/bug-2703-make-test-failed/182651)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 5:03pm UTC](https://www.ruby-forum.com/t/bug-2703-make-test-failed/182651 "2010-03-25T17:03:10Z")

</div>

Bug #2703: make test failed http://redmine.ruby-lang.org/issues/show/2703 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.8.8dev (2010-01-27 revision 26440) \[i686-linux\] …

---

## [How to revise the programm to analyze web?](https://www.ruby-forum.com/t/how-to-revise-the-programm-to-analyze-web/185746)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 4:43pm UTC](https://www.ruby-forum.com/t/how-to-revise-the-programm-to-analyze-web/185746 "2010-03-25T16:43:51Z")

</div>

the following programme can run successfully,i can get a table require ‘hpricot’ require ‘open-uri’ doc = Hpricot(open(‘http://webbbs.gamer.com.tw/board.php?brd=Chat&p=1’)) tab = (doc/‘table\[@class=“ssize”\]’) (tab…

---

## [How to create mutiple hash dynamicaly](https://www.ruby-forum.com/t/how-to-create-mutiple-hash-dynamicaly/185734)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 7\
**Last updated:** [March 25, 2010, 3:47pm UTC](https://www.ruby-forum.com/t/how-to-create-mutiple-hash-dynamicaly/185734 "2010-03-25T15:47:26Z")

</div>

Hi i am having two arrays and i have append into a hash like this.Please help me. {:name=\>"Databases",:url=\>"http://www.examplw.com"}, {:name=\>"Network management",:url=\>"http://www.examplw.com"}, {:name=\>"Security",:u…

---

## [Out of range problems and odd number hashs](https://www.ruby-forum.com/t/out-of-range-problems-and-odd-number-hashs/185740)

<div class="topic-metadata">

**Author:** [@ceissen](https://www.ruby-forum.com/u/ceissen)\
**Replies:** 4\
**Last updated:** [March 25, 2010, 1:30pm UTC](https://www.ruby-forum.com/t/out-of-range-problems-and-odd-number-hashs/185740 "2010-03-25T13:30:38Z")

</div>

Hi, I am building a program that calculates the data points of a circle based on 1 data point that the user enters. The user could enter the radius circumference or area and get back the other properties of the circl…

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

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