Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Gem
/
TestCase
/
//opt/alt/ruby21/share/ri/2.1.0/system/Gem/TestCase/spec_fetcher-i.ri
U:RDoc::AnyMethod[iI"spec_fetcher:EFI"Gem::TestCase#spec_fetcher;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"LCreates a SpecFetcher pre-filled with the gems or specs defined in the ;TI"block.;To:RDoc::Markup::BlankLine o; ; [I"OYields a +fetcher+ object that responds to +spec+ and +gem+. +spec+ adds ;TI"Na specification to the SpecFetcher while +gem+ adds both a specification ;TI"Nand the gem data to the RemoteFetcher so the built gem can be downloaded.;T@o; ; [I"IIf only the a-3 gem is supposed to be downloaded you can save setup ;TI"8time by creating only specs for the other versions:;T@o:RDoc::Markup::Verbatim; [ I"spec_fetcher do |fetcher| ;TI" fetcher.spec 'a', 1 ;TI"; fetcher.spec 'a', 2, 'b' => 3 # dependency on b = 3 ;TI"$ fetcher.gem 'a', 3 do |spec| ;TI"( # spec is a Gem::Specification ;TI" # ... ;TI" end ;TI"end;T:@format0: @fileI"lib/rubygems/test_case.rb;T:0@omit_headings_from_table_of_contents_below00I"spec_fetcher_setup;T[ I"(repository = @gem_repo);T@#FI" TestCase;TcRDoc::NormalClass00