# Ruby

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

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

---

## [Ruby2Ruby](https://www.ruby-forum.com/t/ruby2ruby/171684)

<div class="topic-metadata">

**Author:** [@Juston](https://www.ruby-forum.com/u/Juston)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/ruby2ruby/171684 "2009-07-07T17:45:35Z")

</div>

I’ve been reading a lot about ParseTree and Ruby2Ruby for a project I’m working on simply not getting it. Im running 1.8.6 and have the Ruby2Ruby, ParseTree and ruby\_parser gems installed but I simply can’t get them t…

---

## [Siren 0.2.0 Released](https://www.ruby-forum.com/t/siren-0-2-0-released/171676)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 2:51pm UTC](https://www.ruby-forum.com/t/siren-0-2-0-released/171676 "2009-07-07T14:51:21Z")

</div>

siren version 0.2.0 has been released! http://github.com/jcoglan/siren Siren is a JSON and JSONQuery interpreter for Ruby. It extends the normal functionality of JSON-to-Ruby processing with cross-references, autom…

---

## [Jake 1.0.0 Released](https://www.ruby-forum.com/t/jake-1-0-0-released/171667)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 12:18pm UTC](https://www.ruby-forum.com/t/jake-1-0-0-released/171667 "2009-07-07T12:18:11Z")

</div>

jake version 1.0.0 has been released! http://github.com/jcoglan/jake Jake is a command line tool for building JavaScript packages from source code. Using simple YAML config files, you can specify any number of build …

---

## [Ruby Module](https://www.ruby-forum.com/t/ruby-module/171653)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 2\
**Last updated:** [July 7, 2009, 10:45am UTC](https://www.ruby-forum.com/t/ruby-module/171653 "2009-07-07T10:45:29Z")

</div>

I have written some of the funcions in a file . The filename is test.rb Examples test.rb has only the following functions . def hai(a,b) puts “This is Hai” end def hellow puts "This is Hello…

---

## [When default\_internal specified](https://www.ruby-forum.com/t/when-default-internal-specified/164747)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 2\
**Last updated:** [July 7, 2009, 9:13am UTC](https://www.ruby-forum.com/t/when-default-internal-specified/164747 "2009-07-07T09:13:52Z")

</div>

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B default\_external e$B$He(B default\_internal e$B$,;XDj$5$l$?$H$-!"e(B e$B=q$-9~$\_;~$K%(%s%3!\<%G%#%s%0$NJQ49$,5/$3$k$h$&$G$9$,!"e(B e$B$3$l$O$3$&$$$&$b$N$G$7$g$&$+!#e(B $ cat t.rb …

---

## [Viewing Abstract Syntax Trees](https://www.ruby-forum.com/t/viewing-abstract-syntax-trees/171648)

<div class="topic-metadata">

**Author:** [@Andrea\_oSkSW](https://www.ruby-forum.com/u/Andrea_oSkSW)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 4:38am UTC](https://www.ruby-forum.com/t/viewing-abstract-syntax-trees/171648 "2009-07-07T04:38:07Z")

</div>

How can I view the AST that corresponds with a ruby file? I have read about -X:ShowASTs and -X:DumpASTs, but they don’t seem to be valid command line switches for IronRuby 0.6. Thank you very much, AOK

---

## [Ri\_cal 0.7.2 Released](https://www.ruby-forum.com/t/ri-cal-0-7-2-released/171646)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 3:25am UTC](https://www.ruby-forum.com/t/ri-cal-0-7-2-released/171646 "2009-07-07T03:25:32Z")

</div>

ri\_cal version 0.7.2 has been released! http://ri-cal.rubyforge.org/ A new Ruby implementation of RFC2445 iCalendar. The existing Ruby iCalendar libraries (e.g. icalendar, vpim) provide for parsing and generating…

---

## [\[BUG:1.9\] io does not convert str when ext == intern](https://www.ruby-forum.com/t/bug-1-9-io-does-not-convert-str-when-ext-intern/164762)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 5\
**Last updated:** [July 7, 2009, 3:17am UTC](https://www.ruby-forum.com/t/bug-1-9-io-does-not-convert-str-when-ext-intern/164762 "2009-07-07T03:17:56Z")

</div>

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B IO e$B$N30It%(%s%3!\<%G%#%s%0$HFbIt%(%s%3!\<%G%#%s%0$,Ey$7$$\>l9g$K!"e(B e$BJQ49$,I,MW$J\>l9g$G$b!"JQ49$,5/$-$^$;$s!#e(B $ cat t.rb encoding:euc-jp io = File.open(‘t.txt’, ‘w+’, { :…

---

## [Getting Started with Ruby 1.9, Rails and SQLite3, All on Windows](https://www.ruby-forum.com/t/getting-started-with-ruby-1-9-rails-and-sqlite3-all-on-windows/171639)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [July 7, 2009, 1:45am UTC](https://www.ruby-forum.com/t/getting-started-with-ruby-1-9-rails-and-sqlite3-all-on-windows/171639 "2009-07-07T01:45:37Z")

</div>

Hey Everybody, After popular request, I decided to put together a series of instructions on getting Ruby 1.9, Rails and SQLite3 bindings working, all on Windows. http://blog.mmediasys.com/2009/07/06/getting-started-w…

---

## [Getting Started with Ruby 1.9, Rails and MySQL, All on Windows](https://www.ruby-forum.com/t/getting-started-with-ruby-1-9-rails-and-mysql-all-on-windows/171641)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [July 7, 2009, 1:00am UTC](https://www.ruby-forum.com/t/getting-started-with-ruby-1-9-rails-and-mysql-all-on-windows/171641 "2009-07-07T01:00:02Z")

</div>

Hey Guys, A follow up of my previous post for SQLite3, this time for MySQL Server 5.0: http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-mysql/ The steps described in the post: Installation of Rub…

---

## [Formatting the test result in Spec](https://www.ruby-forum.com/t/formatting-the-test-result-in-spec/171637)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 5\
**Last updated:** [July 6, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/formatting-the-test-result-in-spec/171637 "2009-07-06T23:10:49Z")

</div>

I got the Spec working in IronRuby! Thanks everyone. How can I get a detailed report (command line) when running the test? Currently, I only get the following: C:\\Projects\\FirstLookAtIronRuby\\FirstLookAtIronRuby\\TestS…

---

## [IronRuby 0.6 and Downloading RSpec Through Gem](https://www.ruby-forum.com/t/ironruby-0-6-and-downloading-rspec-through-gem/171634)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 3\
**Last updated:** [July 6, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/ironruby-0-6-and-downloading-rspec-through-gem/171634 "2009-07-06T21:45:52Z")

</div>

I am trying to download RSpec but I keep getting the following error: gem install rspec unknown: parenthesize argument(s) for future version (Microsoft::Scripting::Synt axErrorException) igem install rspec …

---

## [Regexp-engine: ruby vs. perl](https://www.ruby-forum.com/t/regexp-engine-ruby-vs-perl/171611)

<div class="topic-metadata">

**Author:** [@Axel\_S](https://www.ruby-forum.com/u/Axel_S)\
**Replies:** 1\
**Last updated:** [July 6, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/regexp-engine-ruby-vs-perl/171611 "2009-07-06T21:29:40Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello list, I’ve got a question about ruby’s regexp-engine: I’m wondering why ruby’s regexp-engine is soo much slower than perl’s. My test file looks like this (status.d…

---

## [Spec and Cucumber](https://www.ruby-forum.com/t/spec-and-cucumber/171625)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [July 6, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/spec-and-cucumber/171625 "2009-07-06T20:26:19Z")

</div>

Hi, How can I download and use spec and cucumber?

---

## [How to test %x\[\] calls?](https://www.ruby-forum.com/t/how-to-test-x-calls/171595)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 3\
**Last updated:** [July 6, 2009, 7:25pm UTC](https://www.ruby-forum.com/t/how-to-test-x-calls/171595 "2009-07-06T19:25:09Z")

</div>

Hi all, how can I set an expectation on an external command execution? Code: def do\_stuff(arg) %x(external\_executable\_name #{arg}) end Test (not working): it “shells out and executes ‘external\_executable\_name’ wit…

---

## [String conversion, from a base to an other new one](https://www.ruby-forum.com/t/string-conversion-from-a-base-to-an-other-new-one/171596)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 2\
**Last updated:** [July 6, 2009, 7:08pm UTC](https://www.ruby-forum.com/t/string-conversion-from-a-base-to-an-other-new-one/171596 "2009-07-06T19:08:28Z")

</div>

Hello, Is there a way, in Ruby, to convert this kind of value: “3m74jnfu9f” (which is in base 32 having: “0123456789abcdefghijklmnopqrstuv” chars) into a other new base, for instance a base 8 (having: “Ã¹=\*$\`^~Â£” cha…

---

## [No tests were specified](https://www.ruby-forum.com/t/no-tests-were-specified/171621)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [July 6, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/no-tests-were-specified/171621 "2009-07-06T18:58:51Z")

</div>

not sure why I am getting the following error when running the tests: C:\\Projects\\FirstLookAtIronRuby\\FirstLookAtIronRuby\\TestSuite\>ir test\_customer.r b Loaded suite test\_customer Started F Finished in 0.3125 seco…

---

## [How to Refer to the Classes in my Custom DLL](https://www.ruby-forum.com/t/how-to-refer-to-the-classes-in-my-custom-dll/171620)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 1\
**Last updated:** [July 6, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/how-to-refer-to-the-classes-in-my-custom-dll/171620 "2009-07-06T18:33:58Z")

</div>

Hi, I have a class library in C# called “BusinessObjects” and I want to refer to that DLL using IronRuby. I typed: require ‘BusinessObjects’ true include BusinessObjects include BusinessObjects C:\\ironruby\\iro…

---

## [Permission denied - (Errno::EACCES)- Help!](https://www.ruby-forum.com/t/permission-denied-errno-eacces-help/135811)

<div class="topic-metadata">

**Author:** [@owc](https://www.ruby-forum.com/u/owc)\
**Replies:** 5\
**Last updated:** [July 6, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/permission-denied-errno-eacces-help/135811 "2009-07-06T17:45:22Z")

</div>

Hi i remember posting this before but I needed to raise the issue again because i dont think is due to my user acess rights. My part of my code looks like this: Dir.glob(src) do |file| regexp = Regexp.new($exception) …

---

## [Downloading the files shows data instead of download box](https://www.ruby-forum.com/t/downloading-the-files-shows-data-instead-of-download-box/171597)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 1\
**Last updated:** [July 6, 2009, 5:14pm UTC](https://www.ruby-forum.com/t/downloading-the-files-shows-data-instead-of-download-box/171597 "2009-07-06T17:14:16Z")

</div>

Hi i’m saving a file in the database( the content of file.) and i provided an option like downloadlink. if i click on that the file should be downloaded but it shows the content of the file on the webpage instead of …

---

## [Web Designing](https://www.ruby-forum.com/t/web-designing/171588)

<div class="topic-metadata">

**Author:** [@lily](https://www.ruby-forum.com/u/lily)\
**Replies:** 0\
**Last updated:** [July 6, 2009, 10:41am UTC](https://www.ruby-forum.com/t/web-designing/171588 "2009-07-06T10:41:02Z")

</div>

From website design tips and ideas to CSS Styles, Fireworks and Dreamweaver you’ll find all you need to know about web design right here! For more infn., Pl. Click here : http://All4Webs.com/c/t/bookz/home.htm

---

## [AUTO: Joe Grastara is out of the office (returning 07/07/2009)](https://www.ruby-forum.com/t/auto-joe-grastara-is-out-of-the-office-returning-07-07-2009/171586)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 6, 2009, 10:04am UTC](https://www.ruby-forum.com/t/auto-joe-grastara-is-out-of-the-office-returning-07-07-2009/171586 "2009-07-06T10:04:49Z")

</div>

I am out of the office until 07/07/2009. Please send mail to removed\_email\_address@domain.invalid for help with any issues. Note: This is an automated response to your message “Re: file.seek and unused bytes” sent on…

---

## [Convert an Character to the ASCII Character Code](https://www.ruby-forum.com/t/convert-an-character-to-the-ascii-character-code/171575)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 3\
**Last updated:** [July 6, 2009, 9:58am UTC](https://www.ruby-forum.com/t/convert-an-character-to-the-ascii-character-code/171575 "2009-07-06T09:58:55Z")

</div>

I have Ruby 1.9.1p129 and I want to convert an ASCII character to an Integer and a Float. While reading the following web page, I found conflicts in the code usage: ‘Convert an Character to the ASCII Character Code’ …

---

## [\[Backport #1329\] Ruby 1.8.8 $B$G(B "p eval('0' + '+0.1'\*n)" $B$,(B Segmentation Fault $B$rH/@8](https://www.ruby-forum.com/t/backport-1329-ruby-1-8-8-b-g-b-p-eval-0-0-1-n-b-b-segmentation-fault-b-rh-8/171584)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 0\
**Last updated:** [July 6, 2009, 9:27am UTC](https://www.ruby-forum.com/t/backport-1329-ruby-1-8-8-b-g-b-p-eval-0-0-1-n-b-b-segmentation-fault-b-rh-8/171584 "2009-07-06T09:27:26Z")

</div>

e$B%A%1%C%He(B #1329 e$B$,99?7$5$l$^$7$?!#e(B (by Shyouhei U.) e$BC4Ev\<Te(B Shyouhei U.e$B$+$ie(BKirk H.e$B$KJQ99e(B 1.8.6 also has this problem. http://redmine.ruby-lang.org/issues/show/1329

---

## [Parsing lua with Ruby](https://www.ruby-forum.com/t/parsing-lua-with-ruby/171483)

<div class="topic-metadata">

**Author:** [@ctilimpea](https://www.ruby-forum.com/u/ctilimpea)\
**Replies:** 7\
**Last updated:** [July 6, 2009, 2:57am UTC](https://www.ruby-forum.com/t/parsing-lua-with-ruby/171483 "2009-07-06T02:57:48Z")

</div>

Im interested in parsing a text file that has a very specific, yet somewhat complicated (for me) format. Sample attached. Looks something like this: BeanCounterDB = { \[“settings”\] = { \[“profile.Default”\] = { \[“colu…

---

## [To\_proc and Proc/block conversion with &](https://www.ruby-forum.com/t/to-proc-and-proc-block-conversion-with/171551)

<div class="topic-metadata">

**Author:** [@Russ\_McBride](https://www.ruby-forum.com/u/Russ_McBride)\
**Replies:** 15\
**Last updated:** [July 6, 2009, 12:55am UTC](https://www.ruby-forum.com/t/to-proc-and-proc-block-conversion-with/171551 "2009-07-06T00:55:42Z")

</div>

map requires a block, right? So this works: words = %w(ardvark anteater llama) arr = words.map { |x| x + “!” } arr #–\> \[ardvark!, anteater!, llama!\] But this doesn’t: arr2 = words.map lambda{ |x| x + “!”} …

---

## [Installing tar2rubyscript and rubyscript2exe](https://www.ruby-forum.com/t/installing-tar2rubyscript-and-rubyscript2exe/171508)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 3\
**Last updated:** [July 5, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/installing-tar2rubyscript-and-rubyscript2exe/171508 "2009-07-05T17:10:36Z")

</div>

I’m trying to install tar2rubyscript and rubyscript2exe. I executed the following 2 statements: sudo gem install tar2rubyscript sudo gem install rubyscript2exe Gem indicates that it installed them. In addition if I …

---

## [How to remove/delete/destroy class variable in Ruby 1.9?](https://www.ruby-forum.com/t/how-to-remove-delete-destroy-class-variable-in-ruby-1-9/171534)

<div class="topic-metadata">

**Author:** [@dzw](https://www.ruby-forum.com/u/dzw)\
**Replies:** 9\
**Last updated:** [July 5, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/how-to-remove-delete-destroy-class-variable-in-ruby-1-9/171534 "2009-07-05T13:21:03Z")

</div>

Ok, code below shows better what I am talking about, I understand that @@var is acting like global variable. But how to get rid of it when is not needed anymore? class A @@var = ‘var in A’ def self.item @@var end …

---

## [\[Bug #1720\] \[NaN\] == \[NaN\] $B$,(B true $B$K$J$k(B](https://www.ruby-forum.com/t/bug-1720-nan-nan-b-b-true-b-k-j-k-b/171560)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 0\
**Last updated:** [July 5, 2009, 11:35am UTC](https://www.ruby-forum.com/t/bug-1720-nan-nan-b-b-true-b-k-j-k-b/171560 "2009-07-05T11:35:55Z")

</div>

e$B%A%1%C%He(B #1720 e$B$,99?7$5$l$^$7$?!#e(B (by tadayoshi funaba) e$B$=$s$J$KB.EYE\*$K$-$D$$$s$G$9$+$M!#e(B e$B$G$“$l$P!”$"$^$jL/$J$3$H$O$7$J$$$\[$&$,$$$$$H;W$&$N$G!"e(B e$B4{CN$NLdBj$H$7$FEvLL$Oe(B(4)e$B$H$9$k$H$+!#…

---

## [Using Dir.glob to grab only Directories](https://www.ruby-forum.com/t/using-dir-glob-to-grab-only-directories/171513)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 6\
**Last updated:** [July 5, 2009, 5:47am UTC](https://www.ruby-forum.com/t/using-dir-glob-to-grab-only-directories/171513 "2009-07-05T05:47:45Z")

</div>

Hi, I was wondering if there were a way to use Dir.glob to grab only directories. After searching google for a bit I found ways to pull only file listings, but couldn’t find one for just directories. Currently, I’m …

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

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