# Ruby

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

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

---

## [Problem with 'gem' command](https://www.ruby-forum.com/t/problem-with-gem-command/154938)

<div class="topic-metadata">

**Author:** [@Martyna](https://www.ruby-forum.com/u/Martyna)\
**Replies:** 1\
**Last updated:** [December 5, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/problem-with-gem-command/154938 "2008-12-05T19:35:57Z")

</div>

Hi I have a problem with ‘gem’ command. When I try to use it (i.e. ‘gem install mongrel’) I got the following message: The filename, directory name, or volume label syntax is incorrect. I thought that this is because…

---

## [\[ANN\] JRuby 1.1.6RC1 Released](https://www.ruby-forum.com/t/ann-jruby-1-1-6rc1-released/154856)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 8\
**Last updated:** [December 5, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/ann-jruby-1-1-6rc1-released/154856 "2008-12-05T19:31:50Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.1.6RC1! Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.1.6RC1 is the first release candidate for our sixth point r…

---

## [Silverlight (sdlsdk) on mac](https://www.ruby-forum.com/t/silverlight-sdlsdk-on-mac/154968)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 4\
**Last updated:** [December 5, 2008, 7:26pm UTC](https://www.ruby-forum.com/t/silverlight-sdlsdk-on-mac/154968 "2008-12-05T19:26:34Z")

</div>

Hi When I want to look at some samples on the mac side of my laptop from the sdlsdk I get an error from mono 17:10:27 200 2,527 /samples/ruby/clock/index.html 17:10:27 200 2,397 /samples/ruby/clock/assets/st…

---

## [java.awt.Polygon equivalent?](https://www.ruby-forum.com/t/java-awt-polygon-equivalent/154893)

<div class="topic-metadata">

**Author:** [@seurdge](https://www.ruby-forum.com/u/seurdge)\
**Replies:** 1\
**Last updated:** [December 5, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/java-awt-polygon-equivalent/154893 "2008-12-05T18:35:58Z")

</div>

Hello all ! Im searching for a java.awt.Polygon alike class in Ruby, any cue ? I need to define a polygon with a set of latitude,longitude points and check if other latitude,longitude points are in this polygon after… …

---

## [1.8.7 segfault](https://www.ruby-forum.com/t/1-8-7-segfault/154777)

<div class="topic-metadata">

**Author:** [@izit](https://www.ruby-forum.com/u/izit)\
**Replies:** 6\
**Last updated:** [December 5, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/1-8-7-segfault/154777 "2008-12-05T18:12:07Z")

</div>

Hi, I have a Rails app that keeps on segfaulting if I request a very intensive task. The task involves reading a lot of DB records and parsing each record in hashes and arrays. If I limit the DB record scope the segf…

---

## [YAML anchor and alias problem](https://www.ruby-forum.com/t/yaml-anchor-and-alias-problem/154967)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [December 5, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/yaml-anchor-and-alias-problem/154967 "2008-12-05T18:00:58Z")

</div>

Hi, I’m trying to use YAML to load and store a whole bunch of data (with a lot of repetition). Anchors and aliases seem to be the way froward, but I am runing into a few problems. Suppose I have the following YAML do…

---

## [What are the options to write tests, currently?](https://www.ruby-forum.com/t/what-are-the-options-to-write-tests-currently/154530)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 2\
**Last updated:** [December 5, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/what-are-the-options-to-write-tests-currently/154530 "2008-12-05T16:49:25Z")

</div>

Hello, I’m documenting myself to see what are the various options currently available to write IronRuby code to unit-tests C# assemblies. I gave MSpec a try and it’s already fine (30685’s gists · GitHub). Test::Unit …

---

## [Array in a Hash](https://www.ruby-forum.com/t/array-in-a-hash/154959)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 2\
**Last updated:** [December 5, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/array-in-a-hash/154959 "2008-12-05T16:48:49Z")

</div>

Hi you all, I have the following code,where I have a hash whose entries are initalized by an empty Array: h = Hash.new(Array.new(0)) h\[“a”\] \<\< 0 h\[“b”\] \<\< 6 h\[“a”\] \<\< 5 h\[“b”\] \<\< 10 p h\[“a”\] p h\[“b”\] Both “p” p…

---

## [Problem with soap and wsdl](https://www.ruby-forum.com/t/problem-with-soap-and-wsdl/154956)

<div class="topic-metadata">

**Author:** [@Larz](https://www.ruby-forum.com/u/Larz)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/problem-with-soap-and-wsdl/154956 "2008-12-05T16:05:55Z")

</div>

If anyone can help me figure this out, I’d appreciate it. I’m trying to do soap calls to a a condor web service. Some of the calls work ok, but below I try to call commitTransaction and it gets an error. Then below th…

---

## [Rspecs stubbed return values lost after Array.#to\_java](https://www.ruby-forum.com/t/rspecs-stubbed-return-values-lost-after-array-to-java/154915)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 1\
**Last updated:** [December 5, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/rspecs-stubbed-return-values-lost-after-array-to-java/154915 "2008-12-05T15:39:56Z")

</div>

Trying to upgrade from jruby-1.1.2 to the 1.1.6RC1 I’m running into problems with stubbed behavior(rspec) on java methods being lost after \[\].to\_java. See below. require ‘MyClass’ describe “\[\].to\_java” do Works in …

---

## [Directories and Files processing](https://www.ruby-forum.com/t/directories-and-files-processing/154947)

<div class="topic-metadata">

**Author:** [@albert](https://www.ruby-forum.com/u/albert)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/directories-and-files-processing/154947 "2008-12-05T13:05:56Z")

</div>

I am trying to use Shoes to iterate files in a directory and I just cannot have it work: files = Dir.entries("root") files.each {|f| @data = IO.read(f) tokens = tokenize(@data) next\_token while not @current\_t…

---

## [JRuby forkoff replacement?](https://www.ruby-forum.com/t/jruby-forkoff-replacement/154891)

<div class="topic-metadata">

**Author:** [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Replies:** 4\
**Last updated:** [December 5, 2008, 11:01am UTC](https://www.ruby-forum.com/t/jruby-forkoff-replacement/154891 "2008-12-05T11:01:55Z")

</div>

In my MRI-targeted code I use the forkoffÂ¹ gem, which adds the Enumerable#forkoff method thatâ€™s basically a #map running its &blockâ€™s contents in separate processes. Â¹ http://codeforpeople.com/lib/ruby/forkoff/f…

---

## [Array#shift weird problem](https://www.ruby-forum.com/t/array-shift-weird-problem/154937)

<div class="topic-metadata">

**Author:** [@tenchi](https://www.ruby-forum.com/u/tenchi)\
**Replies:** 3\
**Last updated:** [December 5, 2008, 10:42am UTC](https://www.ruby-forum.com/t/array-shift-weird-problem/154937 "2008-12-05T10:42:34Z")

</div>

Hi Can someone explain to me why is this happening ? matrix1 = \[“One”,“Two”,“Three”\] =\> \[“One”, “Two”, “Three”\] matrix2 = matrix1 =\> \[“One”, “Two”, “Three”\] matrix2.shift =\> “One” matrix2 =\> \[“Two”, “Thr…

---

## ['and' keyword?](https://www.ruby-forum.com/t/and-keyword/154819)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 8\
**Last updated:** [December 5, 2008, 9:50am UTC](https://www.ruby-forum.com/t/and-keyword/154819 "2008-12-05T09:50:53Z")

</div>

Because puts(“hi”) yields nil, the second item never gets called: puts “hi” and puts “bye” if true I can work around it with these: !puts “hi” and puts “bye” if true puts “hi”;puts “bye” if true \[puts(“hi”), puts(“b…

---

## [Unsubscribe from the mailing list](https://www.ruby-forum.com/t/unsubscribe-from-the-mailing-list/154926)

<div class="topic-metadata">

**Author:** [@rapido](https://www.ruby-forum.com/u/rapido)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 7:54am UTC](https://www.ruby-forum.com/t/unsubscribe-from-the-mailing-list/154926 "2008-12-05T07:54:48Z")

</div>

How can i unsubscribe from the mailing list.Thanks

---

## [Gauntlet 1.0.0 Released](https://www.ruby-forum.com/t/gauntlet-1-0-0-released/154900)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [December 5, 2008, 7:18am UTC](https://www.ruby-forum.com/t/gauntlet-1-0-0-released/154900 "2008-12-05T07:18:10Z")

</div>

gauntlet version 1.0.0 has been released! http://rubyforge.org/projects/seattlerb Gauntlet is a pluggable means of running code against all the latest gems and storing off the data. == FEATURES/PROBLEMS: Downloads…

---

## [GlassFish gem 0.9.1](https://www.ruby-forum.com/t/glassfish-gem-0-9-1/154913)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 5:04am UTC](https://www.ruby-forum.com/t/glassfish-gem-0-9-1/154913 "2008-12-05T05:04:02Z")

</div>

Greetings! The GlassFish team has release a new version of the GlassFish gem, 0.9.1. This release includes a bunch of performance and bug fixes. Vivek P. of the GF team has his announcement here: http://weblogs.java.…

---

## [Jruby class implementing an interface not matching method paramater signature](https://www.ruby-forum.com/t/jruby-class-implementing-an-interface-not-matching-method-paramater-signature/154901)

<div class="topic-metadata">

**Author:** [@krishna](https://www.ruby-forum.com/u/krishna)\
**Replies:** 2\
**Last updated:** [December 5, 2008, 4:17am UTC](https://www.ruby-forum.com/t/jruby-class-implementing-an-interface-not-matching-method-paramater-signature/154901 "2008-12-05T04:17:17Z")

</div>

I am implementing an interface from lucene hereÂ¹s the code: class Distance include org.apache.lucene.search.SortComparatorSource #methods from the interface implemented here… end I am passing the instance of this t…

---

## [Daily SVN pushes](https://www.ruby-forum.com/t/daily-svn-pushes/154836)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 3\
**Last updated:** [December 5, 2008, 3:58am UTC](https://www.ruby-forum.com/t/daily-svn-pushes/154836 "2008-12-05T03:58:34Z")

</div>

Hey ya’ll, Sorry I haven’t been doing SVN pushes the past few days. I’ve been trying to finish things up and get the infrastructure for the Git repo into place. I’ll get a fresh revision out tomorrow morning, and I ex…

---

## [Another Ruby Book (and interview)](https://www.ruby-forum.com/t/another-ruby-book-and-interview/154549)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 4\
**Last updated:** [December 5, 2008, 2:41am UTC](https://www.ruby-forum.com/t/another-ruby-book-and-interview/154549 "2008-12-05T02:41:17Z")

</div>

Most ruby-talk readers probably know that a Ruby edition of Refactoring is due out in a couple of months. I was kind of caught by surprise by the news that a Ruby edition of William Wake’s ‘Refactoring Workbook’ was …

---

## [Eval method seems to be slower than mri](https://www.ruby-forum.com/t/eval-method-seems-to-be-slower-than-mri/154903)

<div class="topic-metadata">

**Author:** [@khelll](https://www.ruby-forum.com/u/khelll)\
**Replies:** 1\
**Last updated:** [December 5, 2008, 1:23am UTC](https://www.ruby-forum.com/t/eval-method-seems-to-be-slower-than-mri/154903 "2008-12-05T01:23:31Z")

</div>

hi, i was trying this simple test on both ruby mri 1.8.7 and jruby 1.5 to benchmark the different ways of dynamic method calling in ruby. have a look on the test : require “benchmark” # from the Ruby Application Ar…

---

## [GlassFish gem ver 0.9.1 released](https://www.ruby-forum.com/t/glassfish-gem-ver-0-9-1-released/154904)

<div class="topic-metadata">

**Author:** [@Vivek\_P](https://www.ruby-forum.com/u/Vivek_P)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 1:20am UTC](https://www.ruby-forum.com/t/glassfish-gem-ver-0-9-1-released/154904 "2008-12-05T01:20:01Z")

</div>

GlassFish gem 0.9.1 is released\<%20http://weblogs.java.net/blog/vivekp/archive/2008/12/glassfish\_gem\_0\_1.html\>! It has lots of bug fixes and performance improvements. \*RubyForge Issueshttp://rubyforge.org/tracker/ind…

---

## [Ruby and legacy Java Applications](https://www.ruby-forum.com/t/ruby-and-legacy-java-applications/154773)

<div class="topic-metadata">

**Author:** [@Joe\_WSSSSlfel](https://www.ruby-forum.com/u/Joe_WSSSSlfel)\
**Replies:** 4\
**Last updated:** [December 5, 2008, 12:13am UTC](https://www.ruby-forum.com/t/ruby-and-legacy-java-applications/154773 "2008-12-05T00:13:15Z")

</div>

What are some good ways to integrate Ruby into legacy Java applications? I realize I can execute small Ruby scripts from Java like this: Ruby runtime = Ruby.newInstance(); runtime.evalScriptlet("puts 'Hello…

---

## [Get the modules included into a class object](https://www.ruby-forum.com/t/get-the-modules-included-into-a-class-object/154896)

<div class="topic-metadata">

**Author:** [@ole](https://www.ruby-forum.com/u/ole)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 11:23pm UTC](https://www.ruby-forum.com/t/get-the-modules-included-into-a-class-object/154896 "2008-12-04T23:23:02Z")

</div>

If I say: module Foo def zim; end end class Bar class \<\< self include Foo end end Bar.zim is now available How can I find out which modules are included into Bar at class-level. Some attempts: Bar.included\_mod…

---

## [Reg exp](https://www.ruby-forum.com/t/reg-exp/154803)

<div class="topic-metadata">

**Author:** [@hai\_l](https://www.ruby-forum.com/u/hai_l)\
**Replies:** 5\
**Last updated:** [December 4, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/reg-exp/154803 "2008-12-04T23:13:55Z")

</div>

I have a problem with regexp. I have some document like : A method for detecting a post-translationally modified protein with a glycosyl group comprising contacting the protein with a glycosyl transferase enzyme and a…

---

## [Import failing under 1.1.5 and 1.1.6RC1](https://www.ruby-forum.com/t/import-failing-under-1-1-5-and-1-1-6rc1/154877)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 6\
**Last updated:** [December 4, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/import-failing-under-1-1-5-and-1-1-6rc1/154877 "2008-12-04T23:07:27Z")

</div>

I have a class of the form “foo.\_2008\_08\_01.ClassName” and when I require the file that has this import, I get the following error: “NameError: cannot load Java class foo.\_2008\_08\_01” I have tried with 1.1.5 and 1.1.6…

---

## [Plug and Play JRuby](https://www.ruby-forum.com/t/plug-and-play-jruby/154884)

<div class="topic-metadata">

**Author:** [@Sergio\_Oliveira](https://www.ruby-forum.com/u/Sergio_Oliveira)\
**Replies:** 6\
**Last updated:** [December 4, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/plug-and-play-jruby/154884 "2008-12-04T22:53:15Z")

</div>

Plug and Play JRuby: I have recently worked with JRuby to make the Mentawai support for the Ruby language. I wanted to call any Ruby code from my web application as well as be able to have actions fully implemented…

---

## [Merb app on jruby and Merb or GlassFish consumes 20-30% CPU time](https://www.ruby-forum.com/t/merb-app-on-jruby-and-merb-or-glassfish-consumes-20-30-cpu-time/154890)

<div class="topic-metadata">

**Author:** [@Vivek\_P](https://www.ruby-forum.com/u/Vivek_P)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/merb-app-on-jruby-and-merb-or-glassfish-consumes-20-30-cpu-time/154890 "2008-12-04T21:48:30Z")

</div>

I was trying out a simple merb app using jruby on Glassfish gem and see that the CPU consumption is anywhere between 25-30% in idle condition. It does not look like specific to glassfish alone as I see the exact CPU …

---

## [Or = for a constant](https://www.ruby-forum.com/t/or-for-a-constant/154887)

<div class="topic-metadata">

**Author:** [@Bob\_Archer](https://www.ruby-forum.com/u/Bob_Archer)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/or-for-a-constant/154887 "2008-12-04T21:22:36Z")

</div>

Hello, I want to set a constant to be the value from an env variable or if that is not there set it to the current directory. So, I am doing this: WORKINGDIR = ENV\[‘CCNetWorkingDirectory’\] ? ENV\[‘CCNetWorkingDirector…

---

## [Problem implementing an interface from lucene using Jruby](https://www.ruby-forum.com/t/problem-implementing-an-interface-from-lucene-using-jruby/154811)

<div class="topic-metadata">

**Author:** [@krishna](https://www.ruby-forum.com/u/krishna)\
**Replies:** 5\
**Last updated:** [December 4, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/problem-implementing-an-interface-from-lucene-using-jruby/154811 "2008-12-04T20:43:15Z")

</div>

Hi I am having problem implementing an interface in Jruby. I am trying implement org.apache.lucene.search.ScoreDocComparator from Jruby. Its giving me this error : SystemStackError: stack level too deep . HereÂ¹s th…

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

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