# Ruby

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

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

---

## [Gets hang](https://www.ruby-forum.com/t/gets-hang/124137)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [December 25, 2007, 10:05am UTC](https://www.ruby-forum.com/t/gets-hang/124137 "2007-12-25T10:05:11Z")

</div>

test\_https\_proxy.rb e$B$,e(B timeout e$B$9$k$H$$$&$N$GDI$$$+$1$?$H$3e(B e$B$m!"$3$l$^$?e(B gets e$B$N$h$&$G$9!#e(B % ./miniruby -ve ’ r, w = IO.pipe Thread.new { w \<\< “foooo\\r\\n” sleep 0.5 w \<\< “\\r\\n” } p r.gets…

---

## [Undefined reference to \`ruby\_set\_debug\_option', etc](https://www.ruby-forum.com/t/undefined-reference-to-ruby-set-debug-option-etc/124140)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 8:48am UTC](https://www.ruby-forum.com/t/undefined-reference-to-ruby-set-debug-option-etc/124140 "2007-12-25T08:48:03Z")

</div>

e$B0J2\<$N$h$&$Ke(B make e$B$,\<:GT$7$^$9!#e(B % make goruby gcc -Wall -Wformat=2 -Wundef -O0 -g3 -DRUBY\_DEBUG\_ENV -L. -rdynamic -Wl,-export-dynamic goruby.o -o goruby goruby.o: In function main': /home/ruby/m17n…

---

## [ANN: Sequel 0.4.5 Released](https://www.ruby-forum.com/t/ann-sequel-0-4-5-released/124139)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 8:38am UTC](https://www.ruby-forum.com/t/ann-sequel-0-4-5-released/124139 "2007-12-25T08:38:07Z")

</div>

Sequel version 0.4.5 has just been released. Sequel is a lightweight database access and ORM library for Ruby. Sequel provides thread safety, connection pooling and a simple and expressive API for constructing databas…

---

## [Result of test-all on FreeBSD 6.2](https://www.ruby-forum.com/t/result-of-test-all-on-freebsd-6-2/124136)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 8:17am UTC](https://www.ruby-forum.com/t/result-of-test-all-on-freebsd-6-2/124136 "2007-12-25T08:17:41Z")

</div>

Hi, This is a result of test-all on 6.2-RELEASE-p4 on VMware.

---

## [Test/ruby/test\_transcode.rb $B$NLdBj(B](https://www.ruby-forum.com/t/test-ruby-test-transcode-rb-b-nldbj-b/124135)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 8:14am UTC](https://www.ruby-forum.com/t/test-ruby-test-transcode-rb-b-nldbj-b/124135 "2007-12-25T08:14:10Z")

</div>

e$B:G?7$N%P!\<%8%g%s$Ge(B test/ruby/test\_transcode.rb e$B$N0lIt$G%(%i!\<$,$G$^$9!#$\*$=$i$/CfED$5$s$N0lHV:G6a$Ne(B e$BJQ99$K4X78$7$^$9!#CfED$5$s!"D4::$\*4j$$$G$-$^$9$G$7$g$&$+!#e(B e$B59$7$/$\*4j$$$7$^$9!#e(B Martin. #…

---

## [Resut of make test on cygwin](https://www.ruby-forum.com/t/resut-of-make-test-on-cygwin/124131)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 7:08am UTC](https://www.ruby-forum.com/t/resut-of-make-test-on-cygwin/124131 "2007-12-25T07:08:44Z")

</div>

e$B!!$5$5$@$G$9!#e(B e$B!!e(Bcygwin e$B$Ge(B make test e$B$7$?7k2L$G$9!#e(B #149 test\_exception.rb:373:in \`\<top (required)\>’: STDERR.reopen(STDOUT) class C def inspect bar {} end def bar raise ensure …

---

## [Test-all on Debian/GNU etch](https://www.ruby-forum.com/t/test-all-on-debian-gnu-etch/124132)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 7:07am UTC](https://www.ruby-forum.com/t/test-all-on-debian-gnu-etch/124132 "2007-12-25T07:07:34Z")

</div>

Hi, This is current test-all result on my laptop (Debian/GNU Linux etch on VMware). Error: test\_https\_proxy\_authentication(HTTPSProxyTest): Timeout::Error: execution expired /home/ko1/ruby/trunk/lib/net/protocol.…

---

## [Appendline Invalid read of size 1](https://www.ruby-forum.com/t/appendline-invalid-read-of-size-1/124129)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 6:59am UTC](https://www.ruby-forum.com/t/appendline-invalid-read-of-size-1/124129 "2007-12-25T06:59:59Z")

</div>

e$B0J2\<$N$h$&$K!"e(Bappendline e$B$,%P%C%U%!$r1\[$($?$H$3$m$Ge(B onigenc\_get\_left\_adjust\_char\_head e$B$r8F$S=P$7$F$$$k$N$,4Q;!$5e(B e$B$l$^$9!#e(B % valgrind ./ruby -ve ’ open(“zz”, “wb”) {|f| f \<\< (“a”\*8191+"\\n") } …

---

## [Distinguish "w" and "w:euc-jp"](https://www.ruby-forum.com/t/distinguish-w-and-w-euc-jp/124126)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 5:12am UTC](https://www.ruby-forum.com/t/distinguish-w-and-w-euc-jp/124126 "2007-12-25T05:12:31Z")

</div>

EUC-JP e$B$J4D6-$G!"e(Bopen e$B$Ke(B “w” e$B$rEO$7$FJQ49$,5/$-$J$$\>l9g$He(B “w:euc-jp” e$B$rEO$7$FJQ49$,5/$-$k\>l9g$N0c$$$,e(B external\_encoding, internal\_encoding e$B$G6hJL$G$-$^$;$s!#e(B e$B0J2\<$N$h$&$Ke(B “w” e$B$@…

---

## [Enumerable#to\_a can run forever](https://www.ruby-forum.com/t/enumerable-to-a-can-run-forever/124119)

<div class="topic-metadata">

**Author:** [@kuzb](https://www.ruby-forum.com/u/kuzb)\
**Replies:** 6\
**Last updated:** [December 25, 2007, 5:10am UTC](https://www.ruby-forum.com/t/enumerable-to-a-can-run-forever/124119 "2007-12-25T05:10:45Z")

</div>

It’s possible to implement an each method in a class mixing in Enumerable that runs forever, and thus causing, for example, to\_a to run forever. One such class is mathn’s Prime class: require ‘mathn’ Prime.new.to\_a …

---

## [Can't build on MacOSX 10.4(Tiger) (was Re: Re: 1.9.1 issues left (as of 12/15))](https://www.ruby-forum.com/t/cant-build-on-macosx-10-4-tiger-was-re-re-1-9-1-issues-left-as-of-12-15/124121)

<div class="topic-metadata">

**Author:** [@MOROHASHI\_Kyosuke](https://www.ruby-forum.com/u/MOROHASHI_Kyosuke)\
**Replies:** 3\
**Last updated:** [December 25, 2007, 4:51am UTC](https://www.ruby-forum.com/t/cant-build-on-macosx-10-4-tiger-was-re-re-1-9-1-issues-left-as-of-12-15/124121 "2007-12-25T04:51:29Z")

</div>

ã‚‚ã‚ã¯ã—ã§ã™ã€‚ãŠä¸–è©±ã«ãªã£ã¦ãŠã‚Šã¾ã™ã€‚ On Dec 24, 2007 6:24 PM, Yukihiro M. removed\_email\_address@domain.invalid wrote: |ã‚ã¨ã€ä»Šæ™©ã‹æ˜Žæ—¥ã«ã€å„ç¨®OS/ãƒ‡ã‚£ã‚¹ãƒˆãƒªãƒ“ãƒ¥ãƒ¼ã‚·ãƒ§ãƒ³ã§ã…

---

## [.CN Domain(first year: $0.14) -----Surprise Price](https://www.ruby-forum.com/t/cn-domain-first-year-0-14-surprise-price/124123)

<div class="topic-metadata">

**Author:** [@conniezhang](https://www.ruby-forum.com/u/conniezhang)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 4:14am UTC](https://www.ruby-forum.com/t/cn-domain-first-year-0-14-surprise-price/124123 "2007-12-25T04:14:13Z")

</div>

Dear Valued Businessman/BusinessLady, Todaynic.com is one of the first ICANN Accredited Registrars and CNNIC Accredited Domestic Registrars in China. Great amount of domain extensions with low prices and provide VDNS …

---

## [More ANSI'ize](https://www.ruby-forum.com/t/more-ansiize/124120)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 3:21am UTC](https://www.ruby-forum.com/t/more-ansiize/124120 "2007-12-25T03:21:26Z")

</div>

e$B:XF#$H?=$7$^$9!#e(B e$B$\*$O$h$&$4$6$$$^$9!#e(B e$B1Q8lHG$K9g$o$;$Fe(BREADME.EXT.jae$B$Ne(BDBMe$B%5%s%W%k%3!\<%I$re(BANSIe$B2=$7$F$$$?$N$G$9$,!"e(B .\[ch\]e$BEy$K;D$ke(B\_(…)e$B$b$D$$$G$K\>C$7$F$\_$^$7$?!#ET9g$N$h$$HO0O$G…

---

## [Pre-release note for the christmas release](https://www.ruby-forum.com/t/pre-release-note-for-the-christmas-release/124099)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 3\
**Last updated:** [December 25, 2007, 2:58am UTC](https://www.ruby-forum.com/t/pre-release-note-for-the-christmas-release/124099 "2007-12-25T02:58:39Z")

</div>

Hi, I think I have almost done the basic design & implementation work for 1.9.0, which is going to be released today. A few notes before the release: The relase version will be 1.9.0, not 1.9.1 as we have announce…

---

## [RubyGems 1.0.1](https://www.ruby-forum.com/t/rubygems-1-0-1/123837)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 11\
**Last updated:** [December 25, 2007, 2:41am UTC](https://www.ruby-forum.com/t/rubygems-1-0-1/123837 "2007-12-25T02:41:07Z")

</div>

= Announce: RubyGems Release 1.0.1 Release 1.0.1 fixes a few bugs. Bugs Fixed: Installation on Ruby 1.8.3 through 1.8.5 fixed gem build on 1.8.3 fixed Other Changes Include: Since RubyGems 0.9.5, RubyGems is no l…

---

## [Zsh and ruby functions](https://www.ruby-forum.com/t/zsh-and-ruby-functions/124071)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 3\
**Last updated:** [December 25, 2007, 1:59am UTC](https://www.ruby-forum.com/t/zsh-and-ruby-functions/124071 "2007-12-25T01:59:38Z")

</div>

hi roobyfiends - i am trying to get zshell to use some ruby scripts transparently but running into problems. in the ruby script i have: #!/usr/bin/env ruby and yet: \[dc@metroid:~\]$ type svnbatchmove.rb …

---

## [Syntax error for a case within a module](https://www.ruby-forum.com/t/syntax-error-for-a-case-within-a-module/124116)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 2\
**Last updated:** [December 24, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/syntax-error-for-a-case-within-a-module/124116 "2007-12-24T23:52:13Z")

</div>

For the project at http://code.google.com/p/dwemthys/source, I want to use this module to instantiate a random Creature. Maybe a Dragon, maybe a GreenDragon, maybe an IndustrialRaverMonkey or something else …

---

## [No method error (because of unknown variable type)](https://www.ruby-forum.com/t/no-method-error-because-of-unknown-variable-type/123960)

<div class="topic-metadata">

**Author:** [@haris](https://www.ruby-forum.com/u/haris)\
**Replies:** 7\
**Last updated:** [December 24, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/no-method-error-because-of-unknown-variable-type/123960 "2007-12-24T23:30:34Z")

</div>

Hi ! Here is a little example: file “Functions.rb”: #--------------------- def func(file) if !file.eof then #do something. end #--------------- file “main.rb”: require ‘Functions’ file\_1=open(‘bla.txt’,‘w’) fu…

---

## [Enumerable can't take multiple parameters](https://www.ruby-forum.com/t/enumerable-cant-take-multiple-parameters/124086)

<div class="topic-metadata">

**Author:** [@GOTOU\_Yuuzou](https://www.ruby-forum.com/u/GOTOU_Yuuzou)\
**Replies:** 4\
**Last updated:** [December 24, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/enumerable-cant-take-multiple-parameters/124086 "2007-12-24T22:11:36Z")

</div>

eache$B$GJ#?t$N%Q%i%a!\<%?$re(Byielde$B$7$?$H$-$K!"e(BEnumerable#colecte$B$G!"e(B e$B@hF,$NCM$7$+\<u$1\<h$l$J$$$h$&$G$9!#e(B % ruby-1.9 -v -e ’ ~ class Foo include Enumerable def each {1=\>2, 3=\>4}.each{|k, v| yield(…

---

## [Upper arrow key is not worked in irb. is it bug?](https://www.ruby-forum.com/t/upper-arrow-key-is-not-worked-in-irb-is-it-bug/124102)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 6\
**Last updated:** [December 24, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/upper-arrow-key-is-not-worked-in-irb-is-it-bug/124102 "2007-12-24T21:26:30Z")

</div>

i manually download ruby-1.8.6.tar.gz i installed into /home/username/package/ruby (using --prefix) and add the manual path into PATH variable when i was working in irb if i press upper arrow key then ‘^\[\[A’ will co…

---

## [Ruby DBI](https://www.ruby-forum.com/t/ruby-dbi/124088)

<div class="topic-metadata">

**Author:** [@Praveen\_R](https://www.ruby-forum.com/u/Praveen_R)\
**Replies:** 6\
**Last updated:** [December 24, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/ruby-dbi/124088 "2007-12-24T21:18:19Z")

</div>

Hi What's the best way to do raw SQL in Ruby? Something like Perl's DBI. I see there is a Ruby DBI but it seems in beta. Can one use ActiveRecord to run arbitrary SQL statements? I'm not really interested in a full-fle…

---

## [Next dumps core when poped is 0](https://www.ruby-forum.com/t/next-dumps-core-when-poped-is-0/124104)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [December 24, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/next-dumps-core-when-poped-is-0/124104 "2007-12-24T20:46:46Z")

</div>

e$B1sF#$H?=$7$^$9e(B 1.9 e$B$,0J2\<$GMn$A$^$9!#e(B $ ./miniruby -e ’ counter = 2 while true counter -= 1 break if counter == 0 “#{next}” end ’ -e:5: – control frame ---------- c:0003 p:0021 s:0005 b:0006 l:000…

---

## [Solution to rails bug exposed by utility belt](https://www.ruby-forum.com/t/solution-to-rails-bug-exposed-by-utility-belt/123926)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 3\
**Last updated:** [December 24, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/solution-to-rails-bug-exposed-by-utility-belt/123926 "2007-12-24T20:18:05Z")

</div>

Hi all, if you saw this discussion earlier, there’s a workaround: http://gilesbowkett.blogspot.com/2007/12/solution-to-rails-bug-which-utility.html – Giles B. Podcast: http://hollywoodgrit.blogspot.com Blog: http://…

---

## [Salesforce integration with Rails app](https://www.ruby-forum.com/t/salesforce-integration-with-rails-app/196553)

<div class="topic-metadata">

**Author:** [@arjun\_ghosh](https://www.ruby-forum.com/u/arjun_ghosh)\
**Replies:** 1\
**Last updated:** [December 24, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/salesforce-integration-with-rails-app/196553 "2007-12-24T20:15:45Z")

</div>

Hi, I have problem here and have searched a lot on net but did not get any answers. Now what i am trying to do is create a rails app which talks to SalesForec API. I did a search found a Rails gem called ‘activesal…

---

## [Double slash in Hpricot...?](https://www.ruby-forum.com/t/double-slash-in-hpricot/109457)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 2\
**Last updated:** [December 24, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/double-slash-in-hpricot/109457 "2007-12-24T19:28:06Z")

</div>

What’s the purpose of the double slash in Hpricot? doc.search("/html/body//p")

---

## [Ruby-hbase gem](https://www.ruby-forum.com/t/ruby-hbase-gem/124091)

<div class="topic-metadata">

**Author:** [@bdeverea](https://www.ruby-forum.com/u/bdeverea)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 4:35pm UTC](https://www.ruby-forum.com/t/ruby-hbase-gem/124091 "2007-12-24T16:35:08Z")

</div>

I’ve released ruby-hbase, a library for connecting Ruby to HBase, the Hadoop Database system. It somewhat mimics the interface of the Java HBase API, but with a Ruby twist. You can read more about this gem and the int…

---

## [Can't compile](https://www.ruby-forum.com/t/cant-compile/124089)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/cant-compile/124089 "2007-12-24T15:03:39Z")

</div>

Hello When compiling ruby from svn trunk, I get: /home/cpet2308/privat/DivRubyTing/ruby-clean/tool/instruction.rb:1318:in encode': transcoding not supported (from ASCII-8BIT to ISO-8859-1) (ArgumentError) from /home/c…

---

## [Loading .rb files in IRb](https://www.ruby-forum.com/t/loading-rb-files-in-irb/124080)

<div class="topic-metadata">

**Author:** [@gudnigh](https://www.ruby-forum.com/u/gudnigh)\
**Replies:** 2\
**Last updated:** [December 24, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/loading-rb-files-in-irb/124080 "2007-12-24T14:36:45Z")

</div>

Hi… I am trying to get IRb to load a file. I am running a fresh install of Mac OS X Leopard and I have updated my gems and RubyGems. Below is the Class file ( From the Pickaxe and saved under /Users/gudni/Song.rb ) a…

---

## [Notify a web-service: sending non-blocking http requests](https://www.ruby-forum.com/t/notify-a-web-service-sending-non-blocking-http-requests/124084)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 2\
**Last updated:** [December 24, 2007, 2:34pm UTC](https://www.ruby-forum.com/t/notify-a-web-service-sending-non-blocking-http-requests/124084 "2007-12-24T14:34:15Z")

</div>

hi - i want to notify a webservice of something, but not wait for the response. whats the best way to do this? is there a way to use a GET call to just send a request and then continue? i could use the timeout libra…

---

## [Salesforce integration with Rails app](https://www.ruby-forum.com/t/salesforce-integration-with-rails-app/124079)

<div class="topic-metadata">

**Author:** [@arjun\_ghosh](https://www.ruby-forum.com/u/arjun_ghosh)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 1:12pm UTC](https://www.ruby-forum.com/t/salesforce-integration-with-rails-app/124079 "2007-12-24T13:12:09Z")

</div>

Hi, I have problem here and have searched a lot on net but did not get any answers. Now what i am trying to do is create a rails app which talks to SalesForec API. I did a search found a Rails gem called ‘activesal…

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

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