Skip to content

Commit

Permalink
Merge branch 'chischaschos' of github.com:crowdint/blog.crowdint.com …
Browse files Browse the repository at this point in the history
…into chischaschos
  • Loading branch information
Francisco Guzman committed Aug 17, 2010
2 parents c676d45 + c542f04 commit b0c31ec
Show file tree
Hide file tree
Showing 17 changed files with 316 additions and 449 deletions.
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
markdown: rdiscount
pygments: true
lsi: true
exclude: ['README.markdown', 'README_FOR_COLLABORATORS.markdown', 'Gemfile.lock', 'Gemfile']
exclude: ['README.markdown', 'README_FOR_COLLABORATORS.markdown', 'Gemfile.lock', 'Gemfile']
production: false
22 changes: 12 additions & 10 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,21 @@
<link rel="stylesheet" href="/stylesheets/syntax.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS Feed for blog.crowdint.com" href="http://feeds.feedburner.com/CrowdInteractiveTechBlog" />
<!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
<script type="text/javascript">
{% if site.production == true %}
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17527068-1']);
_gaq.push(['_trackPageview']);
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17527068-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
</script>
{% endif %}
</head>
<body>
<div class="container">
Expand Down
1 change: 1 addition & 0 deletions _posts/2010-08-13-ruby-oop-first-steps.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: What I would've loved I had known when I first met Ruby
author: Emmanuel Delgado
email: emmanuel.delgado@crowdint.com
avatar: a302e7dd208f335dc67761a6db911561
published: false
---

Motivation
Expand Down
56 changes: 56 additions & 0 deletions _posts/2010-08-17-use-a-project-specific-ruby-version-rvm.textile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
layout: post
title: Use a project specific Ruby version with RVM
author: Chalo Fernandez
email: gonzalo.fernandez@crowdint.com
avatar: d3177da7794ac3ce603d65b33bf4a981
---

If you are using "RVM":http://rvm.beginrescueend.com/ in your machine (just as "Francisco showed us":/2010/07/28/getting-started-with-rvm.html the other day) then you should take advantage of the "project .rvmrc":http://rvm.beginrescueend.com/workflow/rvmrc/#project feature.

Let's say your project is in the directory:

{% highlight bash %}
~/repo/myproject
{% endhighlight %}

And you have ruby-1.8.7 and ruby-1.9.2 in RVM and you want to use 1.9.2 ruby version in that project.

Then you can put this in your @~/repo/myproject/.rvmrc@ file:

{% highlight bash %}
rvm 1.9.2
{% endhighlight %}

So, every time you change to that project directory, *RVM will change to the specified ruby version*.

{% highlight bash linenos %}
chalofa [1.8.7]:~/repo/myproject$ ruby --version
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]

chalofa [1.8.7]:~/repo$ cd myproject/
chalofa [1.9.2]:~/repo/myproject$ ruby --version
ruby 1.9.2dev (2010-07-11 revision 28618) [x86_64-linux]

chalofa [1.9.2]:~/repo/myproject$ cd ..
chalofa [1.8.7]:~/repo$ ruby --version
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
{% endhighlight %}

As you can see, first we are using Ruby version 1.8.7, after the change to our project directory, the version selected in the @.rvmrc@ is used: 1.9.2
Once you abandon the project directory, your default Ruby version will be used!

It even *works with gemsets* so you can have something like this in your @.rvmrc@ file:

{% highlight bash %}
rvm 1.9.2@blog
{% endhighlight %}

*And every time you cd into your directory, your ruby version and gemset will be changed :)*

h2. Final thoughts

Whether this file should or shouldn't be in your project repo is up to you, but IMO it should be ignored, creating the possibility to be defined by every user...

What do you think about that?

182 changes: 0 additions & 182 deletions _posts/2010-08-20-tdd-introduction.markdown

This file was deleted.

