can't convert Pathname into String (TypeError) #127

Closed
alindeman opened this Issue Aug 27, 2011 · 6 comments

Comments

Projects
None yet
2 participants
@alindeman

Version 1.7.5 on MRI 1.9.2.

require "webmock"

produces:

/Users/alindeman/.rvm/gems/ruby-1.9.2-p290/gems/webmock-1.7.5/lib/webmock/http_lib_adapters/em_http_request_adapter.rb:10:in `require': can't convert Pathname into String (TypeError)
    from /Users/alindeman/.rvm/gems/ruby-1.9.2-p290/gems/webmock-1.7.5/lib/webmock/http_lib_adapters/em_http_request_adapter.rb:10:in `<top (required)>'
    from /Users/alindeman/.rvm/gems/ruby-1.9.2-p290/gems/webmock-1.7.5/lib/webmock.rb:15:in `require'
    from /Users/alindeman/.rvm/gems/ruby-1.9.2-p290/gems/webmock-1.7.5/lib/webmock.rb:15:in `<top (required)>'
    from /Users/alindeman/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
@bblimke

This comment has been minimized.

Show comment Hide comment
@bblimke

bblimke Aug 27, 2011

Owner

Interesting. I just included it on ruby 1.9.2-p290 and it worked just fine.
Maybe it's something specific to your environment or some conflicting gem. Not sure how to reproduce it.

Owner

bblimke commented Aug 27, 2011

Interesting. I just included it on ruby 1.9.2-p290 and it worked just fine.
Maybe it's something specific to your environment or some conflicting gem. Not sure how to reproduce it.

@bblimke

This comment has been minimized.

Show comment Hide comment
@bblimke

bblimke Aug 27, 2011

Owner

What version of rubygems do you use?

Owner

bblimke commented Aug 27, 2011

What version of rubygems do you use?

@alindeman

This comment has been minimized.

Show comment Hide comment
@alindeman

alindeman Aug 27, 2011

Doh, you're right, in a clean environment it seems to work OK. I'll investigate further .. the project it's included in isn't too complicated.

Doh, you're right, in a clean environment it seems to work OK. I'll investigate further .. the project it's included in isn't too complicated.

@bblimke

This comment has been minimized.

Show comment Hide comment
@bblimke

bblimke Sep 3, 2011

Owner

Have you found the root cause? Is there a problem in webmock or not?

Owner

bblimke commented Sep 3, 2011

Have you found the root cause? Is there a problem in webmock or not?

@alindeman

This comment has been minimized.

Show comment Hide comment
@alindeman

alindeman Sep 11, 2011

Looking again.

Looking again.

@alindeman

This comment has been minimized.

Show comment Hide comment
@alindeman

alindeman Sep 11, 2011

Can't reproduce anymore. D'oh :(

Can't reproduce anymore. D'oh :(

@alindeman alindeman closed this Sep 11, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment