method
build_marshal_gemspecs
v2_2_9 -
Show latest stable
- Class:
Gem::Indexer
build_marshal_gemspecs()public
Builds Marshal quick index gemspecs.
# File lib/rubygems/indexer.rb, line 128
def build_marshal_gemspecs
count = Gem::Specification.count { |s| not s.default_gem? }
progress = ui.progress_reporter count,
"Generating Marshal quick index gemspecs for #{count} gems",
"Complete"
files = []
Gem.time 'Generated Marshal quick index gemspecs' do
Gem::Specification.each do |spec|
next if spec.default_gem?
spec_file_name = "#{spec.original_name}.gemspec.rz"
marshal_name = File.join @quick_marshal_dir, spec_file_name
marshal_zipped = Gem.deflate Marshal.dump(spec)
open marshal_name, 'wb' do |io| io.write marshal_zipped end
files << marshal_name
progress.updated spec.original_name
end
progress.done
end
@files << @quick_marshal_dir
files
end Related methods
- Instance methods
- abbreviate
- build_indicies
- build_marshal_gemspecs
- build_modern_index
- build_modern_indicies
- compact_specs
- compress
- compress_indicies
- gem_file_list
- generate_index
- gzip
- install_indicies
- make_temp_directories
- map_gems_to_specs
- paranoid
- sanitize
- sanitize_string
- update_index
- update_specs_index
- Class methods
- new