Posts Tagged ‘ruby’

Iron Languages Podcast – Episode I: We Have Lift-off

Posted in .NET, ironruby, podcast, ruby on June 24th, 2010 by Will – Comments Off

Mike Hall and I have finally gotten together and recorded our first episode of The Iron Languages Podcast.

In this episode, we chat about the Dynamic Language Runtime (DLR) and IronRuby in particular.

Some links related to topics we discussed:

Please let us know what you think, how we can improve and what you’d like to hear about. We hope you enjoy the podcast!

IronRuby: `gem update –system`

Posted in gems, ironruby, ruby on May 18th, 2010 by Will – Comments Off

After reading this article on getting around the invalid exec_format “ir”, no %s issue when trying to update RubyGems in IronRuby, I came up with a better solution (rather than essentially swallowing the exception) to the problem. Stick the following file in: %IronRubyInstallDir%\lib\ruby\site_ruby\1.8\rubygems\defaults\ironruby.rb

1
2
3
4
5
6
7
8
9
10
11
12
module Gem
  def self.default_exec_format
    exec_format = ConfigMap[:ruby_install_name].sub('ir', '%s') rescue '%s'

    unless exec_format =~ /%s/ then
      raise Gem::Exception,
        "[BUG] invalid exec_format #{exec_format.inspect}, no %s"
    end

    exec_format
  end
end

I’m working on getting this contributed to the IronRuby project, as judging from the RubyGems sources, as well as the RubyGems sources distributed with JRuby, this is intended to be distributed by the Ruby implementation, not RubyGems itself.

Also note, this allows one to:

1
ir -S gem install bundler

Rails 2.3.0 + IIS7 + FastCGI = Rails on Windows FTW!

Posted in rails, ruby on February 8th, 2009 by Will – 8 Comments

I love Rails, and I run Windows.

There, I said it. I know many Railers scoff at us, mock us, etc. Whatever. I run Windows (Vista, specifically). I’m a Microsoft.Net Web Developer at my day job. My company has invested heavily in the Microsoft platform. I don’t like WebForms (why is a topic for another post), and, because of Rails, I know there is a better way to do web development. Yes, I know about ASP.Net MVC, but I have yet to try it. What I have tried is Rails, and I know that a Microsoft stack is the way to get it into my day-to-day work.

So, a couple of days ago, with the announcement of Rails 2.3.0 rc1 I decided to see if I could get the latest Rails running under IIS 7 on my Vista notebook. I tried to find directions on how to accomplish this, but none were very straight forward. So, I’ve decided to document the process here for myself and other WinRailers.

read more »