Ivan Porto Carrero
2010-Mar-04 17:53 UTC
[Ironruby-core] FYI: Breaking changes in last push
This is for everybody''s information: If you''re hosting IronRuby in a C# application then your code is likely to break with IronRuby HEAD The RubyContext class has gone away and the RequireRubyFile extension method has been renamed. var setup = new ScriptRuntimeSetup(); setup.LanguageSetups.Add(Ruby.CreateRubySetup()); var scriptRuntime = Ruby.CreateRuntime(setup) var loadPaths = new List<string>{ "lib", "bin" }; var engine = Ruby.GetEngine(scriptRuntime); *engine.SetSearchPaths(loadPaths);* *engine.RequireFile("my_library");* This means that you can''t currently use ironrubymvc and ironnails with HEAD --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100304/51e00ea8/attachment.html>
These are intentional API changes for v1.0. Do you have any scenarios where you need to get RubyContext? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 04, 2010 9:54 AM To: ironruby-core Subject: [Ironruby-core] FYI: Breaking changes in last push This is for everybody''s information: If you''re hosting IronRuby in a C# application then your code is likely to break with IronRuby HEAD The RubyContext class has gone away and the RequireRubyFile extension method has been renamed. var setup = new ScriptRuntimeSetup(); setup.LanguageSetups.Add(Ruby.CreateRubySetup()); var scriptRuntime = Ruby.CreateRuntime(setup) var loadPaths = new List<string>{ "lib", "bin" }; var engine = Ruby.GetEngine(scriptRuntime); engine.SetSearchPaths(loadPaths); engine.RequireFile("my_library"); This means that you can''t currently use ironrubymvc and ironnails with HEAD --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100304/a96a70d2/attachment.html>
Ivan Porto Carrero
2010-Mar-04 19:03 UTC
[Ironruby-core] FYI: Breaking changes in last push
No that was just a heads up for other people. After having spent some time finding out why my markup extensions wouldn''t work anymore. I like this API better. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) Microsoft IronRuby/C# MVP On Thu, Mar 4, 2010 at 7:08 PM, Tomas Matousek <Tomas.Matousek at microsoft.com> wrote:> These are intentional API changes for v1.0. Do you have any scenarios where > you need to get RubyContext? > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Thursday, March 04, 2010 9:54 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] FYI: Breaking changes in last push > > > > This is for everybody''s information: > > > > If you''re hosting IronRuby in a C# application then your code is likely to > break with IronRuby HEAD > > > > The RubyContext class has gone away and the RequireRubyFile extension > method has been renamed. > > > > var setup = new ScriptRuntimeSetup(); > > setup.LanguageSetups.Add(Ruby.CreateRubySetup()); > > var scriptRuntime = Ruby.CreateRuntime(setup) > > var loadPaths = new List<string>{ "lib", "bin" }; > > > > var engine = Ruby.GetEngine(scriptRuntime); > > *engine.SetSearchPaths(loadPaths);* > > *engine.RequireFile("my_library");* > > > > This means that you can''t currently use ironrubymvc and ironnails with HEAD > > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Web: http://whiterabbitconsulting.eu - http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > Microsoft IronRuby/C# MVP > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100304/67d2253c/attachment-0001.html>