ironruby

Has anyone tried running IronRuby.Rack through Kayak?

I recently learned about kayak, an HTTP server written in C# (i.e. not through IIS). I'm wondering if anyone has tried hooking up IronRuby to run Rack through this platform? ...

IronRuby Rake and -X:PrivateBinding

I'm trying to setup a Rake script to run all my IronRuby rspec tests. The tests need to have access to internal constructors and methods. IronRuby supports this with the -X:PrivateBinding switch on ir.exe. So, for example, if my test is called some_tests.rb, the following command works: ir -X:PrivateBinding -S spec some_tests.rb Ho...

Ruby on Rails on IIS7

Due to client requirements, I need to get Ruby on Rails working on IIS7. I'd like to hear recommendations which version of Ruby to choose (IronRuby vs. Ruby) and the best approach for using IIS7 (ISAPI Rewrite, IronRuby.Rack, FastCGI). Also, what is the reliability of the above options. I've never done this on a Windows environment using...

Using IronRuby or IronPython to modify a list of C# objects

If I had a list of objects eg. List<Foo> where Foo has a couple of properties, could I then create one or more ironruby or ironpython scripts that run for each row. Here is some pseudo code: var items = new List<Foo>(); foreach(var item in items) { var pythonfunc = getPythonFunc("edititem.py"); item = pythonfunc(item); } I nee...

Would you recommend Iron Ruby, Iron Python, or PowerShell for making a C# application a script host?

After some quick tinkering, right now I'm leaning towards powershell for two main reasons (note these a purely my opinions and if they are wrong, I'd love to know!!!): 1) It's simple to create a runspace with classes in your application, and therefor easy to make your application scriptable. 2) I've heard some rumors that IronRuby and...

Making the Case for IronRuby and IronPython

I guess everyone has already heard the news about some key developers leaving the Dynamic Languages team due to what they perceive as waning support for Dynamic Languages at Microsoft. I'm quite fond of Python and try to use it often. So, by extension, I care about IronPython and would like to see it continue to evolve. I'm sure many pe...

MacRuby+IronRuby or JRuby for Desktop Applications?

For Web Applications I use Ruby on Rails. And now it's time to see if I can code Desktop Applications with Ruby. So I wonder which one I should choose. The way I see it is MacRuby+IronRuby vs JRuby. The former lets me have desktop applications for both Mac and Windows while the latter lets be have in both, but only learning one tool. ...

IronRuby, DLR, Scope inclusion

Hello, what I want to do is to introduce the AppDomain of the running Application into the loaded (Iron)Ruby script. Here is an example of what I want to achieve: using System; using Microsoft.Scripting; using Microsoft.Scripting.Hosting; using IronRuby; namespace Testing { public class MainClass { public MainClass() ...

How does one embed IIRB inside of a IronRuby program?

In Ruby main, you can embed IRB inside of a Ruby script as described here. Is there a way to do something similar with IIRB inside an IronRuby script? ...

Does IronRuby have an issue with each_for_index?

I'm working on some stuff in IronRuby, but I've run into a bit of a snag. This chunk of code: def func b = @b b.each_with_index do |element, index| <some stuff in here> end end gives the following error: ./myfile.rb:<line number>:in 'func': wrong number of arguments (0 for 1) (ArgumentError) from IronRuby.Lib...

IronRuby vs. regular Ruby, to develop Rails apps on Windows

For non-Rails work, regular Ruby works fine on my Windows 7 machine. But I'm about to start some Rails work that will use SQL Server as a database, and trying to get Rails set up has been a total pain so far. (I still can't get sqlite3 or SQL Server to work correctly with Rails yet.) So I'm wondering: will using IronRuby (which I haven...

Cucumber parse speed

We have been using Cucumber for some time now, and now have over 200 scenarios. Our startup speed is getting very slow, which makes a big difference in our edit-test-commit cycle. The problem seems to be the parsing of the feature files. Is there a way we can speed this up? NOTE: We are using IronRuby, which has a known slow startup tim...

NoMethod Error IronRuby clean install

Hi All, Just following these instructions to install IronRuby and rake to get .Net builds http://www.tobinharris.com/past/2009/8/17/automating-net-development-and-nhibernate-with-ironruby-rake/ All looks good, add the location of ir.exe to the windows path variables and it finds it fine. However when i do this igem install rake i...

DLR Scripting within Silverlight 4 Application

I would like to add some scripting support to a Silverlight 4 application that I'm working on. I have the latest stable releases of both IronRuby and IronPython installed on my machine with Visual Studio 2010. I looked at some samples of using the ScriptEngine class with both IronRuby and IronPython. I even got it to work in a small Wind...

How to redirect the input of ironruby to a textbox (WinForms & Silverlight 4)

Hi, I'm building an IronRuby Console in silverlight 4 and WinForms (net4). I can redirect the output without problems: MyRuntime = Ruby.CreateRuntime(); msOutput = new MemoryStream(); MyRuntime.IO.SetOutput(msOutput, Encoding.UTF8); MyEngine = MyRuntime.GetEngine("rb"); MySource = MyEngine.CreateScriptSourceFromString("a='123'\nputs a...

Does Watir work with Ironruby(or .Net in any other way)?

So I've been trying to get Watir setup with Ironruby so I can use Watir instead of Watin(I just dont like Watin that much), the only issue is I cant seem to get it working, and searches bring me to some conflicting info. Some say it wont work, others say use igem. Right now I'm running VS 2008(3.5), and Ironruby 1.0. Every time I run ...

IronRuby doesn't recognize 'rake' - I'm getting undefined method `rake' for main:Object, how to fix?

Hi All, Just installed IronRuby 1.1. I'm trying to take a look at rake and albacore. After installing ironruby, I am able to hit a command prompt by typing ir, and I am able to do simple puts, but when I try to run rake, I get the error undefined method `rake' for main:Object How do I resolve this? Any ideas? Thanks, ~ck in San D...

Differences between powershell and ruby

I am new to the dynamic languages scene, and trying to find a good starting point. Looking at how Microsoft is diminishing the role of Iron Ruby in its offerings, I am looking around for a dynamic programming language that will be supported on dotNET platform. Could you list specific features that are found in one but not the other, to...

How to compile IronRuby into a Silverlight Application (XAP) ??

I'm looking to possibly use IronRuby as the primary language for development of a Silverlight 4 application. I know there's the "IronRuby in the Browser" stuff that uses Gestalt, but I would like to build a standard Silverlight Applicatin using IronRuby and XAML that gets compiled into a XAP file, just like you can in C#. Anyone know if...

Install HAML on IronRuby

Hi, installing Ruby standard libraries was just a matter of downloading them and setting library paths. ERB works fine. But now I like to give HAML (and SASS) a try. However I dont know how, cannot find a clean install? How can I install HAML on my IronRuby-setup? Thanks! ...