indirect / jquery-rails

A gem to automate using jQuery with Rails 3
MIT License
465 stars 36 forks source link

1.0.17 and heroku #81

Closed raskalbass closed 12 years ago

raskalbass commented 13 years ago

after update to this version i cant push anything to heroku. i spent couple of hours and find that problem in your gem. just install 1.0.16 version and everything is ok. hope it will be usefull

indirect commented 13 years ago

no, it's not. sorry.

On Nov 10, 2011, at 2:55 PM, raskalbass wrote:

after update to this version i cant push anything to heroku. i spent couple of hours and find that problem in your gem. just install 1.0.16 version and everything is ok. hope it will be usefull


Reply to this email directly or view it on GitHub: https://github.com/indirect/jquery-rails/issues/81

johnkchow commented 13 years ago

I had the same experience while deploying onto EngineYard. I received the following error in my deployment log:

from /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:479:in from_yaml' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:190:inload_gemspec' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:54:in block in initialize' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader.rb:64:inblock in each' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader.rb:55:in loop' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader.rb:55:ineach' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:35:in initialize' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:20:innew' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:20:in open' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:68:inopen' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:62:in from_io' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:46:inblock in from_file_by_path' from /usr/lib/ruby/1.9.1/open-uri.rb:35:in open' from /usr/lib/ruby/1.9.1/open-uri.rb:35:inopen' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:45:in from_file_by_path' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/source.rb:73:infetch' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/installer.rb:45:in block in run' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:inblock in each' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in each' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:ineach' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/installer.rb:44:in run' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/installer.rb:8:ininstall' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/cli.rb:226:in install' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor/task.rb:22:inrun' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor/invocation.rb:118:in invoke_task' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor.rb:246:indispatch' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor/base.rb:389:in start' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/bin/bundle:13:in<top (required)>' from /usr/bin/bundle:19:in load' from /usr/bin/bundle:19:in

'

I was able to track it down to this gem by creating a new instance on EngineYard and trying to do a fresh application setup. In that deployment log, it specifically said that while installing the jquery-rails gem v1.0.17, it said: "ArgumentError invalid byte sequence in US-ASCII."

I did a quick search on Google and it suggested to update RubyGems. However, we don't want to muck with the EY environment just to work around this issue.

xentek commented 12 years ago

Also getting "invalid byte sequence in US-ASCII" when deploying to an ubuntu box. Issue seems okay on OS X

indirect commented 12 years ago

Your LC_LANG or LANG or something similar is set to ASCII. The gemspec for jquery-rails contains UTF-8, so Ruby is (correctly) throwing an error.

On Nov 17, 2011, at 2:06 PM, Eric Marden wrote:

Also getting "invalid byte sequence in US-ASCII" when deploying to an ubuntu box. Issue seems okay on OS X


Reply to this email directly or view it on GitHub: https://github.com/indirect/jquery-rails/issues/81#issuecomment-2783958

xentek commented 12 years ago

You were absolutely right. I had forgot to set the locale on this box. This fixed it right up for me (on ubuntu):

sudo locale-gen en_US.UTF-8 && sudo /usr/sbin/update-locale LANG=en_US.UTF-8

Aslan commented 12 years ago

i am having the same problem. the solution above did not fix it. On my ubuntu 10.04 i have the following output from locale. So it seems everything is in place. Yet bundle install fails LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=

johnkchow commented 12 years ago

@Aslan For my Engine Yard deployment, I just specify the version "10.0.16" for the 'jquery-rails' gem in my app's Gemfile. I know this isn't an actual solution, but if it's keeping you from deploying, try this workaround for now.

xentek commented 12 years ago

Another way that should work is to prefix LANG=en_US.UTF-8 to your bundle install command

Aslan commented 12 years ago

@xentek That worked. Thanks

JangoSteve commented 12 years ago

Closing this since it's solved and since rails/jquery-rails is the currently-maintained fork.