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/w3c_validators-1.3.7/lib/w3c_validators/markup_validator.rb | .bundles_cache/ruby/2.6.0/gems/w3c_validators-1.3.7/lib/w3c_validators/markup_validator.rb | module W3CValidators
class MarkupValidator < Validator
MARKUP_VALIDATOR_URI = 'https://validator.w3.org/check'
# Create a new instance of the MarkupValidator.
#
# ==== Options
# The +options+ hash allows you to set request parameters (see
# http://validator.w3.org/docs/api.html#requestfo... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar.rb | # frozen_string_literal: true
require 'ruby-progressbar/base'
require 'ruby-progressbar/refinements' if Module.
private_instance_methods.
include?(:using)
class ProgressBar
def self.create(*args)
ProgressBar::Base.new(*args)
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/ruby-progressbar-1.13.0/lib/ruby-progressbar/refinements.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/refinements.rb | require 'ruby-progressbar/refinements/progress_enumerator'
| 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/version.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/version.rb | class ProgressBar
VERSION = '1.13.0'.freeze
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/ruby-progressbar-1.13.0/lib/ruby-progressbar/time.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/time.rb | # rubocop:disable Style/InlineComment
class ProgressBar
class Time
TIME_MOCKING_LIBRARY_METHODS = [
:__simple_stub__now, # ActiveSupport
:now_without_mock_time, # Timecop
:now_without_delorean, # Delore... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/projector.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/projector.rb | require 'ruby-progressbar/projectors/smoothed_average'
class ProgressBar
class Projector
DEFAULT_PROJECTOR = ProgressBar::Projectors::SmoothedAverage
NAME_TO_PROJECTOR_MAP = {
'smoothed' => ProgressBar::Projectors::SmoothedAverage
}.freeze
def self.from_type(name)
NAME_TO_PROJECTOR_MAP.fetch(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/ruby-progressbar-1.13.0/lib/ruby-progressbar/output.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/output.rb | require 'ruby-progressbar/calculators/length'
require 'ruby-progressbar/throttle'
class ProgressBar
class Output
DEFAULT_OUTPUT_STREAM = $stdout
attr_accessor :stream
def initialize(options = {})
self.bar = options[:bar]
self.stream = options[:output] || DEFAULT_OUTPUT_STRE... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/base.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/base.rb | require 'forwardable'
require 'ruby-progressbar/components/bar'
require 'ruby-progressbar/components/percentage'
require 'ruby-progressbar/components/rate'
require 'ruby-progressbar/components/time'
require 'ruby-progressbar/components/title'
require 'ruby-progressbar/format/formatter'
require 'ruby-progressbar/format... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/timer.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/timer.rb | require 'ruby-progressbar/time'
class ProgressBar
class Timer
attr_accessor :started_at,
:stopped_at
def initialize(options = {})
self.time = options[:time] || ::ProgressBar::Time.new
end
def start
self.started_at = stopped? ? time.now - (stopped_at - started_at) : time.now
se... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/throttle.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/throttle.rb | class ProgressBar
class Throttle
attr_accessor :rate,
:started_at,
:stopped_at,
:timer
def initialize(options = {})
self.rate = options[:throttle_rate] || 0.01
self.started_at = nil
self.stopped_at = nil
self.timer = options.fetch(:thro... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/progress.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/progress.rb | require 'ruby-progressbar/errors/invalid_progress_error'
class ProgressBar
class Progress
DEFAULT_TOTAL = 100
DEFAULT_BEGINNING_POSITION = 0
attr_reader :total,
:progress
attr_accessor :starting_position
def initialize(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/ruby-progressbar-1.13.0/lib/ruby-progressbar/projectors/smoothed_average.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/projectors/smoothed_average.rb | class ProgressBar
module Projectors
class SmoothedAverage
DEFAULT_STRENGTH = 0.1
DEFAULT_BEGINNING_POSITION = 0
attr_accessor :samples,
:strength
attr_reader :projection
def initialize(options = {})
self.samples = []
self.projection = 0.0
self.strength = opt... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/outputs/tty.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/outputs/tty.rb | require 'ruby-progressbar/output'
class ProgressBar
module Outputs
class Tty < Output
DEFAULT_FORMAT_STRING = '%t: |%B|'.freeze
alias refresh_with_format_change with_refresh
def clear
stream.print clear_string
stream.print "\r"
end
def bar_update_string
bar.to_s
end
def default_forma... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/outputs/null.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/outputs/null.rb | require 'ruby-progressbar/output'
class ProgressBar
module Outputs
class Null < Output
alias refresh_with_format_change with_refresh
def clear; end
def log(_string); end
def refresh(*); end
def clear_string
''
end
def bar_update_string
''
end
def default_format
''
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/ruby-progressbar-1.13.0/lib/ruby-progressbar/outputs/non_tty.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/outputs/non_tty.rb | require 'ruby-progressbar/output'
class ProgressBar
module Outputs
class NonTty < Output
DEFAULT_FORMAT_STRING = '%t: |%b|'.freeze
def clear
self.last_update_length = 0
stream.print "\n"
end
def last_update_length
@last_update_length ||= 0
end
def bar_update_string
formatted_string... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/errors/invalid_progress_error.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/errors/invalid_progress_error.rb | class ProgressBar
class InvalidProgressError < RuntimeError
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/ruby-progressbar-1.13.0/lib/ruby-progressbar/components/title.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/components/title.rb | class ProgressBar
module Components
class Title
DEFAULT_TITLE = 'Progress'.freeze
attr_accessor :title
def initialize(options = {})
self.title = options[:title] || DEFAULT_TITLE
end
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/ruby-progressbar-1.13.0/lib/ruby-progressbar/components/time.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/components/time.rb | ###
# OOB = 'Out of Bounds'
#
class ProgressBar
module Components
class Time
TIME_FORMAT = '%02d:%02d:%02d'.freeze
OOB_TIME_FORMATS = [:unknown, :friendly, nil].freeze
OOB_LIMIT_IN_HOURS = 99
OOB_UNKNOWN_TIME_TEXT = '??:??:??'.freeze
OOB_FRIENDLY_TIME_TEXT = '> 4 Days'.freeze
NO_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/ruby-progressbar-1.13.0/lib/ruby-progressbar/components/percentage.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/components/percentage.rb | class ProgressBar
module Components
class Percentage
attr_accessor :progress
def initialize(options = {})
self.progress = options[:progress]
end
def percentage
progress.percentage_completed.to_s
end
def justified_percentage
progress.percentage_completed.to_s.rjust(3)
end
def percent... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/components/bar.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/components/bar.rb | ###
# UPA = Unknown Progress Animation
#
class ProgressBar
module Components
class Bar
DEFAULT_PROGRESS_MARK = '='.freeze
DEFAULT_REMAINDER_MARK = ' '.freeze
DEFAULT_UPA_STEPS = ['=---', '-=--', '--=-', '---='].freeze
attr_accessor :progress_mark,
:remainder_mark,
:le... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/components/rate.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/components/rate.rb | class ProgressBar
module Components
class Rate
attr_accessor :rate_scale,
:timer,
:progress
def initialize(options = {})
self.rate_scale = options[:rate_scale] || lambda { |x| x }
self.timer = options[:timer]
self.progress = options[:progress]
end
def ra... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/calculators/length.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/calculators/length.rb | class ProgressBar
module Calculators
class Length
attr_reader :length_override
attr_accessor :current_length,
:output
def initialize(options = {})
self.length_override = options[:length]
self.output = options[:output]
self.current_length = nil
end
def length
... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/format/molecule.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/format/molecule.rb | class ProgressBar
module Format
class Molecule
MOLECULES = {
:t => [:title_component, :title],
:T => [:title_component, :title],
:c => [:progressable, :progress],
:C => [:progressable, :total],
:u => [:progressable, :total_with_unknown_indicator],
:p => [... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/format/string.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/format/string.rb | require 'ruby-progressbar/format/molecule'
class ProgressBar
module Format
class String < ::String
MOLECULE_PATTERN = /%[a-zA-Z]/.freeze
ANSI_SGR_PATTERN = /\e\[[\d;]+m/.freeze
def displayable_length
gsub(ANSI_SGR_PATTERN, '').length
end
def bar_molecule_placeholder_length
@bar_molecule_placeh... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/format/formatter.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/format/formatter.rb | class ProgressBar
module Format
class Formatter
def self.process(format_string, max_length, bar)
processed_string = format_string.dup
format_string.non_bar_molecules.each do |molecule|
processed_string.gsub!(molecule.full_key, molecule.lookup_value(bar, nil))
end
processed_string.gsub!(/%... | 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/ruby-progressbar-1.13.0/lib/ruby-progressbar/refinements/progress_enumerator.rb | .bundles_cache/ruby/2.6.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/refinements/progress_enumerator.rb | class ProgressBar
module Refinements
module Enumerator
ARITY_ERROR_MESSAGE = 'Only two arguments allowed to be passed to ' \
'with_progressbar (item, progress_bar)'.freeze
refine ::Enumerator do
def with_progressbar(options = {}, &block)
progress_bar = ProgressBar.create(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/minitest-5.18.0/design_rationale.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/design_rationale.rb | # Specs: # Equivalent Unit Tests:
###############################################################################
describe Thingy do # class TestThingy < Minitest::Test
before do # def setup
do_some_setup # sup... | 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/minitest-5.18.0/test/minitest/test_minitest_benchmark.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/test/minitest/test_minitest_benchmark.rb | require "minitest/autorun"
require "minitest/benchmark"
##
# Used to verify data:
# https://www.wolframalpha.com/examples/RegressionAnalysis.html
class TestMinitestBenchmark < Minitest::Test
def test_cls_bench_exp
assert_equal [2, 4, 8, 16, 32], Minitest::Benchmark.bench_exp(2, 32, 2)
end
def test_cls_benc... | 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/minitest-5.18.0/test/minitest/test_minitest_test.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/test/minitest/test_minitest_test.rb | # encoding: UTF-8
require "pathname"
require "minitest/metametameta"
if defined? Encoding then
e = Encoding.default_external
if e != Encoding::UTF_8 then
warn ""
warn ""
warn "NOTE: External encoding #{e} is not UTF-8. Tests WILL fail."
warn " Run tests with `RUBYOPT=-Eutf-8 rake` to avoid er... | 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/minitest-5.18.0/test/minitest/test_minitest_reporter.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/test/minitest/test_minitest_reporter.rb | require "minitest/autorun"
require "minitest/metametameta"
require "forwardable"
class Runnable
def woot
assert true
end
end
class TestMinitestReporter < MetaMetaMetaTestCase
attr_accessor :r, :io
def new_composite_reporter
# Ruby bug in older versions of 2.2 & 2.3 on all platforms
# Latest Wind... | 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/minitest-5.18.0/test/minitest/test_minitest_test_task.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/test/minitest/test_minitest_test_task.rb | require "minitest/autorun"
require "hoe"
require "minitest/test_task"
Hoe.load_plugins # make sure Hoe::Test is loaded
class TestHoeTest < Minitest::Test
PATH = "test/minitest/test_minitest_test_task.rb"
mt_path = %w[lib test .].join File::PATH_SEPARATOR
MT_EXPECTED = %W[-I#{mt_path} -w
-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/minitest-5.18.0/test/minitest/test_minitest_spec.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/test/minitest/test_minitest_spec.rb | # encoding: utf-8
require "minitest/metametameta"
require "stringio"
class MiniSpecA < Minitest::Spec; end
class MiniSpecB < Minitest::Test; extend Minitest::Spec::DSL; end
class MiniSpecC < MiniSpecB; end
class NamedExampleA < MiniSpecA; end
class NamedExampleB < MiniSpecB; end
class NamedExampleC < MiniSpecC; 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/minitest-5.18.0/test/minitest/test_minitest_mock.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/test/minitest/test_minitest_mock.rb | require "minitest/autorun"
def with_kwargs_env
ENV["MT_KWARGS_HAC\K"] = "1"
yield
ensure
ENV.delete "MT_KWARGS_HAC\K"
end
class TestMinitestMock < Minitest::Test
def setup
@mock = Minitest::Mock.new.expect(:foo, nil)
@mock.expect(:meaning_of_life, 42)
end
def test_create_stub_method
assert_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/minitest-5.18.0/test/minitest/metametameta.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/test/minitest/metametameta.rb | require "tempfile"
require "stringio"
require "minitest/autorun"
class Minitest::Test
def clean s
s.gsub(/^ {6}/, "")
end
def with_empty_backtrace_filter
original = Minitest.backtrace_filter
obj = Minitest::BacktraceFilter.new
def obj.filter _bt
[]
end
Minitest::Test.io_lock.sync... | 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/minitest-5.18.0/test/minitest/test_minitest_assertions.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/test/minitest/test_minitest_assertions.rb | # encoding: UTF-8
require "minitest/autorun"
if defined? Encoding then
e = Encoding.default_external
if e != Encoding::UTF_8 then
warn ""
warn ""
warn "NOTE: External encoding #{e} is not UTF-8. Tests WILL fail."
warn " Run tests with `RUBYOPT=-Eutf-8 rake` to avoid errors."
warn ""
w... | 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/minitest-5.18.0/lib/minitest.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest.rb | require "optparse"
require "thread"
require "mutex_m"
require "minitest/parallel"
require "stringio"
require "etc"
##
# :include: README.rdoc
module Minitest
VERSION = "5.18.0" # :nodoc:
@@installed_at_exit ||= false
@@after_run = []
@extensions = []
def self.cattr_accessor name # :nodoc:
(class << se... | 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/minitest-5.18.0/lib/minitest/test.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/test.rb | require "minitest" unless defined? Minitest::Runnable
module Minitest
##
# Subclass Test to create your own tests. Typically you'll want a
# Test subclass per implementation class.
#
# See Minitest::Assertions
class Test < Runnable
require "minitest/assertions"
include Minitest::Assertions
inc... | 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/minitest-5.18.0/lib/minitest/unit.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/unit.rb | unless defined?(Minitest) then
# all of this crap is just to avoid circular requires and is only
# needed if a user requires "minitest/unit" directly instead of
# "minitest/autorun", so we also warn
from = caller.reject { |s| s =~ /rubygems/ }.join("\n ")
warn "Warning: you should require 'minitest/autorun'... | 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/minitest-5.18.0/lib/minitest/assertions.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/assertions.rb | # encoding: UTF-8
require "rbconfig"
require "tempfile"
require "stringio"
module Minitest
##
# Minitest Assertions. All assertion methods accept a +msg+ which is
# printed if the assertion fails.
#
# Protocol: Nearly everything here boils up to +assert+, which
# expects to be able to increment an instan... | 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/minitest-5.18.0/lib/minitest/benchmark.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/benchmark.rb | require "minitest/test"
require "minitest/spec"
module Minitest
##
# Subclass Benchmark to create your own benchmark runs. Methods
# starting with "bench_" get executed on a per-class.
#
# See Minitest::Assertions
class Benchmark < Test
def self.io # :nodoc:
@io
end
def io # :nodoc:
... | 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/minitest-5.18.0/lib/minitest/expectations.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/expectations.rb | ##
# It's where you hide your "assertions".
#
# Please note, because of the way that expectations are implemented,
# all expectations (eg must_equal) are dependent upon a thread local
# variable +:current_spec+. If your specs rely on mixing threads into
# the specs themselves, you're better off using assertions or the ... | 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/minitest-5.18.0/lib/minitest/spec.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/spec.rb | require "minitest/test"
class Module # :nodoc:
def infect_an_assertion meth, new_name, dont_flip = false # :nodoc:
block = dont_flip == :block
dont_flip = false if block
target_obj = block ? '_{obj.method}' : '_(obj)'
# https://eregon.me/blog/2021/02/13/correct-delegation-in-ruby-2-27-3.html
# 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/minitest-5.18.0/lib/minitest/pride.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/pride.rb | require "minitest"
Minitest.load_plugins
Minitest::PrideIO.pride!
| 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/minitest-5.18.0/lib/minitest/hell.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/hell.rb | require "minitest/parallel"
class Minitest::Test
parallelize_me!
end
begin
require "minitest/proveit"
rescue LoadError
warn "NOTE: `gem install minitest-proveit` for even more hellish tests"
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/minitest-5.18.0/lib/minitest/test_task.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/test_task.rb | require "shellwords"
require "rbconfig"
require "rake/tasklib"
module Minitest # :nodoc:
##
# Minitest::TestTask is a rake helper that generates several rake
# tasks under the main test task's name-space.
#
# task <name> :: the main test task
# task <name>:cmd :: prints the command to use
# ... | 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/minitest-5.18.0/lib/minitest/autorun.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/autorun.rb | begin
require "rubygems"
gem "minitest"
rescue Gem::LoadError
# do nothing
end
require "minitest"
require "minitest/spec"
require "minitest/mock"
require "minitest/hell" if ENV["MT_HELL"]
Minitest.autorun
| 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/minitest-5.18.0/lib/minitest/pride_plugin.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/pride_plugin.rb | require "minitest"
module Minitest
def self.plugin_pride_options opts, _options # :nodoc:
opts.on "-p", "--pride", "Pride. Show your testing pride!" do
PrideIO.pride!
end
end
def self.plugin_pride_init options # :nodoc:
if PrideIO.pride? then
klass = ENV["TERM"] =~ /^xterm|-256color$/ ? ... | 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/minitest-5.18.0/lib/minitest/mock.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/mock.rb | class MockExpectationError < StandardError; end # :nodoc:
module Minitest # :nodoc:
##
# A simple and clean mock object framework.
#
# All mock objects are an instance of Mock
class Mock
alias :__respond_to? :respond_to?
overridden_methods = %w[
===
class
inspect
instance_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/minitest-5.18.0/lib/minitest/parallel.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/minitest/parallel.rb | module Minitest
module Parallel #:nodoc:
##
# The engine used to run multiple tests in parallel.
class Executor
##
# The size of the pool of workers.
attr_reader :size
##
# Create a parallel test executor of with +size+ workers.
def initialize size
@size ... | 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/minitest-5.18.0/lib/hoe/minitest.rb | .bundles_cache/ruby/2.6.0/gems/minitest-5.18.0/lib/hoe/minitest.rb | # :stopdoc:
class Hoe
end
module Hoe::Minitest
def minitest?
self.name == "minitest"
end
def initialize_minitest
unless minitest? then
dir = "../../minitest/dev/lib"
Hoe.add_include_dirs dir if File.directory? dir
end
gem "minitest"
require "minitest"
version = Minitest::VE... | 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-mentions-1.6.0/lib/jekyll-mentions.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-mentions-1.6.0/lib/jekyll-mentions.rb | # frozen_string_literal: true
require "jekyll"
require "html/pipeline"
module Jekyll
class Mentions
GITHUB_DOT_COM = "https://github.com"
BODY_START_TAG = "<body"
OPENING_BODY_TAG_REGEX = %r!<body(.*?)>\s*!m.freeze
InvalidJekyllMentionConfig = Class.new(Jekyll::Errors::FatalException)
class <... | 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/unf-0.1.4/test/test_unf.rb | .bundles_cache/ruby/2.6.0/gems/unf-0.1.4/test/test_unf.rb | # -*- coding: utf-8 -*-
require 'helper'
require 'pathname'
class TestUNF < Test::Unit::TestCase
should "raise ArgumentError if an unknown normalization form is given" do
normalizer = UNF::Normalizer.instance
assert_raises(ArgumentError) { normalizer.normalize("が", :nfck) }
end
should "pass all tests bu... | 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/unf-0.1.4/test/helper.rb | .bundles_cache/ruby/2.6.0/gems/unf-0.1.4/test/helper.rb | require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'test/unit'
require 'shoulda'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__),... | 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/unf-0.1.4/lib/unf.rb | .bundles_cache/ruby/2.6.0/gems/unf-0.1.4/lib/unf.rb | require 'unf/version'
module UNF
autoload :Normalizer, 'unf/normalizer'
end
class String
ascii_only =
if method_defined?(:ascii_only?)
'ascii_only?'
else
'/[^\x00-\x7f]/ !~ self'
end
# :method: to_nfc
# Converts the string to NFC.
# :method: to_nfd
# Converts the string to NFD.
... | 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/unf-0.1.4/lib/unf/normalizer_cruby.rb | .bundles_cache/ruby/2.6.0/gems/unf-0.1.4/lib/unf/normalizer_cruby.rb | require 'unf_ext'
| 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/unf-0.1.4/lib/unf/version.rb | .bundles_cache/ruby/2.6.0/gems/unf-0.1.4/lib/unf/version.rb | module UNF
VERSION = '0.1.4'
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/unf-0.1.4/lib/unf/normalizer_jruby.rb | .bundles_cache/ruby/2.6.0/gems/unf-0.1.4/lib/unf/normalizer_jruby.rb | require 'java'
module UNF # :nodoc: all
class Normalizer
def initialize()
@normalizer = java.text.Normalizer
end
def normalize(string, normalization_form)
@normalizer.normalize(string, form(normalization_form))
end
private
def form(symbol)
case symbol
when :nfc
... | 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/unf-0.1.4/lib/unf/normalizer.rb | .bundles_cache/ruby/2.6.0/gems/unf-0.1.4/lib/unf/normalizer.rb | require 'singleton'
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
require 'unf/normalizer_jruby'
else
require 'unf/normalizer_cruby'
end
# UTF-8 string normalizer class. Implementations may vary depending
# on the platform.
class UNF::Normalizer
include Singleton
class << self
# :singleton-method: i... | 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-coffeescript-1.1.1/lib/jekyll-coffeescript.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-coffeescript-1.1.1/lib/jekyll-coffeescript.rb | # frozen_string_literal: true
require "jekyll"
require "jekyll-coffeescript/version"
require "jekyll/converters/coffeescript"
module Jekyll
module Coffeescript
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-coffeescript-1.1.1/lib/jekyll-coffeescript/version.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-coffeescript-1.1.1/lib/jekyll-coffeescript/version.rb | # frozen_string_literal: true
module Jekyll
module Coffeescript
VERSION = "1.1.1".freeze
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-coffeescript-1.1.1/lib/jekyll/converters/coffeescript.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-coffeescript-1.1.1/lib/jekyll/converters/coffeescript.rb | # frozen_string_literal: true
module Jekyll
module Converters
class CoffeeScript < Converter
safe true
priority :low
def setup
require "coffee-script"
@setup = true
end
def matches(ext)
ext.casecmp(".coffee").zero?
end
def output_ext(_ext)
... | 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/rouge-3.26.0/lib/rouge.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
# stdlib
require 'pathname'
# The containing module for Rouge
module Rouge
# cache value in a constant since `__dir__` allocates a new string
# on every call.
LIB_DIR = __dir__.freeze
class << self
def reload!
Object::send :remove_const, :Roug... | 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/rouge-3.26.0/lib/rouge/tex_theme_renderer.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/tex_theme_renderer.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
class TexThemeRenderer
def initialize(theme, opts={})
@theme = theme
@prefix = opts.fetch(:prefix) { 'RG' }
end
# Our general strategy is this:
#
# * First, define the \RG{tokname}{content} command, which will
#... | 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/rouge-3.26.0/lib/rouge/version.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/version.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
def self.version
"3.26.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/rouge-3.26.0/lib/rouge/guesser.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/guesser.rb | # frozen_string_literal: true
module Rouge
class Guesser
class Ambiguous < StandardError
attr_reader :alternatives
def initialize(alternatives); @alternatives = alternatives; end
def message
"Ambiguous guess: can't decide between #{alternatives.map(&:tag).inspect}"
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/rouge-3.26.0/lib/rouge/theme.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/theme.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
class Theme
include Token::Tokens
class Style < Hash
def initialize(theme, hsh={})
super()
@theme = theme
merge!(hsh)
end
[:fg, :bg].each do |mode|
define_method mode do
return 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/rouge-3.26.0/lib/rouge/lexer.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexer.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
# stdlib
require 'strscan'
require 'cgi'
require 'set'
module Rouge
# @abstract
# A lexer transforms text into a stream of `[token, chunk]` pairs.
class Lexer
include Token::Tokens
@option_docs = {}
class << self
# Lexes `stream` with 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/rouge-3.26.0/lib/rouge/cli.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/cli.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
# not required by the main lib.
# to use this module, require 'rouge/cli'.
require 'rbconfig'
module Rouge
class FileReader
attr_reader :input
def initialize(input)
@input = input
end
def file
case input
when '-'
IO.... | 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/rouge-3.26.0/lib/rouge/regex_lexer.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/regex_lexer.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
# @abstract
# A stateful lexer that uses sets of regular expressions to
# tokenize a string. Most lexers are instances of RegexLexer.
class RegexLexer < Lexer
class InvalidRegex < StandardError
def initialize(re)
@re = re
... | 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/rouge-3.26.0/lib/rouge/token.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/token.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
class Token
class << self
attr_reader :name
attr_reader :parent
attr_reader :shortname
def cache
@cache ||= {}
end
def sub_tokens
@sub_tokens ||= {}
end
def [](qualname)
... | 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/rouge-3.26.0/lib/rouge/formatter.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/formatter.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
# A Formatter takes a token stream and formats it for human viewing.
class Formatter
# @private
REGISTRY = {}
# Specify or get the unique tag for this formatter. This is used
# for specifying a formatter in `rougify`.
def se... | 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/rouge-3.26.0/lib/rouge/text_analyzer.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/text_analyzer.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
class TextAnalyzer < String
# Find a shebang. Returns nil if no shebang is present.
def shebang
return @shebang if instance_variable_defined? :@shebang
self =~ /\A\s*#!(.*)$/
@shebang = $1
end
# Check if the giv... | 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/rouge-3.26.0/lib/rouge/template_lexer.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/template_lexer.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
# @abstract
# A TemplateLexer is one that accepts a :parent option, to specify
# which language is being templated. The lexer class can specify its
# own default for the parent lexer, which is otherwise defaulted to
# HTML.
class Templat... | 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/rouge-3.26.0/lib/rouge/util.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/util.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
class InheritableHash < Hash
def initialize(parent=nil)
@parent = parent
end
def [](k)
value = super
return value if own_keys.include?(k)
value || parent[k]
end
def parent
@parent ||= {}
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/rouge-3.26.0/lib/rouge/plugins/redcarpet.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/plugins/redcarpet.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
# this file is not require'd from the root. To use this plugin, run:
#
# require 'rouge/plugins/redcarpet'
module Rouge
module Plugins
module Redcarpet
def block_code(code, language)
lexer =
begin
Lexer.find_fancy(la... | 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/rouge-3.26.0/lib/rouge/lexers/eex.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/eex.rb | # -*- coding: utf-8 -*- #
module Rouge
module Lexers
class EEX < TemplateLexer
title "EEX"
desc "Embedded Elixir"
tag 'eex'
aliases 'leex'
filenames '*.eex', '*.leex'
def initialize(opts={})
@elixir_lexer = Elixir.new(opts)
super(opts)
end
star... | 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/rouge-3.26.0/lib/rouge/lexers/jsl.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/jsl.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class JSL < RegexLexer
title "JSL"
desc "The JMP Scripting Language (JSL) (jmp.com)"
tag 'jsl'
filenames '*.jsl'
state :root do
rule %r/\s+/m, Text::Whitespace
rule %r(//.*?$), Comm... | 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/rouge-3.26.0/lib/rouge/lexers/tcl.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/tcl.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class TCL < RegexLexer
title "Tcl"
desc "The Tool Command Language (tcl.tk)"
tag 'tcl'
filenames '*.tcl'
mimetypes 'text/x-tcl', 'text/x-script.tcl', 'application/x-tcl'
def self.detect?(text)
... | 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/rouge-3.26.0/lib/rouge/lexers/rescript.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/rescript.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
load_lexer 'ocaml/common.rb'
class ReScript < OCamlCommon
title "ReScript"
desc "The ReScript programming language (rescript-lang.org)"
tag 'rescript'
filenames '*.res', '*.resi'
mimetypes 'text/... | 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/rouge-3.26.0/lib/rouge/lexers/erlang.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/erlang.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class Erlang < RegexLexer
title "Erlang"
desc "The Erlang programming language (erlang.org)"
tag 'erlang'
aliases 'erl'
filenames '*.erl', '*.hrl'
mimetypes 'text/x-erlang', 'application/x-erla... | 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/rouge-3.26.0/lib/rouge/lexers/literate_coffeescript.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/literate_coffeescript.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class LiterateCoffeescript < RegexLexer
tag 'literate_coffeescript'
title "Literate CoffeeScript"
desc 'Literate coffeescript'
aliases 'litcoffee'
filenames '*.litcoffee'
def markdown
@... | 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/rouge-3.26.0/lib/rouge/lexers/gdscript.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/gdscript.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class GDScript < RegexLexer
title "GDScript"
desc "The Godot Engine programming language (https://godotengine.org/)"
tag 'gdscript'
aliases 'gd', 'gdscript'
filenames '*.gd'
mimetypes 'text/x-gd... | 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/rouge-3.26.0/lib/rouge/lexers/docker.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/docker.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class Docker < RegexLexer
title "Docker"
desc "Dockerfile syntax"
tag 'docker'
aliases 'dockerfile', 'Dockerfile'
filenames 'Dockerfile', '*.Dockerfile', '*.docker'
mimetypes 'text/x-dockerfile-... | 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/rouge-3.26.0/lib/rouge/lexers/bsl.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/bsl.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class Bsl < RegexLexer
title "1C (BSL)"
desc "The 1C:Enterprise programming language"
tag 'bsl'
filenames '*.bsl', '*.os'
KEYWORDS = /(?<=[^\wа-яё]|^)(?:
КонецПроцедуры | EndPr... | 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/rouge-3.26.0/lib/rouge/lexers/fsharp.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/fsharp.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class FSharp < RegexLexer
title "FSharp"
desc 'F# (fsharp.net)'
tag 'fsharp'
filenames '*.fs', '*.fsi', '*.fsx'
mimetypes 'application/fsharp-script', 'text/x-fsharp', 'text/x-fsi'
def self.key... | 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/rouge-3.26.0/lib/rouge/lexers/sql.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/sql.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class SQL < RegexLexer
title "SQL"
desc "Structured Query Language, for relational databases"
tag 'sql'
filenames '*.sql'
mimetypes 'text/x-sql'
def self.keywords
@keywords ||= Set.new ... | 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/rouge-3.26.0/lib/rouge/lexers/io.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/io.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class IO < RegexLexer
tag 'io'
title "Io"
desc 'The IO programming language (http://iolanguage.com)'
mimetypes 'text/x-iosrc'
filenames '*.io'
def self.detect?(text)
return true if text... | 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/rouge-3.26.0/lib/rouge/lexers/mosel.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/mosel.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class Mosel < RegexLexer
tag 'mosel'
filenames '*.mos'
title "Mosel"
desc "An optimization language used by Fico's Xpress."
# http://www.fico.com/en/products/fico-xpress-optimization-suite
filen... | 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/rouge-3.26.0/lib/rouge/lexers/common_lisp.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/common_lisp.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class CommonLisp < RegexLexer
title "Common Lisp"
desc "The Common Lisp variant of Lisp (common-lisp.net)"
tag 'common_lisp'
aliases 'cl', 'common-lisp', 'elisp', 'emacs-lisp', 'lisp'
filenames '*.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/rouge-3.26.0/lib/rouge/lexers/typescript.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/typescript.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
load_lexer 'javascript.rb'
load_lexer 'typescript/common.rb'
class Typescript < Javascript
extend TypescriptCommon
title "TypeScript"
desc "TypeScript, a superset of JavaScript"
tag 'typescript'
... | 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/rouge-3.26.0/lib/rouge/lexers/c.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/c.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class C < RegexLexer
tag 'c'
filenames '*.c', '*.h', '*.idc'
mimetypes 'text/x-chdr', 'text/x-csrc'
title "C"
desc "The C programming language"
# optional comment or whitespace
ws = %r((... | 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/rouge-3.26.0/lib/rouge/lexers/awk.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/awk.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class Awk < RegexLexer
title "Awk"
desc "pattern-directed scanning and processing language"
tag 'awk'
filenames '*.awk'
mimetypes 'application/x-awk'
def self.detect?(text)
return true... | 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/rouge-3.26.0/lib/rouge/lexers/bibtex.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/bibtex.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
# Regular expressions based on https://github.com/SaswatPadhi/prismjs-bibtex
# and https://github.com/alecthomas/chroma/blob/master/lexers/b/bibtex.go
module Rouge
module Lexers
class BibTeX < RegexLexer
title 'BibTeX'
desc "BibTeX"
tag '... | 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/rouge-3.26.0/lib/rouge/lexers/moonscript.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/moonscript.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
load_lexer 'lua.rb'
class Moonscript < RegexLexer
title "MoonScript"
desc "Moonscript (http://www.moonscript.org)"
tag 'moonscript'
aliases 'moon'
filenames '*.moon'
mimetypes 'text/x-moons... | 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/rouge-3.26.0/lib/rouge/lexers/solidity.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/solidity.rb | # -*- coding: utf-8 -*- #
module Rouge
module Lexers
class Solidity < RegexLexer
title "Solidity"
desc "Solidity, an Ethereum smart contract programming language"
tag 'solidity'
filenames '*.sol', '*.solidity'
mimetypes 'text/x-solidity'
# optional comment or whitespace
... | 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/rouge-3.26.0/lib/rouge/lexers/clean.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/clean.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class Clean < RegexLexer
title "Clean"
desc "The Clean programming language (clean.cs.ru.nl)"
tag 'clean'
filenames '*.dcl', '*.icl'
def self.keywords
@keywords ||= Set.new %w(
if ... | 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/rouge-3.26.0/lib/rouge/lexers/slice.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/slice.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
load_lexer 'c.rb'
class Slice < C
tag 'slice'
filenames '*.ice'
mimetypes 'text/slice'
title "Slice"
desc "Specification Language for Ice (doc.zeroc.com)"
def self.keywords
@keywo... | 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/rouge-3.26.0/lib/rouge/lexers/jinja.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/jinja.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class Jinja < TemplateLexer
title "Jinja"
desc "Django/Jinja template engine (jinja.pocoo.org)"
tag 'jinja'
aliases 'django'
mimetypes 'application/x-django-templating', 'application/x-jinja',
... | 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/rouge-3.26.0/lib/rouge/lexers/gherkin.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/gherkin.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class Gherkin < RegexLexer
tag 'gherkin'
aliases 'cucumber', 'behat'
title "Gherkin"
desc 'A business-readable spec DSL (github.com/cucumber/cucumber/wiki/Gherkin)'
filenames '*.feature'
mimet... | 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/rouge-3.26.0/lib/rouge/lexers/nix.rb | .bundles_cache/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/lexers/nix.rb | # -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
class Nix < RegexLexer
title 'Nix'
desc 'The Nix expression language (https://nixos.org/nix/manual/#ch-expression-language)'
tag 'nix'
aliases 'nixos'
filenames '*.nix'
state :whitespaces do
... | 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.