[Rubygems-developers] gem server problems in 0.9.5
drbrain at segment7.net
Mon Dec 17 22:43:49 EST 2007
On Dec 17, 2007, at 19:20 PM, Chad Woolley wrote:
> On Dec 17, 2007 7:32 PM, Chad Woolley <thewoolleyman at gmail.com> wrote:
>> On Dec 17, 2007 4:35 PM, Eric Hodel <drbrain at segment7.net> wrote:
>> This is getting closer, but there are still a couple of gems that
>> problems. Also, I had to actually install the trunk version to get
>> to pick up a couple of them, which seems to indicate that "-I"
>> approach of running a specific version sometimes still uses installed
>> rubygems files.
> Now that you showed me where the problems are, I came up with a
> failing test for the remaining problems:
> ab1 = quick_gem 'ab', '1'
> si = Gem::SourceIndex.new @a1.full_name => @a1, ab1.full_name =>
> @server.source_index = si
> data = StringIO.new "GET /quick/a-1.gemspec.rz HTTP/1.0\r\n\r\n"
> @req.parse data
> @server.quick @req, @res
> assert_equal 200, @res.status
> assert @res['date']
> assert_equal 'text/plain', @res['content-type']
> yaml = Zlib::Inflate.inflate(@res.body)
> assert_match %r|Gem::Specification|, yaml
> assert_match %r|name: a|, yaml
> assert_match %r|version: "1"|, yaml
> I'll try to patch this if you don't beat me to it. Gotta go play with
> my son now :)
Perfect. Try r1558.
More information about the Rubygems-developers