[SOLVED] warning: Insecure world writable dir

I've had my face-palm moment for the day. While searching for how to solve the annoying ruby alert of "Insecure world writable dir", the fact that I was on a FAT32 partition completely skipped my mind. The chmod/chown commands tutorials told me to execute weren't working, and my mind was blown. If you're an Ubuntu user working on a FAT32 partition, you can't change file permissions!

The Solution

Thanks to Ruby-Forum.com, I found that inserting "$VERBOSE=nil" into my bundler runtime file helped suppress this annoying message. Please be careful with this, and only do this if you work exclusively on a FAT32 partition. Find your gem path so we can edit the bundler gem. Execute the following in your shell: (credit)
$ ruby -r rubygems -e "p Gem.path"
Navigate to your gem path and cd into the version of bundler currently being used. Now navigate to lib -> bundler and open runtime.rb in your favorite text editor. Add "$VERBOSE = nil" to line 2.
require "digest/sha1"
$VERBOSE = nil 

module Bundler
  class Runtime < Environment
    include SharedHelpers

    def setup(*groups)
      # Has to happen first
      clean_load_path

...
[/ruby]

Now that annoying warning should leave you alone.

    September 21, 2011
  
About the Author:

Joseph is the lead developer of Vert Studios Follow Joseph on Twitter: @Joe_Query
Subscribe to the blog: RSS
Visit Joseph's site: joequery.me