repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/format1/country_definer.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/format1/country_definer.rb | # encoding: UTF-8
module TZInfo
module Format1
# Instances of {Format1::CountryDefiner} are yielded to the format 1 version
# of `TZInfo::Data::Indexes::Countries` by {CountryIndexDefinition} to allow
# the zones of a country to be specified.
#
# @private
class CountryDefiner < Format2::Count... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/format1/country_index_definition.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/format1/country_index_definition.rb | # encoding: UTF-8
module TZInfo
module Format1
# The format 1 TZInfo::Data country index file includes
# {Format1::CountryIndexDefinition}, which provides a
# {CountryIndexDefinition::ClassMethods#country country} method used to
# define each country in the index.
#
# @private
module Coun... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/format1/timezone_index_definition.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/format1/timezone_index_definition.rb | # encoding: UTF-8
module TZInfo
module Format1
# The format 1 TZInfo::Data time zone index file includes
# {Format1::TimezoneIndexDefinition}, which provides methods used to define
# time zones in the index.
#
# @private
module TimezoneIndexDefinition #:nodoc:
# Adds class methods to th... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/format1/timezone_definition.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/format1/timezone_definition.rb | # encoding: UTF-8
module TZInfo
module Format1
# {Format1::TimezoneDefinition} is included into format 1 time zone
# definition modules and provides the methods for defining time zones.
#
# @private
module TimezoneDefinition #:nodoc:
# Adds class methods to the includee.
#
# @pa... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/format1/timezone_definer.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/format1/timezone_definer.rb | # encoding: UTF-8
# frozen_string_literal: true
module TZInfo
module Format1
# Instances of {Format1::TimezoneDefiner} are yielded to TZInfo::Data
# format 1 modules by {TimezoneDefinition} to allow the offsets and
# transitions of the time zone to be specified.
#
# @private
class TimezoneDef... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/country_info.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/country_info.rb | # encoding: UTF-8
# frozen_string_literal: true
module TZInfo
module DataSources
# Represents a country and references to its time zones as returned by a
# {DataSource}.
class CountryInfo
# @return [String] the ISO 3166-1 alpha-2 country code.
attr_reader :code
# @return [String] the n... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/posix_time_zone_parser.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/posix_time_zone_parser.rb | # encoding: UTF-8
# frozen_string_literal: true
require 'strscan'
module TZInfo
module DataSources
# An {InvalidPosixTimeZone} exception is raised if an invalid POSIX-style
# time zone string is encountered.
#
# @private
class InvalidPosixTimeZone < StandardError #:nodoc:
end
private_con... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/zoneinfo_data_source.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/zoneinfo_data_source.rb | # encoding: UTF-8
# frozen_string_literal: true
module TZInfo
module DataSources
# An {InvalidZoneinfoDirectory} exception is raised if {ZoneinfoDataSource}
# is initialized with a specific zoneinfo path that is not a valid zoneinfo
# directory. A valid zoneinfo directory is one that contains time zone
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/zoneinfo_reader.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/zoneinfo_reader.rb | # encoding: UTF-8
# frozen_string_literal: true
module TZInfo
module DataSources
# An {InvalidZoneinfoFile} exception is raised if an attempt is made to load
# an invalid zoneinfo file.
class InvalidZoneinfoFile < StandardError
end
# Reads compiled zoneinfo TZif (\0, 2 or 3) files.
class Zon... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/linked_timezone_info.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/linked_timezone_info.rb | # encoding: UTF-8
module TZInfo
module DataSources
# Represents a time zone that is defined as a link to or alias of another
# zone.
class LinkedTimezoneInfo < TimezoneInfo
# @return [String] the identifier of the time zone that provides the data
# (that this zone links to or is an alias for)... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/constant_offset_data_timezone_info.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/constant_offset_data_timezone_info.rb | # encoding: UTF-8
# frozen_string_literal: true
module TZInfo
module DataSources
# Represents a data time zone defined by a constantly observed offset.
class ConstantOffsetDataTimezoneInfo < DataTimezoneInfo
# @return [TimezoneOffset] the offset that is constantly observed.
attr_reader :constant_... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/ruby_data_source.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/ruby_data_source.rb | # encoding: UTF-8
# frozen_string_literal: true
module TZInfo
module DataSources
# A {TZInfoDataNotFound} exception is raised if the tzinfo-data gem could
# not be found (i.e. `require 'tzinfo/data'` failed) when selecting the Ruby
# data source.
class TZInfoDataNotFound < StandardError
end
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/data_timezone_info.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/data_timezone_info.rb | # encoding: UTF-8
# frozen_string_literal: true
module TZInfo
module DataSources
# The base class for time zones defined as either a series of transitions
# ({TransitionsDataTimezoneInfo}) or a constantly observed offset
# ({ConstantOffsetDataTimezoneInfo}).
#
# @abstract Data sources return inst... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/transitions_data_timezone_info.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/transitions_data_timezone_info.rb | # encoding: UTF-8
# frozen_string_literal: true
module TZInfo
module DataSources
# Represents a data time zone defined by a list of transitions that change
# the locally observed time.
class TransitionsDataTimezoneInfo < DataTimezoneInfo
# @return [Array<TimezoneTransition>] the transitions that de... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/timezone_info.rb | .bundles_cache/ruby/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/timezone_info.rb | # encoding: UTF-8
# frozen_string_literal: true
module TZInfo
module DataSources
# Represents a time zone defined by a data source.
#
# @abstract Data sources return instances of {TimezoneInfo} subclasses.
class TimezoneInfo
# @return [String] the identifier of the time zone.
attr_reader ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/coffee-script-2.4.1/lib/coffee-script.rb | .bundles_cache/ruby/2.6.0/gems/coffee-script-2.4.1/lib/coffee-script.rb | require 'coffee_script'
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/coffee-script-2.4.1/lib/coffee_script.rb | .bundles_cache/ruby/2.6.0/gems/coffee-script-2.4.1/lib/coffee_script.rb | require 'execjs'
require 'coffee_script/source'
module CoffeeScript
Error = ExecJS::Error
EngineError = ExecJS::RuntimeError
CompilationError = ExecJS::ProgramError
module Source
def self.path
@path ||= ENV['COFFEESCRIPT_SOURCE_PATH'] || bundled_path
end
def self.path=(path)... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-titles-from-headings-0.5.3/lib/jekyll-titles-from-headings.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-titles-from-headings-0.5.3/lib/jekyll-titles-from-headings.rb | # frozen_string_literal: true
require "jekyll"
require "jekyll-titles-from-headings/generator"
module JekyllTitlesFromHeadings
autoload :Context, "jekyll-titles-from-headings/context"
autoload :Filters, "jekyll-titles-from-headings/filters"
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-titles-from-headings-0.5.3/lib/jekyll-titles-from-headings/version.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-titles-from-headings-0.5.3/lib/jekyll-titles-from-headings/version.rb | # frozen_string_literal: true
module JekyllTitlesFromHeadings
VERSION = "0.5.3"
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-titles-from-headings-0.5.3/lib/jekyll-titles-from-headings/generator.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-titles-from-headings-0.5.3/lib/jekyll-titles-from-headings/generator.rb | # frozen_string_literal: true
module JekyllTitlesFromHeadings
class Generator < Jekyll::Generator
attr_accessor :site
TITLE_REGEX =
%r!
\A\s* # Beginning and whitespace
(?: # either
\#{1,3}\s+(.*)(?:\s+\#{1,3})? # atx... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-titles-from-headings-0.5.3/lib/jekyll-titles-from-headings/filters.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-titles-from-headings-0.5.3/lib/jekyll-titles-from-headings/filters.rb | # frozen_string_literal: true
module JekyllTitlesFromHeadings
class Filters
include Jekyll::Filters
include Liquid::StandardFilters
def initialize(site)
@site = site
@context = JekyllTitlesFromHeadings::Context.new(site)
end
end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-titles-from-headings-0.5.3/lib/jekyll-titles-from-headings/context.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-titles-from-headings-0.5.3/lib/jekyll-titles-from-headings/context.rb | # frozen_string_literal: true
module JekyllTitlesFromHeadings
class Context
attr_reader :site
def initialize(site)
@site = site
end
def registers
{ :site => site }
end
end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen.rb | # frozen_string_literal: true
require 'logger'
require 'weakref'
require 'listen/logger'
require 'listen/listener'
# Won't print anything by default because of level - unless you've set
# LISTEN_GEM_DEBUGGING or provided your own logger with a high enough level
Listen.logger.info "Listen loglevel set to: #{Listen.log... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/directory.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/directory.rb | # frozen_string_literal: true
require 'set'
module Listen
# TODO: refactor (turn it into a normal object, cache the stat, etc)
class Directory
# rubocop:disable Metrics/MethodLength
def self.scan(snapshot, rel_path, options)
record = snapshot.record
dir = Pathname.new(record.root)
previo... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/record.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/record.rb | # frozen_string_literal: true
require 'thread'
require 'listen/record/entry'
require 'listen/record/symlink_detector'
module Listen
class Record
# TODO: one Record object per watched directory?
# TODO: deprecate
attr_reader :root
def initialize(directory, silencer)
reset_tree
@root = d... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/version.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/version.rb | # frozen_string_literal: true
module Listen
VERSION = '3.8.0'
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/thread.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/thread.rb | # frozen_string_literal: true
require 'thread'
require_relative 'logger'
module Listen
module Thread
class << self
# Creates a new thread with the given name.
# Any exceptions raised by the thread will be logged with the thread name and complete backtrace.
# rubocop:disable Style/MultilineBlo... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/change.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/change.rb | # frozen_string_literal: true
require 'listen/file'
require 'listen/directory'
module Listen
# TODO: rename to Snapshot
class Change
# TODO: test this class for coverage
class Config
def initialize(queue, silencer)
@queue = queue
@silencer = silencer
end
def silenced?(pa... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/logger.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/logger.rb | # frozen_string_literal: true
module Listen
@logger = nil
# Listen.logger will always be present.
# If you don't want logging, set Listen.logger = ::Logger.new('/dev/null', level: ::Logger::UNKNOWN)
class << self
attr_writer :logger
def logger
@logger ||= default_logger
end
private
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/options.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/options.rb | # frozen_string_literal: true
module Listen
class Options
def initialize(opts, defaults)
@options = {}
given_options = opts.dup
defaults.each_key do |key|
@options[key] = given_options.delete(key) || defaults[key]
end
given_options.empty? or raise ArgumentError, "Unknown op... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/silencer.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/silencer.rb | # frozen_string_literal: true
module Listen
class Silencer
# The default list of directories that get ignored.
DEFAULT_IGNORED_FILES = %r{\A(?:
\.git
| \.svn
| \.hg
| \.rbx
| \.bundle
| bundle
| vendor/bundle
| log
| tmp
| vendor/ruby
# emacs t... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/file.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/file.rb | # frozen_string_literal: true
require 'digest'
module Listen
class File
# rubocop:disable Metrics/MethodLength
# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable Metrics/PerceivedComplexity
def self.change(record, rel_path)
path = Pathname.new(record.root) + rel_path
lstat ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter.rb | # frozen_string_literal: true
require 'listen/adapter/base'
require 'listen/adapter/bsd'
require 'listen/adapter/darwin'
require 'listen/adapter/linux'
require 'listen/adapter/polling'
require 'listen/adapter/windows'
module Listen
module Adapter
OPTIMIZED_ADAPTERS = [Darwin, Linux, BSD, Windows].freeze
POL... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/fsm.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/fsm.rb | # frozen_string_literal: true
# Code copied from https://github.com/celluloid/celluloid-fsm
require 'thread'
module Listen
module FSM
# Included hook to extend class methods
def self.included(klass)
klass.send :extend, ClassMethods
end
module ClassMethods
# Obtain or set the start stat... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/backend.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/backend.rb | # frozen_string_literal: true
require 'listen/adapter'
require 'listen/adapter/base'
require 'listen/adapter/config'
require 'forwardable'
# This class just aggregates configuration object to avoid Listener specs
# from exploding with huge test setup blocks
module Listen
class Backend
extend Forwardable
d... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/cli.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/cli.rb | # frozen_string_literal: true
require 'thor'
require 'listen'
require 'logger'
module Listen
class CLI < Thor
default_task :start
desc 'start', 'Starts Listen'
class_option :verbose,
type: :boolean,
default: false,
aliases: '-v',
b... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/monotonic_time.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/monotonic_time.rb | # frozen_string_literal: true
module Listen
module MonotonicTime
class << self
if defined?(Process::CLOCK_MONOTONIC)
def now
Process.clock_gettime(Process::CLOCK_MONOTONIC)
end
elsif defined?(Process::CLOCK_MONOTONIC_RAW)
def now
Process.clock_gettime(Pr... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/queue_optimizer.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/queue_optimizer.rb | # frozen_string_literal: true
module Listen
class QueueOptimizer
class Config
def initialize(adapter_class, silencer)
@adapter_class = adapter_class
@silencer = silencer
end
def exist?(path)
Pathname(path).exist?
end
def silenced?(path, type)
@silen... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/error.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/error.rb | # frozen_string_literal: true
# Besides programming error exceptions like ArgumentError,
# all public interface exceptions should be declared here and inherit from Listen::Error.
module Listen
class Error < RuntimeError
class NotStarted < Error; end
class SymlinkLoop < Error; end
class INotifyMaxWatchesE... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/listener.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/listener.rb | # frozen_string_literal: true
require 'English'
require 'listen/version'
require 'listen/backend'
require 'listen/silencer'
require 'listen/silencer/controller'
require 'listen/queue_optimizer'
require 'listen/fsm'
require 'listen/event/loop'
require 'listen/event/queue'
require 'listen/event/config'
require 'l... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/silencer/controller.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/silencer/controller.rb | # frozen_string_literal: true
module Listen
class Silencer
class Controller
def initialize(silencer, default_options)
@silencer = silencer
opts = default_options
@prev_silencer_options = {}
rules = [:only, :ignore, :ignore!].map do |option|
[option, opts[option]]... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/record/entry.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/record/entry.rb | # frozen_string_literal: true
module Listen
# @private api
class Record
# Represents a directory entry (dir or file)
class Entry
# file: "/home/me/watched_dir", "app/models", "foo.rb"
# dir, "/home/me/watched_dir", "."
def initialize(root, relative, name = nil)
@root = root
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/record/symlink_detector.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/record/symlink_detector.rb | # frozen_string_literal: true
require 'set'
require 'listen/error'
module Listen
# @private api
class Record
class SymlinkDetector
README_URL = 'https://github.com/guard/listen/blob/master/README.md'
SYMLINK_LOOP_ERROR = <<-EOS
** ERROR: directory is already being watched! **
Dir... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/event/processor.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/event/processor.rb | # frozen_string_literal: true
require 'listen/monotonic_time'
module Listen
module Event
class Processor
def initialize(config, reasons)
@config = config
@listener = config.listener
@reasons = reasons
_reset_no_unprocessed_events
end
# TODO: implement this prop... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/event/queue.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/event/queue.rb | # frozen_string_literal: true
require 'thread'
require 'forwardable'
module Listen
module Event
class Queue
extend Forwardable
class Config
def initialize(relative)
@relative = relative
end
def relative?
@relative
end
end
def initia... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/event/loop.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/event/loop.rb | # frozen_string_literal: true
require 'thread'
require 'timeout'
require 'listen/event/processor'
require 'listen/thread'
require 'listen/error'
module Listen
module Event
class Loop
include Listen::FSM
Error = ::Listen::Error
NotStarted = ::Listen::Error::NotStarted # for backward compatibi... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/event/config.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/event/config.rb | # frozen_string_literal: true
module Listen
module Event
class Config
attr_reader :listener, :event_queue, :min_delay_between_events
def initialize(
listener,
event_queue,
queue_optimizer,
wait_for_delay,
&block
)
@listener = listener
@e... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/polling.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/polling.rb | # frozen_string_literal: true
module Listen
module Adapter
# Polling Adapter that works cross-platform and
# has no dependencies. This is the adapter that
# uses the most CPU processing power and has higher
# file IO than the other implementations.
#
class Polling < Base
OS_REGEXP = //.... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/base.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/base.rb | # frozen_string_literal: true
require 'listen/options'
require 'listen/record'
require 'listen/change'
require 'listen/thread'
module Listen
module Adapter
class Base
attr_reader :options, :config
# TODO: only used by tests
DEFAULTS = {}.freeze
def initialize(config)
@started =... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/darwin.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/darwin.rb | # frozen_string_literal: true
require 'listen/thread'
module Listen
module Adapter
# Adapter implementation for Mac OS X `FSEvents`.
#
class Darwin < Base
OS_REGEXP = /darwin(?<major_version>(1|2)\d+)/i.freeze
# The default delay between checking for changes.
DEFAULTS = { latency: 0.1... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/linux.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/linux.rb | # frozen_string_literal: true
module Listen
module Adapter
# @see https://github.com/nex3/rb-inotify
class Linux < Base
OS_REGEXP = /linux/i.freeze
DEFAULTS = {
events: [
:recursive,
:attrib,
:create,
:modify,
:delete,
:move,
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/config.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/config.rb | # frozen_string_literal: true
require 'pathname'
module Listen
module Adapter
class Config
attr_reader :directories, :silencer, :queue, :adapter_options
def initialize(directories, queue, silencer, adapter_options)
# Default to current directory if no directories are supplied
direct... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/bsd.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/bsd.rb | # frozen_string_literal: true
# Listener implementation for BSD's `kqueue`.
# @see http://www.freebsd.org/cgi/man.cgi?query=kqueue
# @see https://github.com/mat813/rb-kqueue/blob/master/lib/rb-kqueue/queue.rb
#
module Listen
module Adapter
class BSD < Base
OS_REGEXP = /bsd|dragonfly/i.freeze
DEFAULT... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/windows.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/adapter/windows.rb | # frozen_string_literal: true
module Listen
module Adapter
# Adapter implementation for Windows `wdm`.
#
class Windows < Base
OS_REGEXP = /mswin|mingw|cygwin/i.freeze
BUNDLER_DECLARE_GEM = <<-EOS.gsub(/^ {6}/, '')
Please add the following to your Gemfile to avoid polling for changes:... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/listener/config.rb | .bundles_cache/ruby/2.6.0/gems/listen-3.8.0/lib/listen/listener/config.rb | # frozen_string_literal: true
module Listen
class Listener
class Config
DEFAULTS = {
# Listener options
debug: false, # TODO: is this broken?
wait_for_delay: nil, # NOTE: should be provided by adapter if possible
relative: false,
# Backend selecting options
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser.rb | require 'regexp_parser/version'
require 'regexp_parser/token'
require 'regexp_parser/scanner'
require 'regexp_parser/syntax'
require 'regexp_parser/lexer'
require 'regexp_parser/parser'
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/syntax.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/syntax.rb | require 'regexp_parser/error'
module Regexp::Syntax
class SyntaxError < Regexp::Parser::Error; end
end
require_relative 'syntax/token'
require_relative 'syntax/base'
require_relative 'syntax/any'
require_relative 'syntax/version_lookup'
require_relative 'syntax/versions'
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/version.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/version.rb | class Regexp
class Parser
VERSION = '2.8.0'
end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/parser.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/parser.rb | require 'regexp_parser/error'
require 'regexp_parser/expression'
class Regexp::Parser
include Regexp::Expression
class ParserError < Regexp::Parser::Error; end
class UnknownTokenTypeError < ParserError
def initialize(type, token)
super "Unknown token type #{type} #{token.inspect}"
end
end
cl... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/lexer.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/lexer.rb | # A very thin wrapper around the scanner that breaks quantified literal runs,
# collects emitted tokens into an array, calculates their nesting depth, and
# normalizes tokens for the parser, and checks if they are implemented by the
# given syntax flavor.
class Regexp::Lexer
OPENING_TOKENS = %i[
capture passive ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/scanner.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/scanner.rb | # -*- warn-indent:false; -*-
#
# THIS IS A GENERATED FILE, DO NOT EDIT DIRECTLY
#
# This file was generated from scanner.rl
# by running `bundle exec rake ragel:rb`
require 'regexp_parser/scanner/errors/scanner_error'
require 'regexp_parser/scanner/errors/premature_end_error'
require 'regexp_parser/scanner/errors/va... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | true |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/token.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/token.rb | class Regexp
TOKEN_KEYS = %i[
type
token
text
ts
te
level
set_level
conditional_level
].freeze
Token = Struct.new(*TOKEN_KEYS) do
attr_accessor :previous, :next
def offset
[ts, te]
end
def length
te - ts
end
end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression.rb | require 'regexp_parser/error'
require 'regexp_parser/expression/shared'
require 'regexp_parser/expression/base'
require 'regexp_parser/expression/quantifier'
require 'regexp_parser/expression/subexpression'
require 'regexp_parser/expression/sequence'
require 'regexp_parser/expression/sequence_operation'
require 'rege... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/error.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/error.rb | class Regexp::Parser
# base class for all gem-specific errors
class Error < StandardError; end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/scanner/mapping.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/scanner/mapping.rb | # mapping for simple cases with a 1:1 relation between text and token
class Regexp::Scanner
MAPPING = {
anchor: {
'\A' => :bos,
'\B' => :nonword_boundary,
'\G' => :match_start,
'\Z' => :eos_ob_eol,
'\b' => :word_boundary,
'\z' => :eos,
},
assertion: {
'(?=' => :l... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/scanner/errors/scanner_error.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/scanner/errors/scanner_error.rb | require 'regexp_parser/error'
class Regexp::Scanner
# General scanner error (catch all)
class ScannerError < Regexp::Parser::Error; end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/scanner/errors/validation_error.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/scanner/errors/validation_error.rb | class Regexp::Scanner
# Base for all scanner validation errors
class ValidationError < ScannerError
# Centralizes and unifies the handling of validation related errors.
def self.for(type, problem, reason = nil)
types.fetch(type).new(problem, reason)
end
def self.types
@types ||= {
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/scanner/errors/premature_end_error.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/scanner/errors/premature_end_error.rb | class Regexp::Scanner
# Unexpected end of pattern
class PrematureEndError < ScannerError
def initialize(where = '')
super "Premature end of pattern at #{where}"
end
end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/sequence_operation.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/sequence_operation.rb | module Regexp::Expression
# abstract class
class SequenceOperation < Regexp::Expression::Subexpression
alias :sequences :expressions
alias :operands :expressions
alias :operator :text
def ts
(head = expressions.first) ? head.ts : @ts
end
def <<(exp)
expressions.last << exp
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/sequence.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/sequence.rb | module Regexp::Expression
# A sequence of expressions. Differs from a Subexpressions by how it handles
# quantifiers, as it applies them to its last element instead of itself as
# a whole subexpression.
#
# Used as the base class for the Alternation alternatives, Conditional
# branches, and CharacterSet::In... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/subexpression.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/subexpression.rb | module Regexp::Expression
class Subexpression < Regexp::Expression::Base
include Enumerable
attr_accessor :expressions
def initialize(token, options = {})
self.expressions = []
super
end
# Override base method to clone the expressions as well.
def initialize_copy(orig)
sel... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/base.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/base.rb | module Regexp::Expression
class Base
include Regexp::Expression::Shared
def initialize(token, options = {})
init_from_token_and_options(token, options)
end
def to_re(format = :full)
if set_level > 0
warn "Calling #to_re on character set members is deprecated - "\
"th... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/quantifier.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/quantifier.rb | module Regexp::Expression
# TODO: in v3.0.0, maybe put Shared back into Base, and inherit from Base and
# call super in #initialize, but raise in #quantifier= and #quantify,
# or introduce an Expression::Quantifiable intermediate class.
# Or actually allow chaining as a more concise but tricky solution than PR#... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/shared.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/shared.rb | module Regexp::Expression
module Shared
module ClassMethods; end # filled in ./methods/*.rb
def self.included(mod)
mod.class_eval do
extend Shared::ClassMethods
attr_accessor :type, :token, :text, :ts, :te,
:level, :set_level, :conditional_level,
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/strfregexp.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/strfregexp.rb | module Regexp::Expression
class Base
# %l Level (depth) of the expression. Returns 'root' for the root
# expression, returns zero or higher for all others.
#
# %> Indentation at expression's level.
#
# %x Index of the expression at its depth. Available when using
# th... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/options.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/options.rb | module Regexp::Expression
class Base
def multiline?
options[:m] == true
end
alias :m? :multiline?
def case_insensitive?
options[:i] == true
end
alias :i? :case_insensitive?
alias :ignore_case? :case_insensitive?
def free_spacing?
options[:x] == true
end
alia... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/match_length.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/match_length.rb | class Regexp::MatchLength
include Enumerable
def self.of(obj)
exp = obj.is_a?(Regexp::Expression::Base) ? obj : Regexp::Parser.parse(obj)
exp.match_length
end
def initialize(exp, opts = {})
self.exp_class = exp.class
self.min_rep = exp.repetitions.min
self.max_rep = exp.repetitions.max
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/parts.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/parts.rb | module Regexp::Expression
module Shared
# default implementation
def parts
[text.dup]
end
private
def intersperse(expressions, separator)
expressions.flat_map { |exp| [exp, separator] }.slice(0...-1)
end
end
CharacterSet.class_eval { def parts; ["#{text}#{'^' if n... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/traverse.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/traverse.rb | module Regexp::Expression
class Subexpression < Regexp::Expression::Base
# Traverses the expression, passing each recursive child to the
# given block.
# If the block takes two arguments, the indices of the children within
# their parents are also passed to it.
def each_expression(include_self = ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/match.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/match.rb | module Regexp::Expression
class Base
def match?(string)
!!match(string)
end
alias :matches? :match?
def match(string, offset = 0)
Regexp.new(to_s).match(string, offset)
end
alias :=~ :match
end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/construct.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/construct.rb | module Regexp::Expression
module Shared
module ClassMethods
# Convenience method to init a valid Expression without a Regexp::Token
def construct(params = {})
attrs = construct_defaults.merge(params)
options = attrs.delete(:options)
token_args = Regexp::TOKEN_KEYS.map { |k| att... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/human_name.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/human_name.rb | module Regexp::Expression
module Shared
# default implementation, e.g. "atomic group", "hex escape", "word type", ..
def human_name
[token, type].compact.join(' ').tr('_', ' ')
end
end
Alternation.class_eval { def human_name; 'alternation' end }
Alternati... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/printing.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/printing.rb | module Regexp::Expression
module Shared
def inspect
[
"#<#{self.class}",
pretty_print_instance_variables.map { |v| " #{v}=#{instance_variable_get(v).inspect}" },
">"
].join
end
# Make pretty-print work despite #inspect implementation.
def pretty_print(q)
q.pp... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/tests.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/methods/tests.rb | module Regexp::Expression
module Shared
# Test if this expression has the given test_type, which can be either
# a symbol or an array of symbols to check against the expression's type.
#
# # is it a :group expression
# exp.type? :group
#
# # is it a :set, or :meta
# exp.type? ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/character_type.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/character_type.rb | module Regexp::Expression
module CharacterType
class Base < Regexp::Expression::Base; end
class Any < CharacterType::Base; end
class Digit < CharacterType::Base; end
class NonDigit < CharacterType::Base; end
class Hex < CharacterType::Base; end
cla... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/unicode_property.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/unicode_property.rb | module Regexp::Expression
module UnicodeProperty
class Base < Regexp::Expression::Base
def negative?
type == :nonproperty
end
def name
text[/\A\\[pP]\{([^}]+)\}\z/, 1]
end
def shortcut
Regexp::Scanner.short_prop_map.key(token.to_s)
end
end
cla... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/group.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/group.rb | module Regexp::Expression
module Group
class Base < Regexp::Expression::Subexpression
end
class Passive < Group::Base
attr_writer :implicit
def initialize(*)
@implicit = false
super
end
def implicit?
@implicit
end
end
class Absence < Group:... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/literal.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/literal.rb | module Regexp::Expression
class Literal < Regexp::Expression::Base; end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/alternation.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/alternation.rb | module Regexp::Expression
# A sequence of expressions, used by Alternation as one of its alternatives.
class Alternative < Regexp::Expression::Sequence; end
class Alternation < Regexp::Expression::SequenceOperation
OPERAND = Alternative
alias :alternatives :expressions
end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/posix_class.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/posix_class.rb | module Regexp::Expression
class PosixClass < Regexp::Expression::Base
def negative?
type == :nonposixclass
end
def name
text[/\w+/]
end
end
# alias for symmetry between token symbol and Expression class name
Posixclass = PosixClass
Nonposixclass = PosixClass
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/escape_sequence.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/escape_sequence.rb | module Regexp::Expression
module EscapeSequence
class Base < Regexp::Expression::Base
def codepoint
char.ord
end
if ''.respond_to?(:undump)
def char
%("#{text}").undump
end
else
# poor man's unescape without using eval
require 'yaml'
... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/keep.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/keep.rb | module Regexp::Expression
module Keep
# TOOD: in regexp_parser v3.0.0 this should possibly be a Subexpression
# that contains all expressions to its left.
class Mark < Regexp::Expression::Base; end
end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/character_set.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/character_set.rb | module Regexp::Expression
class CharacterSet < Regexp::Expression::Subexpression
attr_accessor :closed, :negative
alias :negative? :negative
alias :negated? :negative
alias :closed? :closed
def initialize(token, options = {})
self.negative = false
self.closed = false
super... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/root.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/root.rb | module Regexp::Expression
class Root < Regexp::Expression::Subexpression
def self.build(options = {})
warn "`#{self.class}.build(options)` is deprecated and will raise in "\
"regexp_parser v3.0.0. Please use `.construct(options: options)`."
construct(options: options)
end
end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/backreference.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/backreference.rb | module Regexp::Expression
module Backreference
class Base < Regexp::Expression::Base
attr_accessor :referenced_expression
def initialize_copy(orig)
exp_id = [self.class, self.starts_at]
# prevent infinite recursion for recursive subexp calls
copied = @@copied ||= {}
s... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/conditional.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/conditional.rb | module Regexp::Expression
module Conditional
class TooManyBranches < Regexp::Parser::Error
def initialize
super('The conditional expression has more than 2 branches')
end
end
class Condition < Regexp::Expression::Base
attr_accessor :referenced_expression
# Name or number ... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/free_space.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/free_space.rb | module Regexp::Expression
class FreeSpace < Regexp::Expression::Base
def quantify(*_args)
raise Regexp::Parser::Error, 'Can not quantify a free space object'
end
end
class Comment < Regexp::Expression::FreeSpace
end
class WhiteSpace < Regexp::Expression::FreeSpace
def merge(exp)
warn... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/anchor.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/anchor.rb | module Regexp::Expression
module Anchor
class Base < Regexp::Expression::Base; end
class BeginningOfLine < Anchor::Base; end
class EndOfLine < Anchor::Base; end
class BeginningOfString < Anchor::Base; end
class EndOfString < Anchor:... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/character_set/range.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/character_set/range.rb | module Regexp::Expression
class CharacterSet < Regexp::Expression::Subexpression
class Range < Regexp::Expression::Subexpression
def ts
(head = expressions.first) ? head.ts : @ts
end
def <<(exp)
complete? and raise Regexp::Parser::Error,
"Can't add more than 2 expressi... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
collabnix/kubelabs | https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/character_set/intersection.rb | .bundles_cache/ruby/2.6.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/classes/character_set/intersection.rb | module Regexp::Expression
class CharacterSet < Regexp::Expression::Subexpression
class IntersectedSequence < Regexp::Expression::Sequence; end
class Intersection < Regexp::Expression::SequenceOperation
OPERAND = IntersectedSequence
end
end
end
| ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.