<?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>AdaRuby &#187; Apple Mac OS X</title>
	<atom:link href="http://www.adaruby.com/category/apple-mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adaruby.com</link>
	<description>Rich Dynamic Applications with Ruby on Rails</description>
	<lastBuildDate>Fri, 02 Jul 2010 09:06:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby in Leopard, the latest release of Mac OS X</title>
		<link>http://www.adaruby.com/2007/12/13/ruby-in-leopard-the-latest-release-of-mac-os-x/</link>
		<comments>http://www.adaruby.com/2007/12/13/ruby-in-leopard-the-latest-release-of-mac-os-x/#comments</comments>
		<pubDate>Thu, 13 Dec 2007 11:56:57 +0000</pubDate>
		<dc:creator>ceefour</dc:creator>
				<category><![CDATA[Apple Mac OS X]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://adaruby.com/2007/12/13/ruby-in-leopard-the-latest-release-of-mac-os-x/</guid>
		<description><![CDATA[
			
				
			
		
Now that Leopard, the latest release of Mac OS X, is available to everyone, you may wonder what has changed from the Ruby developer&#8217;s perspective.
Ruby
 Ruby in Leopard was framework&#8217;ized. It is now available in /System/Library/Frameworks/Ruby.framework. Compatibility with the previous directory layout is preserved, /usr/bin/ruby and /usr/lib/ruby
Let see the example symbolic links that point inside [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.adaruby.com%2F2007%2F12%2F13%2Fruby-in-leopard-the-latest-release-of-mac-os-x%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.adaruby.com%2F2007%2F12%2F13%2Fruby-in-leopard-the-latest-release-of-mac-os-x%2F&amp;source=AdaRubyWeb&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="Ruby in Leopard, the latest release of Mac OS X" alt=" Ruby in Leopard, the latest release of Mac OS X" /><br />
			</a>
		</div>
<p>Now that Leopard, the latest release of Mac OS X, is available to everyone, you may wonder what has changed from the Ruby developer&#8217;s perspective.</p>
<blockquote><p><strong>Ruby</strong></p></blockquote>
<blockquote><p> Ruby in Leopard was framework&#8217;ized. It is now available in <tt>/System/Library/Frameworks/Ruby.framework</tt>. Compatibility with the previous directory layout is preserved, <tt>/usr/bin/ruby</tt> and <tt>/usr/lib/ruby</tt></p></blockquote>
<p>Let see the example symbolic links that point inside the framework:</p>
<blockquote>
<pre>$ readlink /usr/bin/ruby
../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby
$ readlink /usr/lib/ruby
../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/lib/ruby
$ readlink /usr/lib/libruby.1.dylib
../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/lib/libruby.1.dylib</pre>
</blockquote>
<blockquote><p><strong>IRB</strong></p></blockquote>
<blockquote><p> Now that <tt>readline</tt> support is available, IRB has command-line editing and history support.</p>
<p>IRB was modified to look at <tt>/etc/irbrc</tt> as the last possible place for a configuration file. Leopard ships an <tt>/etc/irbrc</tt> file that provides a default configuration for all IRB sessions, that requires RubyGems, activates auto-completion, switches to the simple prompt, and sets up a permanent history facility.</p>
<p>If you have a custom IRB configuration file in your home directory, or supply one to IRB from the command line, <tt>/etc/irbrc</tt> will be ignored. IRB currently doesn&#8217;t support the load of multiple configuration files.</p></blockquote>
<blockquote><p><strong>GEMS</strong></p></blockquote>
<blockquote><p>RubyGems in Leopard uses two gems repositories:</p></blockquote>
<blockquote>
<pre>$ ruby -r rubygems -e "p Gem.path"
["/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8", "/Library/Ruby/Gems/1.8"]</pre>
<p>In order to add a new gem to the <tt>/System repository</tt>, you will have to explicitly point the <tt>GEM_HOME</tt> environment variable to it. Please note that you can uninstall or cleanup old gems that are in the <tt>/System</tt> repository. The <tt>gem_server</tt> utility is not part of the client distribution of Leopard. It is only provided in the server.</p>
<p><strong>DTrace</strong></p>
<p>DTrace static probes were added in the interpreter engine. We actually took the amazing patches that the Joyent guys wrote for Solaris, and modified the code a little bit to make it work under Leopard and to address some small problems.</p>
<p><strong>RubyCocoa and Bridge Support</strong></p>
<p>This is an Objective-C to Ruby bridge, is now delivered with the system, in <tt>/System/Library/Frameworks/RubyCocoa.framework</tt>. The version that we ship is actually 99%-based on the public 0.12.0 release, module some Leopard-only specific changes, that will soon be pushed upstream.</p>
<p>Both RubyCocoa and the BridgeSupport files come with any Leopard installation. You can find some examples in <tt>/Developer/Examples/Ruby/RubyCocoa</tt>.</p></blockquote>
<p>For more details visit <a href="http://trac.macosforge.org" rel="nofollow" >Mac OS Forge</a>.<a href="http://trac.macosforge.org"><br />
</a></p>
<blockquote></blockquote>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.adaruby.com/2007/12/13/ruby-in-leopard-the-latest-release-of-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
