TypeError when fetching gems with --source

S

Sean Sawyer

When I attempt to fetch gems while specifying a source, like so:

gem fetch activerecord-sqlserver-adapter
--source=http://gems.rubyonrails.org

...I receive the following error:

ERROR: While executing gem ... (TypeError)
can't convert URI::HTTP into String

I have tried fetching without specifying the source, which works just
fine. Suggestions?
 
S

Sean Sawyer

Sean said:
When I attempt to fetch gems while specifying a source, like so:

gem fetch activerecord-sqlserver-adapter
--source=http://gems.rubyonrails.org

...I receive the following error:

ERROR: While executing gem ... (TypeError)
can't convert URI::HTTP into String

I have tried fetching without specifying the source, which works just
fine. Suggestions?

Tried this on my Linux machine where of course it works. It's
unfortunate that this doesn't seem to work on Windows, however, since it
makes it a bit difficult to collect gems for installation on secure
machines if you can't fetch from the Rails gem repo.
 
E

Eric Hodel

Tried this on my Linux machine where of course it works. It's
unfortunate that this doesn't seem to work on Windows, however,
since it
makes it a bit difficult to collect gems for installation on secure
machines if you can't fetch from the Rails gem repo.


`gem env` and `gem --debug fetch ...` will be of help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top