{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/4c7c07cc2d0264879d8bd77a6f727210?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4c7c07cc2d0264879d8bd77a6f727210","url":"https://api.github.com/users/Govinda-Fichtner","login":"Govinda-Fichtner","id":598566},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-10-28T14:01:50Z","comments":1,"closed_at":null,"url":"https://api.github.com/repos/brady8/thumbs_up/issues/22","body":"Hello,\r\n\r\njust got into a problem installing the 0.4.3 version of the gem in a ruby 1.9.2 environment with bundler.\r\n\r\nThe error was:\r\n\r\n```ruby\r\n/usr/local/lib/ruby/1.9.1/rubygems/specification.rb:519:in `normalize_yaml_input': invalid byte sequence in US-ASCII (ArgumentError)\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/specification.rb:479:in `from_yaml'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/package/tar_input.rb:183:in `load_gemspec'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/package/tar_input.rb:51:in `block in initialize'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:64:in `block in each'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:55:in `loop'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:55:in `each'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/package/tar_input.rb:32:in `initialize'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/package/tar_input.rb:17:in `new'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/package/tar_input.rb:17:in `open'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/package.rb:58:in `open'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/format.rb:63:in `from_io'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/format.rb:51:in `block in from_file_by_path'\r\n\tfrom /usr/local/lib/ruby/1.9.1/open-uri.rb:35:in `open'\r\n\tfrom /usr/local/lib/ruby/1.9.1/open-uri.rb:35:in `open'\r\n\tfrom /usr/local/lib/ruby/1.9.1/rubygems/format.rb:50:in `from_file_by_path'\r\n\tfrom /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:100:in `spec_from_gem'\r\n\tfrom /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/source.rb:77:in `fetch'\r\n\tfrom /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/installer.rb:50:in `block in run'\r\n\tfrom /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/installer.rb:49:in `run'\r\n\tfrom /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/installer.rb:8:in `install'\r\n\tfrom /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/cli.rb:220:in `install'\r\n\tfrom /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `run'\r\n\tfrom /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'\r\n\tfrom /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor.rb:263:in `dispatch'\r\n\tfrom /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/vendor/thor/base.rb:386:in `start'\r\n\tfrom /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/bin/bundle:13:in `<top (required)>'\r\n\tfrom /usr/local/bin/bundle:19:in `load'\r\n\tfrom /usr/local/bin/bundle:19:in `<main>'\r\n```\r\n\r\nThe error only appears when you installed the gem via \"gem install thumbs_up\" (which seems to use the gem thumbs_up.gemspec file) and not if you installed it via bundler and the git parameter...\r\n\r\nAs far as I can see it seems to be related to the magic utf-8 comment in the thumbs_up.gemspec file... the utf-8 magic comment is in line four and should be in line one. If it is in line one I get no errors whatsoever.\r\nAccording to http://blog.grayproductions.net/articles/ruby_19s_three_default_encodings the magic comment should either be in line one or line two if there is a shebang line present.\r\n\r\nGovinda\r\n","html_url":"https://github.com/brady8/thumbs_up/issues/22","number":22,"title":"Ruby encoding issue","id":2077204,"created_at":"2011-10-28T10:06:57Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/6784782619029118d69f3c3a3194e311?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6784782619029118d69f3c3a3194e311","url":"https://api.github.com/users/brady8","login":"brady8","id":4944},"updated_at":"2011-10-28T14:01:50Z","url":"https://api.github.com/repos/brady8/thumbs_up/issues/comments/2556327","body":"Hey Govinda,\r\n\r\nI had the same problem, which is what the 0.4.3 release is for - you're correct that the UTF-8 line is in the wrong place - Jeweler puts it there by default. You'll notice that the one UTF-8 char in that file is now properly escaped so that the file can be interpreted as ASCII properly. I just tried it again and it seems to work for me - could you try it on Ruby 1.9.2 rather than 1.9.1? 1.9.1 is buggy in quite a few ways. Thanks!","id":2556327,"created_at":"2011-10-28T14:01:50Z"}}