Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Unable to install turn via bundler #93

Open
jamiebuchanan opened this Issue · 3 comments

2 participants

@jamiebuchanan

Also submitted to bundler issue tracker: bundler/bundler#1974

  gem 'turn', require: false, git: 'https://github.com/TwP/turn.git'

in the gemfile causes an error

here's the trace

Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks!
/Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler.rb:280:in eval': /Users/jamie/.rvm/gems/ruby-1.9.2-p290@sm-web/bundler/gems/turn-246b88781470/.gemspec:160: syntax error, unexpected tIDENTIFIER, expecting ']' (SyntaxError)
...] =~ /^home|website/ || r['type'] =~ /^home/ }
... ^
/Users/jamie/.rvm/gems/ruby-1.9.2-p290@sm-web/bundler/gems/turn-246b88781470/.gemspec:161: syntax error, unexpected tIDENTIFIER, expecting '}'
gemspec.homepage = homepage['uri'] if homepage
^
/Users/jamie/.rvm/gems/ruby-1.9.2-p290@sm-web/bundler/gems/turn-246b88781470/.gemspec:163: syntax error, unexpected tIDENTIFIER, expecting '}'
...hs = metadata['load_path'] || ['lib']
... ^
/Users/jamie/.rvm/gems/ruby-1.9.2-p290@sm-web/bundler/gems/turn-246b88781470/.gemspec:163: syntax error, unexpected tIDENTIFIER, expecting '}'
... metadata['load_path'] || ['lib']
... ^
/Users/jamie/.rvm/gems/ruby-1.9.2-p290@sm-web/bundler/gems/turn-246b88781470/.gemspec:164: syntax error, unexpected tIDENTIFIER, expecting '}'
gemspec.post_install_message = metadata['install_message']
^
/Users/jamie/.rvm/gems/ruby-1.9.2-p290@sm-web/bundler/gems/turn-246b88781470/.gemspec:171: syntax error, unexpected tFLOAT, expecting '}'
if Gem::VERSION < '1.7.'
^
/Users/jamie/.rvm/gems/ruby-1.9.2-p290@sm-web/bundler/gems/turn-246b88781470/.gemspec:177: unterminated string meets end of file
/Users/jamie/.rvm/gems/ruby-1.9.2-p290@sm-web/bundler/gems/turn-246b88781470/.gemspec:177: syntax error, unexpected $end, expecting '}'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler.rb:280:in
rescue in block in load_gemspec'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler.rb:275:in block in load_gemspec'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler.rb:273:in
chdir'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler.rb:273:in load_gemspec'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/source.rb:340:in
block in load_spec_files'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/source.rb:339:in each'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/source.rb:339:in
load_spec_files'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/source.rb:572:in load_spec_files'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/source.rb:372:in
local_specs'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/source.rb:557:in specs'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/definition.rb:430:in
block in converge_locked_specs'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/definition.rb:419:in each'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/definition.rb:419:in
converge_locked_specs'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/definition.rb:180:in resolve'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/definition.rb:127:in
specs'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/definition.rb:122:in resolve_remotely!'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/installer.rb:48:in
run'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/installer.rb:12:in install'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/cli.rb:220:in
install'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/vendor/thor/task.rb:22:in run'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/vendor/thor/invocation.rb:118:in
invoke_task'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/vendor/thor.rb:263:in dispatch'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/lib/bundler/vendor/thor/base.rb:386:in
start'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.1.3/bin/bundle:13:in <top (required)>'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/bin/bundle:19:in
load'
from /Users/jamie/.rvm/gems/ruby-1.9.2-p290@global/bin/bundle:19:in `

'

@jamiebuchanan

The gem is broken because the gemspec is invalid ruby code.

@trans
Owner

Hmm... that's odd, because I was able to build the gem just fine with the gemspec and looking at the line I don't see the syntax error --line #160 looks fine to me.

Maybe I'm just not seeing it. Do you see anything wrong with it?

Btw, I don't think you need the require: false anymore. The new version requires that tests use require turn/autorun instead to avoid this problem.

@trans
Owner

Can you confirm fix? I will close ticket.

@tmornini tmornini referenced this issue from a commit in boocx/turn
@trans trans Tweak to gemspec trying to figure out issue #93. 3b8c044
@tmornini tmornini referenced this issue from a commit in boocx/turn
@trans trans Use parens in regexp in gemspec fixing #93. [bug] 22f1951
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.