cnichs27
cnichs27

Reputation: 258

Gemfile syntax error on line 8: unterminated string meets end of file

Getting this error when trying to push gem file to git using git push heroku master.

A sample Gemfile

source "https://rubygems.org"
ruby '2.0.0'

gem 'puma'
gem 'rails'
gem 'sinatra', '1.0'
gem 'rails_12factor'

Upvotes: 0

Views: 606

Answers (1)

matt
matt

Reputation: 79733

The line

gem 'sinatra’, '1.0'

contains a character (i.e. U+2019 RIGHT SINGLE QUOTATION MARK, a “typographic” or “curly” quote) at the end of sinatra rather than a ' (U+0027 APOSTROPHE or “straight” quote), which is causing all the remaining quote characters to be out of alignment.

Changing that character to ' should fix it.

Upvotes: 2

Related Questions