Archive for the ‘IronRuby’ Category
  • Adding a console to your IronRuby application
    by Ivan Porto Carrero
    Posted December 1st, 2009 at 11:00 am
    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 ...
  • Creating launcher scripts for IronRuby
    by Ivan Porto Carrero
    Posted October 26th, 2009 at 2:16 pm
    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
    by Ivan Porto Carrero
    Posted July 2nd, 2009 at 2:45 pm
    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
    by Ivan Porto Carrero
    Posted June 9th, 2009 at 11:45 pm
    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
    by Ivan Porto Carrero
    Posted May 21st, 2009 at 2:52 pm
    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
    by Ivan Porto Carrero
    Posted May 19th, 2009 at 3:06 pm
    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
    by Ivan Porto Carrero
    Posted May 15th, 2009 at 11:34 pm
    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
    by Ivan Porto Carrero
    Posted May 14th, 2009 at 11:31 pm
    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...
  • Mocking for IronRuby
    by Ivan Porto Carrero
    Posted May 3rd, 2009 at 2:10 pm
    As you may or may not know I’m in the process of building IronRubyMvc. At one point I did write a bunch of tests in for the code I had at that point. However that test code was written in C# with xunit and moq.  I wasn’t too happy about that so I deferred writing tests to a later date when I could use a Ruby library to write them. That time has come, I can use bacon and it’s acceptable performance wise now, not stellar but workable. So when I started to port some of my previously wri...
  • Using IronRuby with RubyMine
    by Ivan Porto Carrero
    Posted May 2nd, 2009 at 2:50 pm
    RubyMine was released earlier this week. I’ve used rubymine in the past and was very impressed with the IDE, so much that I’m silently hoping the guys from Jetbrains would do a C# IDE too. I’d probably buy that one as well, but for now I’ll settle for Resharper with Visual studio. By default Rubymine won’t accept IronRuby as a ruby SDK, but I asked for help in the twitterverse and got it (http://twitter.com/iRomeo/statuses/1677867948). Just symlinking didn’t really work bec...
Page 1 of 41234
Around The Site
Categories
Archives
Tags