<?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>La rolls des blogs &#187; gemfile</title>
	<atom:link href="http://my.rails-royce.org/tag/gemfile/feed/" rel="self" type="application/rss+xml" />
	<link>http://my.rails-royce.org</link>
	<description>Another Ruby and Rails blog</description>
	<lastBuildDate>Fri, 13 Jan 2012 23:47:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Bundler default Gemfile and custom Gemfile, example of wirble</title>
		<link>http://my.rails-royce.org/2010/06/29/bundler-default-gemfile-and-custom-gemfile-example-of-wirble/</link>
		<comments>http://my.rails-royce.org/2010/06/29/bundler-default-gemfile-and-custom-gemfile-example-of-wirble/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 13:38:34 +0000</pubDate>
		<dc:creator>Hallelujah</dc:creator>
				<category><![CDATA[bundler]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[gemfile]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[wirble]]></category>

		<guid isPermaLink="false">http://my.rails-royce.org/?p=152</guid>
		<description><![CDATA[Hi all, A simple trick I want to share with you if you are using Bundler (or rails 3) It matters if you want to install wirble gem in your workstation but not in your server Sometimes, you want to include some gem that are not mandatory for your application to run but you want &#8230; </p><p><a class="more-link block-button" href="http://my.rails-royce.org/2010/06/29/bundler-default-gemfile-and-custom-gemfile-example-of-wirble/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Hi all,<br />
A simple trick I want to share with you if you are using Bundler (or rails 3)<br />
It matters if you want to install wirble gem in your workstation but not in your server</p>
<p>Sometimes, you want to include some gem that are not mandatory for your application to run but you want to use in your workstation. E.g wirble, awesome_print etc &#8230; or other debugging tools</p>
<p>Just write something like this in your Gemfile</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># Gemfile</span>
<span style="color:#9966CC; font-weight:bold;">if</span> <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">exist</span>?<span style="color:#006600; font-weight:bold;">&#40;</span>file = <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">expand_path</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'../myGemfile'</span>,<span style="color:#0000FF; font-weight:bold;">__FILE__</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  instance_eval<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">read</span><span style="color:#006600; font-weight:bold;">&#40;</span>file<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Now in your myGemfile</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># myGemfile</span>
gem <span style="color:#996600;">'wirble'</span>
gem <span style="color:#996600;">'awesome_print'</span></pre></div></div>

<p>That&#8217;s all! You can now require &#8216;wirble&#8217; or &#8216;awesome_print&#8217; in your rails console</p>
]]></content:encoded>
			<wfw:commentRss>http://my.rails-royce.org/2010/06/29/bundler-default-gemfile-and-custom-gemfile-example-of-wirble/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

