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/activesupport-6.1.7.3/lib/active_support/core_ext/object/deep_dup.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/deep_dup.rb
# frozen_string_literal: true require "active_support/core_ext/object/duplicable" class Object # Returns a deep copy of object if it's duplicable. If it's # not duplicable, returns +self+. # # object = Object.new # dup = object.deep_dup # dup.instance_variable_set(:@a, 1) # # object.instanc...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/conversions.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/conversions.rb
# frozen_string_literal: true require "active_support/core_ext/object/to_param" require "active_support/core_ext/object/to_query" require "active_support/core_ext/array/conversions" require "active_support/core_ext/hash/conversions"
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/json.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/json.rb
# frozen_string_literal: true # Hack to load json gem first so we can overwrite its to_json. require "json" require "bigdecimal" require "ipaddr" require "uri/generic" require "pathname" require "active_support/core_ext/big_decimal/conversions" # for #to_s require "active_support/core_ext/hash/except" require "active_...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/to_query.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/to_query.rb
# frozen_string_literal: true require "cgi" class Object # Alias of <tt>to_s</tt>. def to_param to_s end # Converts an object into a string suitable for use as a URL query string, # using the given <tt>key</tt> as the param name. def to_query(key) "#{CGI.escape(key.to_param)}=#{CGI.escape(to_para...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/try.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/try.rb
# frozen_string_literal: true require "delegate" module ActiveSupport module Tryable #:nodoc: def try(method_name = nil, *args, &b) if method_name.nil? && block_given? if b.arity == 0 instance_eval(&b) else yield self end elsif respond_to?(method_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/activesupport-6.1.7.3/lib/active_support/core_ext/object/acts_like.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/acts_like.rb
# frozen_string_literal: true class Object # A duck-type assistant method. For example, Active Support extends Date # to define an <tt>acts_like_date?</tt> method, and extends Time to define # <tt>acts_like_time?</tt>. As a result, we can do <tt>x.acts_like?(:time)</tt> and # <tt>x.acts_like?(:date)</tt> to do...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/inclusion.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/inclusion.rb
# frozen_string_literal: true class Object # Returns true if this object is included in the argument. Argument must be # any object which responds to +#include?+. Usage: # # characters = ["Konata", "Kagami", "Tsukasa"] # "Konata".in?(characters) # => true # # This will throw an +ArgumentError+ if 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/activesupport-6.1.7.3/lib/active_support/core_ext/object/with_options.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/object/with_options.rb
# frozen_string_literal: true require "active_support/option_merger" class Object # An elegant way to factor duplication out of options passed to a series of # method calls. Each method called in the block, with the block variable as # the receiver, will have its options merged with the default +options+ hash ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_and_time/compatibility.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_and_time/compatibility.rb
# frozen_string_literal: true require "active_support/core_ext/module/attribute_accessors" module DateAndTime module Compatibility # If true, +to_time+ preserves the timezone offset of receiver. # # NOTE: With Ruby 2.4+ the default for +to_time+ changed from # converting to the local system time, to...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_and_time/calculations.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_and_time/calculations.rb
# frozen_string_literal: true require "active_support/core_ext/object/try" require "active_support/core_ext/date_time/conversions" module DateAndTime module Calculations DAYS_INTO_WEEK = { sunday: 0, monday: 1, tuesday: 2, wednesday: 3, thursday: 4, friday: 5, saturday:...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_and_time/zones.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_and_time/zones.rb
# frozen_string_literal: true module DateAndTime module Zones # Returns the simultaneous time in <tt>Time.zone</tt> if a zone is given or # if Time.zone_default is set. Otherwise, it returns the current time. # # Time.zone = 'Hawaii' # => 'Hawaii' # Time.utc(2000).in_time_zone # => Fri...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/digest/uuid.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/digest/uuid.rb
# frozen_string_literal: true require "securerandom" require "digest" module Digest module UUID DNS_NAMESPACE = "k\xA7\xB8\x10\x9D\xAD\x11\xD1\x80\xB4\x00\xC0O\xD40\xC8" #:nodoc: URL_NAMESPACE = "k\xA7\xB8\x11\x9D\xAD\x11\xD1\x80\xB4\x00\xC0O\xD40\xC8" #:nodoc: OID_NAMESPACE = "k\xA7\xB8\x12\x9D\xAD\...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/inquiry.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/inquiry.rb
# frozen_string_literal: true require "active_support/array_inquirer" class Array # Wraps the array in an +ArrayInquirer+ object, which gives a friendlier way # to check its string-like contents. # # pets = [:cat, :dog].inquiry # # pets.cat? # => true # pets.ferret? # => false # # pets....
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/extract.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/extract.rb
# frozen_string_literal: true class Array # Removes and returns the elements for which the block returns a true value. # If no block is given, an Enumerator is returned instead. # # numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # odd_numbers = numbers.extract! { |number| number.odd? } # => [1, 3, 5, 7, 9] #...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/conversions.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/conversions.rb
# frozen_string_literal: true require "active_support/xml_mini" require "active_support/core_ext/hash/keys" require "active_support/core_ext/string/inflections" require "active_support/core_ext/object/to_param" require "active_support/core_ext/object/to_query" class Array # Converts the array to a comma-separated 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/activesupport-6.1.7.3/lib/active_support/core_ext/array/extract_options.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/extract_options.rb
# frozen_string_literal: true class Hash # By default, only instances of Hash itself are extractable. # Subclasses of Hash may implement this method and return # true to declare themselves as extractable. If a Hash # is extractable, Array#extract_options! pops it from # the Array when it is the last element ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/grouping.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/grouping.rb
# frozen_string_literal: true class Array # Splits or iterates over the array in groups of size +number+, # padding any remaining slots with +fill_with+ unless it is +false+. # # %w(1 2 3 4 5 6 7 8 9 10).in_groups_of(3) {|group| p group} # ["1", "2", "3"] # ["4", "5", "6"] # ["7", "8", "9"] # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/access.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/access.rb
# frozen_string_literal: true class Array # Returns the tail of the array from +position+. # # %w( a b c d ).from(0) # => ["a", "b", "c", "d"] # %w( a b c d ).from(2) # => ["c", "d"] # %w( a b c d ).from(10) # => [] # %w().from(0) # => [] # %w( a b c d ).from(-2) # => ["c", "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/activesupport-6.1.7.3/lib/active_support/core_ext/array/wrap.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/array/wrap.rb
# frozen_string_literal: true class Array # Wraps its argument in an array unless it is already an array (or array-like). # # Specifically: # # * If the argument is +nil+ an empty array is returned. # * Otherwise, if the argument responds to +to_ary+ it is invoked, and its result returned. # * Otherwise,...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/class/subclasses.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/class/subclasses.rb
# frozen_string_literal: true class Class # Returns an array with all classes that are < than its receiver. # # class C; end # C.descendants # => [] # # class B < C; end # C.descendants # => [B] # # class A < B; end # C.descendants # => [B, A] # # class D < C; end # C.descenda...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/class/attribute.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/class/attribute.rb
# frozen_string_literal: true require "active_support/core_ext/module/redefine_method" class Class # Declare a class-level attribute whose value is inheritable by subclasses. # Subclasses can change their own value and it will not impact parent class. # # ==== Options # # * <tt>:instance_reader</tt> - 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/activesupport-6.1.7.3/lib/active_support/core_ext/class/attribute_accessors.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/class/attribute_accessors.rb
# frozen_string_literal: true # cattr_* became mattr_* aliases in 7dfbd91b0780fbd6a1dd9bfbc176e10894871d2d, # but we keep this around for libraries that directly require it knowing they # want cattr_*. No need to deprecate. require "active_support/core_ext/module/attribute_accessors"
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/redefine_method.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/redefine_method.rb
# frozen_string_literal: true class Module # Marks the named method as intended to be redefined, if it exists. # Suppresses the Ruby method redefinition warning. Prefer # #redefine_method where possible. def silence_redefinition_of_method(method) if method_defined?(method) || private_method_defined?(method...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/anonymous.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/anonymous.rb
# frozen_string_literal: true class Module # A module may or may not have a name. # # module M; end # M.name # => "M" # # m = Module.new # m.name # => nil # # +anonymous?+ method returns true if module does not have a name, false otherwise: # # Module.new.anonymous? # => 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/activesupport-6.1.7.3/lib/active_support/core_ext/module/deprecation.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/deprecation.rb
# frozen_string_literal: true class Module # deprecate :foo # deprecate bar: 'message' # deprecate :foo, :bar, baz: 'warning!', qux: 'gone!' # # You can also use custom deprecator instance: # # deprecate :foo, deprecator: MyLib::Deprecator.new # deprecate :foo, bar: "warning!", deprecator: My...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/concerning.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/concerning.rb
# frozen_string_literal: true require "active_support/concern" class Module # = Bite-sized separation of concerns # # We often find ourselves with a medium-sized chunk of behavior that we'd # like to extract, but only mix in to a single class. # # Extracting a plain old Ruby object to encapsulate it and 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/activesupport-6.1.7.3/lib/active_support/core_ext/module/remove_method.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/remove_method.rb
# frozen_string_literal: true require "active_support/core_ext/module/redefine_method" class Module # Removes the named method, if it exists. def remove_possible_method(method) if method_defined?(method) || private_method_defined?(method) undef_method(method) end end # Removes the named singlet...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/attribute_accessors.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/attribute_accessors.rb
# frozen_string_literal: true # Extends the module object with class/module and instance accessors for # class/module attributes, just like the native attr* accessors for instance # attributes. class Module # Defines a class attribute and creates a class and instance reader methods. # The underlying class variable...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb
# frozen_string_literal: true # Extends the module object with class/module and instance accessors for # class/module attributes, just like the native attr* accessors for instance # attributes, but does so on a per-thread basis. # # So the values are scoped within the Thread.current space under the class name # of 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/activesupport-6.1.7.3/lib/active_support/core_ext/module/introspection.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/introspection.rb
# frozen_string_literal: true require "active_support/core_ext/string/filters" require "active_support/inflector" class Module # Returns the name of the module containing this one. # # M::N.module_parent_name # => "M" def module_parent_name if defined?(@parent_name) @parent_name else par...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/delegation.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/delegation.rb
# frozen_string_literal: true require "set" class Module # Error generated by +delegate+ when a method is called on +nil+ and +allow_nil+ # option is not used. class DelegationError < NoMethodError; end RUBY_RESERVED_KEYWORDS = %w(alias and BEGIN begin break case class def defined? do else elsif END end 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/activesupport-6.1.7.3/lib/active_support/core_ext/module/aliasing.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/aliasing.rb
# frozen_string_literal: true class Module # Allows you to make aliases for attributes, which includes # getter, setter, and a predicate. # # class Content < ActiveRecord::Base # # has a title attribute # end # # class Email < Content # alias_attribute :subject, :title # 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/activesupport-6.1.7.3/lib/active_support/core_ext/module/attr_internal.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/module/attr_internal.rb
# frozen_string_literal: true class Module # Declares an attribute reader backed by an internally-named instance variable. def attr_internal_reader(*attrs) attrs.each { |attr_name| attr_internal_define(attr_name, :reader) } end # Declares an attribute writer backed by an internally-named instance variable...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_time/blank.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_time/blank.rb
# frozen_string_literal: true require "date" class DateTime #:nodoc: # No DateTime is ever blank: # # DateTime.now.blank? # => false # # @return [false] def blank? false 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/activesupport-6.1.7.3/lib/active_support/core_ext/date_time/conversions.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_time/conversions.rb
# frozen_string_literal: true require "date" require "active_support/inflector/methods" require "active_support/core_ext/time/conversions" require "active_support/core_ext/date_time/calculations" require "active_support/values/time_zone" class DateTime # Convert to a formatted string. See Time::DATE_FORMATS for pre...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_time/acts_like.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_time/acts_like.rb
# frozen_string_literal: true require "date" require "active_support/core_ext/object/acts_like" class DateTime # Duck-types as a Date-like class. See Object#acts_like?. def acts_like_date? true end # Duck-types as a Time-like class. See Object#acts_like?. def acts_like_time? true 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/activesupport-6.1.7.3/lib/active_support/core_ext/date_time/compatibility.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_time/compatibility.rb
# frozen_string_literal: true require "active_support/core_ext/date_and_time/compatibility" require "active_support/core_ext/module/redefine_method" class DateTime include DateAndTime::Compatibility silence_redefinition_of_method :to_time # Either return an instance of +Time+ with the same UTC offset # 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/activesupport-6.1.7.3/lib/active_support/core_ext/date_time/calculations.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/date_time/calculations.rb
# frozen_string_literal: true require "date" class DateTime class << self # Returns <tt>Time.zone.now.to_datetime</tt> when <tt>Time.zone</tt> or # <tt>config.time_zone</tt> are set, otherwise returns # <tt>Time.now.to_datetime</tt>. def current ::Time.zone ? ::Time.zone.now.to_datetime : ::Ti...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/big_decimal/conversions.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/big_decimal/conversions.rb
# frozen_string_literal: true require "bigdecimal" require "bigdecimal/util" module ActiveSupport module BigDecimalWithDefaultFormat #:nodoc: def to_s(format = "F") super(format) end end end BigDecimal.prepend(ActiveSupport::BigDecimalWithDefaultFormat)
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/numeric/time.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/numeric/time.rb
# frozen_string_literal: true require "active_support/duration" require "active_support/core_ext/time/calculations" require "active_support/core_ext/time/acts_like" require "active_support/core_ext/date/calculations" require "active_support/core_ext/date/acts_like" class Numeric # Returns a Duration instance matchi...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/numeric/conversions.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/numeric/conversions.rb
# frozen_string_literal: true require "active_support/core_ext/big_decimal/conversions" require "active_support/number_helper" module ActiveSupport module NumericWithFormat # Provides options for converting numbers into formatted strings. # Options are provided for phone numbers, currency, percentage, #...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/numeric/bytes.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/numeric/bytes.rb
# frozen_string_literal: true class Numeric KILOBYTE = 1024 MEGABYTE = KILOBYTE * 1024 GIGABYTE = MEGABYTE * 1024 TERABYTE = GIGABYTE * 1024 PETABYTE = TERABYTE * 1024 EXABYTE = PETABYTE * 1024 # Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes # # 2.bytes # =>...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/symbol/starts_ends_with.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/core_ext/symbol/starts_ends_with.rb
# frozen_string_literal: true class Symbol def start_with?(*prefixes) to_s.start_with?(*prefixes) end unless method_defined?(:start_with?) def end_with?(*suffixes) to_s.end_with?(*suffixes) end unless method_defined?(:end_with?) alias :starts_with? :start_with? alias :ends_with? :end_with? 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/activesupport-6.1.7.3/lib/active_support/dependencies/autoload.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/dependencies/autoload.rb
# frozen_string_literal: true require "active_support/inflector/methods" module ActiveSupport # Autoload and eager load conveniences for your library. # # This module allows you to define autoloads based on # Rails conventions (i.e. no need to define the path # it is automatically guessed based on the 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/activesupport-6.1.7.3/lib/active_support/dependencies/interlock.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/dependencies/interlock.rb
# frozen_string_literal: true require "active_support/concurrency/share_lock" module ActiveSupport #:nodoc: module Dependencies #:nodoc: class Interlock def initialize # :nodoc: @lock = ActiveSupport::Concurrency::ShareLock.new end def loading @lock.exclusive(purpose: :load, 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/activesupport-6.1.7.3/lib/active_support/dependencies/zeitwerk_integration.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/dependencies/zeitwerk_integration.rb
# frozen_string_literal: true require "set" require "active_support/core_ext/string/inflections" module ActiveSupport module Dependencies module ZeitwerkIntegration # :nodoc: all module Decorations def clear Dependencies.unload_interlock do Rails.autoloaders.main.reload ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/duration/iso8601_parser.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/duration/iso8601_parser.rb
# frozen_string_literal: true require "strscan" module ActiveSupport class Duration # Parses a string formatted according to ISO 8601 Duration into the hash. # # See {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601#Durations] for more information. # # This parser allows negative parts to be pre...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/duration/iso8601_serializer.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/duration/iso8601_serializer.rb
# frozen_string_literal: true require "active_support/core_ext/object/blank" module ActiveSupport class Duration # Serializes duration to string according to ISO 8601 Duration format. class ISO8601Serializer # :nodoc: DATE_COMPONENTS = %i(years months days) def initialize(duration, precision: 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/activesupport-6.1.7.3/lib/active_support/locale/en.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/locale/en.rb
# frozen_string_literal: true { en: { number: { nth: { ordinals: lambda do |_key, options| number = options[:number] case number when 1; "st" when 2; "nd" when 3; "rd" when 4, 5, 6, 7, 8, 9, 10, 11, 12, 13; "th" else ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/deprecation/proxy_wrappers.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/deprecation/proxy_wrappers.rb
# frozen_string_literal: true module ActiveSupport class Deprecation class DeprecationProxy #:nodoc: def self.new(*args, &block) object = args.first return object unless object super end instance_methods.each { |m| undef_method m unless /^__|^object_id$/.match?(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/activesupport-6.1.7.3/lib/active_support/deprecation/method_wrappers.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/deprecation/method_wrappers.rb
# frozen_string_literal: true require "active_support/core_ext/array/extract_options" require "active_support/core_ext/module/redefine_method" module ActiveSupport class Deprecation module MethodWrapper # Declare that a method has been deprecated. # # class Fred # def aaa; 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/activesupport-6.1.7.3/lib/active_support/deprecation/constant_accessor.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/deprecation/constant_accessor.rb
# frozen_string_literal: true module ActiveSupport class Deprecation # DeprecatedConstantAccessor transforms a constant into a deprecated one by # hooking +const_missing+. # # It takes the names of an old (deprecated) constant and of a new constant # (both in string form) and optionally a depreca...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/deprecation/reporting.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/deprecation/reporting.rb
# frozen_string_literal: true require "rbconfig" module ActiveSupport class Deprecation module Reporting # Whether to print a message (silent mode) attr_writer :silenced # Name of gem where method is deprecated attr_accessor :gem_name # Outputs a deprecation warning to the output ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/deprecation/instance_delegator.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/deprecation/instance_delegator.rb
# frozen_string_literal: true require "active_support/core_ext/module/delegation" module ActiveSupport class Deprecation module InstanceDelegator # :nodoc: def self.included(base) base.extend(ClassMethods) base.singleton_class.prepend(OverrideDelegators) base.public_class_method :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/activesupport-6.1.7.3/lib/active_support/deprecation/disallowed.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/deprecation/disallowed.rb
# frozen_string_literal: true module ActiveSupport class Deprecation module Disallowed # Sets the criteria used to identify deprecation messages which should be # disallowed. Can be an array containing strings, symbols, or regular # expressions. (Symbols are treated as strings). These are compa...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/deprecation/behaviors.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/deprecation/behaviors.rb
# frozen_string_literal: true require "active_support/notifications" module ActiveSupport # Raised when <tt>ActiveSupport::Deprecation::Behavior#behavior</tt> is set with <tt>:raise</tt>. # You would set <tt>:raise</tt>, as a behavior to raise errors and proactively report exceptions from deprecations. class De...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/declarative.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/declarative.rb
# frozen_string_literal: true module ActiveSupport module Testing module Declarative unless defined?(Spec) # Helper to define a test method using a String. Under the hood, it replaces # spaces with underscores and defines the test method. # # test "verify something" do ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/deprecation.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/deprecation.rb
# frozen_string_literal: true require "active_support/deprecation" module ActiveSupport module Testing module Deprecation #:nodoc: def assert_deprecated(match = nil, deprecator = nil, &block) result, warnings = collect_deprecations(deprecator, &block) assert !warnings.empty?, "Expected a 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/activesupport-6.1.7.3/lib/active_support/testing/assertions.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/assertions.rb
# frozen_string_literal: true require "active_support/core_ext/enumerable" module ActiveSupport module Testing module Assertions UNTRACKED = Object.new # :nodoc: # Asserts that an expression is not truthy. Passes if <tt>object</tt> is # +nil+ or +false+. "Truthy" means "considered true in a 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/activesupport-6.1.7.3/lib/active_support/testing/setup_and_teardown.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/setup_and_teardown.rb
# frozen_string_literal: true require "active_support/callbacks" module ActiveSupport module Testing # Adds support for +setup+ and +teardown+ callbacks. # These callbacks serve as a replacement to overwriting the # <tt>#setup</tt> and <tt>#teardown</tt> methods of your TestCase. # # class Exa...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/method_call_assertions.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/method_call_assertions.rb
# frozen_string_literal: true require "minitest/mock" module ActiveSupport module Testing module MethodCallAssertions # :nodoc: private def assert_called(object, method_name, message = nil, times: 1, returns: nil) times_called = 0 object.stub(method_name, proc { times_called +...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/parallelization.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/parallelization.rb
# frozen_string_literal: true require "drb" require "drb/unix" unless Gem.win_platform? require "active_support/core_ext/module/attribute_accessors" require "active_support/testing/parallelization/server" require "active_support/testing/parallelization/worker" module ActiveSupport module Testing class Paralleli...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/stream.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/stream.rb
# frozen_string_literal: true module ActiveSupport module Testing module Stream #:nodoc: private def silence_stream(stream) old_stream = stream.dup stream.reopen(IO::NULL) stream.sync = true yield ensure stream.reopen(old_stream) o...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/autorun.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/autorun.rb
# frozen_string_literal: true gem "minitest" require "minitest" 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/activesupport-6.1.7.3/lib/active_support/testing/isolation.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/isolation.rb
# frozen_string_literal: true module ActiveSupport module Testing module Isolation require "thread" def self.included(klass) #:nodoc: klass.class_eval do parallelize_me! end end def self.forking_env? !ENV["NO_FORK"] && Process.respond_to?(:fork) 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/activesupport-6.1.7.3/lib/active_support/testing/time_helpers.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/time_helpers.rb
# frozen_string_literal: true require "active_support/core_ext/module/redefine_method" require "active_support/core_ext/time/calculations" require "concurrent/map" module ActiveSupport module Testing # Manages stubs for TimeHelpers class SimpleStubs # :nodoc: Stub = Struct.new(:object, :method_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/activesupport-6.1.7.3/lib/active_support/testing/constant_lookup.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/constant_lookup.rb
# frozen_string_literal: true require "active_support/concern" require "active_support/inflector" module ActiveSupport module Testing # Resolves a constant from a minitest spec name. # # Given the following spec-style test: # # describe WidgetsController, :index do # describe "authenti...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/file_fixtures.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/file_fixtures.rb
# frozen_string_literal: true require "active_support/concern" module ActiveSupport module Testing # Adds simple access to sample files called file fixtures. # File fixtures are normal files stored in # <tt>ActiveSupport::TestCase.file_fixture_path</tt>. # # File fixtures are represented as +Pat...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/tagged_logging.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/tagged_logging.rb
# frozen_string_literal: true module ActiveSupport module Testing # Logs a "PostsControllerTest: test name" heading before each test to # make test.log easier to search and follow along with. module TaggedLogging #:nodoc: attr_writer :tagged_logger def before_setup if tagged_logger &...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/parallelization/worker.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/parallelization/worker.rb
# frozen_string_literal: true module ActiveSupport module Testing class Parallelization # :nodoc: class Worker def initialize(number, url) @id = SecureRandom.uuid @number = number @url = url @setup_exception = nil end def start fork...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/parallelization/server.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/testing/parallelization/server.rb
# frozen_string_literal: true require "drb" require "drb/unix" unless Gem.win_platform? module ActiveSupport module Testing class Parallelization # :nodoc: class Server include DRb::DRbUndumped def initialize @queue = Queue.new @active_workers = Concurrent::Map.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/activesupport-6.1.7.3/lib/active_support/notifications/fanout.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/notifications/fanout.rb
# frozen_string_literal: true require "mutex_m" require "concurrent/map" require "set" require "active_support/core_ext/object/try" module ActiveSupport module Notifications # This is a default queue implementation that ships with Notifications. # It just pushes events to all registered log subscribers. ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/notifications/instrumenter.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/notifications/instrumenter.rb
# frozen_string_literal: true require "securerandom" module ActiveSupport module Notifications # Instrumenters are stored in a thread local. class Instrumenter attr_reader :id def initialize(notifier) @id = unique_id @notifier = notifier end # Given a block, 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/activesupport-6.1.7.3/lib/active_support/xml_mini/libxmlsax.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/xml_mini/libxmlsax.rb
# frozen_string_literal: true require "libxml" require "active_support/core_ext/object/blank" require "stringio" module ActiveSupport module XmlMini_LibXMLSAX #:nodoc: extend self # Class that will build the hash while the XML document # is being parsed using SAX events. class HashBuilder 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/activesupport-6.1.7.3/lib/active_support/xml_mini/libxml.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/xml_mini/libxml.rb
# frozen_string_literal: true require "libxml" require "active_support/core_ext/object/blank" require "stringio" module ActiveSupport module XmlMini_LibXML #:nodoc: extend self # Parse an XML Document string or IO into a simple hash using libxml. # data:: # XML Document string or IO to 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/activesupport-6.1.7.3/lib/active_support/xml_mini/nokogiri.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/xml_mini/nokogiri.rb
# frozen_string_literal: true begin require "nokogiri" rescue LoadError => e $stderr.puts "You don't have nokogiri installed in your application. Please add it to your Gemfile and run bundle install" raise e end require "active_support/core_ext/object/blank" require "stringio" module ActiveSupport module XmlM...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/xml_mini/rexml.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/xml_mini/rexml.rb
# frozen_string_literal: true require "active_support/core_ext/kernel/reporting" require "active_support/core_ext/object/blank" require "stringio" module ActiveSupport module XmlMini_REXML #:nodoc: extend self CONTENT_KEY = "__content__" # Parse an XML Document string or IO into a simple hash. # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/xml_mini/jdom.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/xml_mini/jdom.rb
# frozen_string_literal: true raise "JRuby is required to use the JDOM backend for XmlMini" unless RUBY_PLATFORM.include?("java") require "jruby" include Java require "active_support/core_ext/object/blank" java_import javax.xml.parsers.DocumentBuilder unless defined? DocumentBuilder java_import javax.xml.parsers.Do...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/xml_mini/nokogirisax.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/xml_mini/nokogirisax.rb
# frozen_string_literal: true begin require "nokogiri" rescue LoadError => e $stderr.puts "You don't have nokogiri installed in your application. Please add it to your Gemfile and run bundle install" raise e end require "active_support/core_ext/object/blank" require "stringio" module ActiveSupport module XmlM...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/values/time_zone.rb
.bundles_cache/ruby/2.6.0/gems/activesupport-6.1.7.3/lib/active_support/values/time_zone.rb
# frozen_string_literal: true require "tzinfo" require "concurrent/map" module ActiveSupport # The TimeZone class serves as a wrapper around TZInfo::Timezone instances. # It allows us to do the following: # # * Limit the set of zones provided by TZInfo to a meaningful subset of 134 # zones. # * Retrieve...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk.rb
# frozen_string_literal: true module Zeitwerk require_relative "zeitwerk/real_mod_name" require_relative "zeitwerk/internal" require_relative "zeitwerk/loader" require_relative "zeitwerk/gem_loader" require_relative "zeitwerk/registry" require_relative "zeitwerk/explicit_namespace" require_relative "zeit...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/gem_inflector.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/gem_inflector.rb
# frozen_string_literal: true module Zeitwerk class GemInflector < Inflector # @sig (String) -> void def initialize(root_file) namespace = File.basename(root_file, ".rb") root_dir = File.dirname(root_file) @version_file = File.join(root_dir, namespace, "version.rb") 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/zeitwerk-2.6.8/lib/zeitwerk/version.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/version.rb
# frozen_string_literal: true module Zeitwerk VERSION = "2.6.8" 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/zeitwerk-2.6.8/lib/zeitwerk/inflector.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/inflector.rb
# frozen_string_literal: true module Zeitwerk class Inflector # Very basic snake case -> camel case conversion. # # inflector = Zeitwerk::Inflector.new # inflector.camelize("post", ...) # => "Post" # inflector.camelize("users_controller", ...) # => "UsersController" # infl...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/registry.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/registry.rb
# frozen_string_literal: true module Zeitwerk module Registry # :nodoc: all class << self # Keeps track of all loaders. Useful to broadcast messages and to prevent # them from being garbage collected. # # @private # @sig Array[Zeitwerk::Loader] attr_reader :loaders # 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/zeitwerk-2.6.8/lib/zeitwerk/loader.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/loader.rb
# frozen_string_literal: true require "set" module Zeitwerk class Loader require_relative "loader/helpers" require_relative "loader/callbacks" require_relative "loader/config" require_relative "loader/eager_load" extend Internal include RealModName include Callbacks include Helpers...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/gem_loader.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/gem_loader.rb
# frozen_string_literal: true module Zeitwerk # @private class GemLoader < Loader include RealModName # Users should not create instances directly, the public interface is # `Zeitwerk::Loader.for_gem`. private_class_method :new # @private # @sig (String, bool) -> Zeitwerk::GemLoader 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/zeitwerk-2.6.8/lib/zeitwerk/kernel.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/kernel.rb
# frozen_string_literal: true module Kernel module_function # Zeitwerk's main idea is to define autoloads for project constants, and then # intercept them when triggered in this thin `Kernel#require` wrapper. # # That allows us to complete the circle, invoke callbacks, autovivify modules, # define autoloa...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/real_mod_name.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/real_mod_name.rb
# frozen_string_literal: true module Zeitwerk::RealModName UNBOUND_METHOD_MODULE_NAME = Module.instance_method(:name) private_constant :UNBOUND_METHOD_MODULE_NAME # Returns the real name of the class or module, as set after the first # constant to which it was assigned (or nil). # # The name method can be...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/internal.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/internal.rb
# frozen_string_literal: true # This is a private module. module Zeitwerk::Internal def internal(method_name) private method_name mangled = "__#{method_name}" alias_method mangled, method_name public mangled 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/zeitwerk-2.6.8/lib/zeitwerk/explicit_namespace.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/explicit_namespace.rb
# frozen_string_literal: true module Zeitwerk # Centralizes the logic for the trace point used to detect the creation of # explicit namespaces, needed to descend into matching subdirectories right # after the constant has been defined. # # The implementation assumes an explicit namespace is managed by one lo...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/error.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/error.rb
# frozen_string_literal: true module Zeitwerk class Error < StandardError end class ReloadingDisabledError < Error def initialize super("can't reload, please call loader.enable_reloading before setup") end end class NameError < ::NameError end class SetupRequired < Error def initiali...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/loader/eager_load.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/loader/eager_load.rb
module Zeitwerk::Loader::EagerLoad # Eager loads all files in the root directories, recursively. Files do not # need to be in `$LOAD_PATH`, absolute file names are used. Ignored and # shadowed files are not eager loaded. You can opt-out specifically in # specific files and directories with `do_not_eager_load`, ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/loader/callbacks.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/loader/callbacks.rb
# frozen_string_literal: true module Zeitwerk::Loader::Callbacks include Zeitwerk::RealModName # Invoked from our decorated Kernel#require when a managed file is autoloaded. # # @private # @sig (String) -> void def on_file_autoloaded(file) cref = autoloads.delete(file) cpath = cpath(*cref) Z...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/loader/helpers.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/loader/helpers.rb
# frozen_string_literal: true module Zeitwerk::Loader::Helpers # --- Logging ----------------------------------------------------------------------------------- # @sig (String) -> void private def log(message) method_name = logger.respond_to?(:debug) ? :debug : :call logger.send(method_name, "Zeitwerk@#...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/loader/config.rb
.bundles_cache/ruby/2.6.0/gems/zeitwerk-2.6.8/lib/zeitwerk/loader/config.rb
# frozen_string_literal: true require "set" require "securerandom" module Zeitwerk::Loader::Config extend Zeitwerk::Internal include Zeitwerk::RealModName # @sig #camelize attr_accessor :inflector # @sig #call | #debug | nil attr_accessor :logger # Absolute paths of the root directories, mapped to th...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-3.9.3/rubocop/jekyll.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-3.9.3/rubocop/jekyll.rb
# frozen_string_literal: true Dir[File.join(File.expand_path("jekyll", __dir__), "*.rb")].each do |ruby_file| require ruby_file 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-3.9.3/rubocop/jekyll/no_puts_allowed.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-3.9.3/rubocop/jekyll/no_puts_allowed.rb
# frozen_string_literal: true require "rubocop" module RuboCop module Cop module Jekyll class NoPutsAllowed < Cop MSG = "Avoid using `puts` to print things. Use `Jekyll.logger` instead.".freeze def_node_search :puts_called?, <<-PATTERN (send nil? :puts _) PATTERN ...
ruby
Apache-2.0
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-3.9.3/rubocop/jekyll/no_p_allowed.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-3.9.3/rubocop/jekyll/no_p_allowed.rb
# frozen_string_literal: true require "rubocop" module RuboCop module Cop module Jekyll class NoPAllowed < Cop MSG = "Avoid using `p` to print things. Use `Jekyll.logger` instead.".freeze def_node_search :p_called?, <<-PATTERN (send _ :p _) PATTERN def on_send(nod...
ruby
Apache-2.0
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-3.9.3/lib/jekyll.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-3.9.3/lib/jekyll.rb
# frozen_string_literal: true $LOAD_PATH.unshift __dir__ # For use/testing when no gem is installed # Require all of the Ruby files in the given directory. # # path - The String relative path from here to the directory. # # Returns nothing. def require_all(path) glob = File.join(__dir__, path, "*.rb") Dir[glob].s...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false