Issue #9562 has been updated by Akinori MUSHA.


Eric, I think the problem is that Gem::RemoteFetcher#fetch_path fails in `Gem.gunzip data` if the `data` is already decoded by Net::HTTP of Ruby 2.0 and later.
It happens when the HTTP server is configured to set a `Content-Encoding: gzip` header for .gz files, which itself is not necessarily a misconfiguration.

----------------------------------------
Bug #9562: Cannot install gems from gzip-compressing gem server
https://bugs.ruby-lang.org/issues/9562#change-45711

* Author: 5 5
* Status: Rejected
* Priority: Normal
* Assignee: Eric Hodel
* Category: lib/rubygems
* Target version: current: 2.2.0
* ruby -v: ruby 2.0.0p353 (2013-11-22) [i386-mingw32]
* Backport: 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
gem generate_index で作成した gem server が gzip 圧縮を行う場合,Ruby 2.0 以上では gem のインストールに失敗します。

Ruby 1.9 では正常です。

サーバーを gzip 圧縮しない設定にすれば問題が解消します。






-- 
http://bugs.ruby-lang.org/