# FYI: Breaking changes in last push

**URL:** <https://www.ruby-forum.com/t/fyi-breaking-changes-in-last-push/184572>\
**Category:** IronRuby\
**Created:** [March 4, 2010, 6:54pm UTC](https://www.ruby-forum.com/t/fyi-breaking-changes-in-last-push/184572 "2010-03-04T18:54:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xjivan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/6f9a4e/32.png) [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Post date:** [March 4, 2010, 6:54pm UTC](https://www.ruby-forum.com/t/fyi-breaking-changes-in-last-push/184572/1 "2010-03-04T18:54:51Z")

</div>

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{ “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 C.  
Web: [http://whiterabbitconsulting.eu](http://whiterabbitconsulting.eu) - [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))  
Microsoft IronRuby/C# MVP

---

<div class="post-metadata">

**Author:** ![xjivan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/6f9a4e/32.png) [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Post date:** [March 4, 2010, 7:37pm UTC](https://www.ruby-forum.com/t/fyi-breaking-changes-in-last-push/184572/2 "2010-03-04T19:37:34Z")

</div>

These are intentional API changes for v1.0. Do you have any scenarios  
where you need to get RubyContext?

Tomas

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] 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{ “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 C.  
Web: [http://whiterabbitconsulting.eu](http://whiterabbitconsulting.eu) - [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))  
Microsoft IronRuby/C# MVP

---

<div class="post-metadata">

**Author:** ![xjivan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/6f9a4e/32.png) [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Post date:** [March 4, 2010, 8:13pm UTC](https://www.ruby-forum.com/t/fyi-breaking-changes-in-last-push/184572/3 "2010-03-04T20:13:52Z")

</div>

## 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 C.  
Web: [http://whiterabbitconsulting.eu](http://whiterabbitconsulting.eu) - [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))  
Microsoft IronRuby/C# MVP

On Thu, Mar 4, 2010 at 7:08 PM, Tomas M.  
\<[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
