Subject: Re: SourceInfoCache gone, etc. (Was: Problems with
trunk ...) - msg#00043
On Jun 8, 2008, at 11:34 AM, Chad Woolley wrote:
On Sun, Jun 8, 2008 at 12:58 AM, Eric Hodel <drbrain-48TerJ1FxhPk1uMJSBkQmQ@xxxxxxxxxxxxxxxx>
wrote:
The new bulk-index-free API is in rubygems/spec_fetcher.rb
(Gem::SpecFetcher).
OK, I'd like to clarify a few things about the latest version:
1. Should ANY [local] queries via the API should go through
spec_fetcher.rb?
No, they still use Gem.source_index. See
Gem::Commands::QueryCommand#execute.
2. Should there be any reason to directly use SourceIndex anymore, or
should it be considered private?
Gem::SourceIndex is ok to use, but Gem::SourceInfoCache and
Gem::SourceInfoCacheEntry will be going away eventually (probably in 2
years or so).
3. Should all this work the same for the on-the-fly servers (quick
index is the right term?) as well as servers with generated
specs.4.8.gz/latest_specs.4.8.gz?
Both `gem server` and `gem generate_index` now produce specs.4.8.gz
and latest_specs.4.8.gz, and they also produce all the legacy
indexes. If there's a server without the new indexes all the sources
should drop back to using the legacy indexes (and print out a warning).
Thread at a glance:
Previous Message by Date:
Re: gem weirdness
On 9 Jun 2008, at 13:59, Jim Weirich wrote:
On Jun 9, 2008, at 4:41 AM, Ruben Fonseca wrote:
I have a project at rubyforge called tarpipe (tarpipe.rubyforge.org).
It's already at version 0.1.1.
However, I found today that when I do on any machine "sudo gem
install
tarpipe" it installs a gem version 0.0.1 that *is not even my code*!
It's a different project by a different author!
So I have two questions:
- How is this possible?
- What can I do to correct this situation!
I see the author of verion 0.0.1 is listed as a co-owner of the
tarpipe project. I see the 0.1.1 gem listed in the files area, but
no 0.0.1 version. Did you or he release version 0.0.1 from a
different project? Once a gem is released, you must upload new
versions to the same project name (this protects you from someone
else releasing a gem with the same name and overriding yours). If
this is the case, then you just need to file a support ticket with
RubyForge to get that switched.
Mmm.. pay close attention to the e-mail addresses on the site, are
they correct?
http://tarpipe.rubyforge.org/
--
-- Jim Weirich
-- jim.weirich-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx
_______________________________________________
Rubygems-developers mailing list
Rubygems-developers-GrnCvJ7WPxnNLxjTenLetw@xxxxxxxxxxxxxxxx
http://rubyforge.org/mailman/listinfo/rubygems-developers
Next Message by Date:
Re: gem weirdness
On Jun 9, 2008, at 03:41 AM, Ruben Fonseca wrote:
I have a project at rubyforge called tarpipe (tarpipe.rubyforge.org).
It's already at version 0.1.1.
However, I found today that when I do on any machine "sudo gem install
tarpipe" it installs a gem version 0.0.1 that *is not even my code*!
It's a different project by a different author!
So I have two questions:
- How is this possible?
Since tarpipe-0.0.1 is not in your files list, it was probably added
to the index manually by Tom Copeland. If a gem was added manually,
gems with a name collision won't be added to prevent people from doing
malicious stuff.
- What can I do to correct this situation!
Put tarpipe-0.0.1 in your downloads list (optional) and have Tom (tom-rlPNtO1eV9h54TAoqtyWWQ@xxxxxxxxxxxxxxxx
) remove tarpipe-0.0.1 that was manually added.
Previous Message by Thread:
Re: SourceInfoCache gone, etc. (Was: Problems with trunk ...)
On Sun, Jun 8, 2008 at 11:34 AM, Chad Woolley
<thewoolleyman-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote:
> 1. Should ANY remote queries via the API ...
Correction, I meant 'local" queries, not remote. I assume GemRunner
with --list --remote options is still correct for remote queries.
Next Message by Thread:
How to install rubygems on MinGW?
Hi,
I have a question about rubygems to install MinGW.
If this mailing list is wrong for this issue,
Please suggest me.
I am trying to do ruby setup.py,
but it generates many error message like follows.
If any good page exists, please suggest me.
=================
install -c -m 0755 C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/gem.bat
C:/msys/1.0/local/bin/gem.bat
rm C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/gem.bat
rm -f C:/msys/1.0/local/lib/ruby/gems/1.8/source_cache
rm -rf C:/msys/1.0/local/lib/ruby/gems/1.8/doc/rubygems-1.1.1
lib/rubygems/command_manager.rb:139:61: Skipping require of dynamic string:
"rubygems/commands/#{command_name}_command"
lib/rubygems/dependency_installer.rb:38:5: Unrecognized directive 'env_shebang'
lib/rubygems/installer.rb:59:5: Unrecognized directive 'env_shebang'
lib/rubygems/install_update_options.rb:22:32: ':' not followed by identified or
operator
lib/rubygems/install_update_options.rb:28:32: ':' not followed by identified or
operator
==================
Thanks
Atsushi SAKAI