# Ruby

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

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

---

## [Onion 0.0.2 Released](https://www.ruby-forum.com/t/onion-0-0-2-released/165740)

<div class="topic-metadata">

**Author:** [@backorder](https://www.ruby-forum.com/u/backorder)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/onion-0-0-2-released/165740 "2009-04-16T21:55:25Z")

</div>

Onion 0.0.2 has been released. gem install Onion Homepage: http://rubyforge.org/projects/onion/ Blog{Ruby, Onion, etc…}: http://mecenia.blogspot.com/ Onion, or Array Onion, allows peeling an array like an onion. It s…

---

## [Re: irtests.bat spawning multiple processes](https://www.ruby-forum.com/t/re-irtests-bat-spawning-multiple-processes/165725)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/re-irtests-bat-spawning-multiple-processes/165725 "2009-04-16T20:11:24Z")

</div>

Mspec will output to a file with the -o parameter (I believe) JD

---

## [Tokenizing a large file](https://www.ruby-forum.com/t/tokenizing-a-large-file/165614)

<div class="topic-metadata">

**Author:** [@walkins](https://www.ruby-forum.com/u/walkins)\
**Replies:** 8\
**Last updated:** [April 16, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/tokenizing-a-large-file/165614 "2009-04-16T19:40:16Z")

</div>

I have a large file that I need to tokenize. The method I am using now is fast, but eats up a ton of memory by reading in the entire file first as a String. I would also like to reuse existing tokens for duplicates. …

---

## [Quick script to search for](https://www.ruby-forum.com/t/quick-script-to-search-for/165718)

<div class="topic-metadata">

**Author:** [@worcestershire77](https://www.ruby-forum.com/u/worcestershire77)\
**Replies:** 2\
**Last updated:** [April 16, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/quick-script-to-search-for/165718 "2009-04-16T19:36:09Z")

</div>

I need to write rb script that will recursively search a directory for all files of particular types - say \*.jpg, \*.gif and \*.png files. Then I need to re-search the same directory structure identifying which of these…

---

## [TexTile to Word Document](https://www.ruby-forum.com/t/textile-to-word-document/165609)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 11\
**Last updated:** [April 16, 2009, 7:06pm UTC](https://www.ruby-forum.com/t/textile-to-word-document/165609 "2009-04-16T19:06:43Z")

</div>

Hi! I have fallen quite in love with TexTile! It helps me write reasonably comprehensible documents “on the go” - free from worrying about formatting, just nice basic clean documents. Combine that with a script tha…

---

## [Problem involving Ruby, git and cron](https://www.ruby-forum.com/t/problem-involving-ruby-git-and-cron/165719)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/problem-involving-ruby-git-and-cron/165719 "2009-04-16T18:44:24Z")

</div>

Sorry to post this here, it’s really a combined Ruby/Linux/Git problem but I’m hoping someone here can point me in the right direction. I’ve written a Ruby script that exports all known branches of some git repos to …

---

## [Ruby net-ssh problems](https://www.ruby-forum.com/t/ruby-net-ssh-problems/165714)

<div class="topic-metadata">

**Author:** [@pmak](https://www.ruby-forum.com/u/pmak)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 5:51pm UTC](https://www.ruby-forum.com/t/ruby-net-ssh-problems/165714 "2009-04-16T17:51:34Z")

</div>

Hi everybody, we’re using the ruby net-ssh library from the ubuntu 8.10 repository (apparently net-ssh 1.1.2) to connect to multiple computers and run some programs there. However the maximum number of connections to…

---

## [Enlightenment libs + ruby](https://www.ruby-forum.com/t/enlightenment-libs-ruby/165710)

<div class="topic-metadata">

**Author:** [@Siemen\_B](https://www.ruby-forum.com/u/Siemen_B)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/enlightenment-libs-ruby/165710 "2009-04-16T17:10:26Z")

</div>

Hi List, Is there anyone who has experience with enlightenment and ruby? I would like to use ruby for a project that uses e17 libs for the gui. I found Tilman S.'s ruby-efl bindings and redact at code-monkey.de, but …

---

## [The "Ruby Best Practices" Collaborative Blog](https://www.ruby-forum.com/t/the-ruby-best-practices-collaborative-blog/165492)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 29\
**Last updated:** [April 16, 2009, 5:03pm UTC](https://www.ruby-forum.com/t/the-ruby-best-practices-collaborative-blog/165492 "2009-04-16T17:03:58Z")

</div>

Hi folks, This is a one-time announcement about yet another blog project of mine… == What == A couple weeks ago I put out a call for volunteers to run a collaborative blog with me focused on best practices in Ruby. …

---

## [How to know if completely donwloaded](https://www.ruby-forum.com/t/how-to-know-if-completely-donwloaded/165438)

<div class="topic-metadata">

**Author:** [@dymyker46](https://www.ruby-forum.com/u/dymyker46)\
**Replies:** 4\
**Last updated:** [April 16, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/how-to-know-if-completely-donwloaded/165438 "2009-04-16T16:58:05Z")

</div>

i have tried combining all what i research… #code starts here: listofFile = \[ … \] #\<-- internet files like PDF, etc… listofFile.each do |each\_file| fileBaseName = File.basename(each\_file) filePath = Dir.pwd + ‘/’ …

---

## [Rinda/eval.rb](https://www.ruby-forum.com/t/rinda-eval-rb/164292)

<div class="topic-metadata">

**Author:** [@Masatoshi\_SEKI](https://www.ruby-forum.com/u/Masatoshi_SEKI)\
**Replies:** 19\
**Last updated:** [April 16, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/rinda-eval-rb/164292 "2009-04-16T16:20:22Z")

</div>

e$B31$H$$$$$^$9!#e(B Rindae$B$Ke(BLindae$B$Ne(Bevale$B$rDI2C$7$?$$$H;W$C$F$^$9!#e(B (1.8e$B$He(B1.9e$B$=$l$\>$l$Ke(B) Lindae$B$Ne(Bevale$B$O?7$7$$%W%m%;%9$r@8@.$7$F\<0$rI\>2A$7!"$=$N7ke(B e$B2L$r%?%W%ke(B e$B%9%Z!\<%9$X…

---

## [Copy and Paste text in the Web page fields](https://www.ruby-forum.com/t/copy-and-paste-text-in-the-web-page-fields/165699)

<div class="topic-metadata">

**Author:** [@sindhu\_watir](https://www.ruby-forum.com/u/sindhu_watir)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 3:09pm UTC](https://www.ruby-forum.com/t/copy-and-paste-text-in-the-web-page-fields/165699 "2009-04-16T15:09:50Z")

</div>

Hi, I am working with Watir. I want to copy a text(a number) from aweb page and paste in a text field of other Web page. Can anyone help to solve this issue. Regards Sindhu

---

## [Cygwin build of Ruby 1.9.1p0 fails test\_io.rb test 7](https://www.ruby-forum.com/t/cygwin-build-of-ruby-1-9-1p0-fails-test-io-rb-test-7/165692)

<div class="topic-metadata">

**Author:** [@Frank\_JSLhota](https://www.ruby-forum.com/u/Frank_JSLhota)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 2:06pm UTC](https://www.ruby-forum.com/t/cygwin-build-of-ruby-1-9-1p0-fails-test-io-rb-test-7/165692 "2009-04-16T14:06:13Z")

</div>

I downloaded the 1.9.1p0 Ruby source code and built it using the Cygwin tools. I ran the bootstrap test on this build. The Cygwin build passed every test outside of the file bootstrap/test\_io.rb. This build hung on th…

---

## [Re: The "Ruby Best Practices" Collaborative Blog](https://www.ruby-forum.com/t/re-the-ruby-best-practices-collaborative-blog/165689)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 1:41pm UTC](https://www.ruby-forum.com/t/re-the-ruby-best-practices-collaborative-blog/165689 "2009-04-16T13:41:30Z")

</div>

\[apologies if this is a double post, i think the first got lost\] From: “Robert D.” removed\_email\_address@domain.invalid Is the usage of four letter words or “bastard” to be interpreted like a counter point, does it h…

---

## [Returning value from ternary operator](https://www.ruby-forum.com/t/returning-value-from-ternary-operator/165679)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [April 16, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/returning-value-from-ternary-operator/165679 "2009-04-16T13:22:24Z")

</div>

Hi I have def get\_company\_details\_array c = nil arr = \[\] if c.nil? c.nil? ? 2.times {arr.push("")} :\['a','b'\] end arr = \[‘abc’\] + get\_company\_details\_array puts arr.inspect What I expected here is \[“abc”,"",""\] …

---

## [Running batch of testcases using ruby unit test framework](https://www.ruby-forum.com/t/running-batch-of-testcases-using-ruby-unit-test-framework/165685)

<div class="topic-metadata">

**Author:** [@anilg](https://www.ruby-forum.com/u/anilg)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/running-batch-of-testcases-using-ruby-unit-test-framework/165685 "2009-04-16T13:21:38Z")

</div>

Hi, Can we execute batch or set of testcases using ruby unit test framework. Can any body share some example or links on this thanks

---

## [Configure SciTE - accept keyboard inut](https://www.ruby-forum.com/t/configure-scite-accept-keyboard-inut/165222)

<div class="topic-metadata">

**Author:** [@superjacent](https://www.ruby-forum.com/u/superjacent)\
**Replies:** 1\
**Last updated:** [April 16, 2009, 12:42pm UTC](https://www.ruby-forum.com/t/configure-scite-accept-keyboard-inut/165222 "2009-04-16T12:42:48Z")

</div>

How do I configure SciTE so that when code ( gets() ) asks for user input I can enter that input via the output console. At present, all that happens is a ‘Terminate’ button appears in the output console. If the c…

---

## [Quick\_cert 2.0 Released](https://www.ruby-forum.com/t/quick-cert-2-0-released/165672)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 10:38am UTC](https://www.ruby-forum.com/t/quick-cert-2-0-released/165672 "2009-04-16T10:38:52Z")

</div>

quick\_cert version 2.0 has been released! http://seattlerb.rubyforge.org/quick\_cert http://rubyforge.org/projects/seattlerb quick\_cert allows you to quickly and easily create SSL certificates. It uses a simple confi…

---

## [Help to create a Ruby extension in C](https://www.ruby-forum.com/t/help-to-create-a-ruby-extension-in-c/165662)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 3\
**Last updated:** [April 16, 2009, 10:37am UTC](https://www.ruby-forum.com/t/help-to-create-a-ruby-extension-in-c/165662 "2009-04-16T10:37:06Z")

</div>

hi… i just followed the peter cooper’s tutorial on How to create a Ruby extension in C in under 5 minutes in the rubyinside.com. folowng the tutorial i create extconf.rb and MyTest.c . i installed the cygwin. in tha…

---

## ["mspec ci" throws an exception](https://www.ruby-forum.com/t/mspec-ci-throws-an-exception/165669)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 10:26am UTC](https://www.ruby-forum.com/t/mspec-ci-throws-an-exception/165669 "2009-04-16T10:26:33Z")

</div>

Hi, should I open a bug on codeplex for that ? Is anyone else meeting the same issue ? (details below) C:\\Git\\ironruby\\Merlin\\Main\\Languages\\Ruby\>mspec ci IronRuby 0.3 0.3.0.0 on .NET 2.0.0.0 script.rb:172:in files'…

---

## [System call using gzip or using rubyzip?](https://www.ruby-forum.com/t/system-call-using-gzip-or-using-rubyzip/165657)

<div class="topic-metadata">

**Author:** [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Replies:** 1\
**Last updated:** [April 16, 2009, 9:18am UTC](https://www.ruby-forum.com/t/system-call-using-gzip-or-using-rubyzip/165657 "2009-04-16T09:18:19Z")

</div>

How do I duplicate this gzip -f call in Ruby? require ‘rubygems’ require ‘zip/zip’ require ‘ftools’ File.makedirs(“devlogs\_zipped”) or raise StandardError, “Make dir failed to ~aevrlog/devlogs\_zipped!” if ( array…

---

## [Unable to login in authentication window](https://www.ruby-forum.com/t/unable-to-login-in-authentication-window/165666)

<div class="topic-metadata">

**Author:** [@parikshitb](https://www.ruby-forum.com/u/parikshitb)\
**Replies:** 0\
**Last updated:** [April 16, 2009, 8:15am UTC](https://www.ruby-forum.com/t/unable-to-login-in-authentication-window/165666 "2009-04-16T08:15:01Z")

</div>

Hi i am not able to close the java script popup windows using watir. require ‘watir’ require ‘win32ole’ ie = Watir::IE.new @user = ‘username’ @pass = ‘password’ @url = ‘internal site’ @login\_title = "Connect to " …

---

## [What does this do?](https://www.ruby-forum.com/t/what-does-this-do/165655)

<div class="topic-metadata">

**Author:** [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Replies:** 4\
**Last updated:** [April 16, 2009, 7:27am UTC](https://www.ruby-forum.com/t/what-does-this-do/165655 "2009-04-16T07:27:12Z")

</div>

Im trying to fix two libraries to be compatible with Ruby 1.9 - gruff and pdf-writer, and I came accross this: SyntaxError: /usr/local/lib/ruby/gems/1.9/gems/gruff-0.3.4/lib/gruff/mini/legend.rb:72: invalid multibyt…

---

## [Instance\_eval and constants lookup rules in ruby 1.9](https://www.ruby-forum.com/t/instance-eval-and-constants-lookup-rules-in-ruby-1-9/165607)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 1\
**Last updated:** [April 16, 2009, 5:58am UTC](https://www.ruby-forum.com/t/instance-eval-and-constants-lookup-rules-in-ruby-1-9/165607 "2009-04-16T05:58:20Z")

</div>

Hi, what happend to the constant lookup rules in ruby 1.9? It seems constants in blocks that are evaluated with instance\_eval are looked up only in the evaluating class but not in the scope the block was defined. Thi…

---

## [Using popen](https://www.ruby-forum.com/t/using-popen/165568)

<div class="topic-metadata">

**Author:** [@Jun\_YSKim](https://www.ruby-forum.com/u/Jun_YSKim)\
**Replies:** 3\
**Last updated:** [April 16, 2009, 4:27am UTC](https://www.ruby-forum.com/t/using-popen/165568 "2009-04-16T04:27:46Z")

</div>

Hi, all. look this code. require ‘open3’ include Open3 stdin, stdout, stderr = popen3(“ls”) puts stdout.sysread(1024) this code shows up a file list normally. but, THIS CODE require ‘open3’ include Open3 stdi…

---

## [Can Ruby stay ahead?](https://www.ruby-forum.com/t/can-ruby-stay-ahead/165297)

<div class="topic-metadata">

**Author:** [@sureshkumar](https://www.ruby-forum.com/u/sureshkumar)\
**Replies:** 26\
**Last updated:** [April 16, 2009, 3:35am UTC](https://www.ruby-forum.com/t/can-ruby-stay-ahead/165297 "2009-04-16T03:35:29Z")

</div>

Will Ruby find it difficult to stay in the first 10 languages list on Tiobe Index ? According to one of my friends views : The emergence of new languages like Clojure, Scala, Fan, indicate to this. All these …

---

## [Lost connection to MySQL server during query](https://www.ruby-forum.com/t/lost-connection-to-mysql-server-during-query/165511)

<div class="topic-metadata">

**Author:** [@Brendan\_Grainger](https://www.ruby-forum.com/u/Brendan_Grainger)\
**Replies:** 10\
**Last updated:** [April 16, 2009, 2:43am UTC](https://www.ruby-forum.com/t/lost-connection-to-mysql-server-during-query/165511 "2009-04-16T02:43:55Z")

</div>

Hi, I’m trying to run an existing rails app on jruby. When I run: jruby -S rake db:test:clone I get the following stacktrace. Right now we’re using rails 1.2.3, but I tried this with rails 1.2.6 and 2.0.2: rake abor…

---

## [Proc.call with custom bindings](https://www.ruby-forum.com/t/proc-call-with-custom-bindings/165506)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 6\
**Last updated:** [April 16, 2009, 1:49am UTC](https://www.ruby-forum.com/t/proc-call-with-custom-bindings/165506 "2009-04-16T01:49:31Z")

</div>

If it possible to call Proc instance with custom bindings. I am aware that Proc gets its bindings at the moment it is declared (created). And I can access them with proc.bindings, but is there a way to do Proc#binding…

---

## [JRuby benchmarks way slow... something smells wrong here](https://www.ruby-forum.com/t/jruby-benchmarks-way-slow-something-smells-wrong-here/165580)

<div class="topic-metadata">

**Author:** [@mcampbell](https://www.ruby-forum.com/u/mcampbell)\
**Replies:** 16\
**Last updated:** [April 16, 2009, 12:33am UTC](https://www.ruby-forum.com/t/jruby-benchmarks-way-slow-something-smells-wrong-here/165580 "2009-04-16T00:33:30Z")

</div>

http://www.cs.purdue.edu/homes/sbarakat/cs456/Scripting.pdf JRuby’s performance is abysmal in these slides. I’m no expert (nay, not even a well informed amateur), but something about this whole presentation, with res…

---

## [Code Review: Allows symbols to be in a YAML array](https://www.ruby-forum.com/t/code-review-allows-symbols-to-be-in-a-yaml-array/165311)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 3\
**Last updated:** [April 16, 2009, 12:22am UTC](https://www.ruby-forum.com/t/code-review-allows-symbols-to-be-in-a-yaml-array/165311 "2009-04-16T00:22:23Z")

</div>

http://github.com/jschementi/ironruby/commit/e8406f60c9426f4b675bf67180c24f2bb5b0f609 Allows symbols to be in a YAML array (“date: \[:year, :month, :day\]”). Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItem…

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

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