<?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>codedifferent.de &#187; ror</title>
	<atom:link href="http://www.codedifferent.de/tag/ror/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codedifferent.de</link>
	<description>mobile &#124; mac &#124; business &#124; development blog</description>
	<lastBuildDate>Sun, 04 Dec 2011 17:31:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Ruby 1.9.1 &amp; Rails 3.0: Bugfix für &#8216;Invalid .gemspec format&#8217; und RubyGem Warnungen</title>
		<link>http://www.codedifferent.de/2010/02/12/ruby-1-9-1-rails-3-0-rubygem-bugfix/</link>
		<comments>http://www.codedifferent.de/2010/02/12/ruby-1-9-1-rails-3-0-rubygem-bugfix/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 23:36:16 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[gemspec]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails3.0]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby1.9.1]]></category>
		<category><![CDATA[rubygems]]></category>

		<guid isPermaLink="false">http://www.codedifferent.de/?p=766</guid>
		<description><![CDATA[Nach dem Upgrade auf Ruby 1.9.1 und Rails 3.0 unter Mac OS X Snow Leopard hatte ich einigen Ärger mit RubyGem Warnungen. Insbesondere, wenn ich den Server innerhalb des Rails-3-Projektes mit dem folgenden Kommando starten wollte: rails server Zu Beginn, als ich noch mit dem bundler Gem Version 0.9.3 arbeitete, waren es zwei Arten von [...]]]></description>
			<content:encoded><![CDATA[<p>Nach dem Upgrade auf Ruby 1.9.1 und Rails 3.0 unter Mac OS X Snow Leopard hatte ich einigen Ärger mit RubyGem Warnungen. Insbesondere, wenn ich den Server innerhalb des Rails-3-Projektes mit dem folgenden Kommando starten wollte:</p>

<div class="wp_codebox"><table><tr id="p76611"><td class="code" id="p766code11"><pre class="bash" style="font-family:monospace;">rails server</pre></td></tr></table></div>

<p>Zu Beginn, als ich noch mit dem bundler Gem Version 0.9.3 arbeitete, waren es zwei Arten von Fehlern bzw. Warnungen: Die erste Warnung hat das Termial mit hunderten Zeilen Code gefüllt, wie &#8230;</p>

<div class="wp_codebox"><table><tr id="p76612"><td class="code" id="p766code12"><pre class="bash" style="font-family:monospace;">WARNING:  <span style="color: #666666; font-style: italic;"># NoMethodError: undefined method ` ' for nil:NilClass </span>
<span style="color: #666666; font-style: italic;"># -*- encoding: utf-8 -*-</span>
...
WARNING:  Invalid .gemspec format <span style="color: #000000; font-weight: bold;">in</span> \
<span style="color: #ff0000;">'.rvm/gems/ruby-1.9.1-p378/specifications/spec.gemspec'</span></pre></td></tr></table></div>

<p>Das <a href="http://github.com/carlhuda/bundler/issues/issue/24#issue/24/comment/127572">Bundler-Team rund um Carlhuda</a> hat den Fehler mit der Bundler Version 0.9.4 behoben &#8230; das Problem sollte nach einem Update des Gems also nicht mehr auftauchen.</p>
<p>Das andere Problem war allerdings etwas hartnäckiger. Beim Start des Servers via</p>

<div class="wp_codebox"><table><tr id="p76613"><td class="code" id="p766code13"><pre class="bash" style="font-family:monospace;">rails server</pre></td></tr></table></div>

<p>oder beim Durchführen eines Tests via</p>

<div class="wp_codebox"><table><tr id="p76614"><td class="code" id="p766code14"><pre class="bash" style="font-family:monospace;">rake</pre></td></tr></table></div>

<p>innerhalb eines Rails-3-Projektes kamen die folgenden Warnungen:</p>

<div class="wp_codebox"><table><tr id="p76615"><td class="code" id="p766code15"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems.rb:<span style="color: #000000;">14</span>: \
warning: already initialized constant VERSION
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems.rb:<span style="color: #000000;">14</span>: \
warning: already initialized constant RubyGemsVersion
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems.rb:<span style="color: #000000;">194</span>: \
warning: already initialized constant MUTEX
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems.rb:<span style="color: #000000;">196</span>: \
warning: already initialized constant RubyGemsPackageVersion
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems.rb:<span style="color: #000000;">202</span>: \
warning: already initialized constant WIN_PATTERNS
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems.rb:<span style="color: #000000;">1079</span>:\
 warning: already initialized constant MARSHAL_SPEC_DIR
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems.rb:<span style="color: #000000;">1084</span>: \
warning: already initialized constant YAML_SPEC_DIR
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>version.rb:<span style="color: #000000;">72</span>: \
warning: already initialized constant VERSION_PATTERN
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>requirement.rb:<span style="color: #000000;">20</span>: \
warning: already initialized constant OPS
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>requirement.rb:<span style="color: #000000;">30</span>: \
warning: already initialized constant OP_RE
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>version.rb:<span style="color: #000000;">246</span>: \
warning: already initialized constant Requirement
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>dependency.rb:<span style="color: #000000;">18</span>: \
warning: already initialized constant TYPES
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>platform.rb:<span style="color: #000000;">171</span>: \
warning: already initialized constant RUBY
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>platform.rb:<span style="color: #000000;">177</span>: \
warning: already initialized constant CURRENT
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>specification.rb:<span style="color: #000000;">39</span>: \
warning: already initialized constant NONEXISTENT_SPECIFICATION_VERSION
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>specification.rb:<span style="color: #000000;">50</span>: \
warning: already initialized constant CURRENT_SPECIFICATION_VERSION
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>specification.rb:<span style="color: #000000;">56</span>: \
warning: already initialized constant SPECIFICATION_VERSION_HISTORY
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>specification.rb:<span style="color: #000000;">72</span>: \
warning: already initialized constant MARSHAL_FIELDS
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>specification.rb:<span style="color: #000000;">75</span>: \
warning: already initialized constant TODAY
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>source_index.rb:<span style="color: #000000;">593</span>: \
warning: already initialized constant Cache
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>config_file.rb:<span style="color: #000000;">14</span>: \
warning: already initialized constant DEFAULT_BACKTRACE
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>config_file.rb:<span style="color: #000000;">15</span>: \
warning: already initialized constant DEFAULT_BENCHMARK
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>config_file.rb:<span style="color: #000000;">16</span>: \
warning: already initialized constant DEFAULT_BULK_THRESHOLD
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>config_file.rb:<span style="color: #000000;">17</span>: \
warning: already initialized constant DEFAULT_VERBOSITY
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>config_file.rb:<span style="color: #000000;">18</span>: \
warning: already initialized constant DEFAULT_UPDATE_SOURCES
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>config_file.rb:<span style="color: #000000;">24</span>: \
warning: already initialized constant OPERATING_SYSTEM_DEFAULTS
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>config_file.rb:<span style="color: #000000;">30</span>: \
warning: already initialized constant PLATFORM_DEFAULTS
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span>1.9.1<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>config_file.rb:<span style="color: #000000;">53</span>: \
warning: already initialized constant SYSTEM_WIDE_CONFIG_FILE</pre></td></tr></table></div>

<p><a href="https://rails.lighthouseapp.com/projects/8994/tickets/3865-invalid-gemspec-format-in-and-already-initialized-constant-warnings-with-ruby-192dev">Jeremy Kemper vom Rails-Core-Team</a> hat klar gemacht, dass diese Warnungen kein Rails- sondern ein RubyGem-Bug sind. Ruby 1.9 wird mit einer veralteten RubyGems-Version ausgeliefert  &#8230; Ruby Version 1.9.1p378 beinhaltet RubyGems 1.3.1. Ich habe natürlich die RubyGems auf Version 1.3.5 aktualisiert mit</p>

<div class="wp_codebox"><table><tr id="p76616"><td class="code" id="p766code16"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem update <span style="color: #660033;">--system</span></pre></td></tr></table></div>

<p>aber diese Aktualisierung führte zu zwei RubyGem-Installationen die die Warnungen verursachen.</p>
<p>So, wie kann man das Problem lösen? Ein Löschen von Ruby 1.9.1 und die Neuinstallation haben leider keinerlei Effekt &#8230; die Lösung ist im Grunde recht simpel:</p>
<h3>Ist Ruby 1.9.1 und Rails 3.0 beta schon installiert &#8230;</h3>
<p>1. Wichtig: Nach der Installation von Ruby 1.9.1 darf auf KEINEN FALL RubyGems 1.3.5 separat manuell installiert werden &#8211; das wäre eine Doppelinstalltion. Das sollte man unbedingt beherigen, wenn man die wunderbare Beschreibung von Dan Benjamin, wie man <a href="http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/">Ruby, RubyGems, und Rails auf Snow Leopard installiert</a> nutzt.</p>
<p>2. Wenn man also Ruby 1.9.1 installiert hat, RubyGems auf 1.3.5 und Bundler auf 0.9.4 upgedated und Rails 3.0 installiert hat, ist das einzige was man tun muss folgendes:</p>

<div class="wp_codebox"><table><tr id="p76617"><td class="code" id="p766code17"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem uninstall rubygems-update</pre></td></tr></table></div>

<p>Das wars. Keine Fehler mehr!</p>
<h3>Falls Ruby 1.9.1 und Rails 3.0 noch nicht installiert ist &#8230; </h3>
<p>1. Man kann mit <a href="http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/">Dan Benjamins Rezept starten</a> und modifiziert die Befehle für download, make und install von ruby-1.9.1-p378.tar.gz. Wichtig ist natürlich, dass man rubygems-1.3.5.tgz NICHT wie angegeben installiert. </p>
<p>2. Dann wird das veraltete RubyGems mit folgendem Kommando aktualisiert:</p>

<div class="wp_codebox"><table><tr id="p76618"><td class="code" id="p766code18"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem update <span style="color: #660033;">--system</span></pre></td></tr></table></div>

<p>3. Jetzt sollten die Gems rake und sqlite3-ruby installiert werden.</p>
<p>4. Schließlich werden noch die weiteren Gems und rails &#8211;pre installiert, wie in den <a href="http://guides.rails.info/3_0_release_notes.html">Rails 3.0 beta Release Notes</a> beschrieben.</p>
<p>5. Nach der erfolgreichen Installation von Rails 3.0 beta fehlt noch der entscheidende Schritt:</p>

<div class="wp_codebox"><table><tr id="p76619"><td class="code" id="p766code19"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem uninstall rubygems-update</pre></td></tr></table></div>

<p>6. Am Ende gilt es nur noch zu prüfen, ob einige Gems noch aktualisiert werden können bevor man sich in Rails 3.0 stürzen kann &#8230;</p>

<div class="wp_codebox"><table><tr id="p76620"><td class="code" id="p766code20"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem update</pre></td></tr></table></div>

<p>Hope this helps &#8230; und hoffentlich spart es etwas Zeit <img src='http://www.codedifferent.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />   Thx Andy für den Hinweis <img src='http://www.codedifferent.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedifferent.de/2010/02/12/ruby-1-9-1-rails-3-0-rubygem-bugfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RailsConf 2009 in Las Vegas: Registrierung möglich und Beiträge gesucht</title>
		<link>http://www.codedifferent.de/2009/01/24/railsconf-2009-in-las-vegas-registrierung-moglich-und-beitrage-gesucht/</link>
		<comments>http://www.codedifferent.de/2009/01/24/railsconf-2009-in-las-vegas-registrierung-moglich-und-beitrage-gesucht/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 19:46:18 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Culture]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Las Vegas]]></category>
		<category><![CDATA[Mai]]></category>
		<category><![CDATA[Portalnd]]></category>
		<category><![CDATA[railsconf]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby-on-rails]]></category>

		<guid isPermaLink="false">http://www.codedifferent.de/?p=365</guid>
		<description><![CDATA[Seit heute ist die Registierung zur &#8211; wohl wieder größten &#8211; Ruby-on-Rails-Konferenz in den USA möglich: RailsConf 2009. Wie in den vorigen Jahren organisiert O&#8217;Reilly wieder das Event. Dieses Mal findet die Konferenz allerdings nicht in Portland sondern in Las Vegas statt &#8211; nicht nur das Glücksspiel- und Vergnügungszentrum der USA sondern auch ein begehrter [...]]]></description>
			<content:encoded><![CDATA[<p>Seit heute ist die Registierung zur &#8211; wohl wieder größten &#8211; Ruby-on-Rails-Konferenz in den USA möglich: <a href="http://www.railsconf.com/">RailsConf 2009</a>. Wie in den vorigen Jahren organisiert O&#8217;Reilly wieder das Event. Dieses Mal findet die Konferenz allerdings nicht in Portland sondern in Las Vegas statt &#8211; nicht nur das Glücksspiel- und Vergnügungszentrum der USA sondern auch ein begehrter Konferenzstandort <img src='http://www.codedifferent.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
Für die Schnellentschlossenen bis zum 16. März winkt ein Early-Bird-Bonus mit dem sich 200 USD sparen lassen.<br />
Für alle die auf der Konferenz einen Vortrag halten wollen, wurde das Abgabedatum für einen Call for Participation bis zum 17. Februar 2009 verlängert. Da heißt es also schnell sein!<br />
Die Konferenz selbst findet dann vom 4. bis 7. Mai 2009 im Las Vegas Hilton statt. </p>
<p>Viva Las Vegas!</p>
<p>Quellen: <a href="http://weblog.rubyonrails.com/2009/1/23/railsconf-2009-viva-las-vegas">rubyonrails.com</a>, <a href="http://www.railsconf.com/">RailsConf.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedifferent.de/2009/01/24/railsconf-2009-in-las-vegas-registrierung-moglich-und-beitrage-gesucht/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails oder Zend Framework &#8211; die Entscheidung!</title>
		<link>http://www.codedifferent.de/2008/03/22/ruby-on-rails-oder-zend-framework-die-entscheidung/</link>
		<comments>http://www.codedifferent.de/2008/03/22/ruby-on-rails-oder-zend-framework-die-entscheidung/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 08:20:57 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby-on-rails]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://www.codedifferent.de/2008/03/22/ruby-on-rails-oder-zend-framework-die-entscheidung/</guid>
		<description><![CDATA[Das Zend Framework ist seit dem letzten Artikel zu der Entscheidung Zend oder Rails nach anfänglichem Stocken im Entwicklungsprozess bei Version 1.5 angekommen. Auch Ruby on Rails hat mit dem Sprung auf inzwischen Version 2.0.2 einen großen Sprung gemacht. Wer ist also mein persönlicher Sieger in diesem Rennen? Welches Framework eignet sich aus meiner Sicht [...]]]></description>
			<content:encoded><![CDATA[<p>Das Zend Framework ist <a href="http://www.codedifferent.de/2007/04/20/weitreichende-entscheidungen-ruby-on-rails-oder-php-zend-framework/">seit dem letzten Artikel</a> zu der Entscheidung Zend oder Rails nach anfänglichem Stocken im Entwicklungsprozess bei <a href="http://www.zendframework.com/">Version 1.5</a> angekommen. Auch Ruby on Rails hat mit dem Sprung auf inzwischen <a href="http://www.rubyonrails.com/">Version 2.0.2</a> einen großen Sprung gemacht. Wer ist also mein persönlicher Sieger in diesem Rennen? Welches Framework eignet sich aus meiner Sicht am Besten für die Entwicklung von Web-Projekten. </p>
<p>Um es vorweg zu nehmen: Mein persönlicher Favorit ist Ruby on Rails!</p>
<p>Doch die brennende Frage ist natürlich das WARUM:</p>
<ul>
<li><strong>1. Ruby statt PHP:</strong> Natürlich klingt es unlogisch die eigenen mühsam erarbeiten PHP-Kenntnisse links liegen zu lassen und sich in eine junge rein objektorientierte Sprache einzuarbeiten. Doch, und das bestätigte mir bisher jeder ehemalige Java- oder PHP-Entwickler &#8211; die Mühe ist nicht groß Ruby zu lernen und der Nutzen ist überwältigend. Ruby ermöglicht es eleganten, gut lesbaren und gut wartbaren Code zu schreiben.</li>
<li><strong>2. Vision-Driven-Community:</strong> Egal ob in den Mailing-Listen oder auf Entwickerkonferenzen, die Grundeinstellung und Vision der Community ist freundlich, ansteckend, international und produktiv. Es geht darum gemeinsam etwas neues, besseres und eleganteres zu schaffen &#8230; siehe auch die <a href="http://blip.tv/file/566943">Keynote der RailsConf 2007 von David Heinemeier Hansson</a> in Portland.</li>
<li><strong>3. Skalierbarkeit:</strong> Inzwischen wurde vielfach bewiesen, dass Rails-Applikationen sich gut skalieren lassen auch wenn die Performance etwas schlechter sein soll. Doch unter dem Strich braucht man so etwas mehr Hardware als bei einem Zend Framework Projekt, doch dafür gewinnt man eine schnellere Entwicklung und bessere Wartbarkeit. Twitter, Qype und Xing machen es vor. Insbesondere die Twitter-Entwickler plaudern gerne über die Skalierbarkeit, wie <a href="http://www.railsconfeurope.com/presentations/railsconfeurope07/re7_brittselvitelle.pdf">Britt Selvitelle auf der RailsConf Europe 2007</a> in Berlin.</li>
<li><strong>4. REST:</strong> Mit der Version 2.0 wurde die Programmierung nach dem REST-Prinzip konsequent im Ruby on Rails Framework implementiert. Damit lassen sich einfach Schnittstellen zu anderen Systemen schaffen &#8211; und werden alte, aber gute und durchdachte Features des http-Protokolls wiederentdeckt. Siehe auch das PDF von b-simple zum Thema <a href="http://www.b-simple.de/documents">RESTful-Rails.</a></li>
<li><strong>5. Datenbank-Migrationen:</strong> Rails bietet mit Migrations ein mächtiges System Datenbankstrukturen einfach und in Einzelschritten skriptbasiert zu erstellen &#8211; und, wenn nötig diese Einzelschritte auch wieder rückgängig zu machen. Für die Entwicklung nach dem Prinzip des &#8220;Pragmatic Programming&#8221; ist das ein perfektes Werkzeug um Tabellen zu erstellen, zu erweitern und mit Daten zu füllen. Für das Zend Framework ist ein solches <a href="http://mingwu.wordpress.com/2008/01/07/rails-migration-in-php-zend-framework/">Feature als Proposal</a> angedacht &#8230; doch wann es kommt und wie es funktionieren wird ist noch völlig unklar.</li>
<li><strong>6. Test-Driven-Development:</strong> Rails ist weiterhin Vorreiter was die eingebauten <a href="http://wiki.rubyonrails.com/rails/pages/HowToDoTestDrivenDevelopmentInRails">Test-Infrastruktur für automatisierte Unit-Tests, Functional-Tests und Integration-Test</a>. Zend Framework versucht zwar mit dem ZFTestManager aufzuholen &#8211; doch noch immer fehlt eine schlüssige Integration in das Framework.</li>
<li><strong>7. MultiView:</strong> In Rails lassen sich Inhalte je nach Anfragetyp darstellen &#8211; sollen sie nun als CSV-Datei, RSS-Feed, HTML-Seite oder als spezielle iPhone-Seite Angezeigt werden &#8211; SlashDotDash zeigt wie man der eigenen Rails-Applikation ein <a href="http://www.slashdotdash.net/articles/2007/12/04/iphone-on-rails-creating-an-iphone-optimised-version-of-your-rails-site-using-iui-and-rails-2">iPhone-optimiertes User-Interface</a> verpassen kann.</li>
</ul>
<p>Bestimmte Projekte eignen sich allerdings nur bedingt für Rails:<span id="more-109"></span></p>
<ul>
<li><strong>&#8230; wenn die Applikation auf einem Shared-Hoste-Webspace laufen muss:</strong> Rails wurde zur Realisierung von professionellen Webapplikationen konzipiert. Ein einfaches Webspace-Paket bei einem Hoster wie 1und1 oder Strato eignet sich nicht für das Deployment einer Rails-Applikation. Shared-Hoster wie DreamHost bilden dabei eine Ausnahme. Allerdings gibt es inzwischen eine Reihe von speziellen Hostern die von der Privat- bis zur Enterprise-Lösung spezifische Hosting-Lösungen anbieten. Und natürlich läuft Rails bestens auf einem eigenen Server bzw. Root-Server. Ezra Zygmuntowicz, einer der Gründer von EngineYard, Bruce Tate und Clinton Begin  plaudern in dem neuen Buch <a href="http://www.pragprog.com/titles/fr_deploy">Deploying Rails Applications: A Step-by-Step Guide</a> aus dem Nähkästchen.</li>
<li><strong>&#8230; wenn die Applikation auf einem Windows Server laufen muss: </strong>Ruby on Rails wurde bisher für Unix-basierte Systeme optimiert. Das bedeutet, dass es schnell üblichen Web-Server-Infrastrukturen wie die verschiedenen Linux-Distributionen oder auch Mac OS X läuft. Auf einem Windows Server muss man jedoch mit einem Zentel der Performance rechnen. Daher ist ein Deployment auf einem Windows Server nur in kleinen Intranet-Installationen praktikabel.</li>
<li><strong>&#8230; wenn man einfach nur mal schnell das aktuelle Datum auf einer statischen Website eingeblendet werden soll.</strong> Dann lohnt sich weder die Nutzung von Rails wie auch von Zend Framework. <img src='http://www.codedifferent.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </li>
<li><strong>&#8230; wenn man als Entwickler kein Wort Englisch versteht.</strong> Zwar gibt es inzwischen eine ganze Reihe Rails-Büchern in deutscher Sprache. Doch ohne Englischkenntnisse fehlt der Anschluss zur internationalen Community und lassen sich die vielen Tips und Tricks, die in Blogs gepostet werden oder Screen-Casts wie <a href="http://peepcode.com/">Peepcode</a> oder <a href="http://railscasts.com/">Railscasts</a> nicht nutzen. Im Zweifel hilft da nur eines: Englisch lernen <img src='http://www.codedifferent.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </li>
</ul>
<p>My2Cents</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedifferent.de/2008/03/22/ruby-on-rails-oder-zend-framework-die-entscheidung/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Alles Gute zum 3. Geburtstag, Ruby-on-Rails!</title>
		<link>http://www.codedifferent.de/2007/07/30/alles-gute-zum-3-geburtstag-ruby-on-rails/</link>
		<comments>http://www.codedifferent.de/2007/07/30/alles-gute-zum-3-geburtstag-ruby-on-rails/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 21:53:15 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[david heinemeier hansson]]></category>
		<category><![CDATA[rapid application prototyping]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby-on-rails]]></category>

		<guid isPermaLink="false">http://www.codedifferent.de/2007/07/30/alles-gute-zum-3-geburtstag-ruby-on-rails/</guid>
		<description><![CDATA[Drei Jahre ist es her, da veröffentlichte David Heinemeier Hansson die erste Version des Web-Frameworks Ruby on Rails. Der Paradigmenwechsel in der Programmierung von Web-Applikationen hin zu eleganten und pragmatischen Vorgehen ist ein Geschenk für uns alle. Es macht Spaß eine Applikationsidee zu skizzieren, mit Gerüsten und Rapid Application Prototyping sich der richtigen Usability anzunähern. [...]]]></description>
			<content:encoded><![CDATA[<p>Drei Jahre ist es her, da veröffentlichte <a href="http://www.loudthinking.com/posts/10-three-years-with-ruby-on-rails">David Heinemeier Hansson</a> die erste Version des Web-Frameworks <a href="http://weblog.rubyonrails.com/2007/7/30/happy-3-year-anniversary-rails">Ruby on Rails</a>. Der Paradigmenwechsel in der Programmierung von Web-Applikationen hin zu eleganten und pragmatischen Vorgehen ist ein Geschenk für uns alle. Es macht Spaß eine Applikationsidee zu skizzieren, mit Gerüsten und Rapid Application Prototyping sich der richtigen Usability anzunähern. Es macht sogar Spass RoR Code zu lesen. Genug der Lobeshymnen &#8230; und ein herzliches Dankeschön an David, der die Revolution gestartet hat &#8230; und auch ein herzliches Dankeschön an die gesamte RoR-Community die daraus eine Web-Entwicklungs-Revolution gemacht haben <img src='http://www.codedifferent.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedifferent.de/2007/07/30/alles-gute-zum-3-geburtstag-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby-on-Rails Konferenz-Kalender</title>
		<link>http://www.codedifferent.de/2007/05/29/ruby-on-rails-konferenz-kalender/</link>
		<comments>http://www.codedifferent.de/2007/05/29/ruby-on-rails-konferenz-kalender/#comments</comments>
		<pubDate>Tue, 29 May 2007 18:01:05 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[konferenzen 2007]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby-on-rails]]></category>

		<guid isPermaLink="false">http://www.codedifferent.de/2007/05/29/ruby-on-rails-konferenz-kalender/</guid>
		<description><![CDATA[Die RailsConf 2007 hat dieses Jahr 1.600 Teilnehmern vom 17. bis 20. Mai in Portland in ihren Bann gezogen. Und wenn man David&#8217;s Loud Thinking Blog liest, dann scheint die Konferenz trotz der Masse an Leute ein voller Erfolg gewesen sein. Doch nach der Konferenz ist vor der Konferenz &#8230; und so geht es dieses [...]]]></description>
			<content:encoded><![CDATA[<p>Die RailsConf 2007 hat dieses Jahr 1.600 Teilnehmern vom 17. bis 20. Mai in Portland in ihren Bann gezogen. Und wenn man <a href="http://www.loudthinking.com/posts/5-digesting-railsconf-2007">David&#8217;s Loud Thinking Blog</a> liest, dann scheint die Konferenz trotz der Masse an Leute ein voller Erfolg gewesen sein. Doch nach der Konferenz ist vor der Konferenz &#8230; und so geht es dieses Jahr mit dem Konferenzmarathon munter weiter:</p>
<p><strong>22. Juni 2007: Rails-Konferenz.de, Frankfurt, Deutschland</strong><br />
<a href="http://www.rails-konferenz.de/">http://www.rails-konferenz.de/</a><br />
Konferenzsprache Deutsch</p>
<p><strong>22.-23. Juni 2007: Ostrava on Rails, Ostrava, Tschechische Republik</strong><br />
<a href="http://ostrava.rails.cz/en/">http://ostrava.rails.cz/en/</a><br />
Konferenzsprache Englisch</p>
<p><strong>17.-19. September 2007: RailsConf Europe, Berlin, Deutschland</strong><br />
<a href="http://www.railsconfeurope.com/">http://www.railsconfeurope.com/</a><br />
Organisiert von O&#8217;Reilly &#8211; Konferenzsprache Englisch</p>
<p><strong>November 2007: Rails Hispana Conferencia, Madrid, Spanien</strong><br />
<a href="http://www.conferenciarails.org/">http://www.conferenciarails.org/</a><br />
Konferenzsprache Spanisch</p>
<p>Sicher gibt es noch mehr Konferenzen zum Thema Rails &#8230; ein Kommentar genögt <img src='http://www.codedifferent.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedifferent.de/2007/05/29/ruby-on-rails-konferenz-kalender/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

