# Ruby

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

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

---

## [Rails3.rb template mod for jdbcsqlite3?](https://www.ruby-forum.com/t/rails3-rb-template-mod-for-jdbcsqlite3/189788)

<div class="topic-metadata">

**Author:** [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Replies:** 0\
**Last updated:** [June 7, 2010, 8:56pm UTC](https://www.ruby-forum.com/t/rails3-rb-template-mod-for-jdbcsqlite3/189788 "2010-06-07T20:56:50Z")

</div>

I’m finally taking the plunge to take a look at Rails3 using JRuby 1.5.0 on Win7 and have a question regarding whether the “default.rb” template used by http://jruby.org/rails3.rb should be updated to explicitly add a …

---

## [Ibxml2 woes](https://www.ruby-forum.com/t/ibxml2-woes/189652)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 7\
**Last updated:** [June 7, 2010, 8:29pm UTC](https://www.ruby-forum.com/t/ibxml2-woes/189652 "2010-06-07T20:29:54Z")

</div>

Hi guys, I already posted this to the nokogiri list too, but since it doesn’t seem to be trivial, I figured it might be a good idea to ask here too. I am on OS X Leopard. After installing the most recent versions of …

---

## [Processing (potentially) nil method without using nested if](https://www.ruby-forum.com/t/processing-potentially-nil-method-without-using-nested-if/189709)

<div class="topic-metadata">

**Author:** [@ben-v](https://www.ruby-forum.com/u/ben-v)\
**Replies:** 6\
**Last updated:** [June 7, 2010, 7:37pm UTC](https://www.ruby-forum.com/t/processing-potentially-nil-method-without-using-nested-if/189709 "2010-06-07T19:37:13Z")

</div>

Hi all, really stupid question. How can I evaluate the following code without using a nested if… then statement? if parent.respond\_to? “children” if parent.children.size != 0 puts “Has children” end end Ideally I…

---

## [Include FileTest not working how I expect](https://www.ruby-forum.com/t/include-filetest-not-working-how-i-expect/189784)

<div class="topic-metadata">

**Author:** [@Josh\_Flanagan](https://www.ruby-forum.com/u/Josh_Flanagan)\
**Replies:** 1\
**Last updated:** [June 7, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/include-filetest-not-working-how-i-expect/189784 "2010-06-07T19:15:33Z")

</div>

Can someone explain the different ‘include’ behavior outlined in this code snippet: Is this a known difference between MRI/IronRuby in how include works? Or is it a matter of different namespace clashes happening in …

---

## [Singleton classes and Namespce](https://www.ruby-forum.com/t/singleton-classes-and-namespce/189739)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 5\
**Last updated:** [June 7, 2010, 6:22pm UTC](https://www.ruby-forum.com/t/singleton-classes-and-namespce/189739 "2010-06-07T18:22:16Z")

</div>

Do singleton classes not get the same namespace treatment as normal classes? module M class X; end end o = Object.new =\> #Object:0x7fc61f1a1e58 (class \<\< o; self; end).class\_eval{ include M } =\> #Object:0x7fc61f1…

---

## [Installing rspec with IronRuby V 1](https://www.ruby-forum.com/t/installing-rspec-with-ironruby-v-1/189681)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 3\
**Last updated:** [June 7, 2010, 5:57pm UTC](https://www.ruby-forum.com/t/installing-rspec-with-ironruby-v-1/189681 "2010-06-07T17:57:50Z")

</div>

I downloaded and installed IronRuby V 1 awesome work guys!! I went to command line and typed: igem install rspec and got the following message: C:\\Users\\azamsharp\>igem install rspec WARNING: Installing to ~/.gem si…

---

## [Final RubyInstaller packages released!](https://www.ruby-forum.com/t/final-rubyinstaller-packages-released/189748)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 7, 2010, 5:13pm UTC](https://www.ruby-forum.com/t/final-rubyinstaller-packages-released/189748 "2010-06-07T17:13:11Z")

</div>

I’m pleased to announce the release of final RubyInstaller packages. For those not already familiar with RubyInstaller, these versions continue the great work started with the original One-Click Installer by providing…

---

## [Invition in textwand](https://www.ruby-forum.com/t/invition-in-textwand/189767)

<div class="topic-metadata">

**Author:** [@rajpaul](https://www.ruby-forum.com/u/rajpaul)\
**Replies:** 0\
**Last updated:** [June 7, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/invition-in-textwand/189767 "2010-06-07T12:09:22Z")

</div>

Hi Guys, We have developed a New Age Text Messaging Product on Android called â€˜TextWandâ€™ (http://www.textwand.com). Since you are some of the most active users of Android, your acceptance and approval of our work …

---

## [Redirecting stdin for 3. party program](https://www.ruby-forum.com/t/redirecting-stdin-for-3-party-program/189593)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 4\
**Last updated:** [June 7, 2010, 10:12am UTC](https://www.ruby-forum.com/t/redirecting-stdin-for-3-party-program/189593 "2010-06-07T10:12:51Z")

</div>

OS: Debian Lenny Ruby version: 1.8.7.72-3lenny1 ==Code== stdin\_read,stdin\_write=IO.pipe pid=fork if !pid #$stdin.reopen("/home/admin/.bashrc") stdin\_write.close $stdin.reopen(stdin\_read) a=gets puts "ruby child:…

---

## [\[ANN\] Rumai 3.2.4](https://www.ruby-forum.com/t/ann-rumai-3-2-4/189758)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [June 7, 2010, 9:04am UTC](https://www.ruby-forum.com/t/ann-rumai-3-2-4/189758 "2010-06-07T09:04:11Z")

</div>

Rumai Ruby interface to the wmii window manager http://snk.tuxfamily.org/lib/rumai/ Rumai is a pure \[1\]Ruby interface to the \[2\]wmii window manager. Its name is a portm…

---

## [Qtruby and distributing applications](https://www.ruby-forum.com/t/qtruby-and-distributing-applications/189754)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 0\
**Last updated:** [June 7, 2010, 7:44am UTC](https://www.ruby-forum.com/t/qtruby-and-distributing-applications/189754 "2010-06-07T07:44:52Z")

</div>

i am currently looking into GUI libraries for cross platform ruby development. the question i have is… if i use qtruby to develop my application, how do i distribute it? is there a way that i can package it up for SIM…

---

## [Sqlite3-ruby 1.3.0 Released](https://www.ruby-forum.com/t/sqlite3-ruby-1-3-0-released/189747)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 7, 2010, 4:31am UTC](https://www.ruby-forum.com/t/sqlite3-ruby-1-3-0-released/189747 "2010-06-07T04:31:00Z")

</div>

sqlite3-ruby version 1.3.0 has been released! Special thanks goes to Aaron P. for the improved Ruby 1.9 support, backward compatibility and newer C backend! http://github.com/luislavena/sqlite3-ruby http://rubyforge.…

---

## [Ruby api for orkut](https://www.ruby-forum.com/t/ruby-api-for-orkut/189740)

<div class="topic-metadata">

**Author:** [@andersonleite](https://www.ruby-forum.com/u/andersonleite)\
**Replies:** 0\
**Last updated:** [June 6, 2010, 10:40pm UTC](https://www.ruby-forum.com/t/ruby-api-for-orkut/189740 "2010-06-06T22:40:48Z")

</div>

Is there some api to get orkut’s contacts and info using ruby ? Is Google OpenSocial used for such purpose ? Some one have experience importing orkut’s information using ruby ?

---

## [IPAddress: new IP manipulation library](https://www.ruby-forum.com/t/ipaddress-new-ip-manipulation-library/189088)

<div class="topic-metadata">

**Author:** [@bluemonk](https://www.ruby-forum.com/u/bluemonk)\
**Replies:** 8\
**Last updated:** [June 6, 2010, 9:51pm UTC](https://www.ruby-forum.com/t/ipaddress-new-ip-manipulation-library/189088 "2010-06-06T21:51:22Z")

</div>

Hi, I’ve released IPAddress 0.5.0, first release to be public available. IPAddress is an IPv4 and IPv6 addresses manipulation library, designed to be easy to use. It is probably the most complete and powerful IP ma…

---

## [Libruby-nntp doesn't exist any more?](https://www.ruby-forum.com/t/libruby-nntp-doesnt-exist-any-more/189737)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvue](https://www.ruby-forum.com/u/Une_BSSSSvue)\
**Replies:** 0\
**Last updated:** [June 6, 2010, 8:45pm UTC](https://www.ruby-forum.com/t/libruby-nntp-doesnt-exist-any-more/189737 "2010-06-06T20:45:43Z")

</div>

libruby-nntp is referenced here : https://forge.secure.at:10443/projects/ruby-net-nntp/chrome/site/doc/ however : $ sudo gem1.9 install libruby-nntp ERROR: could not find gem libruby-nntp locally or in a repository …

---

## [Directing browser](https://www.ruby-forum.com/t/directing-browser/188818)

<div class="topic-metadata">

**Author:** [@site-master](https://www.ruby-forum.com/u/site-master)\
**Replies:** 2\
**Last updated:** [June 6, 2010, 8:42pm UTC](https://www.ruby-forum.com/t/directing-browser/188818 "2010-06-06T20:42:47Z")

</div>

all i want to do is use my program to open a web page in my browser i am also useing shoes so it would look like this button(“facebook”){#what goes here#(“http://www.facebook.com/”)} please please help this is driving…

---

## [Whats the meaning of Java::JavaxSwingJTable.new](https://www.ruby-forum.com/t/whats-the-meaning-of-java-javaxswingjtable-new/189706)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 7\
**Last updated:** [June 6, 2010, 6:14pm UTC](https://www.ruby-forum.com/t/whats-the-meaning-of-java-javaxswingjtable-new/189706 "2010-06-06T18:14:06Z")

</div>

Since I just stumbled over this I would like to know why I’m able to do something like Java::JavaxSwingJTable.new instead of Java::JavaxSwing.JTable.new Shouldn’t that be an error ? Regards Roger To unsubscribe from…

---

## [Packaging common code with gems](https://www.ruby-forum.com/t/packaging-common-code-with-gems/189727)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 3\
**Last updated:** [June 6, 2010, 1:10pm UTC](https://www.ruby-forum.com/t/packaging-common-code-with-gems/189727 "2010-06-06T13:10:39Z")

</div>

Let’s say I have some common code, I use in various scripts or ruby apps. I’ve got it in a common folder which I’ve put in my RUBYLIB environment variable. In the old days (Java), I’d put this in (say) commons.jar, an…

---

## [Clogger 0.5.0 - body.to\_path forwarding](https://www.ruby-forum.com/t/clogger-0-5-0-body-to-path-forwarding/189726)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [June 6, 2010, 10:07am UTC](https://www.ruby-forum.com/t/clogger-0-5-0-body-to-path-forwarding/189726 "2010-06-06T10:07:09Z")

</div>

Clogger is Rack middleware for logging HTTP requests. The log format is customizable so you can specify exactly which fields to log. http://clogger.rubyforge.org/ removed\_email\_address@domain.invalid git://git.bogomi…

---

## [\[bug:trunk\] 100000.times { Time.allocate }: \[FATAL\] failed to allocate memory](https://www.ruby-forum.com/t/bug-trunk-100000-times-time-allocate-fatal-failed-to-allocate-memory/189479)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [June 6, 2010, 6:17am UTC](https://www.ruby-forum.com/t/bug-trunk-100000-times-time-allocate-fatal-failed-to-allocate-memory/189479 "2010-06-06T06:17:45Z")

</div>

e$B0J2\<$N$h$&$Ke(B \[FATAL\] failed to allocate memory e$B$H$$$&%(%i!\<$,=P$^$9!#e(B % ./ruby -ve ‘100000.times { Time.allocate }’ ruby 1.9.3dev (2010-05-28 trunk 28053) \[i686-linux\] \[FATAL\] failed to allocate memory e…

---

## [Clearing TOPLEVEL\_BINDING for reuse](https://www.ruby-forum.com/t/clearing-toplevel-binding-for-reuse/189707)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 5\
**Last updated:** [June 6, 2010, 5:52am UTC](https://www.ruby-forum.com/t/clearing-toplevel-binding-for-reuse/189707 "2010-06-06T05:52:34Z")

</div>

Is there anyway to delete all the local and instance variables in a Binding? I’ve been working on a test framework and ideally I’d like the tests to run at the toplevel rather than within the scope of some class. But …

---

## [\[bug:trunk\] spec/rubyspec/core/array/product\_spec.rb SEGV](https://www.ruby-forum.com/t/bug-trunk-spec-rubyspec-core-array-product-spec-rb-segv/189715)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [June 6, 2010, 3:47am UTC](https://www.ruby-forum.com/t/bug-trunk-spec-rubyspec-core-array-product-spec-rb-segv/189715 "2010-06-06T03:47:22Z")

</div>

e$B$H!“$$$&$o$1$G!”$H$j$"$($:e(B spec/rubyspec/core/array/product\_spec.rb e$B$Oe(B SEGV e$B$9$k$h$&$G$9!#e(B (RUBY\_DEBUG e$B$N$?$a%3%s%Q%$%k$G$Oe(B RUBY\_DEBUG\_ENV e$B%^%/%m$r$D$1$F$"$j$^$9!#e(B) % RUBY\_DEBUG=gc\_stre…

---

## [1.9 warning for 'private' and possible bug](https://www.ruby-forum.com/t/1-9-warning-for-private-and-possible-bug/189713)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 8\
**Last updated:** [June 6, 2010, 3:07am UTC](https://www.ruby-forum.com/t/1-9-warning-for-private-and-possible-bug/189713 "2010-06-06T03:07:34Z")

</div>

Consider this error: $ cat t.rb module M private def attr\_accessor(\*args); super; end end class C extend M attr\_accessor :x end C.new.x = 1 $ ruby19 t.rb t.rb:11:in \<main\>': private methodx=’ called for #\<C:…

---

## [Include\_class performance](https://www.ruby-forum.com/t/include-class-performance/189631)

<div class="topic-metadata">

**Author:** [@rogergue](https://www.ruby-forum.com/u/rogergue)\
**Replies:** 8\
**Last updated:** [June 6, 2010, 12:02am UTC](https://www.ruby-forum.com/t/include-class-performance/189631 "2010-06-06T00:02:35Z")

</div>

Since I’m still struggling with the startup performance of my JRuby/Swing application I would like to know if it would make sense not to use include\_class. The following test prog spends most of it’s time with the inc…

---

## [Class variables and modules](https://www.ruby-forum.com/t/class-variables-and-modules/189669)

<div class="topic-metadata">

**Author:** [@illeverbe](https://www.ruby-forum.com/u/illeverbe)\
**Replies:** 3\
**Last updated:** [June 5, 2010, 9:20pm UTC](https://www.ruby-forum.com/t/class-variables-and-modules/189669 "2010-06-05T21:20:26Z")

</div>

I am trying to keep a history of object state in a parent class using a class variable. This works per example 1 using child method update\_state. but if i mixin a module to update\_state (so as not to repeat update\_sta…

---

## [Use a core C function not included in intern.h](https://www.ruby-forum.com/t/use-a-core-c-function-not-included-in-intern-h/189623)

<div class="topic-metadata">

**Author:** [@tiny](https://www.ruby-forum.com/u/tiny)\
**Replies:** 4\
**Last updated:** [June 5, 2010, 8:30pm UTC](https://www.ruby-forum.com/t/use-a-core-c-function-not-included-in-intern-h/189623 "2010-06-05T20:30:48Z")

</div>

Hello. I trying to make a function with C extension for 1.8.7 that should use functions defined in Ruby such as VALUE eval(VALUE,VALUE,VALUE,const char\*,int) But functions that aren’t reflected (sorry, I don’t know …

---

## [Jrubyc --java under windows does not work](https://www.ruby-forum.com/t/jrubyc-java-under-windows-does-not-work/188789)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [June 5, 2010, 7:52pm UTC](https://www.ruby-forum.com/t/jrubyc-java-under-windows-does-not-work/188789 "2010-06-05T19:52:38Z")

</div>

hello, I need someone telling me what is wrong here the ruby code is in http://github.com/mkristian/jruby-maven-plugins/tree/master/jruby-maven-plugin/src/it/generate-java-and-compile/ or better in the subdirectory s…

---

## [wxRuby 2.0.0](https://www.ruby-forum.com/t/wxruby-2-0-0/161794)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 9\
**Last updated:** [June 5, 2010, 7:07pm UTC](https://www.ruby-forum.com/t/wxruby-2-0-0/161794 "2010-06-05T19:07:24Z")

</div>

I’m happy to announce the release of wxRuby 2.0.0, the comprehensive, cross-platform GUI toolkit for Ruby. Though recent versions have been very usable (and much used), this is the first official stable release from t…

---

## [RUBY\_DEBUG=gc\_stress \[FATAL\] failed to allocate memory](https://www.ruby-forum.com/t/ruby-debug-gc-stress-fatal-failed-to-allocate-memory/189696)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [June 5, 2010, 3:20pm UTC](https://www.ruby-forum.com/t/ruby-debug-gc-stress-fatal-failed-to-allocate-memory/189696 "2010-06-05T15:20:30Z")

</div>

e$B%3%s%Q%$%k;~$Ke(B RUBY\_DEBUG\_ENV e$B$H$$$&%^%/%m$rDj5A$7$F$\*$/$H!"e(B RUBY\_DEBUG e$B$H$$$&4D6-JQ?t$,M-8z$K$J$C$F!"e(B e$B:G=i$N:G=i$+$ie(B GC.stress e$B$r??$K$G$-$?$j$9$k$N$G$9$,!"e(B e$B8=:\_$O0J2\<$N$h$&$K$&$^$/F0$…

---

## [Problem using gem](https://www.ruby-forum.com/t/problem-using-gem/189694)

<div class="topic-metadata">

**Author:** [@sepehr](https://www.ruby-forum.com/u/sepehr)\
**Replies:** 0\
**Last updated:** [June 5, 2010, 12:30pm UTC](https://www.ruby-forum.com/t/problem-using-gem/189694 "2010-06-05T12:30:01Z")

</div>

I have ruby 1.8 installed on my windowsXP , I have also installed couple of gems which I need, but I get this error with every single gem I try to load (forexample rgl library in this case) C:/rubyo/lib/ruby/site\_rub…

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

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