# Ruby

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

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

---

## [Require behavior in presence of two files of the same name](https://www.ruby-forum.com/t/require-behavior-in-presence-of-two-files-of-the-same-name/154878)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/require-behavior-in-presence-of-two-files-of-the-same-name/154878 "2008-12-04T20:23:52Z")

</div>

If I do require ‘x’ and there are two x.rb files somewhere on the load path, which one will be require’d? Thanks, Wes

---

## [ClassFormatError: Duplicate interface name in class file' Jruby-1.1.5/Rails](https://www.ruby-forum.com/t/classformaterror-duplicate-interface-name-in-class-file-jruby-1-1-5-rails/154764)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/classformaterror-duplicate-interface-name-in-class-file-jruby-1-1-5-rails/154764 "2008-12-04T19:55:39Z")

</div>

I was just trying to upgrade my Rails app to Jruby-1.1.5 from 1.1.2. I get the following error below. I poked around a bit and I think its related to class reloading in development mode. I threw in a debug statement i…

---

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

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 8\
**Last updated:** [December 4, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/jruby-1-1-6rc1-released/154855 "2008-12-04T19:29:47Z")

</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…

---

## [Ruby cgi script](https://www.ruby-forum.com/t/ruby-cgi-script/154629)

<div class="topic-metadata">

