Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ruby > Re: [ANN] Ruby ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 42 Topic 42600 of 52647
Post > Topic >>

Re: [ANN] Ruby Changes in Leopard

by John Joyce <dangerwillrobinsondanger@[EMAIL PROTECTED] > Oct 28, 2007 at 02:49 AM

On Oct 27, 2007, at 11:03 AM, Richard Kilmer wrote:

> On Oct 26, 2007, at 2:33 PM, Giles Bowkett wrote:
>
>> we're going to have to manually update our Ruby installs just like we
>> had to last time **anyway**, because Ruby will probably change again
>> before OS X does. the "gem server" (not gem_server any more) example
>> illustrates exactly that problem, because it's already happened - the
>> new gems is in pre-release already.
>
> I really don't follow this line of reasoning.  Rubygems itself is  
> just a Ruby library and that Ruby library can be replaced/overridden.
>
> If you look at the load paths that Apple set in leopard:
>
> irb
> >> puts $:
> /Library/Ruby/Site/1.8
> /Library/Ruby/Site/1.8/powerpc-darwin9.0
> /Library/Ruby/Site/1.8/universal-darwin9.0
> /Library/Ruby/Site
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 
> 1.8
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 
> 1.8/powerpc-darwin9.0
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 
> 1.8/universal-darwin9.0
> .
>
> The site dir normally is parallel to the standard ruby lib dir  
> something like:
>
> /usr/local/lib/ruby/1.8
> /usr/local/lib/ruby/site_ruby/1.8
>
> But Laurent moved that on OS X into /Library/Ruby/Site.  So, if you  
> install a later rubygems in /Library/Ruby/Site/1.8 then it will  
> override the rubygems that is installed in the OS (and the 'gem'  
> command will use the one you upgraded first)
>
> Gems are the same way.  If you gem install/update a gem it will go  
> in /Library/Ruby/Gems/1.8 and higher version gems will always be  
> the ones loaded.
>
> What Apple did was provide a foundation that THEY can build upon  
> (in the OS) and we can update ourselves.  I think that is an  
> awesome balance.  They also built a bunch of native gems in that  
> are a PITA to build yourself by hand.
>
> Of course if you need within your Mac to always run the latest SVN  
> build of Ruby just download that source and build it and install it  
> wherever you want.
>
> Realize they could have totally screwed this up by reordering the  
> above load paths, but Laurent is a smart guy :-)
>
> Best,
>
> Rich
>
>

boy you nailed that one on the head. They did it for them.
Truth is, anybody seriously doing development in Ruby outside of  
something OS X 10.5-centric will probably need to create their own  
install at some point.

If you're doing RubyCocoa, it might be good to go with the stock  
install, since it is easily and predictably deployable.

If you're doing Rails or something to be deployed on a different  
platform, you'll be better with a custom setup.

It's no big deal. We still have Hivelogic for reminders!
 




 42 Posts in Topic:
[ANN] Ruby Changes in Leopard
"Laurent Sansonetti&  2007-10-26 03:42:45 
Re: [ANN] Ruby Changes in Leopard
Lyle Johnson <fxrubygu  2007-10-26 03:52:00 
Re: [ANN] Ruby Changes in Leopard
Lee Packham <lpackham@  2007-10-26 04:03:55 
Re: [ANN] Ruby Changes in Leopard
Tim Pease <tim.pease@[  2007-10-26 06:49:03 
Re: [ANN] Ruby Changes in Leopard
"Marcel Molina Jr.&q  2007-10-26 09:55:47 
Re: [ANN] Ruby Changes in Leopard
"Rob Sanheim" &  2007-10-26 11:42:42 
Re: [ANN] Ruby Changes in Leopard
John Joyce <dangerwill  2007-10-26 16:28:06 
Re: [ANN] Ruby Changes in Leopard
"Rick DeNatale"  2007-10-26 21:20:49 
Re: [ANN] Ruby Changes in Leopard
"Laurent Sansonetti&  2007-10-27 01:26:35 
Re: [ANN] Ruby Changes in Leopard
"Laurent Sansonetti&  2007-10-27 02:12:52 
Re: [ANN] Ruby Changes in Leopard
"ara.t.howard"   2007-10-27 02:49:45 
Re: [ANN] Ruby Changes in Leopard
"Giles Bowkett"  2007-10-27 03:33:39 
Re: [ANN] Ruby Changes in Leopard
John Joyce <dangerwill  2007-10-28 02:49:53 
Re: [ANN] Ruby Changes in Leopard
Bil Kleb <Bil.Kleb@[EM  2007-10-27 14:21:04 
Re: [ANN] Ruby Changes in Leopard
"Tim Pease" <  2007-10-27 04:49:58 
Re: [ANN] Ruby Changes in Leopard
John Joyce <dangerwill  2007-10-27 06:49:31 
Re: Ruby Changes in Leopard
John Wilger <johnwilge  2007-10-27 00:32:59 
Re: Ruby Changes in Leopard
"Lee Packham" &  2007-10-27 17:21:27 
Re: Ruby Changes in Leopard
James Edward Gray II <  2007-10-28 02:52:54 
Re: Ruby Changes in Leopard
"Rob Sanheim" &  2007-10-27 23:16:28 
Re: Ruby Changes in Leopard
Brian Adkins <lojicdot  2007-10-27 12:11:36 
Re: Ruby Changes in Leopard
James Edward Gray II <  2007-10-28 04:25:14 
Re: Ruby Changes in Leopard
John Tsombakos <johnts  2007-10-29 01:59:27 
Re: Ruby Changes in Leopard
mortee <mortee.lists@[  2007-10-29 05:16:35 
Re: Ruby Changes in Leopard
John Tsombakos <johnts  2007-10-29 02:38:51 
Re: Ruby Changes in Leopard
John Tsombakos <johnts  2007-10-29 02:54:49 
Re: Ruby Changes in Leopard
"David A. Black"  2007-10-28 05:31:42 
Re: Ruby Changes in Leopard
James Edward Gray II <  2007-10-28 07:20:54 
Re: Ruby Changes in Leopard
"Bill Kelly" &l  2007-10-28 07:59:46 
Re: Ruby Changes in Leopard
James Edward Gray II <  2007-10-29 04:05:54 
Re: Ruby Changes in Leopard
"Pat Maddox" &l  2007-10-28 07:07:04 
Re: Ruby Changes in Leopard
Ben Mabey <ben@[EMAIL   2007-10-28 07:11:17 
Re: Ruby Changes in Leopard
James Edward Gray II <  2007-10-28 07:19:25 
Re: Ruby Changes in Leopard
James Edward Gray II <  2007-10-28 07:18:28 
Re: Ruby Changes in Leopard
"Laurent Sansonetti&  2007-10-28 08:02:59 
Re: Ruby Changes in Leopard
"Laurent Sansonetti&  2007-10-28 08:05:57 
Re: Ruby Changes in Leopard
"Michael Steinfeld&q  2007-10-29 02:13:57 
Re: Ruby Changes in Leopard
"Matt Mower" &l  2007-10-29 02:39:06 
Re: [ANN] Ruby Changes in Leopard
"Laurent Sansonetti&  2007-10-30 23:10:31 
Re: Ruby Changes in Leopard
Karl von Laudermann <d  2007-10-30 11:37:49 
Re: Ruby Changes in Leopard
J2M <james2mccarthy@[E  2007-11-08 20:18:27 
Re: Ruby Changes in Leopard
Laurent Sansonetti <la  2007-11-09 05:17:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 22:58:27 CST 2008.