This file is indexed.

/usr/lib/ruby/vendor_ruby/bundler/postit_trampoline.rb is in ruby-bundler 1.13.6-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# frozen_string_literal: true
if ENV["BUNDLE_ENABLE_TRAMPOLINE"]

  module BundlerVendoredPostIt; end
  require "bundler/vendor/postit/lib/postit"
  require "rubygems"

  environment = BundlerVendoredPostIt::PostIt::Environment.new([])
  version = Gem::Requirement.new(environment.bundler_version)

  installed_version =
    if defined?(Bundler::VERSION)
      Bundler::VERSION
    else
      File.read(File.expand_path("../version.rb", __FILE__)) =~ /VERSION = "(.+)"/
      $1
    end
  installed_version &&= Gem::Version.new(installed_version)

  if !version.satisfied_by?(installed_version)
    begin
      installer = BundlerVendoredPostIt::PostIt::Installer.new(version)
      unless installer.installed?
        warn "Installing locked Bundler version #{version.to_s.gsub("= ", "")}..."
        installer.install!
      end
    rescue => e
      abort <<-EOS.strip
Installing the inferred bundler version (#{version}) failed.
If you'd like to update to the current bundler version (#{installed_version}) in this project, run `bundle update --bundler`.
The error was: #{e}
    EOS
    end

    if deleted_spec = Gem.loaded_specs.delete("bundler")
      deleted_spec.full_require_paths.each {|path| $:.delete(path) }
    else
      $:.delete(File.expand_path("../..", __FILE__))
    end
    gem "bundler", version
  else
    begin
      gem "bundler", version
    rescue LoadError
      $:.unshift(File.expand_path("../..", __FILE__))
    end
  end

  running_version = begin
    require "bundler/version"
    Bundler::VERSION
  rescue LoadError, NameError
    nil
  end

  ENV["BUNDLE_POSTIT_TRAMPOLINING_VERSION"] = installed_version.to_s

  if !Gem::Requirement.new(">= 1.13.pre".dup).satisfied_by?(Gem::Version.new(running_version)) && (ARGV.empty? || ARGV.any? {|a| %w(install i).include? a })
    puts <<-WARN.strip
You're running Bundler #{installed_version} but this project uses #{running_version}. To update, run `bundle update --bundler`.
  WARN
  end

  if !Gem::Version.correct?(running_version.to_s) || !version.satisfied_by?(Gem::Version.create(running_version))
    abort "The running bundler (#{running_version}) does not match the required `#{version}`"
  end

end # unless ENV["BUNDLE_ENABLE_TRAMPOLINE"]