lomba/schema_plus — Issue #45: Heroku deploy fails because of schema_plus gemspec file?
Author: rasmusrn
Created: 2011-10-21 11:35:02+00:00
State: open

After upgrading to 0.1.3 (from 0.1.2) I got the error when deploying to Heroku:

```
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.1.rc
Running: bundle install --without development:test --path vendor/bundle --deployment
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Using rake (0.9.2)
Using RedCloth (4.2.8)
[A lot of gems]
Installing sass-rails (3.1.4)
Installing valuable (0.9.2)
ArgumentError: invalid byte sequence in US-ASCII
An error occured while installing schema_plus (0.1.3), and Bundler cannot continue.
Make sure that `gem install schema_plus -v '0.1.3'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
```

Inspired by what @mlomnicki wrote [here](https://github.com/mlomnicki/redhillonrails_core/issues/15#issuecomment-1829822) I tried [removing non ascii characters from schema_plus' gemspec file](https://github.com/rasmusrn/schema_plus/commit/c77672913c741750d1be6a56fae9fd2ddb0507f1).

That solved the problem!

I guess Heroku should work even though there are non ascii characters in the gemspec file, but you might want to consider removing them as long as this problem persists.