drnic/appscrolls — pull request #30 by allangrant (2012-04-30 08:51:29+00:00)
Title: Fixed guard scroll causing engine yard deploy failure due to inconsistent gems between dev & prod

The guard scroll put some code in the Gemfile like this:
```ruby
require 'rbconfig'
HOST_OS = RbConfig::CONFIG['host_os']

group :development do
case HOST_OS
when /darwin/i
gem 'rb-fsevent'
gem 'ruby_gntp' if guard_notifications
when /linux/i
gem 'libnotify'
gem 'rb-inotify'
when /mswin|windows/i
gem 'rb-fchange'
gem 'win32console'
gem 'rb-notifu' if guard_notifications
end
end
```
This caused problems when deploying to Engine Yard (or any system with a different os than the development machine) because the expected gems weren't in the lock file.

This patch moves the switch to occur when the app is created. (A scroll is usually cast in the development environment, right?)
It only puts one set of gems in the gemfile and fixes Engine Yard deploy. Output in Gemfile (for a mac system):
```ruby
gem "rb-fsevent", :group => :development
gem 'ruby_gntp', :group => :development if guard_notifications
```