⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.25
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Gem
/
Deprecate
/
View File Name :
cdesc-Deprecate.ri
U:RDoc::NormalModule[iI"Deprecate:ETI"Gem::Deprecate;T0o:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"CProvides 3 methods for declaring when something is going away.;To:RDoc::Markup::BlankLine o; ;[I"*+deprecate(name, repl, year, month)+:;To:RDoc::Markup::Verbatim;[I"@Indicate something may be removed on/after a certain date. ;T:@format0o; ;[I"3+rubygems_deprecate(name, replacement=:none)+:;To;;[I"LIndicate something will be removed in the next major RubyGems version, ;TI",and (optionally) a replacement for it. ;T;0o; ;[I""+rubygems_deprecate_command+:;To;;[I"KIndicate a RubyGems command (in +lib/rubygems/commands/*.rb+) will be ;TI"+removed in the next RubyGems version. ;T;0o; ;[I"SAlso provides +skip_during+ for temporarily turning off deprecation warnings. ;TI"LThis is intended to be used in the test suite, so deprecation warnings ;TI"Rdon't cause test failures if you need to make sure stderr is otherwise empty.;T@o; ;[I";Example usage of +deprecate+ and +rubygems_deprecate+:;T@o;;[I"class Legacy ;TI"" def self.some_class_method ;TI" # ... ;TI" end ;TI" ;TI" def some_instance_method ;TI" # ... ;TI" end ;TI" ;TI" def some_old_method ;TI" # ... ;TI" end ;TI" ;TI" extend Gem::Deprecate ;TI"7 deprecate :some_instance_method, "X.z", 2011, 4 ;TI"E rubygems_deprecate :some_old_method, "Modern#some_new_method" ;TI" ;TI" class << self ;TI" extend Gem::Deprecate ;TI"6 deprecate :some_class_method, :none, 2011, 4 ;TI" end ;TI" end ;T;0o; ;[I"3Example usage of +rubygems_deprecate_command+:;T@o;;[I"6class Gem::Commands::QueryCommand < Gem::Command ;TI" extend Gem::Deprecate ;TI"" rubygems_deprecate_command ;TI" ;TI" # ... ;TI" end ;T;0o; ;[I"$Example usage of +skip_during+:;T@o;;[I")class TestSomething < Gem::Testcase ;TI"- def test_some_thing_with_deprecations ;TI"' Gem::Deprecate.skip_during do ;TI"< actual_stdout, actual_stderr = capture_output do ;TI"& Gem.something_deprecated ;TI" end ;TI"& assert_empty actual_stdout ;TI"1 assert_equal(expected, actual_stderr) ;TI" end ;TI" end ;TI"end;T;0: @fileI"lib/rubygems/deprecate.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[[I"rubygems_deprecate;TI"lib/rubygems/deprecate.rb;T[I"rubygems_deprecate_command;T@l[I"skip_during;T@l[:protected[ [:private[ [I" instance;T[[;[[I"deprecate;T@l[;[ [;[[@k@l[@n@l[@p@l[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@`I"Gem;TcRDoc::NormalModule