Forum: IronRuby SVN r169 is out

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
John L. (IRONRUBY) (Guest)
on 2008-11-04 19:55
(Received via mailing list)
rake compile is still busted due to command line overflow. Will fix this
sometime after RubyConf :)

Thanks,
-John
Ben H. (Guest)
on 2008-11-04 22:59
(Received via mailing list)
Hi John,

I thought you mentioned previously on the list that the MRI gems will
be used for the time being,  I just tried and it doesn't seem to be
picking them up.

Is there anything extra I have to do? I was hoping I would just be
able to do a require on the gem

Ben
John L. (IRONRUBY) (Guest)
on 2008-11-04 23:58
(Received via mailing list)
You can set GEM_PATH environment variable in your user profile to point
to your <mri>\lib\ruby\gems\1.8 directory. This works fine on my machine
here.

Curt just got gem install working (modulo rdoc binary regex strangeness)
here, so we're really close to gem install working.

Thanks,
-John
Ben H. (Guest)
on 2008-11-05 00:16
(Received via mailing list)
Hi John,

I feel we might be talking about different things. I've got my
GEM_PATH variable set.

C:\Program Files\Microsoft Visual Studio 9.0\VC>echo %GEM_PATH%
C:\ruby\lib\ruby\gems\1.8

When I try and access the gem, it fails - I expected this to work but
feel this is where I might have misunderstood.

E:\IronRuby\r169\build\debug>ir
>>> require 'rubygems'
=> true
>>> require 'spec'
e:\IronRuby\r169\src\IronRuby.Libraries\Builtins\kernelops.cs:400:in
`require': no such file to load -- spec (LoadError)

        from custom_require.rb:26:in `require'
        from :0


The only way I have got this to work is to set the lib path to the
spec.rb file for LibraryPaths in the ir.config.  Should this have
worked?

Thanks

Ben
Ivan P. (Guest)
on 2008-11-05 12:28
(Received via mailing list)
Hi Ben

I had trouble but you can try to write your code like this

require 'rubygems'
gem 'spec'

that should work.. that's how i have to require rails
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto C.
GSM: +32.486.787.582
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
This topic is locked and can not be replied to.