# Ruby

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

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

---

## [LoadError : Setup error? Trying to use Ruby/cucumber](https://www.ruby-forum.com/t/loaderror-setup-error-trying-to-use-ruby-cucumber/182202)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 2\
**Last updated:** [January 26, 2010, 3:44pm UTC](https://www.ruby-forum.com/t/loaderror-setup-error-trying-to-use-ruby-cucumber/182202 "2010-01-26T15:44:16Z")

</div>

Any idea what might be causing this LoadError ? I just installed the cucumber gem and am trying to run it, on OSX 10.5.6 Thanks! cucumber examples/i18n/it/features/somma.feature Using the default profile… no such f…

---

## [Require 'rubygems' fails (works in irb)](https://www.ruby-forum.com/t/require-rubygems-fails-works-in-irb/182310)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 1\
**Last updated:** [January 26, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/require-rubygems-fails-works-in-irb/182310 "2010-01-26T15:27:31Z")

</div>

I am getting errors that rubygems cannot be found, when starting rails-related ruby commands. when I run ls -l which ruby and cat which gem | head -n 1 I get the same directory which is also list in ‘gem env’. som…

---

## [Difference between underscore and tableize](https://www.ruby-forum.com/t/difference-between-underscore-and-tableize/182267)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [January 26, 2010, 3:22pm UTC](https://www.ruby-forum.com/t/difference-between-underscore-and-tableize/182267 "2010-01-26T15:22:41Z")

</div>

Hey all, Not sure what the difference between underscore and tableize, other than tableize also pluralizes. However, not sure how they can be used differently. Obviously, you can use tableize to reference table name i…

---

## [Circular requrie in drb](https://www.ruby-forum.com/t/circular-requrie-in-drb/182292)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [January 26, 2010, 12:57pm UTC](https://www.ruby-forum.com/t/circular-requrie-in-drb/182292 "2010-01-26T12:57:55Z")

</div>

\-v (e$B$de(B -w) e$B$r;XDj$7$F$"$k;~$Ke(B drb e$B$re(B require e$B$9$k$He(B e$B0J2\<$N$h$&$K7Y9p$,=P$^$9!#e(B % ./ruby -rdrb -ve ‘’ ruby 1.9.2dev (2010-01-26 trunk 26419) \[i686-linux\] /home/ruby/tcstate/lib/ruby/1.9.…

---

## [\[Bug #2657\] rubyspec: The return keyword within define\_method goes through the method via a closure](https://www.ruby-forum.com/t/bug-2657-rubyspec-the-return-keyword-within-define-method-goes-through-the-method-via-a-closure/182305)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 2\
**Last updated:** [January 26, 2010, 12:39pm UTC](https://www.ruby-forum.com/t/bug-2657-rubyspec-the-return-keyword-within-define-method-goes-through-the-method-via-a-closure/182305 "2010-01-26T12:39:11Z")

</div>

Bug #2657: rubyspec: The return keyword within define\_method goes through the method via a closure FAILED http://redmine.ruby-lang.org/issues/show/2657 e$B5/I\<\<Te(B: Yusuke E. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: No…

---

## [Basic XML POST using Ruby to Cisco Call Manager](https://www.ruby-forum.com/t/basic-xml-post-using-ruby-to-cisco-call-manager/182278)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 2\
**Last updated:** [January 26, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/basic-xml-post-using-ruby-to-cisco-call-manager/182278 "2010-01-26T12:13:32Z")

</div>

I have been tasked with writing a ruby script to poll the XML/SOAP interface on the Cisco Call Manager phone system. I have never done anything with XML in the past. From the Cisco documentation, I need to make this …

---

## [Can't generate the initializers](https://www.ruby-forum.com/t/cant-generate-the-initializers/182258)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 7\
**Last updated:** [January 26, 2010, 9:52am UTC](https://www.ruby-forum.com/t/cant-generate-the-initializers/182258 "2010-01-26T09:52:57Z")

</div>

Hi hi, what’s wrong with this code http://gist.github.com/285354 when I generate things look right but of course I have no idea what right means there is content in the Initializer.generated.cs file Many many …

---

## [Is it possible to generate DLLs?](https://www.ruby-forum.com/t/is-it-possible-to-generate-dlls/182110)

<div class="topic-metadata">

**Author:** [@mercedes6s](https://www.ruby-forum.com/u/mercedes6s)\
**Replies:** 9\
**Last updated:** [January 26, 2010, 9:52am UTC](https://www.ruby-forum.com/t/is-it-possible-to-generate-dlls/182110 "2010-01-26T09:52:22Z")

</div>

Hello guys, we’re looking to adopt IronRuby within our project. It’s been great to test with since we’re all ex-Ruby and/or ex-Rails guys and this makes everything simpler. We were able to work with windows forms an…

---

## [Ruby bounties--list of bounties](https://www.ruby-forum.com/t/ruby-bounties-list-of-bounties/181991)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 33\
**Last updated:** [January 26, 2010, 9:40am UTC](https://www.ruby-forum.com/t/ruby-bounties-list-of-bounties/181991 "2010-01-26T09:40:39Z")

</div>

Fifth time’s a charm (durn spam filters) ========Announcing the creation of a “ruby bounty” list============= Purpose: connect those who want to work on side projects with those who want to support them. http://wiki…

---

## [Dealing with TFS](https://www.ruby-forum.com/t/dealing-with-tfs/182155)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 6\
**Last updated:** [January 26, 2010, 9:38am UTC](https://www.ruby-forum.com/t/dealing-with-tfs/182155 "2010-01-26T09:38:18Z")

</div>

Hi How do you guys deal with TFS? My guys have settled on Rubymine as their IDE, but their SCM is TFS of course as it’s a .NET shop. As you’re well aware off TFS has the unfortunate habit of marking files as read-o…

---

## [How to refactor these code?](https://www.ruby-forum.com/t/how-to-refactor-these-code/182288)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 2\
**Last updated:** [January 26, 2010, 9:23am UTC](https://www.ruby-forum.com/t/how-to-refactor-these-code/182288 "2010-01-26T09:23:05Z")

</div>

def ss(s = ‘hello’, yeah = nil) if yeah puts “something” else puts “other thing” end #code continue … end I have this method, use it like that: ss(‘hi’, yeah = true) ss(‘hello’) ss(‘fuck’, yeah = true) ss(‘he…

---

## [LA Ruby Conf 2010 - All presentations / schedule is available now!](https://www.ruby-forum.com/t/la-ruby-conf-2010-all-presentations-schedule-is-available-now/182139)

<div class="topic-metadata">

**Author:** [@Coby\_Randquist](https://www.ruby-forum.com/u/Coby_Randquist)\
**Replies:** 3\
**Last updated:** [January 26, 2010, 8:38am UTC](https://www.ruby-forum.com/t/la-ruby-conf-2010-all-presentations-schedule-is-available-now/182139 "2010-01-26T08:38:36Z")

</div>

The presentations for LA Ruby Conference are published on the site now. Check it out now, get your tickets fast. http://budurl.com/larcs Thanks, -Coby

---

## [Ruby Programming Challenge for Newbies #6 is now live](https://www.ruby-forum.com/t/ruby-programming-challenge-for-newbies-6-is-now-live/182289)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 0\
**Last updated:** [January 26, 2010, 5:46am UTC](https://www.ruby-forum.com/t/ruby-programming-challenge-for-newbies-6-is-now-live/182289 "2010-01-26T05:46:34Z")

</div>

The Ruby P.ming Challenge for Newbies #6 by John T. is now live. You can submit your solutions before 20th Feb. 2010. There is no entry fee and you can win attractive prizes. Satish T.

---

## [Is there a way to list the classes defined in a module?](https://www.ruby-forum.com/t/is-there-a-way-to-list-the-classes-defined-in-a-module/182274)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 2\
**Last updated:** [January 26, 2010, 5:20am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-list-the-classes-defined-in-a-module/182274 "2010-01-26T05:20:49Z")

</div>

Suppose I have a module that’s essentially used as a namespace, like this: module Castle class King \< Royalty; end class Queen \< Royalty; end class Guard \< Commoner; end class Dragon\_keeper \< Commoner; end end Is…

---

## [JRuby demos from recent conferences](https://www.ruby-forum.com/t/jruby-demos-from-recent-conferences/180123)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 12\
**Last updated:** [January 26, 2010, 1:33am UTC](https://www.ruby-forum.com/t/jruby-demos-from-recent-conferences/180123 "2010-01-26T01:33:07Z")

</div>

I have moved the jruby-demos project from my github account to the jruby github account. You can find them here: Lots of fun stuff if you’re planning to do a presentation! Charlie To unsubscribe from this list, p…

---

## [Rubygems-sing 1.0.0 Released](https://www.ruby-forum.com/t/rubygems-sing-1-0-0-released/181930)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 4\
**Last updated:** [January 26, 2010, 1:26am UTC](https://www.ruby-forum.com/t/rubygems-sing-1-0-0-released/181930 "2010-01-26T01:26:40Z")

</div>

rubygems-sing version 1.0.0 has been released! http://rubyforge.org/projects/seattlerb “Sings” a gem’s implementation. Changes: 1.0.0 / 2010-01-20 1 major enhancement Birthday!

---

## [Ruby extension problem](https://www.ruby-forum.com/t/ruby-extension-problem/182277)

<div class="topic-metadata">

**Author:** [@Philliam\_A](https://www.ruby-forum.com/u/Philliam_A)\
**Replies:** 2\
**Last updated:** [January 26, 2010, 12:15am UTC](https://www.ruby-forum.com/t/ruby-extension-problem/182277 "2010-01-26T00:15:52Z")

</div>

Hey guys, I am writing a ruby extension in C++ that exposes a function to ruby, and then opens a ruby interpreter that loads a file that can call the function. I am following the Pragmatic Programmers guide to embedd…

---

## [Compiling multiple C source files into a single library](https://www.ruby-forum.com/t/compiling-multiple-c-source-files-into-a-single-library/182270)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [January 25, 2010, 11:20pm UTC](https://www.ruby-forum.com/t/compiling-multiple-c-source-files-into-a-single-library/182270 "2010-01-25T23:20:51Z")

</div>

Hi, In the past I’ve always put all my code into a single source file and built it that way. However, I’d like to split out my C source files into a “one class per file” arrangement for a particular project, but I’m …

---

## [Review: ActiveRecord tests](https://www.ruby-forum.com/t/review-activerecord-tests/182206)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 5\
**Last updated:** [January 25, 2010, 9:54pm UTC](https://www.ruby-forum.com/t/review-activerecord-tests/182206 "2010-01-25T21:54:11Z")

</div>

tfpt review /shelveset:ar;sborde Enables active\_record tests in irtests.rb. They require SQLExpress to be installed on the machine.

---

## [Announcing memprof: a ruby level memory profiler](https://www.ruby-forum.com/t/announcing-memprof-a-ruby-level-memory-profiler/182271)

<div class="topic-metadata">

**Author:** [@Joe\_Damato](https://www.ruby-forum.com/u/Joe_Damato)\
**Replies:** 2\
**Last updated:** [January 25, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/announcing-memprof-a-ruby-level-memory-profiler/182271 "2010-01-25T21:41:18Z")

</div>

Hi - I’ve been working on a Ruby level memory profiler for Ruby 1.8.6 and 1.8.7 for a few weeks. This profiler is just a ruby gem (available on gemcutter) and can be installed and used with NO PATCHES to the Ruby VM.…

---

## [\[Bug:trunk\] cannot resume Fiber from forked process](https://www.ruby-forum.com/t/bug-trunk-cannot-resume-fiber-from-forked-process/182014)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [January 25, 2010, 7:28pm UTC](https://www.ruby-forum.com/t/bug-trunk-cannot-resume-fiber-from-forked-process/182014 "2010-01-25T19:28:24Z")

</div>

e$B1sF#$G$9!#e(B fork e$B$N;R%W%m%;%9$+$i85%W%m%;%9$Ne(B Fiber e$B$,8F$Y$^$;$s!#e(B $ ./ruby -e ’ f = Fiber.new { } fork { f.resume } Process.waitpid ’ -e:3:in resume': fiber called across trap (FiberError) from -…

---

## [Problem with rubyscript2exe - uninitialized constant](https://www.ruby-forum.com/t/problem-with-rubyscript2exe-uninitialized-constant/182265)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/problem-with-rubyscript2exe-uninitialized-constant/182265 "2010-01-25T19:04:39Z")

</div>

hey all I just installed the rubyscript2exe gem, and tried to use it on a ruby script i just wrote called make\_xml.rb. But, i get this error: /usr/lib/ruby/1.8/rubygems/specification.rb:1038: uninitialized constant …

---

## [Resque on IronRuby 1.0RC1 (it works) - some feedback](https://www.ruby-forum.com/t/resque-on-ironruby-1-0rc1-it-works-some-feedback/182259)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/resque-on-ironruby-1-0rc1-it-works-some-feedback/182259 "2010-01-25T18:42:09Z")

</div>

Hello, some feedback from my experiments, in case that’s useful to anyone: I wanted to see if I could use IronRuby to create Resque workers, and the answer looks like yes. Resque is a nice ruby/Redis-based message q…

---

## [Plans for Kernel.fork (even a stub)?](https://www.ruby-forum.com/t/plans-for-kernel-fork-even-a-stub/182255)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 3\
**Last updated:** [January 25, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/plans-for-kernel-fork-even-a-stub/182255 "2010-01-25T18:39:48Z")

</div>

Hi, just curious as I’m going to patch an existing MRI lib around that and willing to ensure IronRuby support is baked in. What are the plans around Kernel.fork ? It looks like the method is not currently available (…

---

## [NoMethodError: undefined method \`add\_rpc\_operation' for nil:](https://www.ruby-forum.com/t/nomethoderror-undefined-method-add-rpc-operation-for-nil/182104)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 1\
**Last updated:** [January 25, 2010, 5:54pm UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-add-rpc-operation-for-nil/182104 "2010-01-25T17:54:23Z")

</div>

FYI: this is in a Sinatra app. Don’t know if that matters though. NoMethodError: undefined method add\_rpc\_operation' for nil:NilClass from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/soap/rpc…

---

## [Inner\_html = "" in hpricot](https://www.ruby-forum.com/t/inner-html-in-hpricot/182252)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 5:48pm UTC](https://www.ruby-forum.com/t/inner-html-in-hpricot/182252 "2010-01-25T17:48:29Z")

</div>

hey all I’m using hpricot 0.8.1. I’m setting the contents of some tags using the inner\_html method, and if any of the values i set happen to be empty strings, it blows up: xml.search("/data/score/composer").inner\_ht…

---

## [Ruby c extensions on windows](https://www.ruby-forum.com/t/ruby-c-extensions-on-windows/182062)

<div class="topic-metadata">

**Author:** [@Philliam\_A](https://www.ruby-forum.com/u/Philliam_A)\
**Replies:** 14\
**Last updated:** [January 25, 2010, 3:01pm UTC](https://www.ruby-forum.com/t/ruby-c-extensions-on-windows/182062 "2010-01-25T15:01:23Z")

</div>

Hey guys, I have a ruby extension I have written in c++, and I am using Windows. My code successfully compiles to a .dll, and I put it in the folder where all the other compiled extensions for ruby are (they are incl…

---

## [Class variable inside block of defining instance method](https://www.ruby-forum.com/t/class-variable-inside-block-of-defining-instance-method/182174)

<div class="topic-metadata">

**Author:** [@nginxchina](https://www.ruby-forum.com/u/nginxchina)\
**Replies:** 4\
**Last updated:** [January 25, 2010, 2:53pm UTC](https://www.ruby-forum.com/t/class-variable-inside-block-of-defining-instance-method/182174 "2010-01-25T14:53:47Z")

</div>

Hello. How do I perform something like this? It’s the @echo variable inside the block I’m talking about, how do I gain “access” to it? Sincerely, phora.

---

## [How to represent a single backslash?](https://www.ruby-forum.com/t/how-to-represent-a-single-backslash/182217)

<div class="topic-metadata">

**Author:** [@lalawawa](https://www.ruby-forum.com/u/lalawawa)\
**Replies:** 3\
**Last updated:** [January 25, 2010, 1:46pm UTC](https://www.ruby-forum.com/t/how-to-represent-a-single-backslash/182217 "2010-01-25T13:46:28Z")

</div>

How do a put a single backslash into a string in Ruby? irb(main):006:0\> ‘’ irb(main):007:0’ ’ =\> “’\\n” irb(main):008:0\> ‘\\’ =\> “\\” irb(main):009:0\> in 6, the backslash escapes the ending ', which is not what I wan…

---

## [Testing?](https://www.ruby-forum.com/t/testing/182223)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 1\
**Last updated:** [January 25, 2010, 12:35pm UTC](https://www.ruby-forum.com/t/testing/182223 "2010-01-25T12:35:02Z")

</div>

I’m beginning to think that I’m the only one not getting these… they’re showing up in the mailman archives… but I’m not seeing them. :confused:

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

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