<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>hotgazpacho &#187; gems</title>
	<atom:link href="http://hotgazpacho.org/category/ruby/gems/feed/" rel="self" type="application/rss+xml" />
	<link>http://hotgazpacho.org</link>
	<description>Embrace! Embrace! You hippie coder! Get off my dynamic lawn!</description>
	<lastBuildDate>Sat, 10 Jul 2010 15:22:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>IronRuby: `gem update &#8211;system`</title>
		<link>http://hotgazpacho.org/2010/05/ironruby-gem-update-system/</link>
		<comments>http://hotgazpacho.org/2010/05/ironruby-gem-update-system/#comments</comments>
		<pubDate>Tue, 18 May 2010 17:28:19 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[gems]]></category>
		<category><![CDATA[ironruby]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rubygems]]></category>

		<guid isPermaLink="false">http://hotgazpacho.org/?p=106</guid>
		<description><![CDATA[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 123456789101112module Gem &#160; def self.default_exec_format &#160; &#160; exec_format = ConfigMap&#91;:ruby_install_name&#93;.sub&#40;'ir', '%s'&#41; rescue [...]]]></description>
			<content:encoded><![CDATA[<p>After reading <a href="http://marcinobel.com/index.php/bug-invalid-exec_format-ir" target="_blank">this article</a> on getting around the <strong><em>invalid exec_format “ir”, no %s</em></strong> 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:<tt> %IronRubyInstallDir%\lib\ruby\site_ruby\1.8\rubygems\defaults\ironruby.rb</tt></p>
<div class="codecolorer-container ruby vibrant" style="border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#9966CC; font-weight:bold;">module</span> Gem<br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">def</span> <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">default_exec_format</span><br />
&nbsp; &nbsp; exec_format = ConfigMap<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:ruby_install_name</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#CC0066; font-weight:bold;">sub</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'ir'</span>, <span style="color:#996600;">'%s'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">rescue</span> <span style="color:#996600;">'%s'</span><br />
<br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">unless</span> exec_format =~ <span style="color:#006600; font-weight:bold;">/%</span>s<span style="color:#006600; font-weight:bold;">/</span> <span style="color:#9966CC; font-weight:bold;">then</span><br />
&nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">raise</span> Gem::<span style="color:#CC00FF; font-weight:bold;">Exception</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#996600;">&quot;[BUG] invalid exec_format #{exec_format.inspect}, no %s&quot;</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<br />
&nbsp; &nbsp; exec_format<br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<span style="color:#9966CC; font-weight:bold;">end</span></div></td></tr></tbody></table></div>
<p>I&#8217;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.</p>
<p>Also note, this allows one to:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ir -S gem install bundler</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://hotgazpacho.org/2010/05/ironruby-gem-update-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Patch to Ruby Gems for IronRuby support is in 1.3.7!</title>
		<link>http://hotgazpacho.org/2010/05/my-patch-to-ruby-gems-for-ironruby-support-is-in-1-3-7/</link>
		<comments>http://hotgazpacho.org/2010/05/my-patch-to-ruby-gems-for-ironruby-support-is-in-1-3-7/#comments</comments>
		<pubDate>Sat, 15 May 2010 04:24:34 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[gems]]></category>
		<category><![CDATA[ironruby]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://hotgazpacho.org/?p=101</guid>
		<description><![CDATA[I&#8217;m now a published contributor to a major open source project! C:\Users\Will&#62;gem up &#8211;system Updating RubyGems Updating rubygems-update Successfully installed rubygems-update-1.3.7 Updating RubyGems to 1.3.7 Installing RubyGems 1.3.7 RubyGems 1.3.7 installed ∩╗┐=== 1.3.7 / 2010-05-13 NOTE: http://rubygems.org is now the default source for downloading gems. You may have sources set via ~/.gemrc, so you should [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m now a published contributor to a major open source project!</p>
<p><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;">C:\Users\Will&gt;gem up &#8211;system</span></p>
<pre>Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.7
Updating RubyGems to 1.3.7
Installing RubyGems 1.3.7
RubyGems 1.3.7 installed</pre>
<pre>∩╗┐=== 1.3.7 / 2010-05-13</pre>
<pre>NOTE:</pre>
<pre>http://rubygems.org is now the default source for downloading gems.</pre>
<pre>You may have sources set via ~/.gemrc, so you should replace
http://gems.rubyforge.org with http://rubygems.org</pre>
<pre>http://gems.rubyforge.org will continue to work for the forseeable future.</pre>
<pre>New features:</pre>
<pre>* `gem` commands
  * `gem install` and `gem fetch` now report alternate platforms when a
    matching one couldn't be found.
  * `gem contents` --prefix is now the default as specified in --help.  Bug
    #27211 by Mamoru Tasaka.
  * `gem fetch` can fetch of old versions again.  Bug #27960 by Eric Hankins.
  * `gem query` and friends output now lists platforms.  Bug #27856 by Greg
    Hazel.
  * `gem server` now allows specification of multiple gem dirs for
    documentation.  Bug #27573 by Yuki Sonoda.
  * `gem unpack` can unpack gems again.  Bug #27872 by Timothy Jones.
  * `gem unpack` now unpacks remote gems.
  * --user-install is no longer the default.  If you really liked it, see
    Gem::ConfigFile to learn how to set it by default.  (This change was made
    in 1.3.6)</pre>
<pre><strong>* RubyGems now has platform support for IronRuby.  Patch #27951 by Will Green.</strong></pre>
<pre>Bug fixes:</pre>
<pre>* Require rubygems/custom_require if --disable-gem was set.  Bug #27700 by
  Roger Pack.
* RubyGems now protects against exceptions being raised by plugins.
* rubygems/builder now requires user_interaction.  Ruby Bug #1040 by Phillip
  Toland.
* Gem::Dependency support #version_requirements= with a warning.  Fix for old
  Rails versions.  Bug #27868 by Wei Jen Lu.
* Gem::PackageTask depends on the package dir like the other rake package
  tasks so dependencies can be hooked up correctly.</pre>
<pre>------------------------------------------------------------------------------</pre>
<pre>RubyGems installed the following executables:</pre>
<pre>C:/Ruby/bin/gem</pre>
<pre>C:\Users\Will&gt;</pre>
<p>Sure, it&#8217;s a small contribution (having Ruby Gems recognize IronRuby as a platform), but an important one none the less. This allows us to create gems specifically for the .NET platform, similar to the way JRuby has JVM-specific gems.</p>
]]></content:encoded>
			<wfw:commentRss>http://hotgazpacho.org/2010/05/my-patch-to-ruby-gems-for-ironruby-support-is-in-1-3-7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IronRuby, Cucumber, &amp; win32console: Picking up the Gauntlet</title>
		<link>http://hotgazpacho.org/2009/06/ironruby-cucumber-win32console-picking-up-the-gauntlet/</link>
		<comments>http://hotgazpacho.org/2009/06/ironruby-cucumber-win32console-picking-up-the-gauntlet/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 13:53:35 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[ironruby]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://hotgazpacho.org/2009/06/ironruby-cucumber-win32console-picking-up-the-gauntlet/</guid>
		<description><![CDATA[Shortly after I published my previous post on getting IronRuby working with Cucumber, I did a git pull and recompile from the IronRuby repo. Well, something changed which broke command line option parsing for igem. I’m happy to report that this commit appears to have fixed the issue. Yay! Also, I’ve forked IronRuby on GitHub [...]]]></description>
			<content:encoded><![CDATA[<p>Shortly after I published <a href="http://hotgazpacho.org/2009/06/cucumber-and-ironruby-it-runs/">my previous post on getting IronRuby working with Cucumber</a>, I did a git pull and recompile from the IronRuby repo. Well, something changed which broke command line option parsing for igem. I’m happy to report that <a href="http://github.com/ironruby/ironruby/commit/2b73aba8bde0e6cf2ee0e579d6dabee57836708a">this commit</a> appears to have fixed the issue. Yay!</p>
<p>Also, I’ve <a href="http://github.com/hotgazpacho/ironruby">forked IronRuby on GitHub</a> and have made the changes I documented on the previous post to Dev.bat. I plan to track IronRuby closely, so if you don’t want to follow all the directions (I still recommend setting up the shortcut to dev.bat), you can simply clone my repo.</p>
<p>Finally, Shri Borde put out a call on the IronRuby mailing list <a href="http://rubyforge.org/pipermail/ironruby-core/2009-June/004683.html">asking if anyone was interested in porting win32console to IronRuby</a>. As Shri pointed out, this is important because Cucumber makes use of win32console on windows platforms to colorize the output of cucumber runs. This makes it much easier to visualize what works, what’s broken, and what steps you need to write. Since I have more than a passing interest in getting Cucumber working for .Net apps, I am going to pick up the gauntlet and attempt to port it myself. Behold <a href="http://github.com/hotgazpacho/ironruby-win32console/">ironruby-win32console</a>. Now, to figure out <em>how</em> to do it…</p>
]]></content:encoded>
			<wfw:commentRss>http://hotgazpacho.org/2009/06/ironruby-cucumber-win32console-picking-up-the-gauntlet/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
