# Gems and Rails use cases

**URL:** <https://www.ruby-forum.com/t/gems-and-rails-use-cases/138148>\
**Category:** IronRuby\
**Created:** [May 20, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/gems-and-rails-use-cases/138148 "2008-05-20T16:41:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayne\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Post date:** [May 20, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/gems-and-rails-use-cases/138148/1 "2008-05-20T16:41:16Z")

</div>

Now that most of the files required by rails are loading successfully,  
I’m now trying to actually run a number of gems/rails use cases:

ir.exe c:\rubygems-1.1.1\setup.rb  
ir.exe c:\ruby\bin\gem -h  
ir.exe c:\ruby\bin\gem -list  
ir.exe c:\ruby\bin\gem install rails  
ir.exe c:\ruby\bin\rails -h  
ir.exe c:\ruby\bin\rails my\_rails\_app  
ir.exe c:\my\_rails\_app\script\server  
ir.exe c:\my\_rails\_app\public\dispatch.cgi

I installed the MRI windows one click installer and replaced the  
i386-mswin32 directory with an ironruby directory that contains stubs  
for:  
thread.so, etc.so, socket.so, stringio.so, syck.so, zlib.so, digest.so,  
digest/sha2.so, openssl.so, enumerator.so, bigdecimal.so, nkf.so,  
strscan.so

The following lists the problems that I encountered (and in some cases  
worked around) for these use cases:

gems setup.rb:

- Mutex class not declared (from Thread.so)
- gsub $n bug [bug #20137]
- Hash modified during iteration [bug #20198]
- require infinite loop [bug #20131]
- Time::gmt\_offset not implemented [patch #20175]
- Dir.glob unexpected character [bug #19843]
- define\_method overload missing [bug #20119?]
- Mutex::synchronize method not implemented
- File::stat, lstat & unlink methods not implemented [bug #20252]

gem -h:  
gem list:  
gem install rails:

- Interrupt class not declared
- Regexp.new(string, string) method not implemented
- YAML::Syck::Resolver class not declared
- YAML::Syck::DefaultResolver constant not defined
- YAML::Syck::Resolver::use\_types\_at method not implemented
- YAML::Syck:GenericResolver constant not defined
- YAML::Syck:Parser class not declared
- YAML::Syck:Emitter class not declared
- Digest::SHA256 not defined
- Module::define\_method(:symbol) { block} overload not implemented

rails generate myapp:

- ResolveSourceUnit load source with no extension [bug #20206]
- Signal.trap method not implemented

rails runtime (webrick):  
rails runtime (dispatch.cgi):

- ENV::each method not implemented
- Regexp unrecognized escape sequence \_ [bug #20205]
- File::SEPARATOR = ‘/’ rather than ‘’ ???
- Module::method\_added method not implemented
- Thread::critical= method not implemented
- NKF class not implemented (from nkf.so)
- send attr\_accessor [bug #20242]

---

<div class="post-metadata">

**Author:** ![Wayne\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Post date:** [May 20, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/gems-and-rails-use-cases/138148/2 "2008-05-20T17:05:38Z")

</div>

Wayne,

How are you going about creating the list of problems as you try and  
load  
things? Are you just using trial and error or are you using something  
else  
to uncover the missing pieces?

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![Wayne\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Post date:** [May 21, 2008, 8:45am UTC](https://www.ruby-forum.com/t/gems-and-rails-use-cases/138148/3 "2008-05-21T08:45:22Z")

</div>

I was using an automation script to generate the tally of different  
types of known errors back when I was attempting to load the 100s of  
different ruby source files required by rails. Now, I’m pretty much just  
running the different use cases and seeing where it crashes.

Cheers, Wayne.

* * *

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Steve E.  
Sent: Wednesday, 21 May 2008 1:04 AM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] Gems and Rails use cases

Wayne,

How are you going about creating the list of problems as you try and  
load things? Are you just using trial and error or are you using  
something else to uncover the missing pieces?

Thanks,  
Steve

On Tue, May 20, 2008 at 10:40 AM, Wayne K.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
Now that most of the files required by rails are loading successfully,  
I’m now trying to actually run a number of gems/rails use cases:

ir.exe c:\rubygems-1.1.1\setup.rb  
ir.exe c:\ruby\bin\gem -h  
ir.exe c:\ruby\bin\gem -list  
ir.exe c:\ruby\bin\gem install rails  
ir.exe c:\ruby\bin\rails -h  
ir.exe c:\ruby\bin\rails my\_rails\_app  
ir.exe c:\my\_rails\_app\script\server  
ir.exe c:\my\_rails\_app\public\dispatch.cgi

I installed the MRI windows one click installer and replaced the  
i386-mswin32 directory with an ironruby directory that contains stubs  
for:  
thread.so, etc.so, socket.so, stringio.so, syck.so, zlib.so, digest.so,  
digest/sha2.so, openssl.so, enumerator.so, bigdecimal.so, nkf.so,  
strscan.so

The following lists the problems that I encountered (and in some cases  
worked around) for these use cases:

gems setup.rb:

- Mutex class not declared (from Thread.so)
- gsub $n bug [bug #20137]
- Hash modified during iteration [bug #20198]
- require infinite loop [bug #20131]
- Time::gmt\_offset not implemented [patch #20175]
- Dir.glob unexpected character [bug #19843]
- define\_method overload missing [bug #20119?]
- Mutex::synchronize method not implemented
- File::stat, lstat & unlink methods not implemented [bug #20252]

gem -h:  
gem list:  
gem install rails:

- Interrupt class not declared
- Regexp.new(string, string) method not implemented
- YAML::Syck::Resolver class not declared
- YAML::Syck::DefaultResolver constant not defined
- YAML::Syck::Resolver::use\_types\_at method not implemented
- YAML::Syck:GenericResolver constant not defined
- YAML::Syck:Parser class not declared
- YAML::Syck:Emitter class not declared
- Digest::SHA256 not defined
- Module::define\_method(:symbol) { block} overload not implemented

rails generate myapp:

- ResolveSourceUnit load source with no extension [bug #20206]
- Signal.trap method not implemented

rails runtime (webrick):  
rails runtime (dispatch.cgi):

- ENV::each method not implemented
- Regexp unrecognized escape sequence \_ [bug #20205]
- File::SEPARATOR = ‘/’ rather than '' ???
- Module::method\_added method not implemented
- Thread::critical= method not implemented
- NKF class not implemented (from nkf.so)
- send attr\_accessor [bug #20242]
