# Ruby

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

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

---

## [Thin 0.8.2 Double Margarita release](https://www.ruby-forum.com/t/thin-0-8-2-double-margarita-release/141526)

<div class="topic-metadata">

**Author:** [@macournoyer](https://www.ruby-forum.com/u/macournoyer)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/thin-0-8-2-double-margarita-release/141526 "2008-06-26T19:16:49Z")

</div>

Hey all, Thin, the sexy web server, version 0.8.2 (codename Double Margarita) is out! == 1.0 Release Candidate The magical 1.0 release is very near! So consider this a release candidate for 1.0. I plan on reviewing…

---

## [Undefined local variable or method 'rsion' for main:Object](https://www.ruby-forum.com/t/undefined-local-variable-or-method-rsion-for-main-object/141525)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 4\
**Last updated:** [June 26, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/undefined-local-variable-or-method-rsion-for-main-object/141525 "2008-06-26T19:12:07Z")

</div>

I just installed ruby 1.8.6, on RHEL 5.1 my configure command was: ./configure --prefix=/usr/local --enable-pthread --enable-shared –with-readline-dir=/usr When I run the version command, after the version info is di…

---

## [Indeterministic File order using Dir](https://www.ruby-forum.com/t/indeterministic-file-order-using-dir/141520)

<div class="topic-metadata">

**Author:** [@joesniff](https://www.ruby-forum.com/u/joesniff)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/indeterministic-file-order-using-dir/141520 "2008-06-26T18:56:49Z")

</div>

You cannot guarantee the order of files in the list returned from: Dir\[‘/tmp/\*’\] The order in which the files are loaded is not deterministic. I had an example were a 32bit machine and a 64bit machine (both ubuntu-ha…

---

## [Evolution bindings](https://www.ruby-forum.com/t/evolution-bindings/141517)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 5\
**Last updated:** [June 26, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/evolution-bindings/141517 "2008-06-26T18:38:40Z")

</div>

I’m looking for a ruby/evolution binding. I’ve installed the Hardy Heron binaries for Revolution but get an error with the following. Â require ‘rubygems’ require 'revolution r = Revolution::Revolution.new res = r.…

---

## [Enumerable methods on has\_many associations?](https://www.ruby-forum.com/t/enumerable-methods-on-has-many-associations/141508)

<div class="topic-metadata">

**Author:** [@Darcy\_S](https://www.ruby-forum.com/u/Darcy_S)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/enumerable-methods-on-has-many-associations/141508 "2008-06-26T18:33:58Z")

</div>

I just tried upgrading our application to Rails 2.1 on JRuby 1.1.2, ActiveRecordJDBC 0.8.1 (the versions that are bundled with the nightly build of NetBeans). The problem I’m having seems to be calling ‘min’ on an as…

---

## [Jruby rails routes proxy\_ajp](https://www.ruby-forum.com/t/jruby-rails-routes-proxy-ajp/141474)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/jruby-rails-routes-proxy-ajp/141474 "2008-06-26T17:52:56Z")

</div>

Hello, i am trying to use mod\_proxy\_ajp to route to a tomcat jruby install located at /myapp. When doing this ProxyPass / ajp://localhost:8009/myapp I get the error "No route matches “/myapp/session/new” with {:me…

---

## [Deleting a line in a file](https://www.ruby-forum.com/t/deleting-a-line-in-a-file/141429)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 5\
**Last updated:** [June 26, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/deleting-a-line-in-a-file/141429 "2008-06-26T17:36:55Z")

</div>

Hi, how do I delete a line in a file and remove the empty space afterward? Thanks!

---

## [Can your GUI framework do this?](https://www.ruby-forum.com/t/can-your-gui-framework-do-this/139843)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 4\
**Last updated:** [June 26, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/can-your-gui-framework-do-this/139843 "2008-06-26T17:31:38Z")

</div>

One of the most interesting facets of a desktop GUI system is how easy it makes it to go off the beaten track, particularly how well you can add “first class” components to the system. (Using ‘first class’ here to mea…

---

## [Error when running test](https://www.ruby-forum.com/t/error-when-running-test/141509)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/error-when-running-test/141509 "2008-06-26T15:49:50Z")

</div>

Hi, I am involved in a Jruby on Rails app. My app works correctly, however, I want to test a class. The class in the model is something like: class PeerToPeer::Peer attr\_accessor :login attr\_accessor :password #con…

---

## [How to find second match in a file](https://www.ruby-forum.com/t/how-to-find-second-match-in-a-file/141452)

<div class="topic-metadata">

**Author:** [@cheyne](https://www.ruby-forum.com/u/cheyne)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/how-to-find-second-match-in-a-file/141452 "2008-06-26T15:33:02Z")

</div>

Hi, everyone My code opens a file and read line by line to find a given string as first match. After I found one, how can i find the second match, a different string, which is supposed to appear several lines after th…

---

## [Installation Probs](https://www.ruby-forum.com/t/installation-probs/141442)

<div class="topic-metadata">

**Author:** [@DeVaris\_Brown](https://www.ruby-forum.com/u/DeVaris_Brown)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/installation-probs/141442 "2008-06-26T15:31:51Z")

</div>

Hi All: I’m trying to build IronRuby from source in VS 2008 and get the following error: Error 17 Unable to create directory "…..........\\Merlin\\Main\\Bin\\Debug". Access to the path '…..........\\Merlin…

---

## [Search query question](https://www.ruby-forum.com/t/search-query-question/196727)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 3:23pm UTC](https://www.ruby-forum.com/t/search-query-question/196727 "2008-06-26T15:23:53Z")

</div>

I’m not using ferret because the search I need is not that complicated. I created a basic active record search. I’m using some code from the pragmaticprogrammer book. This is the issue: I can get the single keyword to…

---

## [\`RLIM\_INFINITY' undeclared](https://www.ruby-forum.com/t/rlim-infinity-undeclared/141502)

<div class="topic-metadata">

**Author:** [@TOYOFUKU\_Chikanobu](https://www.ruby-forum.com/u/TOYOFUKU_Chikanobu)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/rlim-infinity-undeclared/141502 "2008-06-26T15:10:41Z")

</div>

e$BK-J!$G$9!#e(B rlimite$B4X78$r;}$C$F$$$Fe(B sys/resource.h e$B$r;}$C$F$$$Fe(B getpriority() e$B$r;}$C$F$$$J$$4D6-$@$He(B process.c: In function Init\_process': process.c:3644:RLIM\_INFINITY’ undeclared (first use in t…

---

## [How to add CDATA section in XML file?](https://www.ruby-forum.com/t/how-to-add-cdata-section-in-xml-file/141504)

<div class="topic-metadata">

**Author:** [@rexml\_query](https://www.ruby-forum.com/u/rexml_query)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/how-to-add-cdata-section-in-xml-file/141504 "2008-06-26T14:42:20Z")

</div>

Dear all, I am fairly new to ruby and am trying to create a CDATA section in an XML file. Here is an example of what I am trying to produce: \<!\[CDATA\[ \]\]\> I have been able to …

---

## [Openssl error after upgrading to 1.8.7](https://www.ruby-forum.com/t/openssl-error-after-upgrading-to-1-8-7/141158)

<div class="topic-metadata">

**Author:** [@jarvo88](https://www.ruby-forum.com/u/jarvo88)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/openssl-error-after-upgrading-to-1-8-7/141158 "2008-06-26T14:20:41Z")

</div>

/usr/local/lib/ruby/1.8/openssl/ssl.rb:26: uninitialized constant OpenSSL::SSL::VERIFY\_PEER (NameError) from /usr/local/lib/ruby/1.8/openssl.rb:23:in \`require’ from /usr/local/lib/ruby/1.8/openssl.rb:23 Yeah the subj…

---

## [Ruby win32ole properties](https://www.ruby-forum.com/t/ruby-win32ole-properties/141490)

<div class="topic-metadata">

**Author:** [@awarberg](https://www.ruby-forum.com/u/awarberg)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/ruby-win32ole-properties/141490 "2008-06-26T12:12:31Z")

</div>

Hi I’m running simulations in Vissim using ruby and win32ole to connect to a COM server. I wish to set a parameter in the COM server using the following description from the manual: AttValue (\[in\] BSTR Attribute, \[i…

---

## [\[PATCH\] freeze required\_paths in gem\_prelude.rb](https://www.ruby-forum.com/t/patch-freeze-required-paths-in-gem-prelude-rb/141405)

<div class="topic-metadata">

**Author:** [@Keita\_Y](https://www.ruby-forum.com/u/Keita_Y)\
**Replies:** 13\
**Last updated:** [June 26, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/patch-freeze-required-paths-in-gem-prelude-rb/141405 "2008-06-26T12:08:53Z")

</div>

e$B;38}$H?=$7$^$9!#e(B 1.9 e$B$K$\*$$$F%;!\<%U%l%Y%ke(B4e$B4D6-$+$ie(B $LOAD\_PATH e$B$N=q$-49$($i$l$k$N$rKI;\_$9$k%Q%C%A$rEj9FCW$7$^$9!#e(B e$B8=:\_e(B 1.9 e$B$G$Oe(B gem\_prelude.rb e$B$K$\*$$$FDI2C$5$l$F$$$ke(B gem e$B$N…

---

## [Auto Display](https://www.ruby-forum.com/t/auto-display/141489)

<div class="topic-metadata">

**Author:** [@tornado](https://www.ruby-forum.com/u/tornado)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 11:10am UTC](https://www.ruby-forum.com/t/auto-display/141489 "2008-06-26T11:10:49Z")

</div>

Hello Everybody, With the help pf active scaffold i have created 3 columns…lets say a,b,c.Now if enter the value in a and in b…then automatically it should show result in c. For e.g. a = 5 b = 5 Then automatically…

---

## [Using java -jar jruby.jar does not pick up environment CLASSPATH](https://www.ruby-forum.com/t/using-java-jar-jruby-jar-does-not-pick-up-environment-classpath/141039)

<div class="topic-metadata">

**Author:** [@Johnny\_P](https://www.ruby-forum.com/u/Johnny_P)\
**Replies:** 8\
**Last updated:** [June 26, 2008, 9:17am UTC](https://www.ruby-forum.com/t/using-java-jar-jruby-jar-does-not-pick-up-environment-classpath/141039 "2008-06-26T09:17:13Z")

</div>

Using a bash shell script such as: CLASSPATH=foo.jar:build/:lib/ export CLASSPATH java -jar jruby.jar myruby.rb Inside myruby.rb puts ENV\[‘CLASSPATH’\] require ‘java’ #… The classpath prints correctly; However, wh…

---

## [Trollop 1.8.1 released](https://www.ruby-forum.com/t/trollop-1-8-1-released/141362)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 9:14am UTC](https://www.ruby-forum.com/t/trollop-1-8-1-released/141362 "2008-06-26T09:14:52Z")

</div>

Trollop version 1.8.1 has been released! http://trollop.rubyforge.org DESCRIPTION Trollop is a commandline option parser for Ruby that just gets out of your way. One line of code per option is all you need to write. …

---

## [Simple script segfaults 1.8.6-p230](https://www.ruby-forum.com/t/simple-script-segfaults-1-8-6-p230/141473)

<div class="topic-metadata">

**Author:** [@rst](https://www.ruby-forum.com/u/rst)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 7:00am UTC](https://www.ruby-forum.com/t/simple-script-segfaults-1-8-6-p230/141473 "2008-06-26T07:00:53Z")

</div>

When I run the following 10-line ruby script on 1.8.6-p230 as shipped (built on 32-bit x86 Debian Etch, with configure arguments at defaults), it pretty reliably segfaults. My patch to get rails working (by reverting…

---

## [Self referential belongs\_to](https://www.ruby-forum.com/t/self-referential-belongs-to/141471)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 5:42am UTC](https://www.ruby-forum.com/t/self-referential-belongs-to/141471 "2008-06-26T05:42:00Z")

</div>

I noticed that eager loading a belongs to association that points back to an item of the same class is causing AR to lock up. For example class Layout \< ActiveRecord::Base belongs\_to :flipped\_layout, :class\_name =\> …

---

## [How to write in the middle of a file](https://www.ruby-forum.com/t/how-to-write-in-the-middle-of-a-file/141465)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 4:43am UTC](https://www.ruby-forum.com/t/how-to-write-in-the-middle-of-a-file/141465 "2008-06-26T04:43:47Z")

</div>

Greetings all. For some reason the answer to this stumps me. Say I have an existing file, 1K long, and I want to write something right in the middle of it, without changing the file size. I would have thought that a…

---

## [Remote MySQL server and Ruby on Rails](https://www.ruby-forum.com/t/remote-mysql-server-and-ruby-on-rails/141230)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 3:00am UTC](https://www.ruby-forum.com/t/remote-mysql-server-and-ruby-on-rails/141230 "2008-06-26T03:00:23Z")

</div>

Hello, I have 1 DB server (MySQL) and 1 server with my application. I’ve setup the host in my database.yml file to match my DB server. When I run the application, I get this error: Errno::ENOENT in TestController#ind…

---

## [RegEx Question](https://www.ruby-forum.com/t/regex-question/141460)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 2:48am UTC](https://www.ruby-forum.com/t/regex-question/141460 "2008-06-26T02:48:50Z")

</div>

Hi, my practice program is suppose to read in versions like: 4.0 v4. 5 v 4.23 ^each = p t=“v” p.gsub(/\[^(v)\]/i) {|m| t.concat(m)} how do I, in the regEx, ignore white spaces? I want the output to look like this: …

---

## [Upgrading to 1.8.6-p230 on Windows](https://www.ruby-forum.com/t/upgrading-to-1-8-6-p230-on-windows/141458)

<div class="topic-metadata">

**Author:** [@jfry](https://www.ruby-forum.com/u/jfry)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 1:07am UTC](https://www.ruby-forum.com/t/upgrading-to-1-8-6-p230-on-windows/141458 "2008-06-26T01:07:28Z")

</div>

Hi all, I’m looking to upgrade to 1.8.6-p230 on Windows XP. I initially installed with the One Click Installer, and am currently running: ruby 1.8.5 (2006-12-25 patchlevel 12) \[i386-mswin32\] Searching, I see this sug…

---

## [Creating a command-line Gem](https://www.ruby-forum.com/t/creating-a-command-line-gem/141449)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 12:16am UTC](https://www.ruby-forum.com/t/creating-a-command-line-gem/141449 "2008-06-26T00:16:44Z")

</div>

Hi. I’m working on creating a Ruby command-line tool that I want to distribute as a gem. Are there any examples or references on how to do this? I’d like to create an application similar to god or rake, where you can …

---

## [Puts a . which method of array is called](https://www.ruby-forum.com/t/puts-a-which-method-of-array-is-called/141434)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 12:10am UTC](https://www.ruby-forum.com/t/puts-a-which-method-of-array-is-called/141434 "2008-06-26T00:10:06Z")

</div>

a = w(1 2 3) puts a prints 1 2 3 I implemented class Array def to\_s ‘to\_s is called’ end def to\_str ‘to\_str is called’ end end I am not able to find when I do ‘puts a’ which method of a is called. I also…

---

## [Re: can you create an object in ruby and register it in the JMX server?](https://www.ruby-forum.com/t/re-can-you-create-an-object-in-ruby-and-register-it-in-the-jmx-server/141443)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/re-can-you-create-an-object-in-ruby-and-register-it-in-the-jmx-server/141443 "2008-06-25T22:11:48Z")

</div>

Thanks! Well work is asking me to do this for my day job right now … and they said I can contribute back to the community any Open source stuff I help with. so Double bonus! So if you have any guidelines on submitti…

---

## [Release of 1.9.1](https://www.ruby-forum.com/t/release-of-1-9-1/141432)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 3\
**Last updated:** [June 25, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/release-of-1-9-1/141432 "2008-06-25T22:04:31Z")

</div>

Sorry if this is an old question, but does anyone have a sense of when Ruby 1.9.1 will be released? I saw projections of last Christmas, but it looks like the date was pushed out. I also see an expected release date o…

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

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