Server IP : 66.29.132.122 / Your IP : 3.15.29.209 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/ruby20/lib64/ruby/2.0.0/rubygems/ |
Upload File : |
class Gem::Source::SpecificFile < Gem::Source def initialize(file) @uri = nil @path = ::File.expand_path(file) @package = Gem::Package.new @path @spec = @package.spec @name = @spec.name_tuple end attr_reader :spec def load_specs(*a) [@name] end def fetch_spec(name) return @spec if name == @name raise Gem::Exception, "Unable to find '#{name}'" @spec end def download(spec, dir=nil) return @path if spec == @spec raise Gem::Exception, "Unable to download '#{spec.full_name}'" end end