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/yell-2.2.2/lib/yell/loggable.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/loggable.rb | module Yell #:nodoc:
# Include this module to add a logger to any class.
#
# When including this module, your class will have a :logger instance method
# available. Before you can use it, you will need to define a Yell logger and
# provide it with the name of your class.
#
# @example
# Yell.new :std... | 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/yell-2.2.2/lib/yell/event.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/event.rb | require 'time'
require 'socket'
module Yell #:nodoc:
# Yell::Event.new( :info, 'Hello World', { :scope => 'Application' } )
# #=> Hello World scope: Application
class Event
# regex to fetch caller attributes
CallerRegexp = /^(.+?):(\d+)(?::in `(.+)')?/
# jruby and rubinius seem to have a different ... | 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/yell-2.2.2/lib/yell/logger.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/logger.rb | require 'pathname'
module Yell #:nodoc:
# The +Yell::Logger+ is your entrypoint. Anything onwards is derived from here.
#
# A +Yell::Logger+ instance holds all your adapters and sends the log events
# to them if applicable. There are multiple ways of how to create a new logger.
class Logger
include Yell:... | 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/yell-2.2.2/lib/yell/silencer.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/silencer.rb | module Yell #:nodoc:
# The +Yell::Silencer+ is your handly helper for stiping out unwanted log messages.
class Silencer
class PresetNotFound < StandardError
def message; "Could not find a preset for #{super.inspect}"; end
end
Presets = {
:assets => [/\AStarted GET "\/assets/, /\AServed as... | 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/yell-2.2.2/lib/yell/configuration.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/configuration.rb | require 'erb'
require 'yaml'
module Yell #:nodoc:
# The Configuration can be used to setup Yell before
# initializing an instance.
class Configuration
def self.load!( file )
yaml = YAML.load( ERB.new(File.read(file)).result )
# in case we have ActiveSupport
if defined?(ActiveSupport::Has... | 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/yell-2.2.2/lib/yell/level.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/level.rb | module Yell #:nodoc:
# The +Level+ class handles the severities for you in order to determine
# if an adapter should log or not.
#
# In order to setup your level, you have certain modifiers available:
# at :warn # will be set to :warn level only
# gt :warn # Will set from :error level onwards
... | 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/yell-2.2.2/lib/yell/formatter.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/formatter.rb | require 'time'
# TODO: Register custom formats
#
# @example The Yell default fomat
# Yell::Formatter.register(:default)
#
# @example The Ruby standard logger format
# Yell::Formatter.register(:stdlogger, "%l, [%d #%p] %5L -- : %m", "%Y-%m-%dT%H:%M:%S.%6N")
#
module Yell #:nodoc:
# No format on the log message
... | 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/yell-2.2.2/lib/yell/adapters.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/adapters.rb | module Yell #:nodoc:
# AdapterNotFound is raised whenever you want to instantiate an
# adapter that does not exist.
class AdapterNotFound < StandardError; end
# This module provides the interface to attaching adapters to
# the logger. You should not have to call the corresponding classes
# directly.
mod... | 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/yell-2.2.2/lib/yell/helpers/tracer.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/helpers/tracer.rb | module Yell #:nodoc:
module Helpers #:nodoc:
module Tracer #:nodoc:
# Set whether the logger should allow tracing or not. The trace option
# will tell the logger when to provider caller information.
#
# @example No tracing at all
# trace = false
#
# @example Trace ever... | 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/yell-2.2.2/lib/yell/helpers/silencer.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/helpers/silencer.rb | module Yell #:nodoc:
module Helpers #:nodoc:
module Silencer
# Set the silence pattern
def silence( *patterns )
silencer.add(*patterns)
end
def silencer
@__silencer__
end
private
def reset!
@__silencer__ = Yell::Silencer.new
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/yell-2.2.2/lib/yell/helpers/adapter.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/helpers/adapter.rb | module Yell #:nodoc:
module Helpers #:nodoc:
module Adapter #:nodoc:
# Define an adapter to be used for logging.
#
# @example Standard adapter
# adapter :file
#
# @example Standard adapter with filename
# adapter :file, 'development.log'
#
# # Alternativ... | 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/yell-2.2.2/lib/yell/helpers/base.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/helpers/base.rb | module Yell #:nodoc:
module Helpers #:nodoc:
module Base #:nodoc:
private
# stub
def reset!
end
def inspectables
[]
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/yell-2.2.2/lib/yell/helpers/level.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/helpers/level.rb | module Yell #:nodoc:
module Helpers #:nodoc:
module Level
# Set the minimum log level.
#
# @example Set the level to :warn
# level = :warn
#
# @param [String, Symbol, Integer] severity The minimum log level
def level=( severity )
@__level__ = case severity
... | 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/yell-2.2.2/lib/yell/helpers/formatter.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/helpers/formatter.rb | module Yell #:nodoc:
module Helpers #:nodoc:
module Formatter #:nodoc:
# Set the format for your message.
def formatter=( pattern )
@__formatter__ = case pattern
when Yell::Formatter then pattern
else Yell::Formatter.new(*pattern)
end
end
alias :format= :fo... | 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/yell-2.2.2/lib/yell/adapters/io.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/adapters/io.rb | module Yell #:nodoc:
module Adapters #:nodoc:
class Io < Yell::Adapters::Base
include Yell::Helpers::Formatter
# The possible unix log colors
TTYColors = {
0 => "\033[1;32m", # green
1 => "\033[0m", # normal
2 => "\033[1;33m", # yellow
3 => "\033[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/yell-2.2.2/lib/yell/adapters/file.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/adapters/file.rb | module Yell #:nodoc:
module Adapters #:nodoc:
# The +File+ adapter is the most basic. As one would expect, it's used
# for logging into files.
class File < Yell::Adapters::Io
private
# @overload setup!( options )
def setup!( options )
@filename = ::File.expand_path(Yell.__fet... | 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/yell-2.2.2/lib/yell/adapters/base.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/adapters/base.rb | require 'monitor'
module Yell #:nodoc:
module Adapters #:nodoc:
# This class provides the basic interface for all allowed operations on any
# adapter implementation. Other adapters should inherit from it for the methods
# used by the {Yell::Logger}.
#
# Writing your own adapter is really simpl... | 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/yell-2.2.2/lib/yell/adapters/streams.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/adapters/streams.rb | module Yell #:nodoc:
module Adapters #:nodoc:
class Stdout < Yell::Adapters::Io
private
# @overload open!
def open!
@stream = $stdout.clone
super
end
end
class Stderr < Yell::Adapters::Io
private
# @overload open!
def open!
@stream =... | 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/yell-2.2.2/lib/yell/adapters/datefile.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/yell/adapters/datefile.rb | module Yell #:nodoc:
module Adapters #:nodoc:
# The +Datefile+ adapter is similar to the +File+ adapter. However, it
# rotates the file at midnight (by default).
class Datefile < Yell::Adapters::File
# The default date pattern, e.g. "19820114" (14 Jan 1982)
DefaultDatePattern = "%Y%m%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/yell-2.2.2/lib/core_ext/logger.rb | .bundles_cache/ruby/2.6.0/gems/yell-2.2.2/lib/core_ext/logger.rb | require 'logger'
class Logger
def level_with_yell=( level )
self.level_without_yell= level.is_a?(Yell::Level) ? Integer(level) : level
end
alias_method :level_without_yell=, :level=
alias_method :level=, :level_with_yell=
def add_with_yell( severity, message = nil, progname = nil, &block )
add_with... | 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-watch-2.2.1/lib/jekyll-watch.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-watch-2.2.1/lib/jekyll-watch.rb | # frozen_string_literal: true
require "jekyll-watch/version"
require_relative "jekyll/watcher"
require_relative "jekyll/commands/watch"
| 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-watch-2.2.1/lib/jekyll-watch/version.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-watch-2.2.1/lib/jekyll-watch/version.rb | # frozen_string_literal: true
module Jekyll
module Watch
VERSION = "2.2.1"
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-watch-2.2.1/lib/jekyll/watcher.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-watch-2.2.1/lib/jekyll/watcher.rb | # frozen_string_literal: true
require "listen"
module Jekyll
module Watcher
extend self
# Public: Continuously watch for file changes and rebuild the site
# whenever a change is detected.
#
# If the optional site argument is populated, that site instance will be
# reused and the options Has... | 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-watch-2.2.1/lib/jekyll/commands/watch.rb | .bundles_cache/ruby/2.6.0/gems/jekyll-watch-2.2.1/lib/jekyll/commands/watch.rb | # frozen_string_literal: true
module Jekyll
module Commands
module Watch
extend self
def init_with_program(prog); end
# Build your jekyll site
# Continuously watch if `watch` is set to true in the config.
def process(options)
Jekyll.logger.log_level = :error if options["qu... | 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/ffi-1.15.5/rakelib/ffi_gem_helper.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/rakelib/ffi_gem_helper.rb | require 'bundler'
require 'bundler/gem_helper'
class FfiGemHelper < Bundler::GemHelper
attr_accessor :cross_platforms
def install
super
task "release:guard_clean" => ["release:update_history"]
task "release:update_history" do
update_history
end
task "release:rubygem_push" => ["gem:nat... | 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/ffi-1.15.5/samples/getlogin.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/samples/getlogin.rb | require 'ffi'
module Foo
extend FFI::Library
ffi_lib FFI::Library::LIBC
attach_function :getlogin, [ ], :string
end
puts "getlogin=#{Foo.getlogin}"
| 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/ffi-1.15.5/samples/hello.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/samples/hello.rb | require 'ffi'
module Foo
extend FFI::Library
ffi_lib FFI::Library::LIBC
attach_function("cputs", "puts", [ :string ], :int)
end
Foo.cputs("Hello, World via libc puts using FFI on MRI ruby")
| 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/ffi-1.15.5/samples/qsort.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/samples/qsort.rb | require 'ffi'
module LibC
extend FFI::Library
ffi_lib FFI::Library::LIBC
callback :qsort_cmp, [ :pointer, :pointer ], :int
attach_function :qsort, [ :pointer, :ulong, :ulong, :qsort_cmp ], :int
end
p = FFI::MemoryPointer.new(:int, 2)
p.put_array_of_int32(0, [ 2, 1 ])
puts "ptr=#{p.inspect}"
puts "Before qsort... | 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/ffi-1.15.5/samples/getpid.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/samples/getpid.rb | require 'ffi'
module Foo
extend FFI::Library
ffi_lib FFI::Library::LIBC
attach_function :getpid, [ ], :int
end
puts "My pid=#{Foo.getpid}"
| 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/ffi-1.15.5/samples/pty.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/samples/pty.rb | require 'ffi'
module PTY
private
module LibC
extend FFI::Library
ffi_lib FFI::Library::LIBC
attach_function :forkpty, [ :buffer_out, :buffer_out, :buffer_in, :buffer_in ], :int
attach_function :openpty, [ :buffer_out, :buffer_out, :buffer_out, :buffer_in, :buffer_in ], :int
attach_function :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/ffi-1.15.5/samples/inotify.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/samples/inotify.rb | require 'ffi'
module Inotify
extend FFI::Library
ffi_lib FFI::Library::LIBC
class Event < FFI::Struct
layout \
:wd, :int,
:mask, :uint,
:cookie, :uint,
:len, :uint
end
attach_function :init, :inotify_init, [ ], :int
attach_function :add_watch, :inotify_add_watch, [ :int, :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/ffi-1.15.5/samples/gettimeofday.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/samples/gettimeofday.rb | require 'ffi'
require 'rbconfig'
class Timeval < FFI::Struct
layout tv_sec: :ulong, tv_usec: :ulong
end
module LibC
extend FFI::Library
if FFI::Platform.windows?
ffi_lib RbConfig::CONFIG["LIBRUBY_SO"]
else
ffi_lib FFI::Library::LIBC
end
attach_function :gettimeofday, [ :pointer, :pointer ], :int
en... | 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/ffi-1.15.5/ext/ffi_c/extconf.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/extconf.rb | #!/usr/bin/env ruby
if RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
require 'mkmf'
require 'rbconfig'
def system_libffi_usable?
# We need pkg_config or ffi.h
libffi_ok = pkg_config("libffi") ||
have_header("ffi.h") ||
find_header("ffi.h", "/usr/local/include", "/usr/include/ffi",
... | 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/ffi-1.15.5/lib/ffi.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi.rb | if RUBY_ENGINE == 'ruby'
begin
require RUBY_VERSION.split('.')[0, 2].join('.') + '/ffi_c'
rescue Exception
require 'ffi_c'
end
require 'ffi/ffi'
elsif RUBY_ENGINE == 'jruby' && (RUBY_ENGINE_VERSION.split('.').map(&:to_i) <=> [9, 2, 20]) >= 0
JRuby::Util.load_ext("org.jruby.ext.ffi.FFIService")
req... | 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/ffi-1.15.5/lib/ffi/platform.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/platform.rb | #
# Copyright (C) 2008, 2009 Wayne Meissner
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyrigh... | 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/ffi-1.15.5/lib/ffi/io.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/io.rb | #
# Copyright (C) 2008, 2009 Wayne Meissner
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyrigh... | 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/ffi-1.15.5/lib/ffi/callback.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/callback.rb | #
# All the code from this file is now implemented in C. This file remains
# to satisfy any leftover require 'ffi/callback' in user code
#
| 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/ffi-1.15.5/lib/ffi/errno.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/errno.rb | #
# Copyright (C) 2008-2010 Wayne Meissner
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright... | 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/ffi-1.15.5/lib/ffi/library.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/library.rb | #
# Copyright (C) 2008-2010 Wayne Meissner
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright... | 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/ffi-1.15.5/lib/ffi/version.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/version.rb | module FFI
VERSION = '1.15.5'
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/ffi-1.15.5/lib/ffi/autopointer.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/autopointer.rb | #
# Copyright (C) 2008-2010 Wayne Meissner
# Copyright (C) 2008 Mike Dalessio
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source c... | 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/ffi-1.15.5/lib/ffi/struct.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/struct.rb | #
# Copyright (C) 2008-2010 Wayne Meissner
# Copyright (C) 2008, 2009 Andrea Fazzi
# Copyright (C) 2008, 2009 Luc Heinrich
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditio... | 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/ffi-1.15.5/lib/ffi/struct_layout_builder.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/struct_layout_builder.rb | #
# Copyright (C) 2008-2010 Wayne Meissner
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright... | 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/ffi-1.15.5/lib/ffi/struct_by_reference.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/struct_by_reference.rb | #
# Copyright (C) 2010 Wayne Meissner
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright noti... | 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/ffi-1.15.5/lib/ffi/struct_layout.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/struct_layout.rb | #
# Copyright (C) 2008-2010 Wayne Meissner
# Copyright (C) 2008, 2009 Andrea Fazzi
# Copyright (C) 2008, 2009 Luc Heinrich
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditio... | 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/ffi-1.15.5/lib/ffi/data_converter.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/data_converter.rb | #
# Copyright (C) 2008-2010 Wayne Meissner
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright... | 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/ffi-1.15.5/lib/ffi/pointer.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/pointer.rb | #
# Copyright (C) 2008, 2009 Wayne Meissner
# Copyright (c) 2007, 2008 Evan Phoenix
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of so... | 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/ffi-1.15.5/lib/ffi/union.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/union.rb | #
# Copyright (C) 2009 Andrea Fazzi <andrea.fazzi@alcacoop.it>
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain... | 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/ffi-1.15.5/lib/ffi/ffi.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/ffi.rb | #
# Copyright (C) 2008-2010 JRuby project
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright ... | 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/ffi-1.15.5/lib/ffi/types.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/types.rb | #
# Copyright (C) 2008-2010 Wayne Meissner
# Copyright (c) 2007, 2008 Evan Phoenix
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of sou... | 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/ffi-1.15.5/lib/ffi/enum.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/enum.rb | #
# Copyright (C) 2009, 2010 Wayne Meissner
# Copyright (C) 2009 Luc Heinrich
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source c... | 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/ffi-1.15.5/lib/ffi/memorypointer.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/memorypointer.rb | # This class is now implemented in C
| 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/ffi-1.15.5/lib/ffi/variadic.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/variadic.rb | #
# Copyright (C) 2008, 2009 Wayne Meissner
# Copyright (C) 2009 Luc Heinrich
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source c... | 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/ffi-1.15.5/lib/ffi/abstract_memory.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/abstract_memory.rb | #
# Copyright (C) 2020 Lars Kanis
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, ... | 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/ffi-1.15.5/lib/ffi/buffer.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/buffer.rb | #
# All the code from this file is now implemented in C. This file remains
# to satisfy any leftover require 'ffi/buffer' in user code
#
| 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/ffi-1.15.5/lib/ffi/managedstruct.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/managedstruct.rb | # Copyright (C) 2008 Mike Dalessio
#
# This file is part of ruby-ffi.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,... | 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/ffi-1.15.5/lib/ffi/tools/struct_generator.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/tools/struct_generator.rb | require 'tempfile'
module FFI
##
# Generates an FFI Struct layout.
#
# Given the @@@ portion in:
#
# class Zlib::ZStream < FFI::Struct
# @@@
# name "struct z_stream_s"
# include "zlib.h"
#
# field :next_in, :pointer
# field :avail_in, :uint
# field :total_in, :u... | 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/ffi-1.15.5/lib/ffi/tools/types_generator.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/tools/types_generator.rb | require 'tempfile'
module FFI
# @private
class TypesGenerator
##
# Maps different C types to the C type representations we use
TYPE_MAP = {
"char" => :char,
"signed char" => :char,
"__signed char" => :char,
"unsigned char" => :uchar,
"short" => ... | 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/ffi-1.15.5/lib/ffi/tools/const_generator.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/tools/const_generator.rb | require 'tempfile'
require 'open3'
module FFI
# ConstGenerator turns C constants into ruby values.
#
# @example a simple example for stdio
# require 'ffi/tools/const_generator'
# cg = FFI::ConstGenerator.new('stdio') do |gen|
# gen.const(:SEEK_SET)
# gen.const('SEEK_CUR')
# gen.const('seek_... | 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/ffi-1.15.5/lib/ffi/tools/generator.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/tools/generator.rb | require 'ffi/tools/struct_generator'
require 'ffi/tools/const_generator'
module FFI
##
# Generate files with C structs for FFI::Struct and C constants.
#
# == A simple example
#
# In file +zlib.rb.ffi+:
# module Zlib
# @@@
# constants do |c|
# c.include "zlib.h"
# c.const :... | 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/ffi-1.15.5/lib/ffi/tools/generator_task.rb | .bundles_cache/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi/tools/generator_task.rb | require 'ffi/tools/generator'
require 'rake'
require 'rake/tasklib'
##
# Add Rake tasks that generate files with C structs for FFI::Struct and C constants.
#
# @example a simple example for your Rakefile
# require "ffi/tools/generator_task"
# # Add a task to generate my_object.rb out of my_object.rb.ffi
# FFI::G... | 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/parser-3.2.2.1/lib/gauntlet_parser.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/gauntlet_parser.rb | # frozen_string_literal: true
require 'gauntlet'
require 'parser/all'
require 'shellwords'
class ParserGauntlet < Gauntlet
RUBY20 = 'ruby'
RUBY19 = 'ruby1.9.1'
RUBY18 = '/opt/rubies/ruby-1.8.7-p370/bin/ruby'
def try(parser, ruby, file, show_ok: false)
try_ruby = lambda do |e|
Process.spawn(%{#{ruby... | 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/parser-3.2.2.1/lib/parser.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser.rb | # frozen_string_literal: true
if RUBY_VERSION =~ /^1\.[89]\./
require 'parser/version'
raise LoadError, <<-UNSUPPORTED_VERSION_MSG
parser v#{Parser::VERSION} cannot run on Ruby #{RUBY_VERSION}.
Please upgrade to Ruby 2.0.0 or higher, or use an older version of the parser gem.
UNSUPPORTED_VERSION_MSG
end
require... | 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/parser-3.2.2.1/lib/parser/max_numparam_stack.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/max_numparam_stack.rb | # frozen_string_literal: true
module Parser
# Holds p->max_numparam from parse.y
#
# @api private
class MaxNumparamStack
attr_reader :stack
ORDINARY_PARAMS = -1
def initialize
@stack = []
end
def empty?
@stack.size == 0
end
def has_ordinary_params!
set(ORDINAR... | 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/parser-3.2.2.1/lib/parser/tree_rewriter.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/tree_rewriter.rb | # frozen_string_literal: true
module Parser
##
# {Parser::TreeRewriter} offers a basic API that makes it easy to rewrite
# existing ASTs. It's built on top of {Parser::AST::Processor} and
# {Parser::Source::TreeRewriter}
#
# For example, assume you want to remove `do` tokens from a while statement.
# Yo... | 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/parser-3.2.2.1/lib/parser/ruby21.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby21.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby21 < Parser::Base
def version
21
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/current.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/current.rb | # frozen_string_literal: true
module Parser
class << self
def warn_syntax_deviation(feature, version)
warn "warning: parser/current is loading #{feature}, which recognizes " \
"#{version}-compliant syntax, but you are running #{RUBY_VERSION}.\n" \
"Please see https://github.com/whitequark/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/parser-3.2.2.1/lib/parser/current_arg_stack.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/current_arg_stack.rb | # frozen_string_literal: true
module Parser
# Stack that holds names of current arguments,
# i.e. while parsing
# def m1(a = (def m2(b = def m3(c = 1); end); end)); end
# ^
# stack is [:a, :b, :c]
#
# Emulates `p->cur_arg` in MRI's parse.y
#
# @api private
#
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/parser-3.2.2.1/lib/parser/deprecation.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/deprecation.rb | # frozen_string_literal: true
module Parser
##
# @api private
#
module Deprecation
attr_writer :warned_of_deprecation
def warn_of_deprecation
@warned_of_deprecation ||= warn(self::DEPRECATION_WARNING) || true
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/parser-3.2.2.1/lib/parser/ruby18.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby18.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby18 < Parser::Base
def version
18
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/lexer-F0.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/lexer-F0.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
# line 1 "lib/parser/lexer.rl"
# line 3 "lib/parser/lexer.rl"
#
# === BEFORE YOU START ===
#
# Read the Ruby Hacking Guide chapter 11, available in English at
# http://whitequark.org/blog/2013/04/01/ruby-hacking-guide-ch-11-finite-state-lexer/
... | 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/parser-3.2.2.1/lib/parser/version.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/version.rb | # frozen_string_literal: true
module Parser
VERSION = '3.2.2.1'
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/parser-3.2.2.1/lib/parser/meta.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/meta.rb | # frozen_string_literal: true
module Parser
# Parser metadata
module Meta
# All node types that parser can produce. Not all parser versions
# will be able to produce every possible node.
NODE_TYPES =
%i(
true false nil int float str dstr
sym dsym xstr regopt regexp array splat
... | 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/parser-3.2.2.1/lib/parser/ruby27.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby27.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby27 < Parser::Base
def version
27
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/ruby33.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby33.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby33 < Parser::Base
def version
33
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/syntax_error.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/syntax_error.rb | # frozen_string_literal: true
module Parser
##
# {Parser::SyntaxError} is raised whenever parser detects a syntax error,
# similar to the standard SyntaxError class.
#
# @api public
#
# @!attribute [r] diagnostic
# @return [Parser::Diagnostic]
#
class SyntaxError < StandardError
attr_reader :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/parser-3.2.2.1/lib/parser/rewriter.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/rewriter.rb | # frozen_string_literal: true
module Parser
##
# {Parser::Rewriter} is deprecated. Use {Parser::TreeRewriter} instead.
# It has a backwards compatible API and uses {Parser::Source::TreeRewriter}
# instead of {Parser::Source::Rewriter}.
# Please check the documentation for {Parser::Source::Rewriter} for deta... | 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/parser-3.2.2.1/lib/parser/lexer-F1.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/lexer-F1.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
# line 1 "lib/parser/lexer.rl"
# line 3 "lib/parser/lexer.rl"
#
# === BEFORE YOU START ===
#
# Read the Ruby Hacking Guide chapter 11, available in English at
# http://whitequark.org/blog/2013/04/01/ruby-hacking-guide-ch-11-finite-state-lexer/
... | 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/parser-3.2.2.1/lib/parser/ruby30.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby30.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby30 < Parser::Base
def version
30
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/ruby24.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby24.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby24 < Parser::Base
def version
24
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/color.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/color.rb | # frozen_string_literal: true
module Parser
module Color
def self.color(str, code, bold: false)
return str unless STDOUT.tty?
code = Array(code)
code.unshift(1) if bold
"\e[#{code.join(';')}m#{str}\e[0m"
end
def self.red(str, bold: false)
color(str, 31, bold: bold)
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/parser-3.2.2.1/lib/parser/base.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/base.rb | # frozen_string_literal: true
module Parser
##
# Base class for version-specific parsers.
#
# @api public
#
# @!attribute [r] diagnostics
# @return [Parser::Diagnostic::Engine]
#
# @!attribute [r] static_env
# @return [Parser::StaticEnvironment]
#
class Base < Racc::Parser
##
# Parse... | 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/parser-3.2.2.1/lib/parser/ruby26.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby26.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby26 < Parser::Base
def version
26
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/diagnostic.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/diagnostic.rb | # frozen_string_literal: true
module Parser
##
# @api public
#
# @!attribute [r] level
# @see LEVELS
# @return [Symbol] diagnostic level
#
# @!attribute [r] reason
# @see Parser::MESSAGES
# @return [Symbol] reason for error
#
# @!attribute [r] arguments
# @see Parser::MESSAGES
# @ret... | 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/parser-3.2.2.1/lib/parser/runner.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/runner.rb | # frozen_string_literal: true
require 'benchmark'
require 'find'
require 'optparse'
require 'parser'
module Parser
class Runner
def self.go(options)
new.execute(options)
end
def initialize
@option_parser = OptionParser.new { |opts| setup_option_parsing(opts) }
@legacy = {}
@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/parser-3.2.2.1/lib/parser/messages.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/messages.rb | # frozen_string_literal: true
module Parser
##
# Diagnostic messages (errors, warnings and notices) that can be generated.
#
# @see Diagnostic
#
# @api public
#
MESSAGES = {
# Lexer errors
:unicode_point_too_large => 'invalid Unicode codepoint (too large)',
:invalid_escape => '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/parser-3.2.2.1/lib/parser/macruby.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/macruby.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class MacRuby < Parser::Base
def version
19 # closest released match: ... | 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/parser-3.2.2.1/lib/parser/variables_stack.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/variables_stack.rb | # frozen_string_literal: true
module Parser
class VariablesStack
def initialize
@stack = []
push
end
def empty?
@stack.empty?
end
def push
@stack << Set.new
end
def pop
@stack.pop
end
def reset
@stack.clear
end
def declare(name)
... | 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/parser-3.2.2.1/lib/parser/ruby19.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby19.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby19 < Parser::Base
def version
19
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/ruby32.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby32.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby32 < Parser::Base
def version
32
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/ruby31.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby31.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby31 < Parser::Base
def version
31
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/context.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/context.rb | # frozen_string_literal: true
module Parser
# Context of parsing that is represented by a stack of scopes.
#
# Supported states:
# + :class - in the class body (class A; end)
# + :module - in the module body (module M; end)
# + :sclass - in the singleton class body (class << obj; end)
# + :def - in the m... | 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/parser-3.2.2.1/lib/parser/clobbering_error.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/clobbering_error.rb | # frozen_string_literal: true
module Parser
##
# {Parser::ClobberingError} is raised when {Parser::Source::Rewriter}
# detects a clobbering rewrite action. This class inherits {RuntimeError}
# rather than {StandardError} for backward compatibility.
#
# @api public
#
class ClobberingError < RuntimeError... | 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/parser-3.2.2.1/lib/parser/static_environment.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/static_environment.rb | # frozen_string_literal: true
module Parser
class StaticEnvironment
FORWARD_ARGS = :FORWARD_ARGS
ANONYMOUS_BLOCKARG = :ANONYMOUS_BLOCKARG
ANONYMOUS_RESTARG = :ANONYMOUS_RESTARG
ANONYMOUS_KWRESTARG = :ANONYMOUS_KWRESTARG
def initialize
reset
end
def reset
@variables = Set[]
... | 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/parser-3.2.2.1/lib/parser/ruby20.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby20.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby20 < Parser::Base
def version
20
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/ruby25.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby25.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby25 < Parser::Base
def version
25
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/lexer-strings.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/lexer-strings.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
# line 1 "lib/parser/lexer-strings.rl"
# line 3 "lib/parser/lexer-strings.rl"
class Parser::LexerStrings
# line 9 "lib/parser/lexer-strings.rb"
class << self
attr_accessor :_lex_actions
private :_lex_actions, :_lex_actions=
end
self._lex_... | 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/parser-3.2.2.1/lib/parser/ruby28.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby28.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.4.15
# from Racc grammer file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby28 < Parser::Base
def version
28
end
def default_encod... | 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/parser-3.2.2.1/lib/parser/ruby23.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby23.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby23 < Parser::Base
def version
23
end
def default_encodi... | 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/parser-3.2.2.1/lib/parser/ruby22.rb | .bundles_cache/ruby/2.6.0/gems/parser-3.2.2.1/lib/parser/ruby22.rb | # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.6.2
# from Racc grammar file "".
#
require 'racc/parser.rb'
require 'parser'
module Parser
class Ruby22 < Parser::Base
def version
22
end
def default_encodi... | ruby | Apache-2.0 | d43118c4af2adeb708d26658615319d6493e6077 | 2026-01-04T15:51:47.325668Z | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.