Video of FOSDEM IronRuby presentation
At FOSDEM 2010 I got the chance to talk in the mono dev room about ironruby.
In this talk I extended the banshee application to work with IronRuby based plugins.
So without further ado here's the link:
IronRuby: The .NET and Ruby love child
...
Adding a console to your IronRuby application
When building an application it might be very handy to have a REPL console that knows about the libraries of your application, but you don’t necessarily want to start your application to interact with it. In Rails they have a script/console command. Here’s how you create one that knows about ironruby. The example I’m going to use is taken from an IronRubyMVC application. I started out by creating a folder script. Then I created a file called console (on a unix system I would ...
A good url regular expression? (repost)
I'm moving this post from http://geekswithblogs.net/casualjim/archive/2005/12/01/61722.aspx
I started out blogging on geeks with blogs but I can't allow comments there anymore or I get too much spam, so I'm moving the post from there to this place. Various people have contributed through the comments in the other blog post. So here I have better control over the spam and can open the comments again.
I have been looking for a good first layer of validating an url to see if it is valid.
...
Creating launcher scripts for IronRuby
It’s been a while since I blogged, I’ve been terribly busy going through some changes and prepping the book. Anyway lately a lot of blog posts have been written on how to ironruby with cucumber to test your .NET code. While I think it’s great people are using ironruby and cucumber, the guide you can find on aslak’s github wiki isn’t the most ideal solution as it will only work for windows and it requires MRI to be installed on your system. So I thought I’d write up how I...
A rant on a talk falling to pieces
Earlier this week I had the pleasure of doing a talk for the Belgian .NET user group. During this talk I ran in to all kinds of problems. I've done presentations where I was royally underprepared and to avoid that this time I actually started prepping for this talk on time. I was done on time, was prepared had 5 backups of my presentation and samples. What did I learn from this, if you're prepared other things will go wrong. I'll share the story of stuff that can go wrong. Before star...
Very simple IronRuby MVC sample application
Over the weekend I wrote a very simple task list application with IronRuby MVC and LightSpeed as an OR/M. And I’ve just put a demo live. This demo is running on a windows 2008 vps with IIS 7 as webserver. The source of this sample is also available. (more...)...
Getting started with Caricature and IronRuby
IronRuby 0.5 was released yesterday. You can download it on codeplex. This post will explain how you setup your ironruby environment to use it for testing existing CLR based assemblies. We’ll touch installing gems using rake and most importantly writing a test for a CLR based class where we’ll mock out the dependencies. (more...)...
Caricature ready for beta
The last couple of days I’ve been getting Caricature to a more releasable state. The code got a thorough cleanup and refactor. Caricature now knows how to be a full mocking framework for Ruby classes and CLR classes that only interact with ruby objects. When I apply the 80/20 rule to caricature it’s definitely beta worthy. (more...)...
An update on caricature
Yesterday I explained about caricature but I didn’t have it fully tested yet. Today I’ve written a bunch of integration specs for all the platform combinations Caricature currently supports so you should be able to use Caricature also for plain ruby object mocking in addition to CLR interop mocking. After having a very brief twitter discussion with Scott I decided it would be a good idea to change the name of the methods when\_told\_to and was\_told\_to? . In ruby objects receive messages s...
IronRuby just got a mocking framework – kind of
As I mentioned in a previous post. I started working on a small mocking framework. It has now progressed far enough to handle the most common mocking tasks. Below I pasted the output of the integration tests for CLR interop. when isolating CLR interfaces - should work without expectations - should work with an expectation with any arguments - should work with an expectation getting different method call result - should work for an assertion on a specific argumen...