# Ruby

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

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

---

## [\[Bug #2368\](Rejected) URI.regexp $B$K%^%C%A$9$kJ8;zNs$,(B URI.parse $B$G$-$J$$$3$H$,$"$k(B](https://www.ruby-forum.com/t/bug-2368-rejected-uri-regexp-b-k-c-a-9-kj8-zns-b-uri-parse-b-g-j-3-h-k-b/178988)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [November 15, 2009, 6:09am UTC](https://www.ruby-forum.com/t/bug-2368-rejected-uri-regexp-b-k-c-a-9-kj8-zns-b-uri-parse-b-g-j-3-h-k-b/178988 "2009-11-15T06:09:49Z")

</div>

e$B%A%1%C%He(B #2368 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BRejectede$B$KJQ99e(B http://www.ietf.org/rfc/rfc3986 e$B$Ne(B \[Page 20\] e$B$K$F!“e(B e$B0J2\<$NDL$j6X;\_$5$l$F$$$k$?$a!“e(B"ht…

---

## [\[Bug #2368\] URI.regexp $B$K%^%C%A$9$kJ8;zNs$,(B URI.parse $B$G$-$J$$$3$H$,$"$k(B](https://www.ruby-forum.com/t/bug-2368-uri-regexp-b-k-c-a-9-kj8-zns-b-uri-parse-b-g-j-3-h-k-b/178989)

<div class="topic-metadata">

**Author:** [@Kouhei\_Y](https://www.ruby-forum.com/u/Kouhei_Y)\
**Replies:** 0\
**Last updated:** [November 15, 2009, 6:09am UTC](https://www.ruby-forum.com/t/bug-2368-uri-regexp-b-k-c-a-9-kj8-zns-b-uri-parse-b-g-j-3-h-k-b/178989 "2009-11-15T06:09:49Z")

</div>

Bug #2368: URI.regexp e$B$K%^%C%A$9$kJ8;zNs$,e(B URI.parse e$B$G$-$J$$$3$H$,$"$ke(B http://redmine.ruby-lang.org/issues/show/2368 e$B5/I\<\<Te(B: Kouhei Y. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: …

---

## [NArray, How to install](https://www.ruby-forum.com/t/narray-how-to-install/178983)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 4\
**Last updated:** [November 14, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/narray-how-to-install/178983 "2009-11-14T23:05:49Z")

</div>

I’m trying to install NArray so that irb can get access to its methods. Is there a blow by blow description on how to do this in a Windows environment?

---

## [Create Api to create document and add,edit,delete text and t](https://www.ruby-forum.com/t/create-api-to-create-document-and-add-edit-delete-text-and-t/178908)

<div class="topic-metadata">

**Author:** [@skrithikaa](https://www.ruby-forum.com/u/skrithikaa)\
**Replies:** 3\
**Last updated:** [November 14, 2009, 10:28pm UTC](https://www.ruby-forum.com/t/create-api-to-create-document-and-add-edit-delete-text-and-t/178908 "2009-11-14T22:28:50Z")

</div>

Sub: Create Api to create document and add, edit, delete text and table(add row, modify and delete row) Can somebody please tell me how to implement this using inheritence / composition / patterns ? Thanks, skrithik…

---

## [How to copy array in ruby](https://www.ruby-forum.com/t/how-to-copy-array-in-ruby/178919)

<div class="topic-metadata">

**Author:** [@PIKI](https://www.ruby-forum.com/u/PIKI)\
**Replies:** 6\
**Last updated:** [November 14, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/how-to-copy-array-in-ruby/178919 "2009-11-14T19:23:13Z")

</div>

HI I am a novice in Ruby programming so this question might look trivial to lot of people. But I am struggling to copy an array. I am using a = \[\] b = a /\* some manipulation here on “b” and “a” I havent touched at…

---

## [Download Ruby for Win-x64](https://www.ruby-forum.com/t/download-ruby-for-win-x64/178976)

<div class="topic-metadata">

**Author:** [@ricos](https://www.ruby-forum.com/u/ricos)\
**Replies:** 4\
**Last updated:** [November 14, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/download-ruby-for-win-x64/178976 "2009-11-14T19:00:59Z")

</div>

Hi there! In the Web there are a lot of references to the Windows 64bits version of Ruby (a.k.a. x64-mswin64), but I was unable to find the site where I can download it. Help, please! Thanks in advance, Ricardo

---

## [Array within an array](https://www.ruby-forum.com/t/array-within-an-array/178982)

<div class="topic-metadata">

**Author:** [@mittina](https://www.ruby-forum.com/u/mittina)\
**Replies:** 0\
**Last updated:** [November 14, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/array-within-an-array/178982 "2009-11-14T17:58:00Z")

</div>

for i in (0…@cw\_num) for n in (0…@cl\_num) $array\_floor \[n,i\] = \[i\*@cw\_dist,0.0,n\*@cl\_dist\] end end

---

## [Surprising behavior when extending instances](https://www.ruby-forum.com/t/surprising-behavior-when-extending-instances/178974)

<div class="topic-metadata">

**Author:** [@jimc](https://www.ruby-forum.com/u/jimc)\
**Replies:** 3\
**Last updated:** [November 14, 2009, 5:39pm UTC](https://www.ruby-forum.com/t/surprising-behavior-when-extending-instances/178974 "2009-11-14T17:39:38Z")

</div>

This surprised me: module English; def say; “yes”; end; end module French; def say; “oui”; end; end x = Object.new x.extend English x.say # “yes” x.extend French x.say # “oui” x.ex…

---

## [\[Bug:trunk\] memory leak of Class#dup](https://www.ruby-forum.com/t/bug-trunk-memory-leak-of-class-dup/178971)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [November 14, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/bug-trunk-memory-leak-of-class-dup/178971 "2009-11-14T13:57:50Z")

</div>

e$B1sF#$G$9!#e(B Class#dup e$B$,%a%b%j%j!\<%/$9$k$h$&$G$9!#e(B class C; end; loop { C.dup } e$B$G;HMQ%a%b%j$,=y!9$KA}$($F$-$^$9!#e(B object.c e$B$Ne(B init\_copy e$B$He(B class.c e$B$Ne(B rb\_mod\_init\_copy e$B$Ge(B RCLA…

---

## [Gettext-2.1.0, gettext\_activerecord-2.1.0, gettext\_rails-2.1.0](https://www.ruby-forum.com/t/gettext-2-1-0-gettext-activerecord-2-1-0-gettext-rails-2-1-0/178961)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [November 14, 2009, 7:36am UTC](https://www.ruby-forum.com/t/gettext-2-1-0-gettext-activerecord-2-1-0-gettext-rails-2-1-0/178961 "2009-11-14T07:36:51Z")

</div>

Hi, Ruby-GetText-Package-2.1.0 and the families (gettext-2.1.0, gettext\_activerecord-2.1.0 and gettext\_rails-2.1.0) are now available. Ruby-GetText-Package is the library/tools for message localization. gettext - M…

---

## [Locale-2.0.5, locale\_rails-2.0.5](https://www.ruby-forum.com/t/locale-2-0-5-locale-rails-2-0-5/178958)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [November 14, 2009, 7:15am UTC](https://www.ruby-forum.com/t/locale-2-0-5-locale-rails-2-0-5/178958 "2009-11-14T07:15:11Z")

</div>

Hi, Ruby-Locale(locale-2.0.5) and Ruby-Locale for Ruby on Rails(locale\_rails-2.0.5) are now available. Ruby-Locale is the library to manage/detect various format of locale IDs(language tags), and provide ISO 639-3, …

---

## [Good term for "super-project"](https://www.ruby-forum.com/t/good-term-for-super-project/177741)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 3\
**Last updated:** [November 14, 2009, 7:02am UTC](https://www.ruby-forum.com/t/good-term-for-super-project/177741 "2009-11-14T07:02:19Z")

</div>

Rather a minor thing, but it’s been on my TODO list for too long. I’m looking for a good single word term to mean “super-project”. That is, the grouping of a collection of sub-projects. RubyForge uses the term “projec…

---

## [\[bug:trunk\] configure: WARNING: unrecognized options: --with-opt-dir](https://www.ruby-forum.com/t/bug-trunk-configure-warning-unrecognized-options-with-opt-dir/178956)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [November 14, 2009, 5:59am UTC](https://www.ruby-forum.com/t/bug-trunk-configure-warning-unrecognized-options-with-opt-dir/178956 "2009-11-14T05:59:07Z")

</div>

configure e$B$Ke(B --with-opt-dir=/usr/local e$B$H;XDj$9$k$H!"e(B configure: WARNING: unrecognized options: --with-opt-dir e$B$H$$$&7Y9p$,=P$^$9!#e(B % autoconf % ./configure --with-opt-dir=/usr/local configure: WAR…

---

## [\[Feature:trunk\] Dir instance methods for relative path](https://www.ruby-forum.com/t/feature-trunk-dir-instance-methods-for-relative-path/178293)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 14\
**Last updated:** [November 14, 2009, 5:46am UTC](https://www.ruby-forum.com/t/feature-trunk-dir-instance-methods-for-relative-path/178293 "2009-11-14T05:46:14Z")

</div>

e$B$J$+$@$G$9!#e(B http://www.ipa.go.jp/security/fy20/reports/tech1-tg/2\_05.html e$B$re(B e$B$\_$F;W$$=P$7$?$s$G$9$,!“AjBP%Q%9$r;H$&e(BDire$B$N%$%s%9%?%s%9%a%=%C%Ie(B e$B$O$I$&$G$7$g$&$+!#\<BAu$Oe(Bmvme$B%V%i%s%A$K$”$j$…

---

## [Better trace message?](https://www.ruby-forum.com/t/better-trace-message/178955)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [November 14, 2009, 4:49am UTC](https://www.ruby-forum.com/t/better-trace-message/178955 "2009-11-14T04:49:57Z")

</div>

Exception in thread “main” :1: no such file to load – ubygemsf (LoadError) …internal jruby stack elided… from (unknown).(unknown)(:1) might look better as Exception in thread “main” :1: no such file to load – ubygem…

---

## [Upr 0.2.0 - Upload Progress for Rack](https://www.ruby-forum.com/t/upr-0-2-0-upload-progress-for-rack/178954)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [November 14, 2009, 3:06am UTC](https://www.ruby-forum.com/t/upr-0-2-0-upload-progress-for-rack/178954 "2009-11-14T03:06:26Z")

</div>

upr 0.2.0 - twice as good as the first! upr is Rack middleware that allows browser-side upload progress monitoring. It is based on (and should be client-side compatible with) several upload progress modules including…

---

## [Incorrect error code with TCPServer.new on JRuby 1.4.0](https://www.ruby-forum.com/t/incorrect-error-code-with-tcpserver-new-on-jruby-1-4-0/178898)

<div class="topic-metadata">

**Author:** [@Vivek\_P](https://www.ruby-forum.com/u/Vivek_P)\
**Replies:** 9\
**Last updated:** [November 14, 2009, 1:49am UTC](https://www.ruby-forum.com/t/incorrect-error-code-with-tcpserver-new-on-jruby-1-4-0/178898 "2009-11-14T01:49:47Z")

</div>

I have this script and I expect EADDRNOTAVAIL error but jruby gives wrong error code: require ‘socket’ x = TCPServer.new “1.2.3.4”, 4000 Above script gives the following error on MRI on Mac (snow leopard), ruby 1.…

---

## [Google Wave- I need contacts!](https://www.ruby-forum.com/t/google-wave-i-need-contacts/176863)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 20\
**Last updated:** [November 14, 2009, 12:13am UTC](https://www.ruby-forum.com/t/google-wave-i-need-contacts/176863 "2009-11-14T00:13:13Z")

</div>

After 6 days, i finally got my gWave invite! (‘and there was much rejoicing, yay!’) However, I need people to do the wave with! I thought a big long list of ruby devvers wouldn’t be too bad, and to start up a big IRC …

---

## [YAML dump, load: class not properly reconstituted](https://www.ruby-forum.com/t/yaml-dump-load-class-not-properly-reconstituted/178943)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 1\
**Last updated:** [November 14, 2009, 12:05am UTC](https://www.ruby-forum.com/t/yaml-dump-load-class-not-properly-reconstituted/178943 "2009-11-14T00:05:01Z")

</div>

Here’s some yaml: :status: :failure :filename: !ruby/object:Pathname path: /mydev/ballots/432Leon200dpibw001.tif :status: :failure :skew\_angle: -0.72217746154481 :rotated: -0.72217746154481 :filename: !ruby/objec…

---

## [Html format for unit tests](https://www.ruby-forum.com/t/html-format-for-unit-tests/178934)

<div class="topic-metadata">

**Author:** [@awsjr](https://www.ruby-forum.com/u/awsjr)\
**Replies:** 2\
**Last updated:** [November 14, 2009, 12:00am UTC](https://www.ruby-forum.com/t/html-format-for-unit-tests/178934 "2009-11-14T00:00:55Z")

</div>

I am using Ruby unit testing successfully. But what I need is to enable the “HTML report generation” that is supported by most junit implementations.

---

## [Interop with Sql Mgmt Objects (SMO) - the "IronRuby Way"](https://www.ruby-forum.com/t/interop-with-sql-mgmt-objects-smo-the-ironruby-way/178947)

<div class="topic-metadata">

**Author:** [@Mark\_Wilkins](https://www.ruby-forum.com/u/Mark_Wilkins)\
**Replies:** 0\
**Last updated:** [November 13, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/interop-with-sql-mgmt-objects-smo-the-ironruby-way/178947 "2009-11-13T23:05:19Z")

</div>

Thanks to casualjim in #ironruby, I figured out a way to do what I needed, but would be interested to see if there is a more appropriate solution: I’m trying to use SMO to script objects from a SqlServer DB, using IR. …

---

## [Irb woe](https://www.ruby-forum.com/t/irb-woe/178946)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [November 13, 2009, 10:59pm UTC](https://www.ruby-forum.com/t/irb-woe/178946 "2009-11-13T22:59:52Z")

</div>

for file in Dir\[‘910???’\] do File.open(file, ‘r’) do |f| f.each\_line{|l| puts l process l } end end doesn’t appear to be processed well when entered into irb This is a bug? Thanks. -r

---

## [How do I get Ruby runtime from JRubyEngine(JSR233)?](https://www.ruby-forum.com/t/how-do-i-get-ruby-runtime-from-jrubyengine-jsr233/178916)

<div class="topic-metadata">

**Author:** [@Hiroki\_K](https://www.ruby-forum.com/u/Hiroki_K)\
**Replies:** 1\
**Last updated:** [November 13, 2009, 8:35pm UTC](https://www.ruby-forum.com/t/how-do-i-get-ruby-runtime-from-jrubyengine-jsr233/178916 "2009-11-13T20:35:27Z")

</div>

Hi list, I’m developing GUI Application(Eclipse RCP) using JRuby console. The demo is below. http://bit.ly/4DVJXp I’d like to support more than one scripts this application and the application supports code complete…

---

## [RCR enumerable extra into core](https://www.ruby-forum.com/t/rcr-enumerable-extra-into-core/178614)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 24\
**Last updated:** [November 13, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/rcr-enumerable-extra-into-core/178614 "2009-11-13T19:42:08Z")

</div>

I’m considering suggesting that the base functionality for the enumerable-extra gem\[1\] be submitted into core. In a nut shell, it’s that you can do list.map :name as an alternative to list.map &:name which is argua…

---

## [\[ANN\] github svn cloner](https://www.ruby-forum.com/t/ann-github-svn-cloner/178931)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [November 13, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/ann-github-svn-cloner/178931 "2009-11-13T19:13:39Z")

</div>

Since several projects of interest to me are still “svn only”, I setup a github user dedicated to cloning off-site svn’s and keeping them up to date. So if there’s an svn repo you wish you could track/fork on github…

---

## [Enumerable#find\_yield, useful shortcut? better name?](https://www.ruby-forum.com/t/enumerable-find-yield-useful-shortcut-better-name/178867)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 8\
**Last updated:** [November 13, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/enumerable-find-yield-useful-shortcut-better-name/178867 "2009-11-13T17:31:40Z")

</div>

This method has long been suggested to me as #map\_detect. At first I wasn’t sure of it’s usefulness. But now I think it’s okay. (Your thoughts?). In any case, the name has to go. Currently I’m thinking #find\_yield. An…

---

## [Class.new and local variables](https://www.ruby-forum.com/t/class-new-and-local-variables/178925)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [November 13, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/class-new-and-local-variables/178925 "2009-11-13T17:02:16Z")

</div>

I’m trying to do something similar to the Camping ‘R’ class generator. Can anyone explain to me how to get the following to print out from the program below: param is p and arg is this is a P param is q and arg is t…

---

## [Just for fun: oneline code for 4 language permutation](https://www.ruby-forum.com/t/just-for-fun-oneline-code-for-4-language-permutation/178926)

<div class="topic-metadata">

**Author:** [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Replies:** 3\
**Last updated:** [November 13, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/just-for-fun-oneline-code-for-4-language-permutation/178926 "2009-11-13T16:51:16Z")

</div>

hello,happy weekday! in ruby1.9: irb:\> %w{ruby c java php}.permutation.to\_a and my code is(all ruby): irb:\> (1…1000).inject(\[\]){|p,\_|p\<\<%w{ruby c java php}.sort\_by{rand}}.uniq how about you?

---

## [Call an overloaded constructor?](https://www.ruby-forum.com/t/call-an-overloaded-constructor/178883)

<div class="topic-metadata">

**Author:** [@Patrick\_Brown](https://www.ruby-forum.com/u/Patrick_Brown)\
**Replies:** 7\
**Last updated:** [November 13, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/call-an-overloaded-constructor/178883 "2009-11-13T15:23:27Z")

</div>

Hi Is there a way for me to call an overloaded constructor?? I want to say date = new DateTime(2009,9,28) using IronRuby 0.9.2. I have been searching quite a bit and haven’t seen anything so far. Thank you, Pa…

---

## [Invitation to join Rubyists.EU!](https://www.ruby-forum.com/t/invitation-to-join-rubyists-eu/178921)

<div class="topic-metadata">

**Author:** [@Julio\_Javier\_Cicche](https://www.ruby-forum.com/u/Julio_Javier_Cicche)\
**Replies:** 0\
**Last updated:** [November 13, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/invitation-to-join-rubyists-eu/178921 "2009-11-13T14:50:39Z")

</div>

Dear Ruby enthusiasts, At the beginning of October, 2009, we embarked on a project, sweeping in both scope and ambition. Inspired by the current integration trends in an ever shrinking world with porous boundaries, we…

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

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