# Ruby

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

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

---

## [Mail version 2.2.1](https://www.ruby-forum.com/t/mail-version-2-2-1/188525)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 1\
**Last updated:** [May 13, 2010, 11:35pm UTC](https://www.ruby-forum.com/t/mail-version-2-2-1/188525 "2010-05-13T23:35:27Z")

</div>

Hi all, I just pushed Mail 2.2.1. ActionMailer edge now depends on 2.2.1 as well. gem install mail Or in your Gemfile: gem “mail” This release incorporates a bunch of code submissions from the Mail community, it …

---

## [\[Bug #2369\] ENV's strange behavior on WinXP](https://www.ruby-forum.com/t/bug-2369-envs-strange-behavior-on-winxp/188563)

<div class="topic-metadata">

**Author:** [@SSwanabe](https://www.ruby-forum.com/u/SSwanabe)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/bug-2369-envs-strange-behavior-on-winxp/188563 "2010-05-13T23:05:14Z")

</div>

e$B%A%1%C%He(B #2369 e$B$,99?7$5$l$^$7$?!#e(B (by \_ wanabe) Vista/7 e$B$G:F8=$7$J$$$3$H$H!"e(B32767 e$BJ8;z6a$$4D6-JQ?t$J$IIaDL$O07$o$J$$$3$H!"e(B e$B\<BMQE\*$J%1!\<%9$G$3$N7o$,LdBj$K$J$C$?$o$1$G$J$/%F%9%H%1!\<%9\>e$@$1$@…

---

## [Idiomatic way to pass multiple Procs/lambdas/blocks](https://www.ruby-forum.com/t/idiomatic-way-to-pass-multiple-procs-lambdas-blocks/188546)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 2\
**Last updated:** [May 13, 2010, 9:35pm UTC](https://www.ruby-forum.com/t/idiomatic-way-to-pass-multiple-procs-lambdas-blocks/188546 "2010-05-13T21:35:41Z")

</div>

I am working on a little syntactical sugar library for 0mq (networking library). One of the things I would like to provide is a set of asynchronous send/recv methods for transmitting and receiving messages. The metho…

---

## [Reading file after a particular line in file](https://www.ruby-forum.com/t/reading-file-after-a-particular-line-in-file/188487)

<div class="topic-metadata">

**Author:** [@Vandana](https://www.ruby-forum.com/u/Vandana)\
**Replies:** 9\
**Last updated:** [May 13, 2010, 8:33pm UTC](https://www.ruby-forum.com/t/reading-file-after-a-particular-line-in-file/188487 "2010-05-13T20:33:03Z")

</div>

Hello All, I would like to read a file in ruby. It is a 2G file, but contain useless data in the beginning portion of the file. There is a particular pattern towards the middle of the file after which useful data b…

---

## [Download links of JRuby 1.5.0 final](https://www.ruby-forum.com/t/download-links-of-jruby-1-5-0-final/188540)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 3\
**Last updated:** [May 13, 2010, 7:43pm UTC](https://www.ruby-forum.com/t/download-links-of-jruby-1-5-0-final/188540 "2010-05-13T19:43:17Z")

</div>

Hi all, the site jruby.org shows actually the wrong download URLs in the upper right corner. Please fix it soon, as I don’t know how t o :wink: Cheers Michael J.

---

## [How to read id3 tags from files](https://www.ruby-forum.com/t/how-to-read-id3-tags-from-files/188517)

<div class="topic-metadata">

**Author:** [@Benedikt\_MSSS\_ller](https://www.ruby-forum.com/u/Benedikt_MSSS_ller)\
**Replies:** 4\
**Last updated:** [May 13, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/how-to-read-id3-tags-from-files/188517 "2010-05-13T19:14:36Z")

</div>

Hi I want to read (not write, change or other things, just read) id3 Tags and flac tags from files. How do I do that? I found 2 libraries that do something with id3 tags, but I didn’t understand it.

---

## [How to transfer scriptscrope to a RubyCommandLine](https://www.ruby-forum.com/t/how-to-transfer-scriptscrope-to-a-rubycommandline/188534)

<div class="topic-metadata">

**Author:** [@ray\_linn](https://www.ruby-forum.com/u/ray_linn)\
**Replies:** 6\
**Last updated:** [May 13, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/how-to-transfer-scriptscrope-to-a-rubycommandline/188534 "2010-05-13T18:45:19Z")

</div>

I found Ironruby 1.0 change a lot for some APIs, at previous version I can create a rubycommandline via C# like this IronRuby.Hosting.RubyCommandLine rubycommandline = new RubyCommandLine(new IronRuby.Runtime.RubyCon…

---

## [In Ruby, can the coerce() method know what operator it is th](https://www.ruby-forum.com/t/in-ruby-can-the-coerce-method-know-what-operator-it-is-th/188388)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 11\
**Last updated:** [May 13, 2010, 5:45pm UTC](https://www.ruby-forum.com/t/in-ruby-can-the-coerce-method-know-what-operator-it-is-th/188388 "2010-05-13T17:45:36Z")

</div>

In Ruby, it seems that a lot of coerce() help can be done by def coerce(something) \[self, something\] end that’s is, when 3 + rational is needed, Fixnum “3” doesn’t know how to handle adding a Rational, so it asks …

---

## [Ruby\_1\_8\_7: various patches to patchlevel 249](https://www.ruby-forum.com/t/ruby-1-8-7-various-patches-to-patchlevel-249/188543)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 5:09pm UTC](https://www.ruby-forum.com/t/ruby-1-8-7-various-patches-to-patchlevel-249/188543 "2010-05-13T17:09:18Z")

</div>

e$B$3$s$P$s$O!#e(B Ruby 1.8.7 patchlevel 249e$B$K$O!“0J2\<$NLdBj$,$”$C$Fe(Bpkgsrce$B$G$O%;%-%e%j%F%#e(B e$B=$@5$@$1$re(Bpatchlevel 174e$B$K2C$($F$$$^$9!#e(B o pthreade$BLdBje(B o OpenSSL 1.xe$B%5%\]!\<%HLdBje(B ruby\_1…

---

## [Required Version Of Ant For Jruby 1.5.0](https://www.ruby-forum.com/t/required-version-of-ant-for-jruby-1-5-0/188536)

<div class="topic-metadata">

**Author:** [@Tom\_E\_Purl](https://www.ruby-forum.com/u/Tom_E_Purl)\
**Replies:** 3\
**Last updated:** [May 13, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/required-version-of-ant-for-jruby-1-5-0/188536 "2010-05-13T16:54:41Z")

</div>

I downloaded the 1.5 version of Jruby today, and was eager to try out the new Ant integration. I found Charles Nutter’s “Ivy and Ant” tutorial (http://blog.headius.com/2010/04/using-ivy-with-jruby-15s-ant.html), and …

---

## [How to append the time stamp in before file name](https://www.ruby-forum.com/t/how-to-append-the-time-stamp-in-before-file-name/188529)

<div class="topic-metadata">

**Author:** [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Replies:** 1\
**Last updated:** [May 13, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/how-to-append-the-time-stamp-in-before-file-name/188529 "2010-05-13T16:08:59Z")

</div>

Hello all, i write code for create log file and i want to append the time stamp before file name. like: 0513\_1552\_05.logger.txt plz help me…!!! require ‘watir’ include Watir require ‘logger’ time\_stamp\_s = Time.n…

---

## [About ruby -d script/server](https://www.ruby-forum.com/t/about-ruby-d-script-server/188483)

<div class="topic-metadata">

**Author:** [@s8186255](https://www.ruby-forum.com/u/s8186255)\
**Replies:** 3\
**Last updated:** [May 13, 2010, 3:14pm UTC](https://www.ruby-forum.com/t/about-ruby-d-script-server/188483 "2010-05-13T15:14:31Z")

</div>

any ruby and any rails ,when using ruby -d script/serverï¼Œappear a lot of errors as follow.Maybe It does not affect application running,but I feel uncomfortable .Who can solve it.thanks. : ruby -d script/server Exc…

---

## [Has dl/import change in 1.9?](https://www.ruby-forum.com/t/has-dl-import-change-in-1-9/188396)

<div class="topic-metadata">

**Author:** [@sarmstrong2](https://www.ruby-forum.com/u/sarmstrong2)\
**Replies:** 2\
**Last updated:** [May 13, 2010, 9:41am UTC](https://www.ruby-forum.com/t/has-dl-import-change-in-1-9/188396 "2010-05-13T09:41:12Z")

</div>

Hi. I’m trying to run some pre-1.9 code along these lines: require ‘dl/import’ module C extend DL::Importable end However I’m getting an ‘uninitialized constant DL::Importable (NameError)’. Is DL::Importable defi…

---

## [Reading Data From Excel File](https://www.ruby-forum.com/t/reading-data-from-excel-file/188516)

<div class="topic-metadata">

**Author:** [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Replies:** 6\
**Last updated:** [May 13, 2010, 9:35am UTC](https://www.ruby-forum.com/t/reading-data-from-excel-file/188516 "2010-05-13T09:35:36Z")

</div>

I write some code for Reading data from excel file and put into the google. but they give error plz help me. ERROR: Excel.rb:16: warning: already initialized constant Keyword Excel.rb:17: warning: already initialize…

---

## [How to Create Framwork](https://www.ruby-forum.com/t/how-to-create-framwork/188512)

<div class="topic-metadata">

**Author:** [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 7:04am UTC](https://www.ruby-forum.com/t/how-to-create-framwork/188512 "2010-05-13T07:04:21Z")

</div>

Hello all, I m new in Ruby and i want your help for creating the Framework. i dont now what is framework and how to create it.also i m not aware of what the use of framework.i searched my things in google but s…

---

## [Io/console: EBADF by IO#echo?](https://www.ruby-forum.com/t/io-console-ebadf-by-io-echo/188505)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 3:13am UTC](https://www.ruby-forum.com/t/io-console-ebadf-by-io-echo/188505 "2010-05-13T03:13:59Z")

</div>

io/console e$B$Ne(B IO#echo? e$B$,0J2\<$N$h$&$Ke(B EBADF e$B$K$J$k$N$OJQ$8$c$J$$$G$7$g$&$+!#e(B % ./ruby -rpty -rio/console -ve ‘PTY.open {|m, s| s.echo? }’ ruby 1.9.3dev (2010-05-12 trunk 27763) \[i686-linux\] -e:1:in e…

---

## [How to synchronize files, from FTP to computer?](https://www.ruby-forum.com/t/how-to-synchronize-files-from-ftp-to-computer/188478)

<div class="topic-metadata">

**Author:** [@kingkadelfek](https://www.ruby-forum.com/u/kingkadelfek)\
**Replies:** 3\
**Last updated:** [May 12, 2010, 11:09pm UTC](https://www.ruby-forum.com/t/how-to-synchronize-files-from-ftp-to-computer/188478 "2010-05-12T23:09:15Z")

</div>

Hello, I’m looking for the best way to synchronize files between my computers and my FTP. If you know Dropbox, I’m looking for a way to do the same thing with Ruby for a personnal project. If there is a project (a r…

---

## [Ri on sqlite](https://www.ruby-forum.com/t/ri-on-sqlite/188122)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 16\
**Last updated:** [May 12, 2010, 10:54pm UTC](https://www.ruby-forum.com/t/ri-on-sqlite/188122 "2010-05-12T22:54:01Z")

</div>

What do others think of a creating a new ri tool which uses a SQLite database for storage instead of flat files? I figure doing that would make it easy to create dynamic documentation websites (using ones favorite web…

---

## [Remove\_const does not play nice with require](https://www.ruby-forum.com/t/remove-const-does-not-play-nice-with-require/188493)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 1\
**Last updated:** [May 12, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/remove-const-does-not-play-nice-with-require/188493 "2010-05-12T22:35:52Z")

</div>

$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) \[i686-darwin10.2.0\] Step 1 irb(main):002:0\> require ‘ostruct’ =\> true Step 2 irb(main):005:0\* Object.send(:remove\_const, :OpenStruct) =\> OpenStruct Step 3 ensure tha…

---

## [\[ANN\] JRuby 1.5.0 Released](https://www.ruby-forum.com/t/ann-jruby-1-5-0-released/188494)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 0\
**Last updated:** [May 12, 2010, 10:20pm UTC](https://www.ruby-forum.com/t/ann-jruby-1-5-0-released/188494 "2010-05-12T22:20:04Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.5.0. Homepage: http://www.jruby.org/ Download: http://www.jruby.org/download This development cycle has been our longest cycle yet (nearly 5 months)…

---

## [JRuby 1.5.0 Released](https://www.ruby-forum.com/t/jruby-1-5-0-released/188492)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 0\
**Last updated:** [May 12, 2010, 10:19pm UTC](https://www.ruby-forum.com/t/jruby-1-5-0-released/188492 "2010-05-12T22:19:28Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.5.0. Homepage: http://www.jruby.org/ Download: http://www.jruby.org/download This development cycle has been our longest cycle yet (nearly 5 months)…

---

## [\[Bug #3279\] BigMath::log is very slow](https://www.ruby-forum.com/t/bug-3279-bigmath-log-is-very-slow/188450)

<div class="topic-metadata">

**Author:** [@asarih](https://www.ruby-forum.com/u/asarih)\
**Replies:** 3\
**Last updated:** [May 12, 2010, 10:15pm UTC](https://www.ruby-forum.com/t/bug-3279-bigmath-log-is-very-slow/188450 "2010-05-12T22:15:58Z")

</div>

Bug #3279: BigMath::log is very slow http://redmine.ruby-lang.org/issues/show/3279 e$B5/I\<\<Te(B: Hiro A. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib ruby -v: ruby 1.9.2dev (2010-04-19 trunk 2739…

---

## [Reading file after a particular line in file](https://www.ruby-forum.com/t/reading-file-after-a-particular-line-in-file/197136)

<div class="topic-metadata">

**Author:** [@Vandana](https://www.ruby-forum.com/u/Vandana)\
**Replies:** 2\
**Last updated:** [May 12, 2010, 7:31pm UTC](https://www.ruby-forum.com/t/reading-file-after-a-particular-line-in-file/197136 "2010-05-12T19:31:28Z")

</div>

Hello All, I would like to read a file in ruby. It is a 2G file, but contain useless data in the beginning portion of the file. There is a particular pattern towards the middle of the file after which useful data b…

---

## [TcpIp, Sockets, Gserver question](https://www.ruby-forum.com/t/tcpip-sockets-gserver-question/188484)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 1\
**Last updated:** [May 12, 2010, 7:29pm UTC](https://www.ruby-forum.com/t/tcpip-sockets-gserver-question/188484 "2010-05-12T19:29:11Z")

</div>

I’m writing a simple pair of client and server apps to demonstrate a concept and it’s doing something weird. I will show the source code below but basically there seems to be a syncing problem or a cache flushing prob…

---

## [Interested in writing a commandline option parser for ruby?](https://www.ruby-forum.com/t/interested-in-writing-a-commandline-option-parser-for-ruby/188417)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 5\
**Last updated:** [May 12, 2010, 7:08pm UTC](https://www.ruby-forum.com/t/interested-in-writing-a-commandline-option-parser-for-ruby/188417 "2010-05-12T19:08:03Z")

</div>

Don’t. Just use Trollop. Seriously. Don’t even think. Just obey. OBEY. Don’t write a “framework” to do it. Don’t write an overly-pedantic DSL. Don’t write a complicated OO system where for some INSANE reason you de…

---

## [Rest-graph 1.1.0 - super simple facebook open graph api client](https://www.ruby-forum.com/t/rest-graph-1-1-0-super-simple-facebook-open-graph-api-client/188485)

<div class="topic-metadata">

**Author:** [@Lin\_Jen-Shin](https://www.ruby-forum.com/u/Lin_Jen-Shin)\
**Replies:** 0\
**Last updated:** [May 12, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/rest-graph-1-1-0-super-simple-facebook-open-graph-api-client/188485 "2010-05-12T18:45:12Z")

</div>

= rest-graph 1.1.0 by Cardinal Blue ( http://cardinalblue.com ) == LINKS: GitHub - cardinalblue/rest-graph: A lightweight Facebook Graph API client rest-graph | RubyGems.org | your community gem host http://rdoc.info…

---

## [How to create the log](https://www.ruby-forum.com/t/how-to-create-the-log/188449)

<div class="topic-metadata">

**Author:** [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Replies:** 4\
**Last updated:** [May 12, 2010, 5:59pm UTC](https://www.ruby-forum.com/t/how-to-create-the-log/188449 "2010-05-12T17:59:32Z")

</div>

How to create the log in ruby.

---

## [Building gem native extensions](https://www.ruby-forum.com/t/building-gem-native-extensions/188422)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 3\
**Last updated:** [May 12, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/building-gem-native-extensions/188422 "2010-05-12T17:08:35Z")

</div>

Why does some gems have build gem native extensions to get installed by ruby 1.8 or 1.9.1 ?? Does rubygems downloads a source and then they are compiled to be executable? If so, why does Jruby can’t build native C li…

---

## [Change java heap size in Aptana](https://www.ruby-forum.com/t/change-java-heap-size-in-aptana/188465)

<div class="topic-metadata">

**Author:** [@FloMotion](https://www.ruby-forum.com/u/FloMotion)\
**Replies:** 1\
**Last updated:** [May 12, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/change-java-heap-size-in-aptana/188465 "2010-05-12T17:00:58Z")

</div>

Hi to all. I have a strange problem concerning an Aptana and jruby and I hope that somebody here can help :slight\_smile: I am using Aptana Rad Rails (2.0.2) Jruby 1.5.0.RC3 Rails 2.3.5 Windows Vista and when I star…

---

## [Unit Test of method calling system() - how?](https://www.ruby-forum.com/t/unit-test-of-method-calling-system-how/188348)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 15\
**Last updated:** [May 12, 2010, 4:30pm UTC](https://www.ruby-forum.com/t/unit-test-of-method-calling-system-how/188348 "2010-05-12T16:30:03Z")

</div>

How can I unit test the two methods: print\_usage\_full\_and\_exit and print\_usage\_short\_and\_exit http://pastie.org/953804 Possibly, I need to change the code into something more testable! Ideas most welcome! Martin

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

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