“The extension method RequireFile for ruby does that respect when I
would redefine the require statement to keep track of classes contained
in a file and reload them on each request when compiled in debug mode?â€
No, there is no dynamic invocation of “require†method going on. If you
need to call “require†you can use Engine.Operations.InvokeMember(nil,
“requireâ€, fileName);
Tomas
From: [email protected]
[mailto:[email protected]] On Behalf Of Ivan Porto
Carrero
Sent: Tuesday, October 13, 2009 4:37 AM
To: [email protected]
Subject: Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1
I’ve updated the ironruby libraries to what’s in github currently.
I pulled in your changes Immo but when i compiled the app I couldn’t
serve any pages up it complained about not being able to find the
correct IronRuby yada yada.
Anyway the fix I had in mind was removing 1 line of code and reloading
works again. The thing is that now if you update a controller file you
need to restart the web application.
Does windows have an equivalent of touch ? because doing that could be
as easy as touch web.config
otherwise I use the following cheat I add a space in web.config so it
hashes differently and save the web.config file.
Thanks for fixing the tests
I’ll see if I can cherry-pick your
changes later.
The extension method RequireFile for ruby does that respect when I would
redefine the require statement to keep track of classes contained in a
file and reload them on each request when compiled in debug mode?
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto C.
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
On Mon, Oct 12, 2009 at 2:09 AM, Immo Wache
<[email protected]mailto:[email protected]> wrote:
Hi Ivan,
be imressed about your prompt reply. Good to read you can reproduce the
issue.
To be honest, I fiddeled around with the code some nights now, so I
don’t expect a solution from today to now. Meanwhile I learned (Almost
Everything I never ever wanted to know) about Ruby, and it seams now to
me that Ruby really dislike the idea to remove something which is global
defined before.
Meanwhile I’m listen to silly Ruby Ruby Ruby Ruby ... ahhahahahahahaaaaaaaaaaaaaa - YouTube
to keep up my mood and try to get the old deactivated project
IronRubyMvcLibrary.Tests from your master running.
Wish you all best success for a solution,
Immo
Ivan Porto carrero wrote:
oic… yes that is my fault
I have to change the way I deal with requiring files and clearing out
old
classes.
I’ll go for a load strategy instead of removing them from the Globals
collection, but won’t be today though.
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto C.
–
Posted via http://www.ruby-forum.com/.
Ironruby-core mailing list
[email protected]mailto:[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core