seejohnrun/ice_cube — Issue #60: Psych on Heroku
Author: polarblau
Created: 2012-01-25 12:53:17+00:00
State: open

After updating ice_cube to 0.7.6 I'm getting the following error in production (Heroku):

```bash
no such file to load -- ---
:start_date: 2012-01-20 20:00:00 +00:00
:rrules:
- :rule_type: IceCube::WeeklyRule
[… YAML CONTINUES …]

vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:in `load'

````
I've tracked this problem down on the ice_cube side to https://github.com/seejohnrun/ice_cube/blob/master/lib/ice_cube/schedule.rb#L261 . It seems that in production Psych is used as YAML parser and tries to load a file rather than accepting the YAML as string.

It seems *something* called Psych is defined, but it's `#load` method tries to load a file.

**I got around this by explicitly defining a gem dependency `gem 'psych'` for production.**

I'm assuming that this is not necessarily a ice_cube issue, but maybe something could be done to secure the situation?