# Ruby

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

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

---

## [Dynamic object creation in ruby](https://www.ruby-forum.com/t/dynamic-object-creation-in-ruby/164165)

<div class="topic-metadata">

**Author:** [@clashfan](https://www.ruby-forum.com/u/clashfan)\
**Replies:** 6\
**Last updated:** [March 29, 2009, 5:55pm UTC](https://www.ruby-forum.com/t/dynamic-object-creation-in-ruby/164165 "2009-03-29T17:55:54Z")

</div>

I’m trying to do dynamic object creation in ruby. This works: john = eval(“Master::Person”).new(“John”) This fails: frank = Object.const\_get(“Master::Person”).new(“Frank”) Does anyone know why the second way fails?

---

## [Ruby1.9 - to make it real](https://www.ruby-forum.com/t/ruby1-9-to-make-it-real/164175)

<div class="topic-metadata">

**Author:** [@chasconquest](https://www.ruby-forum.com/u/chasconquest)\
**Replies:** 6\
**Last updated:** [March 29, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/ruby1-9-to-make-it-real/164175 "2009-03-29T17:52:23Z")

</div>

HI, How make ruby1.9 the default? (but don’t want to eliminate 1.8.6 yet) MacPorts installed ruby1.9 here …/opt/local/bin/ruby1.9 Default OS X Leopard ruby (1.8.6) is found here… /usr/bin/ruby Do I just rename the st…

---

## [Where to declare project path for require](https://www.ruby-forum.com/t/where-to-declare-project-path-for-require/164126)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 4\
**Last updated:** [March 29, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/where-to-declare-project-path-for-require/164126 "2009-03-29T14:26:04Z")

</div>

Untill now whenever i made a script Id put all its files into a directory along with any test files. When it came to requiring my own files I could just do require “filename” as they were all in the same place. Now i…

---

## [BiteScript 0.0.1 - a DSL for JVM bytecode](https://www.ruby-forum.com/t/bitescript-0-0-1-a-dsl-for-jvm-bytecode/164154)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 5\
**Last updated:** [March 29, 2009, 1:24pm UTC](https://www.ruby-forum.com/t/bitescript-0-0-1-a-dsl-for-jvm-bytecode/164154 "2009-03-29T13:24:27Z")

</div>

BiteScript is a Ruby DSL for generating JVM bytecode and classes. It is used by the Duby programming language and by the upcoming “compiler2” Ruby-to-Java compiler in JRuby. Project page: http://kenai.com/projects/jvm…

---

## [Reopening class in module : jruby and MRI differ](https://www.ruby-forum.com/t/reopening-class-in-module-jruby-and-mri-differ/164162)

<div class="topic-metadata">

**Author:** [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Replies:** 1\
**Last updated:** [March 29, 2009, 8:40am UTC](https://www.ruby-forum.com/t/reopening-class-in-module-jruby-and-mri-differ/164162 "2009-03-29T08:40:35Z")

</div>

Consider the following example : module MyModule class MyClass private def my\_method puts “A” end end end include MyModule class MyClass public :my\_method end MyClass.new.my\_method This works both in ruby-1…

---

## [Tagz-5.0.0 -- processing instruction support](https://www.ruby-forum.com/t/tagz-5-0-0-processing-instruction-support/164089)

<div class="topic-metadata">

**Author:** [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Replies:** 1\
**Last updated:** [March 29, 2009, 1:27am UTC](https://www.ruby-forum.com/t/tagz-5-0-0-processing-instruction-support/164089 "2009-03-29T01:27:03Z")

</div>

Hi Ara, I’m sure you’re sick of me by now, but I’ve added processing instruction support to tagz. It may not suit your style, but I’ve tried to keep it in the spirit of the library. excalibur$ diff -u /var/lib/gems…

---

## [Poll: what documentation method do you use?](https://www.ruby-forum.com/t/poll-what-documentation-method-do-you-use/162712)

<div class="topic-metadata">

**Author:** [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Replies:** 4\
**Last updated:** [March 29, 2009, 12:10am UTC](https://www.ruby-forum.com/t/poll-what-documentation-method-do-you-use/162712 "2009-03-29T00:10:46Z")

</div>

ri source code rbbr the net/google irc and ask malining list and ask none of the above – John M. 07739 171 531 MSc (DIC) Timezone: GMT

---

## [Problems with Rubygems](https://www.ruby-forum.com/t/problems-with-rubygems/128723)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 5\
**Last updated:** [March 28, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/problems-with-rubygems/128723 "2009-03-28T23:29:05Z")

</div>

Hi, I am facing some issues with Rubygems on my ubuntu gutsy machine, where Ruby 1.8.6 p111 is compiled and installed with: ./configure --prefix=/usr/local ruby executable is not symlinked and I have /usr/local/bin i…

---

## [ANN: Hirb - Irb on the good stuff](https://www.ruby-forum.com/t/ann-hirb-irb-on-the-good-stuff/163407)

<div class="topic-metadata">

**Author:** [@ghorner](https://www.ruby-forum.com/u/ghorner)\
**Replies:** 2\
**Last updated:** [March 28, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/ann-hirb-irb-on-the-good-stuff/163407 "2009-03-28T23:23:36Z")

</div>

Hi, I’m announcing Hirb, a mini view framework for console applications, designed with irb in mind. It allows you to create table views, tree views: Numeric |-- Float |-- Integer | |-- Bignum | -- Fixnum |…

---

## [Code Review: DefaultBinderRefactoring2](https://www.ruby-forum.com/t/code-review-defaultbinderrefactoring2/164150)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [March 28, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/code-review-defaultbinderrefactoring2/164150 "2009-03-28T19:47:58Z")

</div>

tfpt review “/shelveset:DefaultBinderRefactoring2;REDMOND\\tomat” Outer DLR, Python: Refactors default method call binder: Moves SiteLocalStorage to Python. Ruby uses a different storage class and it’s very simple fo…

---

## [Ffi-0.3.2 # Fails to build native extensions](https://www.ruby-forum.com/t/ffi-0-3-2-fails-to-build-native-extensions/164136)

<div class="topic-metadata">

**Author:** [@vtypal](https://www.ruby-forum.com/u/vtypal)\
**Replies:** 1\
**Last updated:** [March 28, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/ffi-0-3-2-fails-to-build-native-extensions/164136 "2009-03-28T17:43:23Z")

</div>

I’m trying to install the latest version of ffi (0.3.2)as a gem, on a FreeBSD-7.1 machine, running Ruby-1.8.7, rubygems-1.3.1 and gmake-3.81\_3, but it fails to build the native extensions. Some suggestion please? You …

---

## [Mysql gem fails to install using Ruby 1.9.1](https://www.ruby-forum.com/t/mysql-gem-fails-to-install-using-ruby-1-9-1/164123)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 2\
**Last updated:** [March 28, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/mysql-gem-fails-to-install-using-ruby-1-9-1/164123 "2009-03-28T17:34:53Z")

</div>

I can’t get the MySQL gem to install using Ruby 1.9.1. gem install mysql – --with-mysql-config=/usr/bin/mysql\_config Building native extensions. This could take a while… ERROR: Error installing mysql: ERROR: Faile…

---

## [No such file to load](https://www.ruby-forum.com/t/no-such-file-to-load/163807)

<div class="topic-metadata">

**Author:** [@dudus](https://www.ruby-forum.com/u/dudus)\
**Replies:** 4\
**Last updated:** [March 28, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load/163807 "2009-03-28T15:11:56Z")

</div>

Hi, I cannot get my ruby application to run :frowning: … This is what’s appening when I run rake db:migrate: macminicasa:kshema910 macmini$ rake db:migrate (in /Users/macmini/.Trash/kshema910) rake aborted! no such…

---

## [Howto gem thru a proxy](https://www.ruby-forum.com/t/howto-gem-thru-a-proxy/85551)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 28, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/howto-gem-thru-a-proxy/85551 "2009-03-28T15:02:29Z")

</div>

high my problem was the following: H:\>gem search bla --remote \*\*\* REMOTE GEMS \*\*\* ERROR: While executing gem … (Errno::EBADF) Bad file descriptor - connect(2) a long time i could not figure out, why this happens -…

---

## [Monitoring folder for changes](https://www.ruby-forum.com/t/monitoring-folder-for-changes/164110)

<div class="topic-metadata">

**Author:** [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Replies:** 3\
**Last updated:** [March 28, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/monitoring-folder-for-changes/164110 "2009-03-28T14:26:51Z")

</div>

Is there any gem or code example that would help me to watch a given folder for changes and trigger a callback upon change detection? Thanks! – Felipe

---

## [Sorting decimal index numbers?](https://www.ruby-forum.com/t/sorting-decimal-index-numbers/164116)

<div class="topic-metadata">

**Author:** [@aaronvb](https://www.ruby-forum.com/u/aaronvb)\
**Replies:** 9\
**Last updated:** [March 28, 2009, 1:06pm UTC](https://www.ruby-forum.com/t/sorting-decimal-index-numbers/164116 "2009-03-28T13:06:01Z")

</div>

Hi there, I’m working with a list of items that contain decimal-based index numbers. I’m sorry I don’t know the term for these kinds of numbers, and I’m having trouble finding out how to sort them properly. To wit: 1…

---

## [Regular Expression interesting problem](https://www.ruby-forum.com/t/regular-expression-interesting-problem/164133)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 0\
**Last updated:** [March 28, 2009, 10:47am UTC](https://www.ruby-forum.com/t/regular-expression-interesting-problem/164133 "2009-03-28T10:47:25Z")

</div>

Hi, At present I’m learning about regular expressions in order to do an html scraping assignment. Everything worked fine until I met with a problem. Given below are two different html tags Now what i want is to cap…

---

## [Onion 0.0.1 Released](https://www.ruby-forum.com/t/onion-0-0-1-released/164131)

<div class="topic-metadata">

**Author:** [@backorder](https://www.ruby-forum.com/u/backorder)\
**Replies:** 0\
**Last updated:** [March 28, 2009, 10:13am UTC](https://www.ruby-forum.com/t/onion-0-0-1-released/164131 "2009-03-28T10:13:50Z")

</div>

Onion 0.0.1 has been released. gem install Onion Homepage: http://rubyforge.org/projects/onion/ Blog{Ruby, Onion, etc…}: http://mecenia.blogspot.com/ Onion, or Array Onion, allows peeling an array like an onion. It s…

---

## [Https html parsing](https://www.ruby-forum.com/t/https-html-parsing/163930)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 5\
**Last updated:** [March 28, 2009, 5:38am UTC](https://www.ruby-forum.com/t/https-html-parsing/163930 "2009-03-28T05:38:36Z")

</div>

Hi, Can anybody please give me the details of how to parse html from a ‘https’ site using ‘net/http’. I came to learn that we can use basic authentication techniques to do that. But I want to know whether there is a …

---

## [GSoC applications open today](https://www.ruby-forum.com/t/gsoc-applications-open-today/163679)

<div class="topic-metadata">

**Author:** [@jeremy\_k](https://www.ruby-forum.com/u/jeremy_k)\
**Replies:** 1\
**Last updated:** [March 28, 2009, 1:20am UTC](https://www.ruby-forum.com/t/gsoc-applications-open-today/163679 "2009-03-28T01:20:06Z")

</div>

Google Summer of Code student applications start today! College students: follow your open source passion this summer and let Google foot the bill. Google Summer of Code (GSoC) is a global program that offers student …

---

## [Wisconsin real estate - The #1 Choice](https://www.ruby-forum.com/t/wisconsin-real-estate-the-1-choice/164109)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 28, 2009, 12:40am UTC](https://www.ruby-forum.com/t/wisconsin-real-estate-the-1-choice/164109 "2009-03-28T00:40:54Z")

</div>

wisconsin real estate . . . ENTER HERE: http://azsearch.cn/?f=wisconsin+real+estate \<\<\< . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . …

---

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

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 14\
**Last updated:** [March 28, 2009, 12:20am UTC](https://www.ruby-forum.com/t/problem-installing-gem/97149 "2009-03-28T00:20:57Z")

</div>

Hi, first post here, hope it’s the right forum. I recently tried to install RoR on two systems, both RedHat9, very similar configurations, although the one is a server (hence remote installation) the other a desktop. …

---

## [How to correctly require my own DLL in ruby 1.9.1?](https://www.ruby-forum.com/t/how-to-correctly-require-my-own-dll-in-ruby-1-9-1/164048)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 2\
**Last updated:** [March 27, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/how-to-correctly-require-my-own-dll-in-ruby-1-9-1/164048 "2009-03-27T23:35:55Z")

</div>

I made a example.dll by using SWIG with Visual C++ Express 2008 Edition base on the ruby 1.9.1 p0 binary downloaded from Ruby website. However, when I run require ‘example’ in my ruby codes, it always complain followi…

---

## [I just can't get rubygems to work. Can anyone help?](https://www.ruby-forum.com/t/i-just-cant-get-rubygems-to-work-can-anyone-help/164084)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 4\
**Last updated:** [March 27, 2009, 11:11pm UTC](https://www.ruby-forum.com/t/i-just-cant-get-rubygems-to-work-can-anyone-help/164084 "2009-03-27T23:11:53Z")

</div>

My problems started with a wxruby gem, but the whole gem system on my mac is now one big cluster#$#$!. rubygems .9x was giving me problems–I have a pre-installed ruby 1.8.2 on my mac–so I tried to upgrade to rubygems…

---

## [Code Review: Various .NET interop tests](https://www.ruby-forum.com/t/code-review-various-net-interop-tests/164092)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 4\
**Last updated:** [March 27, 2009, 10:56pm UTC](https://www.ruby-forum.com/t/code-review-various-net-interop-tests/164092 "2009-03-27T22:56:42Z")

</div>

This is one of the weak areas for our Git setup. I have multiple commits that need review. I honestly feel that Git needs the concept of a push object, so I could say look at this, or these pushes. So, options to help…

---

## [Code Review: gitpull2](https://www.ruby-forum.com/t/code-review-gitpull2/164105)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 10:31pm UTC](https://www.ruby-forum.com/t/code-review-gitpull2/164105 "2009-03-27T22:31:33Z")

</div>

FYI code review. Already reviewed by Jimmy tfpt review “/shelveset:gitpull2;REDMOND\\jdeville” Comment : modify .gitignore to ignore Bin in addition to bin Adds ClrAssembly to Ruby.sln add dlr\_conf…

---

## [Review: Marshal bug](https://www.ruby-forum.com/t/review-marshal-bug/164030)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 2\
**Last updated:** [March 27, 2009, 10:27pm UTC](https://www.ruby-forum.com/t/review-marshal-bug/164030 "2009-03-27T22:27:27Z")

</div>

---

## [Expand\_path & Rspec](https://www.ruby-forum.com/t/expand-path-rspec/164074)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 5\
**Last updated:** [March 27, 2009, 8:58pm UTC](https://www.ruby-forum.com/t/expand-path-rspec/164074 "2009-03-27T20:58:49Z")

</div>

Hi, I getting the expand path problem when trying to run some rspec examples. Ben H. mentioned it before. Expand\_Path - Errors when path contains line number - IronRuby - Ruby-Forum I have a spec: require File.dirna…

---

## [Restrict Platform for RubyGem Update](https://www.ruby-forum.com/t/restrict-platform-for-rubygem-update/164041)

<div class="topic-metadata">

**Author:** [@lf-blazed](https://www.ruby-forum.com/u/lf-blazed)\
**Replies:** 3\
**Last updated:** [March 27, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/restrict-platform-for-rubygem-update/164041 "2009-03-27T19:58:25Z")

</div>

I am working on a windows box attempting to develop a rails application. Is there a way to ensure “gem update” or “gem install x” will not try to download and compile native ruby gems ? Thank you for the information! …

---

## [Tagz-5.0.0](https://www.ruby-forum.com/t/tagz-5-0-0/163706)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 43\
**Last updated:** [March 27, 2009, 7:43pm UTC](https://www.ruby-forum.com/t/tagz-5-0-0/163706 "2009-03-27T19:43:43Z")

</div>

NAME tagz.rb SYNOPSIS require Tagz include Tagz.globally a\_(:href =\> “/foo”){ “bar” } #=\> bar DESCRIPTION tagz.rb is generates html, xml, or any sgml variant like a small ninja running across the backs of a he…

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

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