18 changes: 3 additions & 15 deletions _site/2010/07/11/git-initial-configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,7 @@
<link rel="stylesheet" href="/stylesheets/syntax.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS Feed for blog.crowdint.com" href="http://feeds.feedburner.com/CrowdInteractiveTechBlog" />
<!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17527068-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

</head>
<body>
<div class="container">
Expand Down Expand Up @@ -130,14 +118,14 @@ <h1>Related Posts</h1>

<li><span><b>06 Aug 2010</b></span> &raquo; <a href="/2010/08/06/our-git-workflow.html">Our git workflow</a></li>

<li><span><b>11 Jul 2010</b></span> &raquo; <a href="/2010/07/11/git-initial-configuration.html">First Things First... Our initial git configuration</a></li>

<li><span><b>02 Aug 2010</b></span> &raquo; <a href="/2010/08/02/instant-blog-using-jekyll-and-heroku.html">Instant blog using Jekyll and Heroku</a></li>

<li><span><b>28 Jul 2010</b></span> &raquo; <a href="/2010/07/28/getting-started-with-rvm.html">Getting started with Ruby Version Manager (RVM)</a></li>

<li><span><b>18 Jul 2010</b></span> &raquo; <a href="/2010/07/18/setting-up-automation-with-cucumber-rspec-autotest.html">Setting up Automation with Cucumber, RSpec, Autotest in RoR 2.3.8</a></li>

<li><span><b>17 Aug 2010</b></span> &raquo; <a href="/2010/08/17/use-a-project-specific-ruby-version-rvm.html">Use a project specific Ruby version with RVM</a></li>

<li><span><b>13 Aug 2010</b></span> &raquo; <a href="/2010/08/13/fix-incompatibility-with-attachment-fu-and-acts-as-list.html">Improve performance between attachment_fu and acts_as_list</a></li>

</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,7 @@
<link rel="stylesheet" href="/stylesheets/syntax.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS Feed for blog.crowdint.com" href="http://feeds.feedburner.com/CrowdInteractiveTechBlog" />
<!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17527068-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

</head>
<body>
<div class="container">
Expand Down Expand Up @@ -199,16 +187,14 @@ <h2>Installing ZenTest, Autotest-Rails y Autotest-Growl</h2>
<h1>Related Posts</h1>
<ul class="archives">

<li><span><b>18 Jul 2010</b></span> &raquo; <a href="/2010/07/18/setting-up-automation-with-cucumber-rspec-autotest.html">Setting up Automation with Cucumber, RSpec, Autotest in RoR 2.3.8</a></li>

<li><span><b>28 Jul 2010</b></span> &raquo; <a href="/2010/07/28/getting-started-with-rvm.html">Getting started with Ruby Version Manager (RVM)</a></li>

<li><span><b>10 Aug 2010</b></span> &raquo; <a href="/2010/08/10/bundler.html">Agile/Bundler small test App</a></li>

<li><span><b>02 Aug 2010</b></span> &raquo; <a href="/2010/08/02/instant-blog-using-jekyll-and-heroku.html">Instant blog using Jekyll and Heroku</a></li>

<li><span><b>06 Aug 2010</b></span> &raquo; <a href="/2010/08/06/our-git-workflow.html">Our git workflow</a></li>

<li><span><b>17 Aug 2010</b></span> &raquo; <a href="/2010/08/17/use-a-project-specific-ruby-version-rvm.html">Use a project specific Ruby version with RVM</a></li>

<li><span><b>13 Aug 2010</b></span> &raquo; <a href="/2010/08/13/fix-incompatibility-with-attachment-fu-and-acts-as-list.html">Improve performance between attachment_fu and acts_as_list</a></li>

<li><span><b>11 Jul 2010</b></span> &raquo; <a href="/2010/07/11/git-initial-configuration.html">First Things First... Our initial git configuration</a></li>
Expand Down
Loading

0 comments on commit b0c31ec

Please sign in to comment.