# Ruby

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

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

---

## [Yield self if block\_given?](https://www.ruby-forum.com/t/yield-self-if-block-given/180948)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 3\
**Last updated:** [January 2, 2010, 2:54am UTC](https://www.ruby-forum.com/t/yield-self-if-block-given/180948 "2010-01-02T02:54:19Z")

</div>

class AngstyNamedPerson attr\_reader :name @@hated\_names = %w(Leroy Sparkles Thaddius) def name=(new\_name) @name = new\_name raise “I have probems with being named #{@name}.” if @@hated\_names.include? new\_name end d…

---

## [MountainWest RubyConf Proposal Deadline Extended](https://www.ruby-forum.com/t/mountainwest-rubyconf-proposal-deadline-extended/180952)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [January 1, 2010, 8:55pm UTC](https://www.ruby-forum.com/t/mountainwest-rubyconf-proposal-deadline-extended/180952 "2010-01-01T20:55:32Z")

</div>

We decided to extend the deadline for MWRC 2010 proposals by a couple days. If you wanted to submit but didn’t make it by yesterday’s cutoff, then this is your second chance. Make us proud! http://bit.ly/mwrc2010cfp …

---

## ["state of the art" in rails, and jruby?](https://www.ruby-forum.com/t/state-of-the-art-in-rails-and-jruby/179339)

<div class="topic-metadata">

**Author:** [@mcampbell](https://www.ruby-forum.com/u/mcampbell)\
**Replies:** 9\
**Last updated:** [January 1, 2010, 7:52pm UTC](https://www.ruby-forum.com/t/state-of-the-art-in-rails-and-jruby/179339 "2010-01-01T19:52:19Z")

</div>

I have a commercial website for my wife’s business that’s written using Java (jsps + servlet, WebWork, Ibatis). I have wanted to redo it in rails for some time now (3 years!), but time has conspired against me. If I…

---

## [Path problems](https://www.ruby-forum.com/t/path-problems/180931)

<div class="topic-metadata">

**Author:** [@Roger\_BSAtkins](https://www.ruby-forum.com/u/Roger_BSAtkins)\
**Replies:** 9\
**Last updated:** [January 1, 2010, 7:49pm UTC](https://www.ruby-forum.com/t/path-problems/180931 "2010-01-01T19:49:59Z")

</div>

I am learning Ruby from scratch, using a beginner’s book and have installed Ruby on my WIN Vista platform. This is my first use of Ruby-Talk. I hope the following questions/problems are within the scope of Ruby-Talk…

---

## [\[Bug #2373\](Rejected) URI.parse $B$O(B hier-part $B$,6u$G$"$k(B URI $B$r%Q!\<%9$G$-$J$$(B](https://www.ruby-forum.com/t/bug-2373-rejected-uri-parse-b-o-b-hier-part-b-6u-g-k-b-uri-b-r-q-9-g-j-b/180949)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [January 1, 2010, 5:36pm UTC](https://www.ruby-forum.com/t/bug-2373-rejected-uri-parse-b-o-b-hier-part-b-6u-g-k-b-uri-b-r-q-9-g-j-b/180949 "2010-01-01T17:36:33Z")

</div>

e$B%A%1%C%He(B #2373 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) e$B%9%F!\<%?%9e(B Assignede$B$+$ie(BRejectede$B$KJQ99e(B URI e$B%b%8%e!\<%k$Oe(B RFC 2396 e$B%Y!\<%9$J$N$G0J2\<$NDL$j6X;\_!"$H$$$&$3$H$N$h$&$G$9!#e(B hier\_par…

---

## [\[Bug #2374\] URI.regexp('http') $B$,(B 'http://' $B$K%^%C%A$9$k(B](https://www.ruby-forum.com/t/bug-2374-uri-regexp-http-b-b-http-b-k-c-a-9-k-b/180921)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 2\
**Last updated:** [January 1, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/bug-2374-uri-regexp-http-b-b-http-b-k-c-a-9-k-b/180921 "2010-01-01T17:34:12Z")

</div>

e$B%A%1%C%He(B #2374 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) (2009/12/31 23:54), Tanaka A. wrote: 2009e$BG/e(B12e$B7ne(B31e$BF|e(B23:47 Yui NARUSE removed\_email\_address@domain.invalid: URI e$B$r@55,I=8=$G%Q!\<%9$9$k…

---

## [Send emails](https://www.ruby-forum.com/t/send-emails/180938)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 10\
**Last updated:** [January 1, 2010, 1:55pm UTC](https://www.ruby-forum.com/t/send-emails/180938 "2010-01-01T13:55:20Z")

</div>

Hello, I need a module for sending emails. Could you show me where I can find it and what’s the syntax? Thanks.

---

## [Why can't I use "or" here?](https://www.ruby-forum.com/t/why-cant-i-use-or-here/180893)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 40\
**Last updated:** [January 1, 2010, 1:30pm UTC](https://www.ruby-forum.com/t/why-cant-i-use-or-here/180893 "2010-01-01T13:30:45Z")

</div>

(The problem is in both Ruby 1.8 and Ruby 1.9) The expression: puts(nil || 4) works as expected. It prints ‘4’. But this expression: puts(nil or 4) fails… it is a syntax error, for some mysterious reason. Why? I t…

---

## [Pasing data between 2 win XP boxes via internet](https://www.ruby-forum.com/t/pasing-data-between-2-win-xp-boxes-via-internet/180695)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 22\
**Last updated:** [January 1, 2010, 9:27am UTC](https://www.ruby-forum.com/t/pasing-data-between-2-win-xp-boxes-via-internet/180695 "2010-01-01T09:27:11Z")

</div>

Hi folks, been trolling the net for a long time off and on but NOW i must get this problem sorted. I am needing to pass via the internet data from a Desktop PC to a Laptop and vis versa in an adhoc manner. I know i …

---

## [Adopt A Library: ClothRed](https://www.ruby-forum.com/t/adopt-a-library-clothred/180914)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 2\
**Last updated:** [January 1, 2010, 7:20am UTC](https://www.ruby-forum.com/t/adopt-a-library-clothred/180914 "2010-01-01T07:20:57Z")

</div>

Hello, list. I wrote a lengthy-ish blog post\[0\], so I’ll keep it nice and short: I’m looking for a maintainer willing to take up ClothRed (maybe a Nokogiri-based rewrite?), my olde HTML2Textile “parser”. Feel free to…

---

## [\[FXRuby\]problem creating widget inside a tab label](https://www.ruby-forum.com/t/fxruby-problem-creating-widget-inside-a-tab-label/180941)

<div class="topic-metadata">

**Author:** [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Replies:** 0\
**Last updated:** [January 1, 2010, 6:56am UTC](https://www.ruby-forum.com/t/fxruby-problem-creating-widget-inside-a-tab-label/180941 "2010-01-01T06:56:37Z")

</div>

I want to add a “close this tab” button inside an FXTabItem, but FXButton.new some\_tab\_item, 'x' throws a type error: not an FXComposite. It seems an FXTabItem can not have child widgets … Then how to?

---

## [Doubts about variables in ruby](https://www.ruby-forum.com/t/doubts-about-variables-in-ruby/180940)

<div class="topic-metadata">

**Author:** [@junior\_linux](https://www.ruby-forum.com/u/junior_linux)\
**Replies:** 1\
**Last updated:** [January 1, 2010, 5:57am UTC](https://www.ruby-forum.com/t/doubts-about-variables-in-ruby/180940 "2010-01-01T05:57:51Z")

</div>

well my doubt is: I want to make a ruby program that number in a URL and checks if the url has a forum. for exemple : puts(“enter an address”); endereco =gets() @forum = “/forum” system("firefox "+ endereco+ @forum)…

---

## [Roots Module](https://www.ruby-forum.com/t/roots-module/180689)

<div class="topic-metadata">

**Author:** [@jzakiya](https://www.ruby-forum.com/u/jzakiya)\
**Replies:** 10\
**Last updated:** [January 1, 2010, 12:15am UTC](https://www.ruby-forum.com/t/roots-module/180689 "2010-01-01T00:15:28Z")

</div>

As a Christmas/Holiday present to the Ruby community I finally completed creating a versatile module which will find the accurate real and complex roots of +|- real values. This work evolved from concerns raised in th…

---

## [Parallel::ForkManager, Net::HTTP and catching Timeout::Error](https://www.ruby-forum.com/t/parallel-forkmanager-net-http-and-catching-timeout-error/180890)

<div class="topic-metadata">

**Author:** [@nvp](https://www.ruby-forum.com/u/nvp)\
**Replies:** 2\
**Last updated:** [December 31, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/parallel-forkmanager-net-http-and-catching-timeout-error/180890 "2009-12-31T23:51:29Z")

</div>

Hello, I’m about to release Parallel::ForkManager 1.1 and while generating new examples (that use Net::HTTP) for PFM 1.1 features, I catch the following error sometimes (maybe 10-15% of the time) when I try to connec…

---

## [Automated testing of visual library (ncurses)](https://www.ruby-forum.com/t/automated-testing-of-visual-library-ncurses/180912)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 9\
**Last updated:** [December 31, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/automated-testing-of-visual-library-ncurses/180912 "2009-12-31T22:00:53Z")

</div>

As i work more on a ncurses widget library, I am wondering how does one do automated testing for a software that is primarily visual. Whenever i make changes, I need to ensure that things still show correctly - the cu…

---

## [\[ANN\] rest-client 1.1.0 released](https://www.ruby-forum.com/t/ann-rest-client-1-1-0-released/180924)

<div class="topic-metadata">

**Author:** [@archiloque](https://www.ruby-forum.com/u/archiloque)\
**Replies:** 0\
**Last updated:** [December 31, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/ann-rest-client-1-1-0-released/180924 "2009-12-31T19:16:21Z")

</div>

rest-client version 0.1 has been released! rest-client is a simple REST client for Ruby, inspired by microframework syntax for specifying actions. Changes: new maintainer: Archiloque, the working repo is now at Git…

---

## [Hornetseye users?](https://www.ruby-forum.com/t/hornetseye-users/180922)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 1\
**Last updated:** [December 31, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/hornetseye-users/180922 "2009-12-31T18:55:21Z")

</div>

Forgive me if this was already answered, I coudln’t find it on the hornetseye website. Is there a(n active) mailing list for hornetseye users? Or perhaps other hornetseye users in ruby-talk? I’ve been wanting to pla…

---

## [Where to find a description of yaml for ruby?](https://www.ruby-forum.com/t/where-to-find-a-description-of-yaml-for-ruby/180866)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 11\
**Last updated:** [December 31, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/where-to-find-a-description-of-yaml-for-ruby/180866 "2009-12-31T18:35:26Z")

</div>

Where to find a description of yaml for ruby?

---

## [Cant install Heroku gem in Snow Leopard](https://www.ruby-forum.com/t/cant-install-heroku-gem-in-snow-leopard/180904)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 5\
**Last updated:** [December 31, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/cant-install-heroku-gem-in-snow-leopard/180904 "2009-12-31T18:29:19Z")

</div>

Hello, I cant seem to get Heroku gem installed in Snow Leopard. I am running Ruby 1.9.1 and RubyGems 1.3.5. Any ideas will help. Thank You Building native extensions. This could take a while… ERROR: Error installi…

---

## [The ruby website translator](https://www.ruby-forum.com/t/the-ruby-website-translator/180900)

<div class="topic-metadata">

**Author:** [@HackerGene](https://www.ruby-forum.com/u/HackerGene)\
**Replies:** 9\
**Last updated:** [December 31, 2009, 4:48pm UTC](https://www.ruby-forum.com/t/the-ruby-website-translator/180900 "2009-12-31T16:48:21Z")

</div>

Hi , I would like to be ruby website translator .I’ve send an email to removed\_email\_address@domain.invalid but still get no reply. So how to do the job ? Any suggestion ? Thanks in advance. – Regards. -HackerGene…

---

## [SystemStackError with gem installs, 1.8.7-p248](https://www.ruby-forum.com/t/systemstackerror-with-gem-installs-1-8-7-p248/180857)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [December 31, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/systemstackerror-with-gem-installs-1-8-7-p248/180857 "2009-12-31T16:41:19Z")

</div>

Hi, I upgraded to ruby 1.8.7 p248 yesterday. Since then I’ve started seeing these error messages on gem installs: dberger@globe-madison ~\>sudo gem install sys-filesystem Password: Building native extensions. This c…

---

## [Testing with IronRuby Query](https://www.ruby-forum.com/t/testing-with-ironruby-query/180621)

<div class="topic-metadata">

**Author:** [@gordonm](https://www.ruby-forum.com/u/gordonm)\
**Replies:** 1\
**Last updated:** [December 31, 2009, 4:26pm UTC](https://www.ruby-forum.com/t/testing-with-ironruby-query/180621 "2009-12-31T16:26:06Z")

</div>

Hi, I have just got IronRuby up and running. I’m intending on using it with Cucumber to test some of the DLLs on our server. It all seems to have been set up correctly and I have require’d one of the DLLs from a loca…

---

## [RbConfig.rubybin](https://www.ruby-forum.com/t/rbconfig-rubybin/179349)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 17\
**Last updated:** [December 31, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/rbconfig-rubybin/179349 "2009-12-31T16:09:07Z")

</div>

ruby e$B%3%^%s%I$N%Q%9L\>$rJV$9e(B RbConfig.rubybin e$B$H$$$&%a%=%C%Ie(B e$B$rMQ0U$9$k$N$O$I$&$G$7$g$&$+!#e(B e$B8=:\_e(B ruby e$B%3%^%s%I$N%Q%9L\>$rF@$k$N$K$O!"e(B File.join( RbConfig::CONFIG\["bindir"\], RbConfig::CO…

---

## [\[Bug #2374\] URI.regexp('http') $B$,(B 'http://' $B$K%^%C%A$9$k(B](https://www.ruby-forum.com/t/bug-2374-uri-regexp-http-b-b-http-b-k-c-a-9-k-b/180916)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 1\
**Last updated:** [December 31, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/bug-2374-uri-regexp-http-b-b-http-b-k-c-a-9-k-b/180916 "2009-12-31T15:55:04Z")

</div>

e$B%A%1%C%He(B #2374 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) URI e$B$r@55,I=8=$G%Q!\<%9$9$k$H$$$&H/A\[\<+BN$K$=$b$=$b\<c43$NL5M}$,$"$k$h$&$K;W$&$N$G!"e(B URI.regexp e$B$Oe(B obsolete e$B$K$7$^$;$s$+e(B http://redmine.ru…

---

## ["Inconsistency" with display/existence of "\\"](https://www.ruby-forum.com/t/inconsistency-with-display-existence-of/180818)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 4\
**Last updated:** [December 31, 2009, 2:22pm UTC](https://www.ruby-forum.com/t/inconsistency-with-display-existence-of/180818 "2009-12-31T14:22:09Z")

</div>

Basically, two … Apparently similar objects give me the following differing output: \[3\] and \[3\] I pasted most of it up on pastie so it became a bit more readable. I am taking a text file and reading it like so: File…

---

## [Ruby 1.9 hates you and me and the encodings we rode in on so just get used to it](https://www.ruby-forum.com/t/ruby-1-9-hates-you-and-me-and-the-encodings-we-rode-in-on-so-just-get-used-to-it/137861)

<div class="topic-metadata">

**Author:** [@DJ\_Jazzy\_L](https://www.ruby-forum.com/u/DJ_Jazzy_L)\
**Replies:** 28\
**Last updated:** [December 31, 2009, 12:20pm UTC](https://www.ruby-forum.com/t/ruby-1-9-hates-you-and-me-and-the-encodings-we-rode-in-on-so-just-get-used-to-it/137861 "2009-12-31T12:20:54Z")

</div>

def prep\_file(path) ret = ‘’ x = File.open(path) x.lines.each do |l| l.gsub!(’\\n’, ’ ') ret \<\< l end puts ret end … compare.rb:64:in gsub': broken UTF-8 string (ArgumentError) from compare.rb:64:inblock in prep…

---

## [\[Bug #2541\](Closed) fork $B$N$J$$4D6-$G$N(B spawn $B$K$h$kL$;HMQ(B fd $B$X$N%j%@%$%l%/%H(B](https://www.ruby-forum.com/t/bug-2541-closed-fork-b-n-j-4d6-g-n-b-spawn-b-k-h-kl-hmq-b-fd-b-x-n-j-l-h-b/180910)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [December 31, 2009, 11:28am UTC](https://www.ruby-forum.com/t/bug-2541-closed-fork-b-n-j-4d6-g-n-b-spawn-b-k-h-kl-hmq-b-fd-b-x-n-j-l-h-b/180910 "2009-12-31T11:28:48Z")

</div>

e$B%A%1%C%He(B #2541 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B r26212 fixes this. http://redmine.ruby-lang.org/issues/show/2541

---

## [Test::unit assertion pass scenario](https://www.ruby-forum.com/t/test-unit-assertion-pass-scenario/180867)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 12\
**Last updated:** [December 31, 2009, 9:50am UTC](https://www.ruby-forum.com/t/test-unit-assertion-pass-scenario/180867 "2009-12-31T09:50:28Z")

</div>

When using the test::unit assertion, such as assert\_equal, the script will throw a failure if the test condition (assertion) is not met. If it does pass, no output is displayed. Is there a way to force the results of …

---

## [Hi i hv problem in gems pack......in ruby on rails pls help](https://www.ruby-forum.com/t/hi-i-hv-problem-in-gems-pack-in-ruby-on-rails-pls-help/180903)

<div class="topic-metadata">

**Author:** [@ash](https://www.ruby-forum.com/u/ash)\
**Replies:** 3\
**Last updated:** [December 31, 2009, 9:29am UTC](https://www.ruby-forum.com/t/hi-i-hv-problem-in-gems-pack-in-ruby-on-rails-pls-help/180903 "2009-12-31T09:29:23Z")

</div>

Error: Exiting /home/ashok/rubystack-2.0-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/tcphack.rb:12:in initialize\_without\_backlog': Address already in use - bind(2) (Errno::EADDRINUSE) from /home/ashok/ruby…

---

## [\[Feature #2540\] Hash#contribute](https://www.ruby-forum.com/t/feature-2540-hash-contribute/180858)

<div class="topic-metadata">

**Author:** [@Makoto\_Cyross](https://www.ruby-forum.com/u/Makoto_Cyross)\
**Replies:** 2\
**Last updated:** [December 31, 2009, 6:56am UTC](https://www.ruby-forum.com/t/feature-2540-hash-contribute/180858 "2009-12-31T06:56:38Z")

</div>

Feature #2540: Hash#contribute http://redmine.ruby-lang.org/issues/show/2540 e$B5/I\<\<Te(B: Makoto Cyross e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target version: 1.9.2 e$B=i$a$F%A%1%C%H@Z$j…

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

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