**Author:** [@ZippySwish](https://www.ruby-forum.com/u/ZippySwish)\
**Replies:** 11\
**Last updated:** [December 4, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/ruby-cgi-script/154629 "2008-12-04T19:16:52Z")

</div>

I put “script.rb” into the cgi-bin folder of my webhost, but nothing’s happening. What am I doing wrong? script.rb containing for example: #!/usr/bin/ruby puts “ Hello World! ” (the path to ruby is correct according …

---

## [Ffi 0.2.0](https://www.ruby-forum.com/t/ffi-0-2-0/154699)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 19\
**Last updated:** [December 4, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/ffi-0-2-0/154699 "2008-12-04T19:09:14Z")

</div>

Greetings Rubyists. The JRuby team is proud to announce the release of 0.2.0 of FFI for Ruby. This release is compatible with the FFI implementation released in JRuby 1.1.6 Get it via ‘gem install ffi’ or download t…

---

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

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 6:57pm UTC](https://www.ruby-forum.com/t/code-review-parseroptfinal/154798 "2008-12-04T18:57:27Z")

</div>

tfpt review “/shelveset:parseroptfinal;REDMOND\\tomat” Improves Ruby tokenizer and parser performance by 30% total (previously 3 MBps, now 4.2 MBps - measured on real code of libraries we have checked in and including …

---

## [Jruby on Rails --tempfile(LoadError)](https://www.ruby-forum.com/t/jruby-on-rails-tempfile-loaderror/154867)

<div class="topic-metadata">

**Author:** [@lodestone](https://www.ruby-forum.com/u/lodestone)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/jruby-on-rails-tempfile-loaderror/154867 "2008-12-04T17:36:52Z")

</div>

I am just starting to play with Jruby and rails and when trying to create my first application I am getting this error: C:\\Projects\>jruby -S rails TestProgram C:/JRuby/jruby-1.1.5/lib/ruby/site\_ruby/1.8/rubygems/custo…

---

## [Ruby-Locale-0.9.0 / Ruby-Locale for Ruby on Rails-0.1.0](https://www.ruby-forum.com/t/ruby-locale-0-9-0-ruby-locale-for-ruby-on-rails-0-1-0/154863)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/ruby-locale-0-9-0-ruby-locale-for-ruby-on-rails-0-1-0/154863 "2008-12-04T17:14:43Z")

</div>

Hi, I’m pleased to announce 2 new libraries for Localization. Ruby-Locale-0.9.0 Ruby-Locale for Ruby on Rails-0.1.0 = Website http://rubyforge.org/projects/locale http://www.yotabanana.com/hiki/ruby-locale.html ht…

---

## [\[Feature #819\] Caching Symbol#to\_proc](https://www.ruby-forum.com/t/feature-819-caching-symbol-to-proc/154738)

<div class="topic-metadata">

**Author:** [@Shumpei\_A](https://www.ruby-forum.com/u/Shumpei_A)\
**Replies:** 5\
**Last updated:** [December 4, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/feature-819-caching-symbol-to-proc/154738 "2008-12-04T16:33:34Z")

</div>

Feature #819: Caching Symbol#to\_proc http://redmine.ruby-lang.org/issues/show/819 e$B5/I\<\<Te(B: Shumpei A. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Symbol#to\_proc e$B$GKh2s%\*%V%8%'%/%H$r@8@.$9$k$N$OL5BL$J5$$,$9$…

---

## [Rake outputting to stderror](https://www.ruby-forum.com/t/rake-outputting-to-stderror/154858)

<div class="topic-metadata">

**Author:** [@Bob\_Archer](https://www.ruby-forum.com/u/Bob_Archer)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/rake-outputting-to-stderror/154858 "2008-12-04T16:24:44Z")

</div>

I am using CC.Net to call rake via the rake task in cc.net. In my rake file I have a cp command: FileList\[‘\*\*/app.config.template’\].each do |src| cp src, “#{File.dirname(src)}/app.config” unless File::exist?(“#{File.…

---

## [Nuby Rake questions about FileList or File task](https://www.ruby-forum.com/t/nuby-rake-questions-about-filelist-or-file-task/154859)

<div class="topic-metadata">

**Author:** [@Bob\_Archer](https://www.ruby-forum.com/u/Bob_Archer)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/nuby-rake-questions-about-filelist-or-file-task/154859 "2008-12-04T16:24:08Z")

</div>

Hello all, It was recommended that I post rake questions here. I couldn’t find a rake specific mail list. If there is one, please point me to it. I am creating a rake script and my .Net app test projects have app.con…

---

## [Dynamic programming](https://www.ruby-forum.com/t/dynamic-programming/154654)

<div class="topic-metadata">

**Author:** [@limatsao](https://www.ruby-forum.com/u/limatsao)\
**Replies:** 5\
**Last updated:** [December 4, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/dynamic-programming/154654 "2008-12-04T15:55:58Z")

</div>

I have a class Adam I want to modify the method(“m\_a”) so that it will return the cached result If no cached result is available, then return the original result I want to create a class method(AKA: macro) to make it DR…

---

## [Rescuing a failed %x\[\] call?](https://www.ruby-forum.com/t/rescuing-a-failed-x-call/154793)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 7\
**Last updated:** [December 4, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/rescuing-a-failed-x-call/154793 "2008-12-04T15:06:58Z")

</div>

I know it should be streightforward, but I’m not finding the docs anywhere… How does one go about rescuing a failed shell command? like in the instance it fails, or the command isn’t found? Thanks, Kyle

---

## [Curb Install Problems](https://www.ruby-forum.com/t/curb-install-problems/154768)

<div class="topic-metadata">

**Author:** [@reddaly](https://www.ruby-forum.com/u/reddaly)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 11:44am UTC](https://www.ruby-forum.com/t/curb-install-problems/154768 "2008-12-04T11:44:23Z")

</div>

Hey I’m trying to install Curb on os - CentOS ruby - ruby 1.8.6 (2007-06-07 patchlevel 36) \[i386-linux\] I receive this error Building native extensions. This could take a while… ERROR: Error installing curb: ERR…

---

## [IronRuby and Cucumber](https://www.ruby-forum.com/t/ironruby-and-cucumber/154794)

<div class="topic-metadata">

**Author:** [@aslakhellesoy](https://www.ruby-forum.com/u/aslakhellesoy)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 10:33am UTC](https://www.ruby-forum.com/t/ironruby-and-cucumber/154794 "2008-12-04T10:33:15Z")

</div>

Hi folks, I have just done some changes to Cucumber (GitHub: Let’s build from here · GitHub) so it works on IronRuby. It would be great if someone here could check out the instructions and let me know if it looks ok…

---

## [New to ruby, using threads](https://www.ruby-forum.com/t/new-to-ruby-using-threads/154800)

<div class="topic-metadata">

**Author:** [@barbacoa](https://www.ruby-forum.com/u/barbacoa)\
**Replies:** 6\
**Last updated:** [December 4, 2008, 10:08am UTC](https://www.ruby-forum.com/t/new-to-ruby-using-threads/154800 "2008-12-04T10:08:39Z")

</div>

I’m trying to schedule some task using ruby threads This work great: t = Thread.new do while true do puts “Starting new job at #{Time.now}” do\_something sleep 3 end end t.join But when the task take a long, lik…

---

## [Looking for a pattern](https://www.ruby-forum.com/t/looking-for-a-pattern/154825)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 8:59am UTC](https://www.ruby-forum.com/t/looking-for-a-pattern/154825 "2008-12-04T08:59:04Z")

</div>

I am looking for a pattern to match the last underline and its following string with “####”. for example, “abc\_def\_ghi” =\> “abc\_def####” If I use \_.\* as the pattern it will replace begin with the first underline. Wh…

---

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

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 7:48am UTC](https://www.ruby-forum.com/t/code-review-rakesplit/154792 "2008-12-04T07:48:28Z")

</div>

tfpt review “/shelveset:rakesplit;REDMOND\\jdeville” Comment : Splits rake into 4 files to ease maintenance and future refactors.

---

## [Heel 1.0.2 Released](https://www.ruby-forum.com/t/heel-1-0-2-released/154820)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 7:04am UTC](https://www.ruby-forum.com/t/heel-1-0-2-released/154820 "2008-12-04T07:04:31Z")

</div>

heel version 1.0.2 has been released. This is a bugfix release, If you are seeing an issue with FileType not being found, then it is time to upgrade. enjoy, -jeremy {{ Release notes for Version 1.0.2 }} Fix FileT…

---

## [\[Bug #820\] a little mistake in rubygems/local\_remote\_options.rb](https://www.ruby-forum.com/t/bug-820-a-little-mistake-in-rubygems-local-remote-options-rb/154818)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 6:57am UTC](https://www.ruby-forum.com/t/bug-820-a-little-mistake-in-rubygems-local-remote-options-rb/154818 "2008-12-04T06:57:28Z")

</div>

Bug #820: a little mistake in rubygems/local\_remote\_options.rb http://redmine.ruby-lang.org/issues/show/820 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib e$B%I%-%e%a%s%H$K\>.$…

---

## [JavaOne and CommunityOne](https://www.ruby-forum.com/t/javaone-and-communityone/154814)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 6:05am UTC](https://www.ruby-forum.com/t/javaone-and-communityone/154814 "2008-12-04T06:05:19Z")

</div>

I figured I’d post these here too since they’re pretty fun events, JavaOne can accommodate many Ruby and JRuby-related talks, and CommunityOne isn’t even Java-centric. I’d love to see some of you “classic” Rubyists su…

---

## [Befunge (#184)](https://www.ruby-forum.com/t/befunge-184/153903)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 28\
**Last updated:** [December 4, 2008, 6:02am UTC](https://www.ruby-forum.com/t/befunge-184/153903 "2008-12-04T06:02:59Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q. 2: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on th…

---

## [Problem with NetBeans 6.5 and built in glassfish](https://www.ruby-forum.com/t/problem-with-netbeans-6-5-and-built-in-glassfish/154580)

<div class="topic-metadata">

**Author:** [@typej](https://www.ruby-forum.com/u/typej)\
**Replies:** 3\
**Last updated:** [December 4, 2008, 5:58am UTC](https://www.ruby-forum.com/t/problem-with-netbeans-6-5-and-built-in-glassfish/154580 "2008-12-04T05:58:53Z")

</div>

Hi all, I’m giving NetBeans 6.5 a test drive today (upgrading from 6.1) and I noticed that now you have the option of setting up your rails application w/ WEBrick or the built in glassfish server. I gave the glassfis…

---

## [Ruby MUD: Requesting help](https://www.ruby-forum.com/t/ruby-mud-requesting-help/154810)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 4:44am UTC](https://www.ruby-forum.com/t/ruby-mud-requesting-help/154810 "2008-12-04T04:44:29Z")

</div>

So, after creating a rather rudimentary MUD client in Ruby as part of my home-schooling curriculum, I have become interested in working on an actual MUD. I have made many simple works of interactive fiction, but thats…

---

## [Ruby-iup preview release](https://www.ruby-forum.com/t/ruby-iup-preview-release/154809)

<div class="topic-metadata">

**Author:** [@phasis](https://www.ruby-forum.com/u/phasis)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 4:41am UTC](https://www.ruby-forum.com/t/ruby-iup-preview-release/154809 "2008-12-04T04:41:05Z")

</div>

Hi, I’m pleased to announce the preview release of ruby-iup \[http://rubyforge.org/projects/ruby-iup/\] ruby-iup is a binding library for the IUP GUI toolkit. IUP is a portable toolkit for building graphical user inter…

---

## [Struct class](https://www.ruby-forum.com/t/struct-class/154795)

<div class="topic-metadata">

**Author:** [@vespasian](https://www.ruby-forum.com/u/vespasian)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 1:36am UTC](https://www.ruby-forum.com/t/struct-class/154795 "2008-12-04T01:36:22Z")

</div>

The following code works fine (windows XP, Ruby 1.86) Card = Struct.new(:rank, :suit) class Card def to\_s “#{rank} of #{suit}” end end c = Card.new(2, “hearts”) c.rank 2 ####################################…

---

## [Regular Expressions](https://www.ruby-forum.com/t/regular-expressions/154575)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 14\
**Last updated:** [December 4, 2008, 1:07am UTC](https://www.ruby-forum.com/t/regular-expressions/154575 "2008-12-04T01:07:05Z")

</div>

Hi everyone. Just a question about regualar expression in Ruby. Is there a way to check in each line of a document for always beginning with “23430000” and somewhere on that same line another string ‘CodeRed’? line1:…

---

## [Ruby with Assembler](https://www.ruby-forum.com/t/ruby-with-assembler/154786)

<div class="topic-metadata">

**Author:** [@bedomax](https://www.ruby-forum.com/u/bedomax)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 12:40am UTC](https://www.ruby-forum.com/t/ruby-with-assembler/154786 "2008-12-04T00:40:43Z")

</div>

Hello everyone At university I have to program in Assembler Which is the way to insert assembler code in Ruby, for example in C + + is the ASM method for entering such codes. Well, thanks for the help Greetings Max…

---

## [Hookr 1.0.1](https://www.ruby-forum.com/t/hookr-1-0-1/154789)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 1\
**Last updated:** [December 3, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/hookr-1-0-1/154789 "2008-12-03T23:26:58Z")

</div>

hookr version 1.0.1 by Avdi G. http://hookr.rubyforge.org == DESCRIPTION HookR is a publish/subscribe callback hook facility for Ruby. == CHANGES 1 bug fix Added fail-fast dependency to gem

---

## [Hookr 1.0.1](https://www.ruby-forum.com/t/hookr-1-0-1/196855)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 0\
**Last updated:** [December 3, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/hookr-1-0-1/196855 "2008-12-03T23:25:12Z")

</div>

hookr version 1.0.1 by Avdi G. http://hookr.rubyforge.org == DESCRIPTION HookR is a publish/subscribe callback hook facility for Ruby. == CHANGES 1 bug fix Added fail-fast dependency to gem

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

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