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.
A120eb09d383829bfa210bf656fcde4e?d=identicon&s=25 John Lam (IRONRUBY) (Guest)
on 2008-11-04 18:55
(Received via mailing list)
rake compile is still busted due to command line overflow. Will fix this
sometime after RubyConf :)

Thanks,
-John
D4ced0fe3718f187173fc05dd7f33f57?d=identicon&s=25 Ben Hall (Guest)
on 2008-11-04 21: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
A120eb09d383829bfa210bf656fcde4e?d=identicon&s=25 John Lam (IRONRUBY) (Guest)
on 2008-11-04 22: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
D4ced0fe3718f187173fc05dd7f33f57?d=identicon&s=25 Ben Hall (Guest)
on 2008-11-04 23: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
1e39a948a58f4569c53d971c2e120920?d=identicon&s=25 Ivan Porto carrero (casualjim)
on 2008-11-05 11: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 Carrero
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.