<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Fixing: undefined method `require_gem&#8217; for main:Object (NoMethodError)</title>
	<atom:link href="http://nickdenardis.com/2009/02/14/fixing-undefined-method-require_gem-for-mainobject-nomethoderror/feed/" rel="self" type="application/rss+xml" />
	<link>http://nickdenardis.com/2009/02/14/fixing-undefined-method-require_gem-for-mainobject-nomethoderror/</link>
	<description>Web Dev. Higher Ed. Usability. Accessibility. Ninja.</description>
	<lastBuildDate>Mon, 06 Feb 2012 21:38:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: blkperl</title>
		<link>http://nickdenardis.com/2009/02/14/fixing-undefined-method-require_gem-for-mainobject-nomethoderror/comment-page-1/#comment-633</link>
		<dc:creator>blkperl</dc:creator>
		<pubDate>Tue, 05 Jan 2010 06:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://nickdenardis.com/?p=327#comment-633</guid>
		<description>I get this error with rake. The require_gem method is the problem again. However your solution fixes it.

#!/usr/bin/ruby
#
# This file was generated by RubyGems.
#
# The application &#039;rake&#039; is installed as part of a gem, and
# this file is here to facilitate running it.
#

require &#039;rubygems&#039;
version = &quot;&gt; 0&quot;
if ARGV.size &gt; 0 &amp;&amp; ARGV[0][0]==95 &amp;&amp; ARGV[0][-1]==95
  if Gem::Version.correct?(ARGV[0][1..-2])
    version = ARGV[0][1..-2]
    ARGV.shift
  end
end
require_gem &#039;rake&#039;, version
load &#039;rake&#039;</description>
		<content:encoded><![CDATA[<p>I get this error with rake. The require_gem method is the problem again. However your solution fixes it.</p>
<p>#!/usr/bin/ruby<br />
#<br />
# This file was generated by RubyGems.<br />
#<br />
# The application &#8216;rake&#8217; is installed as part of a gem, and<br />
# this file is here to facilitate running it.<br />
#</p>
<p>require &#8216;rubygems&#8217;<br />
version = &#8220;&gt; 0&#8243;<br />
if ARGV.size &gt; 0 &amp;&amp; ARGV[0][0]==95 &amp;&amp; ARGV[0][-1]==95<br />
  if Gem::Version.correct?(ARGV[0][1..-2])<br />
    version = ARGV[0][1..-2]<br />
    ARGV.shift<br />
  end<br />
end<br />
require_gem &#8216;rake&#8217;, version<br />
load &#8216;rake&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RunRails-Blog &#187; Blog Archive &#187; Lösung für &#8220;undefined method &#8216;require_gem&#8217; for main:Object (NoMethodError)&#8221;</title>
		<link>http://nickdenardis.com/2009/02/14/fixing-undefined-method-require_gem-for-mainobject-nomethoderror/comment-page-1/#comment-264</link>
		<dc:creator>RunRails-Blog &#187; Blog Archive &#187; Lösung für &#8220;undefined method &#8216;require_gem&#8217; for main:Object (NoMethodError)&#8221;</dc:creator>
		<pubDate>Wed, 17 Jun 2009 14:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://nickdenardis.com/?p=327#comment-264</guid>
		<description>[...] Nach kurzer Suche fand ich die Lösung für ein ähnliches Problem. Anstelle von rails nimmt man sich hier einfach rake vor (auf meinem Debian-Server unter [...]</description>
		<content:encoded><![CDATA[<p>[...] Nach kurzer Suche fand ich die Lösung für ein ähnliches Problem. Anstelle von rails nimmt man sich hier einfach rake vor (auf meinem Debian-Server unter [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

