camertron / esprima-rb

Ruby wrapper around the Esprima static code analyzer for JavaScript.
Apache License 2.0
8 stars 4 forks source link

Fix path to parser for gem #1

Closed presidentbeef closed 12 years ago

presidentbeef commented 12 years ago

Relative path to parser causes this error:

1.9.3p194 :001 > require 'esprima'
LoadError: cannot load such file -- ./lib/esprima/parser
    from /Users/collins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/collins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/collins/.rvm/gems/ruby-1.9.3-p194@coffeebreak/gems/esprima-1.0.0/lib/esprima.rb:6:in `<top (required)>'
    from /Users/collins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
    from /Users/collins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from /Users/collins/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from (irb):1
    from /Users/collins/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>'
camertron commented 12 years ago

Heh oops :) Thanks.