acrmp/foodcritic — pull request #157 by douglaswth (2013-08-15 23:42:23+00:00)
Title: Since Cygwin doesn't have a built-in rake, foodcritic should depend on the rake gem.

On Cygwin using `thor-foodcritic` setup from `berkshelf`, I found that `thor list` was failing because it couldn't find `rake` in the bundle:

```
[dthrift@RS082:marker]$ thor list --debug
WARNING: unable to load thorfile "/home/dthrift/cookbooks/marker/Thorfile": cannot load such file -- rake
/usr/lib/ruby/gems/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
/usr/lib/ruby/gems/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
/usr/lib/ruby/gems/1.9.1/bundler/gems/foodcritic-f6eb84ec6bbc/lib/foodcritic/rake_task.rb:1:in `'
/usr/lib/ruby/gems/1.9.1/bundler/gems/foodcritic-f6eb84ec6bbc/lib/foodcritic.rb:19:in `require_relative'
/usr/lib/ruby/gems/1.9.1/bundler/gems/foodcritic-f6eb84ec6bbc/lib/foodcritic.rb:19:in `'
/usr/lib/ruby/gems/1.9.1/gems/thor-foodcritic-0.2.0/lib/thor-foodcritic.rb:2:in `require'
/usr/lib/ruby/gems/1.9.1/gems/thor-foodcritic-0.2.0/lib/thor-foodcritic.rb:2:in `'
/usr/lib/ruby/gems/1.9.1/gems/thor-foodcritic-0.2.0/lib/thor/foodcritic.rb:1:in `require'
/usr/lib/ruby/gems/1.9.1/gems/thor-foodcritic-0.2.0/lib/thor/foodcritic.rb:1:in `'
/home/dthrift/cookbooks/marker/Thorfile:5:in `require'
/home/dthrift/cookbooks/marker/Thorfile:5:in `load_thorfile'
/usr/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/util.rb:157:in `class_eval'
/usr/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/util.rb:157:in `load_thorfile'
/usr/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/runner.rb:214:in `block in initialize_thorfiles'
/usr/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/runner.rb:213:in `each'
/usr/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/runner.rb:213:in `initialize_thorfiles'
/usr/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/runner.rb:156:in `list'
/usr/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
/usr/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
/usr/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
/usr/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
/usr/lib/ruby/gems/1.9.1/gems/thor-0.18.1/bin/thor:6:in `'
/usr/bin/thor:23:in `load'
/usr/bin/thor:23:in `

'
No Thor commands available
```

It looks like Cygwin doesn't ship `rake` as part of the base ruby, but instead only as a gem.