spree/spree — Issue #755: Spree 0.70.1 on Heroku Cedar: Naming collision with AWS-S3 gem?
Author: adamwible
Created: 2011-11-12 14:09:43+00:00
State: open

Hello -

I'm trying to set up a fully working demo of Spree 0.70.1 on Heroku Cedar (developing on Windows 7) - nothing fancy and no customization. It works without the 'spree_heroku' gem and the 'aws-s3' gem, but there are no product images as Heroku has no storage and we need to use S3 instead.

Including the 'spree_heroku' and 'aws-s3' gems in the gemfile produces the following error:

←[36m2011-11-12T14:02:26+00:00 app[web.1]:←[0m /app/vendor/bundle/ruby/1.9.1/gems/spree_core-0.70.1/app/models/calculator/price_bucket.rb:1:in `': superclass mismatch for class PriceBucket (TypeError)

Others have discussed solving this error either by copying spree_heroku into the sandbox instead of using the gem (I don't know what this means), or by renaming PriceBucket within the Spree source code so it doesn't collide with the 'aws-s3' gem.

Is there any way to fix this without forking / modifying the spree source code?

Thanks,

Adam
https://github.com/adamwible/field_day