Red Hat Bugzilla – Bug 1308738
Unable to fetch remote gems
Last modified: 2016-02-22 08:04:41 EST
Description of problem:
gem2spec is not able to download gems when using the "--fetch" command line argument. This is due to a redirect from http to https which is forbidden.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run command such as: gem2rpm --fetch -s librarian-puppet
/usr/share/ruby/open-uri.rb:224:in `open_loop': redirection forbidden: http://rubygems.org/api/v1/gems/librarian-puppet.json -> https://rubygems.org/api/v1/gems/librarian-puppet.json (RuntimeError)
from /usr/share/ruby/open-uri.rb:150:in `open_uri'
from /usr/share/ruby/open-uri.rb:716:in `open'
from /usr/share/ruby/open-uri.rb:34:in `open'
from /usr/share/gems/gems/gem2rpm-0.11.2/bin/gem2rpm:103:in `<top (required)>'
from /usr/bin/gem2rpm:23:in `load'
from /usr/bin/gem2rpm:23:in `<main>'
Gem file is downloaded and source rpm is built.
I edited the gem2rpm source to use https instead of http and that fixed the problem for me.
Hi and thanks for the report.
By coincidence, this was recently reported upstream:
If you don't mind, I am closing this ticket in favor of the upstream ticket. Feel free to reopen if you have any additional concerns.