Sha256: bdddacfa17427dc0ab9e0aa54a0b404554e3ef89438bcc6c31aabb25b4b72df3

Contents?: true

Size: 756 Bytes

Versions: 7159

Compression:

Stored size: 756 Bytes

Contents

# frozen_string_literal: true

module Byebug
  module Helpers
    #
    # Utilities for managing gem paths
    #
    module PathHelper
      def bin_file
        @bin_file ||= File.join(root_path, "exe", "byebug")
      end

      def root_path
        @root_path ||= File.expand_path(File.join("..", "..", ".."), __dir__)
      end

      def lib_files
        @lib_files ||= glob_for("lib")
      end

      def test_files
        @test_files ||= glob_for("test")
      end

      def gem_files
        @gem_files ||= [bin_file] + lib_files
      end

      def all_files
        @all_files ||= gem_files + test_files
      end

      private

      def glob_for(dir)
        Dir.glob(File.join(root_path, dir, "**", "*.rb"))
      end
    end
  end
end

Version data entries

7,159 entries across 7,155 versions & 39 rubygems

Version Path
cybrid_api_id_ruby-0.123.310 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_bank_ruby-0.123.310 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_organization_ruby-0.123.310 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_organization_ruby-0.123.309 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_bank_ruby-0.123.309 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_id_ruby-0.123.309 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_bank_ruby-0.123.307 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_organization_ruby-0.123.307 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_id_ruby-0.123.307 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_bank_ruby-0.123.306 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_id_ruby-0.123.306 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_organization_ruby-0.123.306 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_bank_ruby-0.123.305 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_id_ruby-0.123.305 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_organization_ruby-0.123.305 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_organization_ruby-0.123.303 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_bank_ruby-0.123.303 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_id_ruby-0.123.303 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_bank_ruby-0.123.302 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb
cybrid_api_organization_ruby-0.123.302 vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb