OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
ruby
/
2.5.0
/
rubygems
/
resolver
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
activation_request.rb
3.74 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
api_set.rb
2.46 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
api_specification.rb
1.95 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
best_set.rb
1.61 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
composed_set.rb
1.18 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
conflict.rb
3.36 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
current_set.rb
282 bytes
02/01/2016 12:43:26 PM
rw-r--r--
📄
dependency_request.rb
2.28 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
git_set.rb
2.88 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
git_specification.rb
1.27 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
index_set.rb
1.42 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
index_specification.rb
1.48 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
installed_specification.rb
1.21 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
installer_set.rb
5.02 KB
10/08/2017 01:32:18 AM
rw-r--r--
📄
local_specification.rb
807 bytes
02/01/2016 12:43:26 PM
rw-r--r--
📄
lock_set.rb
1.67 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
lock_specification.rb
1.83 KB
02/01/2016 12:43:26 PM
rw-r--r--
📁
molinillo
-
02/10/2020 11:55:58 AM
rwxr-xr-x
📄
molinillo.rb
82 bytes
02/01/2016 12:43:26 PM
rw-r--r--
📄
requirement_list.rb
1.33 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
set.rb
1.24 KB
03/17/2017 01:29:22 AM
rw-r--r--
📄
source_set.rb
898 bytes
02/01/2016 12:43:30 PM
rw-r--r--
📄
spec_specification.rb
1.06 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
specification.rb
2.31 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
stats.rb
950 bytes
02/01/2016 12:43:26 PM
rw-r--r--
📄
vendor_set.rb
1.91 KB
02/01/2016 12:43:26 PM
rw-r--r--
📄
vendor_specification.rb
580 bytes
02/01/2016 12:43:26 PM
rw-r--r--
Editing: lock_specification.rb
Close
# frozen_string_literal: true ## # The LockSpecification comes from a lockfile (Gem::RequestSet::Lockfile). # # A LockSpecification's dependency information is pre-filled from the # lockfile. class Gem::Resolver::LockSpecification < Gem::Resolver::Specification attr_reader :sources def initialize set, name, version, sources, platform super() @name = name @platform = platform @set = set @source = sources.first @sources = sources @version = version @dependencies = [] @spec = nil end ## # This is a null install as a locked specification is considered installed. # +options+ are ignored. def install options = {} destination = options[:install_dir] || Gem.dir if File.exist? File.join(destination, 'specifications', spec.spec_name) then yield nil return end super end ## # Adds +dependency+ from the lockfile to this specification def add_dependency dependency # :nodoc: @dependencies << dependency end def pretty_print q # :nodoc: q.group 2, '[LockSpecification', ']' do q.breakable q.text "name: #{@name}" q.breakable q.text "version: #{@version}" unless @platform == Gem::Platform::RUBY then q.breakable q.text "platform: #{@platform}" end unless @dependencies.empty? then q.breakable q.text 'dependencies:' q.breakable q.pp @dependencies end end end ## # A specification constructed from the lockfile is returned def spec @spec ||= Gem::Specification.find { |spec| spec.name == @name and spec.version == @version } @spec ||= Gem::Specification.new do |s| s.name = @name s.version = @version s.platform = @platform s.dependencies.concat @dependencies end end end