| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Gem/FakeFetcher/ |
Upload File : |
U:RDoc::NormalClass[iI"FakeFetcher:ETI"Gem::FakeFetcher;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"KA fake Gem::RemoteFetcher for use in tests or to avoid real live HTTP ;TI"3requests when testing code that uses RubyGems.;To:RDoc::Markup::BlankLine o; ;[I"
Example:;T@o:RDoc::Markup::Verbatim;[I"%@fetcher = Gem::FakeFetcher.new
;TI"J@fetcher.data['http://gems.example.com/yaml'] = source_index.to_yaml
;TI"+Gem::RemoteFetcher.fetcher = @fetcher
;TI"
;TI"# invoke RubyGems code
;TI"
;TI"paths = @fetcher.paths
;TI">assert_equal 'http://gems.example.com/yaml', paths.shift
;TI"+assert paths.empty?, paths.join(', ')
;T:@format0o; ;[I":See RubyGems' tests for more examples of FakeFetcher.;T:
@fileI"#lib/rubygems/test_utilities.rb;T:0@omit_headings_from_table_of_contents_below0;
0;0[ [
I"api_endpoints;TI"R;T:publicFI"#lib/rubygems/test_utilities.rb;T[
I" data;TI"R;T;F@)[
I"last_request;TI"R;T;F@)[
I"
paths;TI"RW;T;F@)[ [ [[I"
class;T[[;[[I"new;T@)[:protected[ [:private[ [I"
instance;T[[;[[I"api_endpoint;F@)[I"cache_update_path;F@)[I"
download;F@)[I"download_to_cache;F@)[I"fetch_path;F@)[I"fetch_size;F@)[I"find_data;F@)[I"open_uri_or_path;F@)[I"request;F@)[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;
0;0[@$@$cRDoc::TopLevel