# Ruby

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

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

---

## [Gem: after installing display text](https://www.ruby-forum.com/t/gem-after-installing-display-text/50539)

<div class="topic-metadata">

**Author:** [@Kurt\_VSHindenburg](https://www.ruby-forum.com/u/Kurt_VSHindenburg)\
**Replies:** 5\
**Last updated:** [December 21, 2005, 6:11pm UTC](https://www.ruby-forum.com/t/gem-after-installing-display-text/50539 "2005-12-21T18:11:24Z")

</div>

Hello, Is it possible to display some message after installing a gem? I have a gem and I want to inform the user about a few items… this would seem like a common thing but I couldn’t find any info on it. Thanks, …

---

## [Seattle.rb RubyGems Hackfest this weekend!](https://www.ruby-forum.com/t/seattle-rb-rubygems-hackfest-this-weekend/50503)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 3\
**Last updated:** [December 21, 2005, 5:38pm UTC](https://www.ruby-forum.com/t/seattle-rb-rubygems-hackfest-this-weekend/50503 "2005-12-21T17:38:15Z")

</div>

Starting Saturday at 10:30 the second Seattle.rb RubyGems Hackfest will begin! We’ve got a fat stack of cash for spending on drinks and travel too! (If you’ll be traveling and expect reimbursement, please email back …

---

## [Re: Bruce Eckel and Ruby](https://www.ruby-forum.com/t/re-bruce-eckel-and-ruby/74224)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [December 21, 2005, 5:17pm UTC](https://www.ruby-forum.com/t/re-bruce-eckel-and-ruby/74224 "2005-12-21T17:17:08Z")

</div>

\-----Original Message----- From: Hal F. \[mailto:removed\_email\_address@domain.invalid\] Besides, his negative attitude seems to indicate he thinks he already has tried it, or why would he be so opposed to it? Excep…

---

## [Hash Keys in WEBrick config.rb](https://www.ruby-forum.com/t/hash-keys-in-webrick-config-rb/50825)

<div class="topic-metadata">

**Author:** [@Explosiv0SX](https://www.ruby-forum.com/u/Explosiv0SX)\
**Replies:** 1\
**Last updated:** [December 21, 2005, 4:46pm UTC](https://www.ruby-forum.com/t/hash-keys-in-webrick-config-rb/50825 "2005-12-21T16:46:54Z")

</div>

Hi – long time lurker, first time poster. While searching for Ruby app configuration best practices, I came across the config.rb file for WEBrick. In this file, a few hashes are created as follows: General = { :S…

---

## [RRobots (#59)](https://www.ruby-forum.com/t/rrobots-59/69586)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 12\
**Last updated:** [December 21, 2005, 3:54pm UTC](https://www.ruby-forum.com/t/rrobots-59/69586 "2005-12-21T15:54:06Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Nitro + Og 0.26.0: New auto admin, scaffolding, morphing, sw](https://www.ruby-forum.com/t/nitro-og-0-26-0-new-auto-admin-scaffolding-morphing-sw/74183)

<div class="topic-metadata">

**Author:** [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Replies:** 0\
**Last updated:** [December 21, 2005, 3:18pm UTC](https://www.ruby-forum.com/t/nitro-og-0-26-0-new-auto-admin-scaffolding-morphing-sw/74183 "2005-12-21T15:18:47Z")

</div>

Dear devs, New versions of Nitro and Og were just released! homepage: http://www.nitrohq.com install: gem install nitro download: http://rubyforge.org/projects/nitro/ irc: irce.freenode.net #nitro mailing list: htt…

---

## [A interesting obervation about object\_id method](https://www.ruby-forum.com/t/a-interesting-obervation-about-object-id-method/50814)

<div class="topic-metadata">

**Author:** [@Hank\_G](https://www.ruby-forum.com/u/Hank_G)\
**Replies:** 6\
**Last updated:** [December 21, 2005, 1:18pm UTC](https://www.ruby-forum.com/t/a-interesting-obervation-about-object-id-method/50814 "2005-12-21T13:18:23Z")

</div>

\#integer puts “For number” a=1 b=a puts a.object\_id puts b.object\_id b=2 puts b.object\_id b=1 puts b.object\_id For number 3 3 5 3 #You can see that: 1) for the same integer, the object\_id is the same 2…

---

## [How can I get soap4r to work with digest authentication?](https://www.ruby-forum.com/t/how-can-i-get-soap4r-to-work-with-digest-authentication/74177)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 21, 2005, 1:00pm UTC](https://www.ruby-forum.com/t/how-can-i-get-soap4r-to-work-with-digest-authentication/74177 "2005-12-21T13:00:15Z")

</div>

Hello, I used wsdl2rb.rb to create a SOAP client and got it to work with basic authentication by adding one single line of code to the defaultDriver.rb file that was built by wsdl2rb.rb. (I also had to install http-…

---

## [Multibyte regexps](https://www.ruby-forum.com/t/multibyte-regexps/50807)

<div class="topic-metadata">

**Author:** [@Horacio\_S](https://www.ruby-forum.com/u/Horacio_S)\
**Replies:** 4\
**Last updated:** [December 21, 2005, 12:33pm UTC](https://www.ruby-forum.com/t/multibyte-regexps/50807 "2005-12-21T12:33:11Z")

</div>

I am having some issues with regular expressions when working with japanese strings. Using ruby-1.8.3 on Windows XP home (Japanese version) I have this test: irb(main):271:0\> s = “é??” =\> “\\212\\223” irb(main):272:0\>…

---

## [Best lexer/parser for Ruby language itself](https://www.ruby-forum.com/t/best-lexer-parser-for-ruby-language-itself/50813)

<div class="topic-metadata">

**Author:** [@anatol](https://www.ruby-forum.com/u/anatol)\
**Replies:** 0\
**Last updated:** [December 21, 2005, 12:30pm UTC](https://www.ruby-forum.com/t/best-lexer-parser-for-ruby-language-itself/50813 "2005-12-21T12:30:10Z")

</div>

Hi, all. I need to do following thing: I have some program on ruby and I would like parse this program, do some manipulations with code and write back it to file. Manipulations with sourcecode quite simple, like cha…

---

## [Regex with multiple returns](https://www.ruby-forum.com/t/regex-with-multiple-returns/54203)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 2\
**Last updated:** [December 21, 2005, 11:15am UTC](https://www.ruby-forum.com/t/regex-with-multiple-returns/54203 "2005-12-21T11:15:00Z")

</div>

Is there a Ruby regex that can return all of the following: boringstuff(returnthisplease)notthis(butthis)dontwantthis(butIdowantthisnomatterhowmanyparenthiesisthereare) If I only had one pair of parens, I would just do…

---

## [Ruby -r profile gives wrong percentage?](https://www.ruby-forum.com/t/ruby-r-profile-gives-wrong-percentage/73423)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [December 21, 2005, 11:08am UTC](https://www.ruby-forum.com/t/ruby-r-profile-gives-wrong-percentage/73423 "2005-12-21T11:08:59Z")

</div>

I am using Windows, and I was testing the profiler with the simple sieve.rb program. I may not have a good understanding of Ruby’s profiler but It seems that it gives me wrong percentages… I guess it is due to the ove…

---

## [Ruby Weekly News 12th - 18th December 2005](https://www.ruby-forum.com/t/ruby-weekly-news-12th-18th-december-2005/50805)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 21, 2005, 10:20am UTC](https://www.ruby-forum.com/t/ruby-weekly-news-12th-18th-december-2005/50805 "2005-12-21T10:20:50Z")

</div>

http://www.rubyweeklynews.org/20051218.html Ruby Weekly News 12th - 18th December 2005 Ruby Weekly News is a summary of the week’s activity on the ruby-talk mailing list / the comp.lang.ruby newsgroup, brought to you …

---

## [Re: Object Database Access v 1.0 released](https://www.ruby-forum.com/t/re-object-database-access-v-1-0-released/54142)

<div class="topic-metadata">

**Author:** [@SSSiso-8859-1SQSPeS](https://www.ruby-forum.com/u/SSSiso-8859-1SQSPeS)\
**Replies:** 2\
**Last updated:** [December 21, 2005, 8:20am UTC](https://www.ruby-forum.com/t/re-object-database-access-v-1-0-released/54142 "2005-12-21T08:20:36Z")

</div>

Hannes W. \[mailto:removed\_email\_address@domain.invalid\] : #raa: #http://raa.ruby-lang.org/project/odba/ #documentation: #http://odba.ywesee.com/ #download: #http://odba.ywesee.com/ #scm: #http://scm.ywesee.com/?p…

---

## [Ruby - Any help](https://www.ruby-forum.com/t/ruby-any-help/50799)

<div class="topic-metadata">

**Author:** [@KJKJKJ](https://www.ruby-forum.com/u/KJKJKJ)\
**Replies:** 2\
**Last updated:** [December 21, 2005, 8:20am UTC](https://www.ruby-forum.com/t/ruby-any-help/50799 "2005-12-21T08:20:35Z")

</div>

Hi - I am just starting learning ruby & find several areas to learn from I was just wondering if there is any where planned for indepth advice/ assstance as it gets more popular?

---

## [Re: Regex with multiple returns](https://www.ruby-forum.com/t/re-regex-with-multiple-returns/74128)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [December 21, 2005, 6:23am UTC](https://www.ruby-forum.com/t/re-regex-with-multiple-returns/74128 "2005-12-21T06:23:22Z")

</div>

“boringstuff(returnthisplease)notthis(butthis)dontwantthis(butIdowantthi snomatterhowmanyparenthiesisthereare)”.scan(/((\[^)\]\*))/) ==\>\[\["returnthisplease"\], \["butthis"\], \[“butIdowantthisnomatterhowmanyparenthiesisthere…

---

## [Rails DB convention info is a big fat secret?](https://www.ruby-forum.com/t/rails-db-convention-info-is-a-big-fat-secret/50789)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 2\
**Last updated:** [December 21, 2005, 6:17am UTC](https://www.ruby-forum.com/t/rails-db-convention-info-is-a-big-fat-secret/50789 "2005-12-21T06:17:21Z")

</div>

I started learning Ruby in part so I could do some web scripting, and have already twice tried installing Rails, with my usual catastrophic installer-malfunction-experiences with Ruby-related material. (I like Ruby, b…

---

## [Help with object scope](https://www.ruby-forum.com/t/help-with-object-scope/74129)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 0\
**Last updated:** [December 21, 2005, 6:13am UTC](https://www.ruby-forum.com/t/help-with-object-scope/74129 "2005-12-21T06:13:41Z")

</div>

I’m having a really tough time with Ruby’s scope (modules, include, etc.). I had a file, in short: module M class C end end Unit Tests include M class TestM def setup; C.blah; end end Works great. However, if…

---

## [Can someone improve on this multiple inheritence methodology](https://www.ruby-forum.com/t/can-someone-improve-on-this-multiple-inheritence-methodology/102478)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [December 21, 2005, 6:08am UTC](https://www.ruby-forum.com/t/can-someone-improve-on-this-multiple-inheritence-methodology/102478 "2005-12-21T06:08:19Z")

</div>

this provide method re-use at both the class and module level. it can be used for a kind of multiple inheritence organizational style. harp:~ \> cat a.rb class Module def inherit other extend other::ClassMet…

---

## [Re: When are attr\_reader type methods called?](https://www.ruby-forum.com/t/re-when-are-attr-reader-type-methods-called/54202)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [December 21, 2005, 5:50am UTC](https://www.ruby-forum.com/t/re-when-are-attr-reader-type-methods-called/54202 "2005-12-21T05:50:15Z")

</div>

class A call\_this (“hello world”) def call\_this(arg) p arg end end gives me NoMethodError: undefined method \`call\_this’ for A:Class from (irb):3 So you’re obviously doing something more than just what you posted…

---

## [Does webrick support the http PUT command?](https://www.ruby-forum.com/t/does-webrick-support-the-http-put-command/50776)

<div class="topic-metadata">

**Author:** [@acechase](https://www.ruby-forum.com/u/acechase)\
**Replies:** 1\
**Last updated:** [December 21, 2005, 5:08am UTC](https://www.ruby-forum.com/t/does-webrick-support-the-http-put-command/50776 "2005-12-21T05:08:09Z")

</div>

The subject line pretty much sums it up. I’m having trouble finding documentation on whether or not webrick supports the http 1.1 PUT command. Also, if the answer is yes, is it done in manner similar to Apache (with a…

---

## [=~ vs match - Some benchmarks](https://www.ruby-forum.com/t/vs-match-some-benchmarks/73941)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 5\
**Last updated:** [December 21, 2005, 2:58am UTC](https://www.ruby-forum.com/t/vs-match-some-benchmarks/73941 "2005-12-21T02:58:57Z")

</div>

While profiling some code I noticed =~, String.match and Regexp.match turning up in my hotspots. So here is the results of a little benchmarking to resolve which is faster to use… require ‘benchmark’ n = 3000000 toa…

---

## [Re: shortcut to self.class?](https://www.ruby-forum.com/t/re-shortcut-to-self-class/73940)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 5\
**Last updated:** [December 21, 2005, 1:43am UTC](https://www.ruby-forum.com/t/re-shortcut-to-self-class/73940 "2005-12-21T01:43:49Z")

</div>

Yeah, it may be awhile before I have enough time to learn ruby for the weird stuff (e.g. heredocs), but most of the edge cases are just edge cases and I think I can deal with those. -mental Then ditch heredocs. …

---

## [Posted my newbie code](https://www.ruby-forum.com/t/posted-my-newbie-code/50759)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 8\
**Last updated:** [December 21, 2005, 1:43am UTC](https://www.ruby-forum.com/t/posted-my-newbie-code/50759 "2005-12-21T01:43:49Z")

</div>

Hi, Well, I’ve been playing with Ruby now for a couple of months, and I’m really having a lot of fun, both with the language and the extraordinary community around it (\_why, I’ve not laughed so much in years :)). Any…

---

## [DRbUndumped and Marshal](https://www.ruby-forum.com/t/drbundumped-and-marshal/50766)

<div class="topic-metadata">

**Author:** [@kevben](https://www.ruby-forum.com/u/kevben)\
**Replies:** 1\
**Last updated:** [December 21, 2005, 1:25am UTC](https://www.ruby-forum.com/t/drbundumped-and-marshal/50766 "2005-12-21T01:25:45Z")

</div>

I’m using DRb with quite a few objects marked as DRbUndumped. Some of these objects also need to persist to disk, which I was using Marshal to do before I introduced the DRb chunk and it worked just fine. Now, of c…

---

## [How to know if a method is read-write or read-only](https://www.ruby-forum.com/t/how-to-know-if-a-method-is-read-write-or-read-only/50604)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 3\
**Last updated:** [December 21, 2005, 1:25am UTC](https://www.ruby-forum.com/t/how-to-know-if-a-method-is-read-write-or-read-only/50604 "2005-12-21T01:25:44Z")

</div>

I’ve now come across a second usecase for knowing if a method is read-write or read-only on it’s object’s state. Both cases boil-down to having meta-method behave differently depending on the behavior of method being …

---

## [Test failures with snapshot](https://www.ruby-forum.com/t/test-failures-with-snapshot/50770)

<div class="topic-metadata">

**Author:** [@gabriele\_renzi](https://www.ruby-forum.com/u/gabriele_renzi)\
**Replies:** 0\
**Last updated:** [December 21, 2005, 12:49am UTC](https://www.ruby-forum.com/t/test-failures-with-snapshot/50770 "2005-12-21T00:49:34Z")

</div>

Hi gurus and nubys, I was doing some small tests compiling the latest snapshot, and with make test-all I get some errors. Could someone check these on win32? (last time I checked on linux everything was ok) Finished…

---

## [Difficulty opening a socket](https://www.ruby-forum.com/t/difficulty-opening-a-socket/50744)

<div class="topic-metadata">

**Author:** [@ra88it\_ra88it](https://www.ruby-forum.com/u/ra88it_ra88it)\
**Replies:** 8\
**Last updated:** [December 20, 2005, 11:06pm UTC](https://www.ruby-forum.com/t/difficulty-opening-a-socket/50744 "2005-12-20T23:06:39Z")

</div>

Hello, I write this with some trepidation because it is probably a simple problem (I know next to nothing about sockets), but I’ve tried to find the answer on Google and no luck. When I do this: sock = TCPSocket.new…

---

## [X-Chat Ruby](https://www.ruby-forum.com/t/x-chat-ruby/73835)

<div class="topic-metadata">

**Author:** [@jung](https://www.ruby-forum.com/u/jung)\
**Replies:** 2\
**Last updated:** [December 20, 2005, 11:00pm UTC](https://www.ruby-forum.com/t/x-chat-ruby/73835 "2005-12-20T23:00:38Z")

</div>

I have been looking all over for documentation on writing X-Chat scripts using Ruby, but I still can’t find any. Nor can I find any scripts other than those included in the XChat-Ruby Plugin ( http://xchat-ruby.sourc…

---

## [Anti-xss library for ruby?](https://www.ruby-forum.com/t/anti-xss-library-for-ruby/50723)

<div class="topic-metadata">

**Author:** [@nexflo](https://www.ruby-forum.com/u/nexflo)\
**Replies:** 1\
**Last updated:** [December 20, 2005, 10:00pm UTC](https://www.ruby-forum.com/t/anti-xss-library-for-ruby/50723 "2005-12-20T22:00:22Z")

</div>

Hi! Does anybody know a ruby anti-xss library that passes all the cases described in the xss cheat sheet (http://ha.ckers.org/xss.html)? Thanks! Ciao! Florian

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

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