title: Ruby error message starting vagrant
body: <p>I used to start my local VM <code>gc-gw0</code> with vagrant:</p>
  
  <pre><code>vagrant up gc-gw0
  </code></pre>
  
  <p>but since today I get this error instead:</p>
  
  <pre><code>/usr/lib/ruby/2.1.0/rubygems/version.rb:202:in `initialize': 
          Malformed version number string .git (ArgumentError)
          from /usr/lib/ruby/2.1.0/rubygems/version.rb:192:in `new'
          from /usr/lib/ruby/2.1.0/rubygems/version.rb:192:in `new'
          from /usr/lib/ruby/vendor_ruby/vagrant/box_collection.rb:274:in `block (2 levels) in find'
          from /usr/lib/ruby/vendor_ruby/vagrant/box_collection.rb:271:in `map'
          from /usr/lib/ruby/vendor_ruby/vagrant/box_collection.rb:271:in `block in find'
          from /usr/lib/ruby/vendor_ruby/vagrant/box_collection.rb:423:in `block in with_collection_lock'
          from /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
          from /usr/lib/ruby/vendor_ruby/vagrant/box_collection.rb:422:in `with_collection_lock'
          from /usr/lib/ruby/vendor_ruby/vagrant/box_collection.rb:264:in `find'
          from /usr/lib/ruby/vendor_ruby/vagrant/vagrantfile.rb:157:in `block in machine_config'
          from /usr/lib/ruby/vendor_ruby/vagrant/vagrantfile.rb:190:in `call'
          from /usr/lib/ruby/vendor_ruby/vagrant/vagrantfile.rb:190:in `machine_config'
          from /usr/lib/ruby/vendor_ruby/vagrant/vagrantfile.rb:45:in `machine'
          from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:503:in `machine'
          from /usr/lib/ruby/vendor_ruby/vagrant/plugin/v2/command.rb:168:in `block in with_target_vms'
          from /usr/lib/ruby/vendor_ruby/vagrant/plugin/v2/command.rb:192:in `call'
          from /usr/lib/ruby/vendor_ruby/vagrant/plugin/v2/command.rb:192:in `block in with_target_vms'
          from /usr/lib/ruby/vendor_ruby/vagrant/plugin/v2/command.rb:174:in `each'
          from /usr/lib/ruby/vendor_ruby/vagrant/plugin/v2/command.rb:174:in `with_target_vms'
          from /usr/share/vagrant/plugins/commands/up/command.rb:67:in `block in execute'
          from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:239:in `block (2 levels) in batch'
          from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:237:in `tap'
          from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:237:in `block in batch'
          from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:236:in `synchronize'
          from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:236:in `batch'
          from /usr/share/vagrant/plugins/commands/up/command.rb:58:in `execute'
          from /usr/lib/ruby/vendor_ruby/vagrant/cli.rb:42:in `execute'
          from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:258:in `cli'
          from /usr/bin/vagrant:173:in `&lt;main&gt;'
  </code></pre>
  
  <p>The strange thing is, I still started it like this yesterday without problem.</p>
  
  <p>I searched a lot for this error but no hints yet. What does this error message mean? Which is the main error in the whole message?</p>
  
  <p>I use </p>
  
  <pre><code>$ vagrant -v
  Vagrant 1.6.5
  $ ruby -v
  ruby 2.1.2p95 (2014-05-08) [i386-linux-gnu]
  </code></pre>
  
  <p>Vagrantfile and bootstrap-testnode.sh files are here: <a href="https://github.com/rubo77/freifunk-gluon-example-node" rel="nofollow">rubo77/freifunk-gluon-example-node</a><br>
  But I deleted all my vms in virtualbox but still I get this error anytime I want to do anything with vagrant. seems vagrant has some problem itself. So I guess the scripts I tried have nothing to do with this error.</p>
  
  <p>line 202 in <code>/usr/lib/ruby/2.1.0/rubygems/version.rb</code> is this:</p>
  
  <pre><code>def initialize version
      raise ArgumentError, "Malformed version number string #{version}" unless
        self.class.correct?(version)
  
      @version = version.to_s.strip.gsub("-",".pre.")
      @segments = nil
    end
  </code></pre>
  
  <p>So it seems like ruby is checking a .git folder instead of a version number folder</p>