# Ruby

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

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

---

## [RubyForge Project Assistance](https://www.ruby-forum.com/t/rubyforge-project-assistance/55369)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 0\
**Last updated:** [March 20, 2006, 3:48pm UTC](https://www.ruby-forum.com/t/rubyforge-project-assistance/55369 "2006-03-20T15:48:58Z")

</div>

Please see http://rubyforge.org/people/viewjob.php?group\_id=1036&job\_id=42 for specifics. There’s a project I’ve placed out there that I don’t have the time to devote to finishing right now. If anyone out there has CT…

---

## [Digest::Base](https://www.ruby-forum.com/t/digest-base/84152)

<div class="topic-metadata">

**Author:** [@rtilley](https://www.ruby-forum.com/u/rtilley)\
**Replies:** 4\
**Last updated:** [March 20, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/digest-base/84152 "2006-03-20T14:58:58Z")

</div>

I wish to write one method to work with all classes in Digest::Base without repeatedly writing the same code. def setup(file, hash\_type) hash\_type could be MD5, SHA1, SHA256, etc. Digest::hash\_type.new Hash the file. …

---

## [Passing 'make test-all' on Ruby 1.8.4 on MacOS X](https://www.ruby-forum.com/t/passing-make-test-all-on-ruby-1-8-4-on-macos-x/55365)

<div class="topic-metadata">

**Author:** [@Eric\_Kidd](https://www.ruby-forum.com/u/Eric_Kidd)\
**Replies:** 0\
**Last updated:** [March 20, 2006, 2:36pm UTC](https://www.ruby-forum.com/t/passing-make-test-all-on-ruby-1-8-4-on-macos-x/55365 "2006-03-20T14:36:45Z")

</div>

Getting Ruby 1.8.4 to pass ‘make test-all’ on MacOS X can be tricky. Here’s a list of things which may help: Set your GCC back to version 3.3. This cleans up a lot of warning messages, and may prevent bugs caused by…

---

## [Capturing the stdout](https://www.ruby-forum.com/t/capturing-the-stdout/55351)

<div class="topic-metadata">

**Author:** [@Navya\_A](https://www.ruby-forum.com/u/Navya_A)\
**Replies:** 2\
**Last updated:** [March 20, 2006, 1:12pm UTC](https://www.ruby-forum.com/t/capturing-the-stdout/55351 "2006-03-20T13:12:37Z")

</div>

Hi all, I am running a test case and need it capture the output it gives me. require ‘stringio’ old\_stdout = $stdout $stdout = StringIO.new … @reqout = $stdout.string $stdout = old\_stdout the above code captures …

---

## [.rb file includes c-extension of same name?](https://www.ruby-forum.com/t/rb-file-includes-c-extension-of-same-name/55343)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 4\
**Last updated:** [March 20, 2006, 11:19am UTC](https://www.ruby-forum.com/t/rb-file-includes-c-extension-of-same-name/55343 "2006-03-20T11:19:00Z")

</div>

Hi, I have foo.rb and foo.so, the C-extension part of the module. Inside foo.rb, I can put, require ‘foo.so’, and it works fine, allowing other modules to say require ‘foo’, and have the .rb be loaded, which in turn …

---

## [Ruby Weekly News 13th - 19th March 2006](https://www.ruby-forum.com/t/ruby-weekly-news-13th-19th-march-2006/84113)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 20, 2006, 11:09am UTC](https://www.ruby-forum.com/t/ruby-weekly-news-13th-19th-march-2006/84113 "2006-03-20T11:09:06Z")

</div>

http://www.rubyweeklynews.org/20060319.html Ruby Weekly News 13th - 19th March 2006 Ruby Weekly News is a summary of the week’s activity on the ruby-talk mailing list / the comp.lang.ruby newsgroup / Ruby forum, broug…

---

## [Hash of Arrays nItems problem](https://www.ruby-forum.com/t/hash-of-arrays-nitems-problem/83449)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 20, 2006, 10:43am UTC](https://www.ruby-forum.com/t/hash-of-arrays-nitems-problem/83449 "2006-03-20T10:43:37Z")

</div>

I’m having a bit of problem using a hash of arrays. It appears that nitems are wrong for the individual elements are wrong when I do this: #!/usr/bin/env ruby $:.unshift(File.join(‘…’, ‘lib’)) require ‘http-access2’ …

---

## [Simple ruby language question](https://www.ruby-forum.com/t/simple-ruby-language-question/83976)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [March 20, 2006, 9:54am UTC](https://www.ruby-forum.com/t/simple-ruby-language-question/83976 "2006-03-20T09:54:37Z")

</div>

ok, i’ve got some module and it has some instance variables i want to be set by the classes extending the module, and aparently i’m not doing this correctly: module A def test raise ‘ARG’ if !@blah @blah end end …

---

## [Unit testing confusion](https://www.ruby-forum.com/t/unit-testing-confusion/55324)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 2\
**Last updated:** [March 20, 2006, 9:48am UTC](https://www.ruby-forum.com/t/unit-testing-confusion/55324 "2006-03-20T09:48:12Z")

</div>

Hey all, I’m following along with AWDWR, specifically the unit testing. On page 148, it shows you how Test::Unit::TestCase will automatically define instance variables based on your fixtures. It doesn’t seem to actua…

---

## [Check\_box and form](https://www.ruby-forum.com/t/check-box-and-form/55352)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 0\
**Last updated:** [March 20, 2006, 7:19am UTC](https://www.ruby-forum.com/t/check-box-and-form/55352 "2006-03-20T07:19:42Z")

</div>

I need use check\_box to search function. sample… I got like 10 items and each item has over 10 subitems ( or whatever ) Need to check some items use check\_boxes and display all subitems belongs to checked items. \<%=…

---

## [PDF::Writer errors in Rails](https://www.ruby-forum.com/t/pdf-writer-errors-in-rails/55219)

<div class="topic-metadata">

**Author:** [@ray](https://www.ruby-forum.com/u/ray)\
**Replies:** 1\
**Last updated:** [March 20, 2006, 6:44am UTC](https://www.ruby-forum.com/t/pdf-writer-errors-in-rails/55219 "2006-03-20T06:44:46Z")

</div>

Hi, after failing with a ruby gems install, I’ve just done a manual install of PDF::Writer (including the dependancies: Transaction::Simple 1.3.0 color-tools 1.3.0) and created the following in a Rails controller: r…

---

## [SunPro compiler and rpath](https://www.ruby-forum.com/t/sunpro-compiler-and-rpath/55316)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 4\
**Last updated:** [March 20, 2006, 4:04am UTC](https://www.ruby-forum.com/t/sunpro-compiler-and-rpath/55316 "2006-03-20T04:04:43Z")

</div>

e$B$3$s$P$s$O!#e(B Solarise$B$Ge(BSunProe$B$Ne(Bcompilere$B$r;H$&$H!"3HD%%i%$%V%i%j$,8+$D$+$i$J$$$H$$$&e(B e$BJs9p$rLc$$$^$7$?!#e(BRubye$B$Oe(B1.8.4e$B$G$9!#e(B % ldd /usr/pkg/lib/ruby/1.8/sparc-solaris2/pty.so libru…

---

## [Re: Is Your Software Working A Little Too Predictably?](https://www.ruby-forum.com/t/re-is-your-software-working-a-little-too-predictably/84035)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 20, 2006, 3:31am UTC](https://www.ruby-forum.com/t/re-is-your-software-working-a-little-too-predictably/84035 "2006-03-20T03:31:50Z")

</div>

Hi, Bernhard, Simon: I like the idea of reducing the pool of available methods. The test for arity is nice too, which could be done at the start or as the pool is reduced, but I like my software to my work for me so…

---

## [Formatted output for numbers with comma's?](https://www.ruby-forum.com/t/formatted-output-for-numbers-with-commas/54789)

<div class="topic-metadata">

**Author:** [@Wink\_Saville](https://www.ruby-forum.com/u/Wink_Saville)\
**Replies:** 5\
**Last updated:** [March 20, 2006, 1:11am UTC](https://www.ruby-forum.com/t/formatted-output-for-numbers-with-commas/54789 "2006-03-20T01:11:29Z")

</div>

I was looking for a routine to convert a Number to a string with comma’s, is there a routine in the library for that? Wink

---

## [Is Your Software Working A Little Too Predictably?](https://www.ruby-forum.com/t/is-your-software-working-a-little-too-predictably/55299)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [March 19, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/is-your-software-working-a-little-too-predictably/55299 "2006-03-19T21:04:50Z")

</div>

Hello, Is Test::Unit always producing 0 errors? I have the solution! Stir in a packet of RandomMethod and “Hey Presto!”, a return to the delights of indeterminacy! RandomMethod mixin 0.0.6 by thoran 20060319 Raison …

---

## [Safe way to calc md5 on very large files](https://www.ruby-forum.com/t/safe-way-to-calc-md5-on-very-large-files/83764)

<div class="topic-metadata">

**Author:** [@rtilley](https://www.ruby-forum.com/u/rtilley)\
**Replies:** 11\
**Last updated:** [March 19, 2006, 8:34pm UTC](https://www.ruby-forum.com/t/safe-way-to-calc-md5-on-very-large-files/83764 "2006-03-19T20:34:02Z")

</div>

I’m calculating md5 checksums on very large files (2 GB). This is a safe way to do so, right? Also… is the file closed when the block exits? I’m using ‘rb’ as this is used on Windows and Linux computers. md5 = Digest:…

---

## [Best practices for exception hierarchies?](https://www.ruby-forum.com/t/best-practices-for-exception-hierarchies/55322)

<div class="topic-metadata">

**Author:** [@joshmh](https://www.ruby-forum.com/u/joshmh)\
**Replies:** 0\
**Last updated:** [March 19, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/best-practices-for-exception-hierarchies/55322 "2006-03-19T19:11:45Z")

</div>

What are best-practices for exception hierarchies? Should my exceptions derive from Exception, or StandardError, or RuntimeError? Should my exceptions be called FooException or FooError? Does Ruby give a specific me…

---

## ["using namespace" equivalent?](https://www.ruby-forum.com/t/using-namespace-equivalent/55312)

<div class="topic-metadata">

**Author:** [@killy-kun](https://www.ruby-forum.com/u/killy-kun)\
**Replies:** 2\
**Last updated:** [March 19, 2006, 7:03pm UTC](https://www.ruby-forum.com/t/using-namespace-equivalent/55312 "2006-03-19T19:03:56Z")

</div>

I would like to know if there is in ruby an equivalent to the c++ instruction “using namespace” (in order not to have to prefix things by there namespace when needed).

---

## [Functor Opinion](https://www.ruby-forum.com/t/functor-opinion/83853)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 6\
**Last updated:** [March 19, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/functor-opinion/83853 "2006-03-19T16:54:04Z")

</div>

So here’s the Functor class: class Functor \< BasicObject def initialize(\*obj, &func) @obj = obj @func = func end def method\_missing(op, \*args) if @obj.empty? @func.call(op, \*args) else @func.call(op, \*(@obj + a…

---

## [Can you enable coercion between types?](https://www.ruby-forum.com/t/can-you-enable-coercion-between-types/55268)

<div class="topic-metadata">

**Author:** [@larry](https://www.ruby-forum.com/u/larry)\
**Replies:** 6\
**Last updated:** [March 19, 2006, 4:20pm UTC](https://www.ruby-forum.com/t/can-you-enable-coercion-between-types/55268 "2006-03-19T16:20:34Z")

</div>

I have a ruby class called Duration that represents a unit of time. It’s main attribute is a number that represents the duration in seconds. If I try to save it to a DB using Rails, I get a “Duration can not be coerc…

---

## [String keys in hash](https://www.ruby-forum.com/t/string-keys-in-hash/83935)

<div class="topic-metadata">

**Author:** [@konlin](https://www.ruby-forum.com/u/konlin)\
**Replies:** 2\
**Last updated:** [March 19, 2006, 4:13pm UTC](https://www.ruby-forum.com/t/string-keys-in-hash/83935 "2006-03-19T16:13:54Z")

</div>

Hi all, My rails app is going to count sth based on poll id in the url. The url looks like: http://address.com?id=dwNKiItvcyrQ5sycnIhmJablDfXsc9tshaGIVyNIei7.e7&some\_other\_parameters In a controller, I’ve created a h…

---

## [Core lib clean-up](https://www.ruby-forum.com/t/core-lib-clean-up/55234)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 10\
**Last updated:** [March 19, 2006, 3:31pm UTC](https://www.ruby-forum.com/t/core-lib-clean-up/55234 "2006-03-19T15:31:31Z")

</div>

Looking at the latest RDoc Documentation API docs, I suprise how it has grown since I first started using Ruby. It’s gotton kind of disheveled in there. Perhaps some time should be take to do a full overview of what i…

---

## [Intervals: Interval arithmetic in Ruby](https://www.ruby-forum.com/t/intervals-interval-arithmetic-in-ruby/55310)

<div class="topic-metadata">

**Author:** [@Stefano\_T](https://www.ruby-forum.com/u/Stefano_T)\
**Replies:** 0\
**Last updated:** [March 19, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/intervals-interval-arithmetic-in-ruby/55310 "2006-03-19T14:43:54Z")

</div>

Intervals is a library implementing an interval system in the extended real set that is closed under arithmetic operations. Correct rounding ensures that the operations are inclusion-wise monotonic. Intervals pre-1 is…

---

## [\[ANN\] Ackbar 0.1.1 - ActiveRecord Adapter for KirbyBase](https://www.ruby-forum.com/t/ann-ackbar-0-1-1-activerecord-adapter-for-kirbybase/55306)

<div class="topic-metadata">

**Author:** [@Assaph\_M](https://www.ruby-forum.com/u/Assaph_M)\
**Replies:** 0\
**Last updated:** [March 19, 2006, 1:10pm UTC](https://www.ruby-forum.com/t/ann-ackbar-0-1-1-activerecord-adapter-for-kirbybase/55306 "2006-03-19T13:10:35Z")

</div>

Hi All, = What’s New This is a bug fix release. Jamey C. (author of KirbyBase) has run through Active Web D. with Rails, building the Depot sample app on top of Akbar/KirbyBase. A few issues uncovered there were fixe…

---

## [Ruby Hacking Guide Translation](https://www.ruby-forum.com/t/ruby-hacking-guide-translation/55210)

<div class="topic-metadata">

**Author:** [@Vincent\_I](https://www.ruby-forum.com/u/Vincent_I)\
**Replies:** 10\
**Last updated:** [March 19, 2006, 12:17pm UTC](https://www.ruby-forum.com/t/ruby-hacking-guide-translation/55210 "2006-03-19T12:17:13Z")

</div>

Hi everyone, I am pleased to announce that I have translated in English the second chapter (“Objects”) of the “Ruby Hacking Guide” by Minero AOKI. The Japanese name of the book is “Ruby kanzen soosu coodo kaisetsu” (t…

---

## [Ruby 1.8.4 gives warnings where ruby 1.8.2 doesn't - how to](https://www.ruby-forum.com/t/ruby-1-8-4-gives-warnings-where-ruby-1-8-2-doesnt-how-to/55241)

<div class="topic-metadata">

**Author:** [@Asfand\_Yar\_Q](https://www.ruby-forum.com/u/Asfand_Yar_Q)\
**Replies:** 1\
**Last updated:** [March 19, 2006, 12:17pm UTC](https://www.ruby-forum.com/t/ruby-1-8-4-gives-warnings-where-ruby-1-8-2-doesnt-how-to/55241 "2006-03-19T12:17:12Z")

</div>

Hi, How do I disable warning output in Ruby? The servers at work use ruby 1.8.2, which gives no warning when running some rake / rails scripts. If I rsync / copy those scripts to my ruby 1.8.4 machine and run them…

---

## [RMagick 1.10.1 windows (BETA) binary](https://www.ruby-forum.com/t/rmagick-1-10-1-windows-beta-binary/55305)

<div class="topic-metadata">

**Author:** [@kaspar](https://www.ruby-forum.com/u/kaspar)\
**Replies:** 0\
**Last updated:** [March 19, 2006, 12:17pm UTC](https://www.ruby-forum.com/t/rmagick-1-10-1-windows-beta-binary/55305 "2006-03-19T12:17:12Z")

</div>

Dear Rubyists, I would like to announce that there is a new binary package of RMagick for Windows systems. The RMagick release 1.10.1 is available, statically linked to ImageMagick 6.2.6. This release has been built …

---

## [Using const\_missing to do automatic require](https://www.ruby-forum.com/t/using-const-missing-to-do-automatic-require/82359)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 19, 2006, 7:29am UTC](https://www.ruby-forum.com/t/using-const-missing-to-do-automatic-require/82359 "2006-03-19T07:29:50Z")

</div>

I’d like to def const\_missing to require the appropriate file, without needing to put require ‘filename’ in the top of my code. Something like const\_missing MyMod::MyClass --\> require ‘my\_mod/my\_class’ ; return MyMod…

---

## [Var scope question](https://www.ruby-forum.com/t/var-scope-question/55256)

<div class="topic-metadata">

**Author:** [@rtilley](https://www.ruby-forum.com/u/rtilley)\
**Replies:** 3\
**Last updated:** [March 19, 2006, 7:17am UTC](https://www.ruby-forum.com/t/var-scope-question/55256 "2006-03-19T07:17:25Z")

</div>

Is it correct to say that class variables ‘@@’ are similar to globals in that they are global to their class?

---

## [ANN: Third Drop of RubyCLR](https://www.ruby-forum.com/t/ann-third-drop-of-rubyclr/55122)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 16\
**Last updated:** [March 19, 2006, 4:18am UTC](https://www.ruby-forum.com/t/ann-third-drop-of-rubyclr/55122 "2006-03-19T04:18:44Z")

</div>

This is the biggest release so far of the RubyCLR bridge: http://www.iunknown.com/articles/2006/03/16/third-drop-of-rubyclr Here’s a brief summary of the current feature set of the bridge: Reference .NET assemblies b…

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

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