# Ruby

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

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

---

## [Problem with gempath](https://www.ruby-forum.com/t/problem-with-gempath/179161)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 3\
**Last updated:** [November 26, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/problem-with-gempath/179161 "2009-11-26T15:46:00Z")

</div>

hi, I recently got problem with installing gem. when i execute “gem install xxx” it install to the current directory. here is what i’ve got when i execute “gem env” GEM PATHS: /Users/jsney/.gem/ruby/1.8 /opt/local/…

---

## [Net::SSH and STDIN / Pending jobs](https://www.ruby-forum.com/t/net-ssh-and-stdin-pending-jobs/179509)

<div class="topic-metadata">

**Author:** [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Replies:** 0\
**Last updated:** [November 26, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/net-ssh-and-stdin-pending-jobs/179509 "2009-11-26T14:01:25Z")

</div>

Hi, I am writing a library that allows the user to run some commands over SSH into a server and I have two problems right now: The code get stuck whenever the executed code needs STDIN, it just sits there. How can …

---

## [Mocha multiple\_yields with arrays](https://www.ruby-forum.com/t/mocha-multiple-yields-with-arrays/179481)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 1\
**Last updated:** [November 26, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/mocha-multiple-yields-with-arrays/179481 "2009-11-26T13:36:39Z")

</div>

I believe there’s a bug in mocha that causes an unnecessary and annoying warning message. If you call multiple\_yields with arrays as the arg you want yielded it will complain. object.multiple\_yields(\[1,2\], \[3,4\], \[5,…

---

## [IronRuby + Mono + WinForms issue](https://www.ruby-forum.com/t/ironruby-mono-winforms-issue/179503)

<div class="topic-metadata">

**Author:** [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Replies:** 8\
**Last updated:** [November 26, 2009, 1:34pm UTC](https://www.ruby-forum.com/t/ironruby-mono-winforms-issue/179503 "2009-11-26T13:34:19Z")

</div>

I sent this to Thibaut, but I probably should’ve sent it to the whole list since it probably isn’t directly related to his work (sorry Thibaut!). Thanks to Ivan’s pointer to mono builds, I was able to get IronRuby to …

---

## [Back with more questions: mono 2.4.x & IR 0.9.x](https://www.ruby-forum.com/t/back-with-more-questions-mono-2-4-x-ir-0-9-x/179480)

<div class="topic-metadata">

**Author:** [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Replies:** 4\
**Last updated:** [November 26, 2009, 11:55am UTC](https://www.ruby-forum.com/t/back-with-more-questions-mono-2-4-x-ir-0-9-x/179480 "2009-11-26T11:55:59Z")

</div>

Hi Folks, Since I hear such good things about the rate at which features are being added to the project (and since it coincides with needing to write some cross-platform UI code), I thought I’d give the new version a …

---

## [Ruby gem , require and version problem](https://www.ruby-forum.com/t/ruby-gem-require-and-version-problem/179495)

<div class="topic-metadata">

**Author:** [@lasastard](https://www.ruby-forum.com/u/lasastard)\
**Replies:** 1\
**Last updated:** [November 26, 2009, 11:07am UTC](https://www.ruby-forum.com/t/ruby-gem-require-and-version-problem/179495 "2009-11-26T11:07:24Z")

</div>

Hi, I am trying to specify the version a gem, which is installed in two versions under slightly different names as a result of forked projects which we now intend to merge back. Looks like this in ‘gem list’ ruby-f…

---

## [Difference between \<\< and += for Strings and Arrays. Bug?](https://www.ruby-forum.com/t/difference-between-and-for-strings-and-arrays-bug/179416)

<div class="topic-metadata">

**Author:** [@hostep](https://www.ruby-forum.com/u/hostep)\
**Replies:** 13\
**Last updated:** [November 26, 2009, 10:28am UTC](https://www.ruby-forum.com/t/difference-between-and-for-strings-and-arrays-bug/179416 "2009-11-26T10:28:46Z")

</div>

Hi I have been programming with Ruby for about 1 year and am loving it. I cam across something that I can’t figure out why it works the way it does: Eg: a=\[1,2\] b=a b \<\< 3 The value of b is now \[1,2,3\], but the v…

---

## [DRb::DRbObject.alive?](https://www.ruby-forum.com/t/drb-drbobject-alive/179438)

<div class="topic-metadata">

**Author:** [@benoitdinocourt](https://www.ruby-forum.com/u/benoitdinocourt)\
**Replies:** 3\
**Last updated:** [November 26, 2009, 10:17am UTC](https://www.ruby-forum.com/t/drb-drbobject-alive/179438 "2009-11-26T10:17:03Z")

</div>

Hi, I found a feature that seem to be missing to me in DRb. I’m just creating a chat with a client and a server, using only DRb to interact between them. My problem is I didn’t found a nice way to verify if a client …

---

## [Reia: goings on of a Ruby-like language for Erlang](https://www.ruby-forum.com/t/reia-goings-on-of-a-ruby-like-language-for-erlang/179488)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 0\
**Last updated:** [November 26, 2009, 7:26am UTC](https://www.ruby-forum.com/t/reia-goings-on-of-a-ruby-like-language-for-erlang/179488 "2009-11-26T07:26:44Z")

</div>

I’m the creator of a Ruby-like language for Erlang called Reia: http://reia-lang.org/ I was asked about it quite a bit at RubyConf. Erlang has a certain degree of popularity in the Ruby community, which I can only g…

---

## [RubyScript2exe](https://www.ruby-forum.com/t/rubyscript2exe/179318)

<div class="topic-metadata">

**Author:** [@belitos](https://www.ruby-forum.com/u/belitos)\
**Replies:** 2\
**Last updated:** [November 26, 2009, 4:47am UTC](https://www.ruby-forum.com/t/rubyscript2exe/179318 "2009-11-26T04:47:34Z")

</div>

hey guys im trying to use RubyScript2exe but im getting this error http://tinyurl.com/yh9wnbf \<= the picture of the error someone knows whats the problem? thanks

---

## [New Ruby Group in Toronto](https://www.ruby-forum.com/t/new-ruby-group-in-toronto/179487)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 0\
**Last updated:** [November 26, 2009, 4:32am UTC](https://www.ruby-forum.com/t/new-ruby-group-in-toronto/179487 "2009-11-26T04:32:56Z")

</div>

Hi, we’re creating a new Ruby Mentor+hack fest weekend event group here in Toronto and are looking for people from the area who would like to get involved in the project and help make it a success. We are also lookin…

---

## [\[Bug #2387\](Closed) test/mkmf/base.rb $B$O(B RbConfig::CONFIG\['cppflags'\] $B$,(B nil $B$N$H$-N](https://www.ruby-forum.com/t/bug-2387-closed-test-mkmf-base-rb-b-o-b-rbconfig-config-cppflags-b-b-nil-b-n-h-n/179485)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [November 26, 2009, 3:47am UTC](https://www.ruby-forum.com/t/bug-2387-closed-test-mkmf-base-rb-b-o-b-rbconfig-config-cppflags-b-b-nil-b-n-h-n/179485 "2009-11-26T03:47:18Z")

</div>

e$B%A%1%C%He(B #2387 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.) e$B%9%F!\<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B This issue was solved with changeset r25928. Kenta, thank …

---

## [\[Bug #2388\] test-all $BCf$K(B popen $B$G(B ruby.exe $B$,Mn$A$k(B](https://www.ruby-forum.com/t/bug-2388-test-all-bcf-k-b-popen-b-g-b-ruby-exe-b-mn-a-k-b/179482)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 0\
**Last updated:** [November 26, 2009, 2:23am UTC](https://www.ruby-forum.com/t/bug-2388-test-all-bcf-k-b-popen-b-g-b-ruby-exe-b-mn-a-k-b/179482 "2009-11-26T02:23:01Z")

</div>

e$B%A%1%C%He(B #2388 e$B$,99?7$5$l$^$7$?!#e(B (by Usaku NAKAMURA) e$B;DG0$J$,$i:F8=$G$-$J$$$N$G$9$,!“$=$A$i$G$Oe(B nmake test-all TESTS=”-v ruby/test\_process.rb" e$B$@$1$G$b:F8=$G$-$^$9$+!)e(B http://redmine.ruby-lan…

---

## [Howto replace custom\_require functionality](https://www.ruby-forum.com/t/howto-replace-custom-require-functionality/179440)

<div class="topic-metadata">

**Author:** [@Paul\_F\_Fraser](https://www.ruby-forum.com/u/Paul_F_Fraser)\
**Replies:** 3\
**Last updated:** [November 26, 2009, 12:25am UTC](https://www.ruby-forum.com/t/howto-replace-custom-require-functionality/179440 "2009-11-26T00:25:59Z")

</div>

If I try a modification to custom\_require and just run the code (in netbeans) the paths are not listed, whereas if debugging, the paths are listed. a) What is the program flow in jruby that causes this? b) IF it is p…

---

## [Gem.bin\_path LoadError - gem bin directories are not found](https://www.ruby-forum.com/t/gem-bin-path-loaderror-gem-bin-directories-are-not-found/179478)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 0\
**Last updated:** [November 25, 2009, 10:42pm UTC](https://www.ruby-forum.com/t/gem-bin-path-loaderror-gem-bin-directories-are-not-found/179478 "2009-11-25T22:42:36Z")

</div>

I installed ruby gems and have been working with rails just fine. Now, this example (step 6) is giving me trouble: http://rails-primer.appspot.com Step 6 says to run appcfg.rb … That was not in my path. So after som…

---

## [Pseudo array for Rails migration](https://www.ruby-forum.com/t/pseudo-array-for-rails-migration/179335)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 6\
**Last updated:** [November 25, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/pseudo-array-for-rails-migration/179335 "2009-11-25T21:42:29Z")

</div>

Consider N\_X = 20 # size of pseudo array class CreatePeople \< ActiveRecord::Migration create\_table :people do |t| t.string :first\_name , :null =\> false . . . t.integer :x00 t.integer :x01 t.…

---

## [Suggested containers for high volume rails apps](https://www.ruby-forum.com/t/suggested-containers-for-high-volume-rails-apps/179470)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 1\
**Last updated:** [November 25, 2009, 9:34pm UTC](https://www.ruby-forum.com/t/suggested-containers-for-high-volume-rails-apps/179470 "2009-11-25T21:34:29Z")

</div>

We used jruby for the first time with red5, a flash server, and have been impressed by it’s performance. We are also tired of the management nightmare that is mongrel. I’m interested in feedback from others on what …

---

## [Autoloader, version 0.0.2](https://www.ruby-forum.com/t/autoloader-version-0-0-2/179402)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 7\
**Last updated:** [November 25, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/autoloader-version-0-0-2/179402 "2009-11-25T18:40:39Z")

</div>

A couple of handy features to enhance Kernel#autoload. Changes since 0.0.1: minor tweaks to the gem, and migrated to gemcutter. Question: How do I add a choice of dependencies? Right now, I can use either extlib or a…

---

## [2 lines to add to the ir launcher](https://www.ruby-forum.com/t/2-lines-to-add-to-the-ir-launcher/179466)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [November 25, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/2-lines-to-add-to-the-ir-launcher/179466 "2009-11-25T17:20:28Z")

</div>

Hi Could the following 2 lines be added to the ir launcher script for mono ? export MONO\_IOMAP=all export MONO\_MANAGED\_WATCHER=1 The first one ensures no errors when people related to casing and drive letters http…

---

## [Help with meta programming](https://www.ruby-forum.com/t/help-with-meta-programming/179451)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 1\
**Last updated:** [November 25, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/help-with-meta-programming/179451 "2009-11-25T16:42:54Z")

</div>

I came across the following code in a class called Marker def when\_dropped self.listen\_to :event =\> :dragend do |script| script \<\< “drop\_location = #{self.var}.getLatLng();” yield script, :drop\_location end end if…

---

## [Rango 0.1 Released!](https://www.ruby-forum.com/t/rango-0-1-released/179457)

<div class="topic-metadata">

**Author:** [@Jakub\_SSSSSSSSastn](https://www.ruby-forum.com/u/Jakub_SSSSSSSSastn)\
**Replies:** 2\
**Last updated:** [November 25, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/rango-0-1-released/179457 "2009-11-25T14:55:54Z")

</div>

Hi guys, I am happy to announce the first public release of my new framework Rangohttp://github.com/botanicus/rango. Rango is a small MVC framework inspired by Merbhttp://rubyflow.com/search/merb and Django builded …

---

## [Strange error after upgrading from 1.3.1 to 1.4.0](https://www.ruby-forum.com/t/strange-error-after-upgrading-from-1-3-1-to-1-4-0/179456)

<div class="topic-metadata">

**Author:** [@PaweSSSSSWielgus](https://www.ruby-forum.com/u/PaweSSSSSWielgus)\
**Replies:** 4\
**Last updated:** [November 25, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/strange-error-after-upgrading-from-1-3-1-to-1-4-0/179456 "2009-11-25T13:45:05Z")

</div>

Hi all, i’m migrating my rails app from jruby 1.3.1 to 1.4.0 (linux) and when running tests and entering a page where truncate helper is used i have an exception : NoMethodError: undefined method \`length’ for #\<Enume…

---

## [Help with each\_with\_index method](https://www.ruby-forum.com/t/help-with-each-with-index-method/179430)

<div class="topic-metadata">

**Author:** [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Replies:** 9\
**Last updated:** [November 25, 2009, 1:13pm UTC](https://www.ruby-forum.com/t/help-with-each-with-index-method/179430 "2009-11-25T13:13:08Z")

</div>

Hi there, I’m looking for help with my work here.I’m just learning Ruby. Basically I have 5 names entered into an array. They have a firstname and surname. A middlename is then optional. What I want to do is to print…

---

## [Require 'dbi'$B!$G$&$^$/$f$+$J$$$H$-$,$"$j$^$9!#(B](https://www.ruby-forum.com/t/require-dbi-b-g-f-j-h-j-9-b/179441)

<div class="topic-metadata">

**Author:** [@Nobuyuki\_I](https://www.ruby-forum.com/u/Nobuyuki_I)\
**Replies:** 2\
**Last updated:** [November 25, 2009, 11:20am UTC](https://www.ruby-forum.com/t/require-dbi-b-g-f-j-h-j-9-b/179441 "2009-11-25T11:20:32Z")

</div>

e$B0pMU$H?=$7$^$9!#e(B e$B$3$3$K\<ALd$7$F$h$$$+G:$\_$J$,$i!":$$C$?$3$H$,!"$\*$-$?$N$G%a!\<%k$5$;$F$$$?$@$-$^$9!#e(B OSe$B$Oe(Bubuntu9.10e$B$r;H$C$F$$$^$9!#A0$N%P!\<%8%g%s$+$i!":G6a!“e(B9.10e$B$K$7$^$7$?!#e(B e$B$=$N$;$$$G!…

---

## [Where should I put my config file, and how to load it?](https://www.ruby-forum.com/t/where-should-i-put-my-config-file-and-how-to-load-it/179423)

<div class="topic-metadata">

**Author:** [@kozuka](https://www.ruby-forum.com/u/kozuka)\
**Replies:** 5\
**Last updated:** [November 25, 2009, 11:11am UTC](https://www.ruby-forum.com/t/where-should-i-put-my-config-file-and-how-to-load-it/179423 "2009-11-25T11:11:22Z")

</div>

Hello all! I have a small app/set of libraries I’m developing at work called Sweet. I’m distributing it internally as a ruby gem, which is working nicely. However I rather foolishly put Sweet’s yaml config file in its …

---

## [Warning: instance variable @foo not initialized](https://www.ruby-forum.com/t/warning-instance-variable-foo-not-initialized/179396)

<div class="topic-metadata">

**Author:** [@Seebs](https://www.ruby-forum.com/u/Seebs)\
**Replies:** 12\
**Last updated:** [November 25, 2009, 10:59am UTC](https://www.ruby-forum.com/t/warning-instance-variable-foo-not-initialized/179396 "2009-11-25T10:59:27Z")

</div>

Running some simple tests with Prawn, I am getting thousands of lines of warnings from Ruby 1.9.1: /usr/local/lib/ruby/gems/1.9.1/gems/prawn-layout-0.3.2/lib/prawn/table/cell.rb:255: warning: instance variable @text\_c…

---

## [Can't understand for String.delete](https://www.ruby-forum.com/t/cant-understand-for-string-delete/179412)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 3\
**Last updated:** [November 25, 2009, 9:56am UTC](https://www.ruby-forum.com/t/cant-understand-for-string-delete/179412 "2009-11-25T09:56:15Z")

</div>

Returns a copy of str with all characters in the intersection of its arguments deleted. Uses the same rules for building the set of characters as +String#count+. "hello".delete "l","lo" #=\> "heo" "hello…

---

## [RSpec via Ant](https://www.ruby-forum.com/t/rspec-via-ant/179446)

<div class="topic-metadata">

**Author:** [@Ayumu\_A](https://www.ruby-forum.com/u/Ayumu_A)\
**Replies:** 0\
**Last updated:** [November 25, 2009, 9:30am UTC](https://www.ruby-forum.com/t/rspec-via-ant/179446 "2009-11-25T09:30:30Z")

</div>

Hi, This is Ayumu, a.k.a @ayumin. I’m looking for how to use RSpec via Ant. Already I know JTestR, however I don’t want to use JRuby in this case. Thank you. Ayumu A. removed\_email\_address@domain.invalid http://twi…

---

## [Openssl error with quick\_cert code](https://www.ruby-forum.com/t/openssl-error-with-quick-cert-code/179182)

<div class="topic-metadata">

**Author:** [@Paul\_F\_Fraser](https://www.ruby-forum.com/u/Paul_F_Fraser)\
**Replies:** 2\
**Last updated:** [November 24, 2009, 11:37pm UTC](https://www.ruby-forum.com/t/openssl-error-with-quick-cert-code/179182 "2009-11-24T23:37:02Z")

</div>

Trying to get quick\_cert working with JRuby 1.4. The following code bombs out keypair = OpenSSL::PKey::RSA.new(1024) if new\_certificate\_opts\[:password\].nil? then File.open @keypair\_file, "w", 0400 do |f| # 0400 = 00…

---

## [JRuby + hibernate](https://www.ruby-forum.com/t/jruby-hibernate/179375)

<div class="topic-metadata">

**Author:** [@cnick](https://www.ruby-forum.com/u/cnick)\
**Replies:** 2\
**Last updated:** [November 24, 2009, 10:43pm UTC](https://www.ruby-forum.com/t/jruby-hibernate/179375 "2009-11-24T22:43:11Z")

</div>

For those not at jrubyconf, I’ve taken some of the code from my lightning talk and pushed it to github. It uses Charlie’s jibernate code as a starting point, but the intention is to flesh it out enough to make it a …

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

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