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/i18n-1.13.0/lib/i18n/backend.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend.rb
# frozen_string_literal: true module I18n module Backend autoload :Base, 'i18n/backend/base' autoload :Cache, 'i18n/backend/cache' autoload :CacheFile, 'i18n/backend/cache_file' autoload :Cascade, 'i18n/backend/cascade' autoload :Chain, ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/locale.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/locale.rb
# frozen_string_literal: true module I18n module Locale autoload :Fallbacks, 'i18n/locale/fallbacks' autoload :Tag, 'i18n/locale/tag' 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/i18n-1.13.0/lib/i18n/config.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/config.rb
# frozen_string_literal: true require 'set' module I18n class Config # The only configuration value that is not global and scoped to thread is :locale. # It defaults to the default_locale. def locale defined?(@locale) && @locale != nil ? @locale : default_locale end # Sets the current loc...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests.rb
# frozen_string_literal: true module I18n module Tests autoload :Basics, 'i18n/tests/basics' autoload :Defaults, 'i18n/tests/defaults' autoload :Interpolation, 'i18n/tests/interpolation' autoload :Link, 'i18n/tests/link' autoload :Localization, 'i18n/tests/localization' ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/pluralization.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/pluralization.rb
# encoding: utf-8 module I18n module Tests module Pluralization test "pluralization: given 0 it returns the :zero translation if it is defined" do assert_equal 'zero', I18n.t(:default => { :zero => 'zero' }, :count => 0) end test "pluralization: given 0 it returns the :other translatio...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/procs.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/procs.rb
# encoding: utf-8 module I18n module Tests module Procs test "lookup: given a translation is a proc it calls the proc with the key and interpolation values" do I18n.backend.store_translations(:en, :a_lambda => lambda { |*args| I18n::Tests::Procs.filter_args(*args) }) assert_equal '[:a_lambd...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/interpolation.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/interpolation.rb
# encoding: utf-8 module I18n module Tests module Interpolation # If no interpolation parameter is not given, I18n should not alter the string. # This behavior is due to three reasons: # # * Checking interpolation keys in all strings hits performance, badly; # # * This all...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/localization.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/localization.rb
module I18n module Tests module Localization autoload :Date, 'i18n/tests/localization/date' autoload :DateTime, 'i18n/tests/localization/date_time' autoload :Time, 'i18n/tests/localization/time' autoload :Procs, 'i18n/tests/localization/procs' def self.included(base) ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/link.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/link.rb
# encoding: utf-8 module I18n module Tests module Link test "linked lookup: if a key resolves to a symbol it looks up the symbol" do I18n.backend.store_translations 'en', { :link => :linked, :linked => 'linked' } assert_equal 'linked', I18n.backend.translate('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/i18n-1.13.0/lib/i18n/tests/basics.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/basics.rb
module I18n module Tests module Basics def teardown I18n.available_locales = nil end test "available_locales returns the available_locales produced by the backend, by default" do I18n.backend.store_translations('de', :foo => 'bar') I18n.backend.store_translations('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/i18n-1.13.0/lib/i18n/tests/defaults.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/defaults.rb
# encoding: utf-8 module I18n module Tests module Defaults def setup super I18n.backend.store_translations(:en, :foo => { :bar => 'bar', :baz => 'baz' }) end test "defaults: given nil as a key it returns the given default" do assert_equal 'default', I18n.t(nil, :default...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/lookup.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/lookup.rb
# encoding: utf-8 module I18n module Tests module Lookup def setup super I18n.backend.store_translations(:en, :foo => { :bar => 'bar', :baz => 'baz' }, :falsy => false, :truthy => true, :string => "a", :array => %w(a b c), :hash => { "a" => "b" }) end test "lookup: it...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/localization/procs.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/localization/procs.rb
# encoding: utf-8 module I18n module Tests module Localization module Procs test "localize: using day names from lambdas" do setup_time_proc_translations time = ::Time.utc(2008, 3, 1, 6, 0) assert_match(/Суббота/, I18n.l(time, :format => "%A, %d %B", :locale => :ru)) ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/localization/time.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/localization/time.rb
# encoding: utf-8 module I18n module Tests module Localization module Time def setup super setup_time_translations @time = ::Time.utc(2008, 3, 1, 6, 0) @other_time = ::Time.utc(2008, 3, 1, 18, 0) end test "localize Time: given the short forma...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/localization/date_time.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/localization/date_time.rb
# encoding: utf-8 module I18n module Tests module Localization module DateTime def setup super setup_datetime_translations @datetime = ::DateTime.new(2008, 3, 1, 6) @other_datetime = ::DateTime.new(2008, 3, 1, 18) end test "localize DateTime:...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/localization/date.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/tests/localization/date.rb
# encoding: utf-8 module I18n module Tests module Localization module Date def setup super setup_date_translations @date = ::Date.new(2008, 3, 1) end test "localize Date: given the short format it uses it" do assert_equal '01. Mär', I18n.l(@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/i18n-1.13.0/lib/i18n/interpolate/ruby.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/interpolate/ruby.rb
# frozen_string_literal: true # heavily based on Masao Mutoh's gettext String interpolation extension # http://github.com/mutoh/gettext/blob/f6566738b981fe0952548c421042ad1e0cdfb31e/lib/gettext/core_ext/string.rb module I18n DEFAULT_INTERPOLATION_PATTERNS = [ /%%/, /%\{([\w|]+)\}/, ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/memoize.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/memoize.rb
# frozen_string_literal: true # Memoize module simply memoizes the values returned by lookup using # a flat hash and can tremendously speed up the lookup process in a backend. # # To enable it you can simply include the Memoize module to your backend: # # I18n::Backend::Simple.include(I18n::Backend::Memoize) # # Not...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/pluralization.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/pluralization.rb
# frozen_string_literal: true # I18n Pluralization are useful when you want your application to # customize pluralization rules. # # To enable locale specific pluralizations you can simply include the # Pluralization module to the Simple backend - or whatever other backend you # are using. # # I18n::Backend::Simple....
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/cascade.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/cascade.rb
# frozen_string_literal: true # The Cascade module adds the ability to do cascading lookups to backends that # are compatible to the Simple backend. # # By cascading lookups we mean that for any key that can not be found the # Cascade module strips one segment off the scope part of the key and then # tries to look up ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/chain.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/chain.rb
# frozen_string_literal: true module I18n module Backend # Backend that chains multiple other backends and checks each of them when # a translation needs to be looked up. This is useful when you want to use # standard translations with a Simple backend but store custom application # translations in a...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/transliterator.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/transliterator.rb
# encoding: utf-8 # frozen_string_literal: true module I18n module Backend module Transliterator DEFAULT_REPLACEMENT_CHAR = "?" # Given a locale and a UTF-8 string, return the locale's ASCII # approximation for the string. def transliterate(locale, string, replacement = nil) @tra...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/cache_file.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/cache_file.rb
# frozen_string_literal: true require 'openssl' module I18n module Backend # Overwrites the Base load_file method to cache loaded file contents. module CacheFile # Optionally provide path_roots array to normalize filename paths, # to make the cached i18n data portable across environments. ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/key_value.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/key_value.rb
# frozen_string_literal: true require 'i18n/backend/base' module I18n begin require 'oj' class JSON class << self def encode(value) Oj::Rails.encode(value) end def decode(value) Oj.load(value) end end end rescue LoadError require 'ac...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/base.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/base.rb
# frozen_string_literal: true require 'yaml' require 'json' module I18n module Backend module Base include I18n::Backend::Transliterator # Accepts a list of paths to translation files. Loads translations from # plain Ruby (*.rb), YAML files (*.yml), or JSON files (*.json). See #load_rb, #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/i18n-1.13.0/lib/i18n/backend/gettext.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/gettext.rb
# frozen_string_literal: true require 'i18n/gettext' require 'i18n/gettext/po_parser' module I18n module Backend # Experimental support for using Gettext po files to store translations. # # To use this you can simply include the module to the Simple backend - or # whatever other backend you are usin...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/interpolation_compiler.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/interpolation_compiler.rb
# frozen_string_literal: true # The InterpolationCompiler module contains optimizations that can tremendously # speed up the interpolation process on the Simple backend. # # It works by defining a pre-compiled method on stored translation Strings that # already bring all the knowledge about contained interpolation var...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/simple.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/simple.rb
# frozen_string_literal: true require 'i18n/backend/base' module I18n module Backend # A simple backend that reads translations from YAML files and stores them in # an in-memory hash. Relies on the Base backend. # # The implementation is provided by a Implementation module allowing to easily # 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/i18n-1.13.0/lib/i18n/backend/fallbacks.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/fallbacks.rb
# frozen_string_literal: true # I18n locale fallbacks are useful when you want your application to use # translations from other locales when translations for the current locale are # missing. E.g. you might want to use :en translations when translations in # your applications main locale :de are missing. # # To enabl...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/lazy_loadable.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/lazy_loadable.rb
# frozen_string_literal: true module I18n module Backend # Backend that lazy loads translations based on the current locale. This # implementation avoids loading all translations up front. Instead, it only # loads the translations that belong to the current locale. This offers a # performance incenti...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/cache.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/cache.rb
# frozen_string_literal: true # This module allows you to easily cache all responses from the backend - thus # speeding up the I18n aspects of your application quite a bit. # # To enable caching you can simply include the Cache module to the Simple # backend - or whatever other backend you are using: # # I18n::Backe...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/metadata.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/metadata.rb
# frozen_string_literal: true # I18n translation metadata is useful when you want to access information # about how a translation was looked up, pluralized or interpolated in # your application. # # msg = I18n.t(:message, :default => 'Hi!', :scope => :foo) # msg.translation_metadata # # => { :key => :message, :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/i18n-1.13.0/lib/i18n/backend/flatten.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/backend/flatten.rb
# frozen_string_literal: true module I18n module Backend # This module contains several helpers to assist flattening translations. # You may want to flatten translations for: # # 1) speed up lookups, as in the Memoize backend; # 2) In case you want to store translations in a data store, as 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/i18n-1.13.0/lib/i18n/locale/tag.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/locale/tag.rb
# encoding: utf-8 module I18n module Locale module Tag autoload :Parents, 'i18n/locale/tag/parents' autoload :Rfc4646, 'i18n/locale/tag/rfc4646' autoload :Simple, 'i18n/locale/tag/simple' class << self # Returns the current locale tag implementation. Defaults to +I18n::Locale::T...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/locale/fallbacks.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/locale/fallbacks.rb
# Locale Fallbacks # # Extends the I18n module to hold a fallbacks instance which is set to an # instance of I18n::Locale::Fallbacks by default but can be swapped with a # different implementation. # # Locale fallbacks will compute a number of fallback locales for a given locale. # For example: # # <pre><code> # I18n.f...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/locale/tag/parents.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/locale/tag/parents.rb
module I18n module Locale module Tag module Parents def parent @parent ||= begin segs = to_a segs.compact! segs.length > 1 ? self.class.tag(*segs[0..(segs.length - 2)].join('-')) : nil end end def self_and_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/i18n-1.13.0/lib/i18n/locale/tag/simple.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/locale/tag/simple.rb
# Simple Locale tag implementation that computes subtags by simply splitting # the locale tag at '-' occurrences. module I18n module Locale module Tag class Simple class << self def tag(tag) new(tag) end end include Parents attr_reader :tag ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/locale/tag/rfc4646.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/locale/tag/rfc4646.rb
# RFC 4646/47 compliant Locale tag implementation that parses locale tags to # subtags such as language, script, region, variant etc. # # For more information see by http://en.wikipedia.org/wiki/IETF_language_tag # # Rfc4646::Parser does not implement grandfathered tags. module I18n module Locale module Tag ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/gettext/helpers.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/gettext/helpers.rb
# frozen_string_literal: true require 'i18n/gettext' module I18n module Gettext # Implements classical Gettext style accessors. To use this include the # module to the global namespace or wherever you want to use it. # # include I18n::Gettext::Helpers module Helpers # Makes dynamic trans...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/gettext/po_parser.rb
.bundles_cache/ruby/2.6.0/gems/i18n-1.13.0/lib/i18n/gettext/po_parser.rb
=begin poparser.rb - Generate a .mo Copyright (C) 2003-2009 Masao Mutoh <mutoh at highway.ne.jp> You may redistribute it and/or modify it under the same license terms as Ruby. =end #MODIFIED # removed include GetText etc # added stub translation method _(x) require 'racc/parser' module GetText class PoPa...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/safe_yaml_spec.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/safe_yaml_spec.rb
require "spec_helper" describe YAML do def safe_load_round_trip(object, options={}) yaml = object.to_yaml if SafeYAML::YAML_ENGINE == "psych" YAML.safe_load(yaml, nil, options) else YAML.safe_load(yaml, options) end end before :each do # Need to require this here (as opposed to 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/safe_yaml-1.0.5/spec/libyaml_checker_spec.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/libyaml_checker_spec.rb
require "spec_helper" describe SafeYAML::LibyamlChecker do describe "check_libyaml_version" do REAL_YAML_ENGINE = SafeYAML::YAML_ENGINE REAL_LIBYAML_VERSION = SafeYAML::LibyamlChecker::LIBYAML_VERSION let(:libyaml_patched) { false } before :each do allow(SafeYAML::LibyamlChecker).to receive(:...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/store_spec.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/store_spec.rb
require 'spec_helper' require 'safe_yaml/store' describe SafeYAML::Store do let(:file) { 'spec/store.yaml' } let(:content) { "--- \nfoo: 42\n:bar: \"party\"\n" } before do # Rewrite file on every test, as its contents are potentially modified by # SafeYAML::Store#transaction File.open(file, 'w'...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/syck_resolver_spec.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/syck_resolver_spec.rb
require "spec_helper" if SafeYAML::YAML_ENGINE == "syck" require "safe_yaml/syck_resolver" describe SafeYAML::SyckResolver do include ResolverSpecs let(:resolver) { SafeYAML::SyckResolver.new } 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/safe_yaml-1.0.5/spec/resolver_specs.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/resolver_specs.rb
module ResolverSpecs def self.included(base) base.module_eval do let(:resolver) { nil } let(:result) { @result } before :each do # See the comment in the first before :each block in safe_yaml_spec.rb. require "safe_yaml" end def parse(yaml) tree = YAML.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/safe_yaml-1.0.5/spec/psych_resolver_spec.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/psych_resolver_spec.rb
require "spec_helper" if SafeYAML::YAML_ENGINE == "psych" require "safe_yaml/psych_resolver" describe SafeYAML::PsychResolver do include ResolverSpecs let(:resolver) { SafeYAML::PsychResolver.new } 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/safe_yaml-1.0.5/spec/yaml_spec.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/yaml_spec.rb
# See https://github.com/dtao/safe_yaml/issues/47 require "spec_helper" describe YAML do context "when you've only required safe_yaml/load", :libraries => true do it "YAML.load doesn't get monkey patched" do expect(YAML.method(:load)).to eq(ORIGINAL_YAML_LOAD) end it "YAML.load_file doesn't get 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/safe_yaml-1.0.5/spec/spec_helper.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/spec_helper.rb
HERE = File.dirname(__FILE__) unless defined?(HERE) ROOT = File.join(HERE, "..") unless defined?(ROOT) $LOAD_PATH << File.join(ROOT, "lib") $LOAD_PATH << File.join(HERE, "support") require "yaml" if ENV["YAMLER"] && defined?(YAML::ENGINE) YAML::ENGINE.yamler = ENV["YAMLER"] end ruby_version = defined?(JRUBY_VERSIO...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/support/exploitable_back_door.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/support/exploitable_back_door.rb
class ExploitableBackDoor def exploited? @exploited_through_setter || @exploited_through_init_with || @exploited_through_ivars end def exploited_through_setter? @exploited_through_setter end def exploited_through_init_with? @exploited_through_init_with end def exploited_through_ivars? 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/safe_yaml-1.0.5/spec/transform/to_integer_spec.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_integer_spec.rb
require "spec_helper" describe SafeYAML::Transform::ToInteger do it "returns true when the value matches a valid Integer" do expect(subject.transform?("10")).to eq([true, 10]) end it "returns false when the value does not match a valid Integer" do expect(subject.transform?("foobar")).to be_falsey 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/safe_yaml-1.0.5/spec/transform/base64_spec.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb
require "spec_helper" describe SafeYAML::Transform do it "should return the same encoding when decoding Base64" do value = "c3VyZS4=" decoded = SafeYAML::Transform.to_proper_type(value, false, "!binary") expect(decoded).to eq("sure.") expect(decoded.encoding).to eq(value.encoding) if decoded.respond...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_date_spec.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_date_spec.rb
require "spec_helper" describe SafeYAML::Transform::ToDate do it "returns true when the value matches a valid Date" do expect(subject.transform?("2013-01-01")).to eq([true, Date.parse("2013-01-01")]) end it "returns false when the value does not match a valid Date" do expect(subject.transform?("foobar")...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_float_spec.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_float_spec.rb
require "spec_helper" describe SafeYAML::Transform::ToFloat do it "returns true when the value matches a valid Float" do expect(subject.transform?("20.00")).to eq([true, 20.0]) end it "returns false when the value does not match a valid Float" do expect(subject.transform?("foobar")).to be_falsey 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/safe_yaml-1.0.5/spec/transform/to_symbol_spec.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_symbol_spec.rb
require "spec_helper" describe SafeYAML::Transform::ToSymbol do def with_symbol_deserialization_value(value) symbol_deserialization_flag = SafeYAML::OPTIONS[:deserialize_symbols] SafeYAML::OPTIONS[:deserialize_symbols] = value yield ensure SafeYAML::OPTIONS[:deserialize_symbols] = symbol_deserial...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml.rb
require "safe_yaml/load" module YAML def self.load_with_options(yaml, *original_arguments) filename, options = filename_and_options_from_arguments(original_arguments) safe_mode = safe_mode_from_options("load", options) arguments = [yaml] if safe_mode == :safe arguments << filename if SafeYAML:...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/safe_to_ruby_visitor.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/safe_to_ruby_visitor.rb
module SafeYAML class SafeToRubyVisitor < Psych::Visitors::ToRuby INITIALIZE_ARITY = superclass.instance_method(:initialize).arity def initialize(resolver) case INITIALIZE_ARITY when 2 # https://github.com/tenderlove/psych/blob/v2.0.0/lib/psych/visitors/to_ruby.rb#L14-L28 loader ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/version.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/version.rb
module SafeYAML VERSION = "1.0.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/safe_yaml-1.0.5/lib/safe_yaml/psych_handler.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_handler.rb
require "psych" require "base64" module SafeYAML class PsychHandler < Psych::Handler def initialize(options, &block) @options = SafeYAML::OPTIONS.merge(options || {}) @block = block @initializers = @options[:custom_initializers] || {} @anchors = {} @stack = [...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_hack.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_hack.rb
# Hack to JRuby 1.8's YAML Parser Yecht # # This file is always loaded AFTER either syck or psych are already # loaded. It then looks at what constants are available and creates # a consistent view on all rubys. # # Taken from rubygems and modified. # See https://github.com/rubygems/rubygems/blob/master/lib/rubygems/sy...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb
require "set" require "yaml" # This needs to be defined up front in case any internal classes need to base # their behavior off of this. module SafeYAML YAML_ENGINE = defined?(YAML::ENGINE) ? YAML::ENGINE.yamler : (defined?(Psych) && YAML == Psych ? "psych" : "syck") end require "safe_yaml/libyaml_checker" 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/safe_yaml-1.0.5/lib/safe_yaml/syck_node_monkeypatch.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_node_monkeypatch.rb
# This is, admittedly, pretty insane. Fundamentally the challenge here is this: if we want to allow # whitelisting of tags (while still leveraging Syck's internal functionality), then we have to # change how Syck::Node#transform works. But since we (SafeYAML) do not control instantiation of # Syck::Node objects, we can...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/deep.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/deep.rb
module SafeYAML class Deep def self.freeze(object) object.each do |*entry| value = entry.last case value when String, Regexp value.freeze when Enumerable Deep.freeze(value) end end return object.freeze end def self.copy(object...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform.rb
require 'base64' module SafeYAML class Transform TRANSFORMERS = [ Transform::ToSymbol.new, Transform::ToInteger.new, Transform::ToFloat.new, Transform::ToNil.new, Transform::ToBoolean.new, Transform::ToDate.new ] def self.to_guessed_type(value, quoted=false, options=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/safe_yaml-1.0.5/lib/safe_yaml/store.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/store.rb
require 'safe_yaml/load' require 'yaml/store' module SafeYAML class Store < YAML::Store # Override YAML::Store#initialize to accept additional option # +safe_yaml_opts+. def initialize(file_name, yaml_opts = {}, safe_yaml_opts = {}) @safe_yaml_opts = safe_yaml_opts super(file_name, yaml_opt...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/resolver.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/resolver.rb
module SafeYAML class Resolver def initialize(options) @options = SafeYAML::OPTIONS.merge(options || {}) @whitelist = @options[:whitelisted_tags] || [] @initializers = @options[:custom_initializers] || {} @raise_on_unknown_tag = @options[:raise_on_unknown_ta...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_resolver.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_resolver.rb
module SafeYAML class SyckResolver < Resolver QUOTE_STYLES = [ :quote1, :quote2 ].freeze NODE_TYPES = { Hash => :map, Array => :seq, String => :scalar }.freeze def initialize(options={}) super end def native_resolve(node) node.transform(self....
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/libyaml_checker.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/libyaml_checker.rb
require "set" module SafeYAML class LibyamlChecker LIBYAML_VERSION = Psych::LIBYAML_VERSION rescue nil # Do proper version comparison (e.g. so 0.1.10 is >= 0.1.6) SAFE_LIBYAML_VERSION = Gem::Version.new("0.1.6") KNOWN_PATCHED_LIBYAML_VERSIONS = Set.new([ # http://people.canonical.com/~ubuntu-...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_resolver.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_resolver.rb
module SafeYAML class PsychResolver < Resolver NODE_TYPES = { Psych::Nodes::Document => :root, Psych::Nodes::Mapping => :map, Psych::Nodes::Sequence => :seq, Psych::Nodes::Scalar => :scalar, Psych::Nodes::Alias => :alias }.freeze def initialize(options={}) 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/safe_yaml-1.0.5/lib/safe_yaml/parse/hexadecimal.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/hexadecimal.rb
module SafeYAML class Parse class Hexadecimal MATCHER = /\A[-+]?0x[0-9a-fA-F_]+\Z/.freeze def self.value(value) # This is safe to do since we already validated the value. return Integer(value.gsub(/_/, "")) 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/safe_yaml-1.0.5/lib/safe_yaml/parse/sexagesimal.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/sexagesimal.rb
module SafeYAML class Parse class Sexagesimal INTEGER_MATCHER = /\A[-+]?[0-9][0-9_]*(:[0-5]?[0-9])+\Z/.freeze FLOAT_MATCHER = /\A[-+]?[0-9][0-9_]*(:[0-5]?[0-9])+\.[0-9_]*\Z/.freeze def self.value(value) before_decimal, after_decimal = value.split(".") whole_part = 0 mul...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/date.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/date.rb
require 'time' module SafeYAML class Parse class Date # This one's easy enough :) DATE_MATCHER = /\A(\d{4})-(\d{2})-(\d{2})\Z/.freeze # This unbelievable little gem is taken basically straight from the YAML spec, but made # slightly more readable (to my poor eyes at least) to me: #...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_integer.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_integer.rb
module SafeYAML class Transform class ToInteger MATCHERS = Deep.freeze([ /\A[-+]?(0|([1-9][0-9_,]*))\Z/, # decimal /\A0[0-7]+\Z/, # octal /\A0x[0-9a-f]+\Z/i, # hexadecimal /\A0b[01_]+\Z/ # binary ]) def transform?(val...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_float.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_float.rb
module SafeYAML class Transform class ToFloat Infinity = 1.0 / 0.0 NaN = 0.0 / 0.0 PREDEFINED_VALUES = { ".inf" => Infinity, ".Inf" => Infinity, ".INF" => Infinity, "-.inf" => -Infinity, "-.Inf" => -Infinity, "-.INF" => -Infinity, ".nan...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_nil.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_nil.rb
module SafeYAML class Transform class ToNil include TransformationMap set_predefined_values({ "" => nil, "~" => nil, "null" => nil }) def transform?(value) return false if value.length > 4 return PREDEFINED_VALUES.include?(value), PREDEFI...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_symbol.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_symbol.rb
module SafeYAML class Transform class ToSymbol def transform?(value, options=SafeYAML::OPTIONS) if options[:deserialize_symbols] && value =~ /\A:./ if value =~ /\A:(["'])(.*)\1\Z/ return true, $2.sub(/^:/, "").to_sym else return true, value.sub(/^:/, "").t...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_boolean.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_boolean.rb
module SafeYAML class Transform class ToBoolean include TransformationMap set_predefined_values({ "yes" => true, "on" => true, "true" => true, "no" => false, "off" => false, "false" => false }) def transform?(value) retur...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_date.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_date.rb
module SafeYAML class Transform class ToDate def transform?(value) return true, Date.parse(value) if Parse::Date::DATE_MATCHER.match(value) return true, Parse::Date.value(value) if Parse::Date::TIME_MATCHER.match(value) false rescue ArgumentError return true, value ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/transformation_map.rb
.bundles_cache/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/transformation_map.rb
module SafeYAML class Transform module TransformationMap def self.included(base) base.extend(ClassMethods) end class CaseAgnosticMap < Hash def initialize(*args) super end def include?(key) super(key.downcase) end def [](key)...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/ext/json/extconf.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/ext/json/extconf.rb
require 'mkmf' create_makefile('json')
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/extconf.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/extconf.rb
require 'mkmf' $defs << "-DJSON_GENERATOR" create_makefile 'json/ext/generator'
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/extconf.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/extconf.rb
# frozen_string_literal: false require 'mkmf' have_func("rb_enc_raise", "ruby.h") have_func("rb_enc_interned_str", "ruby.h") # checking if String#-@ (str_uminus) dedupes... ' begin a = -(%w(t e s t).join) b = -(%w(t e s t).join) if a.equal?(b) $CFLAGS << ' -DSTR_UMINUS_DEDUPE=1 ' else $CFLAGS << ' -DS...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json.rb
#frozen_string_literal: false require 'json/common' ## # = JavaScript \Object Notation (\JSON) # # \JSON is a lightweight data-interchange format. # # A \JSON value is one of the following: # - Double-quoted text: <tt>"foo"</tt>. # - Number: +1+, +1.0+, +2.0e2+. # - Boolean: +true+, +false+. # - Null: +null+. # - \...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/common.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/common.rb
#frozen_string_literal: false require 'json/version' require 'json/generic_object' module JSON class << self # :call-seq: # JSON[object] -> new_array or new_string # # If +object+ is a \String, # calls JSON.parse with +object+ and +opts+ (see method #parse): # json = '[0, 1, null]' # ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/version.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/version.rb
# frozen_string_literal: false module JSON # JSON version VERSION = '2.6.3' VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc: VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc: VERSION_MINOR = VERSION_ARRAY[1] # :nodoc: VERSION_BUILD = VERSION_ARRAY[2] # :nodoc: 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/json-2.6.3/lib/json/ext.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/ext.rb
require 'json/common' module JSON # This module holds all the modules/classes that implement JSON's # functionality as C extensions. module Ext require 'json/ext/parser' require 'json/ext/generator' $DEBUG and warn "Using Ext extension for JSON." JSON.parser = Parser JSON.generator = Generato...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/pure.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/pure.rb
require 'json/common' module JSON # This module holds all the modules/classes that implement JSON's # functionality in pure ruby. module Pure require 'json/pure/parser' require 'json/pure/generator' $DEBUG and warn "Using Pure library for JSON." JSON.parser = Parser JSON.generator = Generator...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/generic_object.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/generic_object.rb
#frozen_string_literal: false require 'ostruct' module JSON class GenericObject < OpenStruct class << self alias [] new def json_creatable? @json_creatable end attr_writer :json_creatable def json_create(data) data = data.dup data.delete JSON.create_id ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/pure/parser.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/pure/parser.rb
#frozen_string_literal: false require 'strscan' module JSON module Pure # This class implements the JSON parser that is used to parse a JSON string # into a Ruby data structure. class Parser < StringScanner STRING = /" ((?:[^\x0-\x1f"\\] | # escaped...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/pure/generator.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/pure/generator.rb
#frozen_string_literal: false module JSON MAP = { "\x0" => '\u0000', "\x1" => '\u0001', "\x2" => '\u0002', "\x3" => '\u0003', "\x4" => '\u0004', "\x5" => '\u0005', "\x6" => '\u0006', "\x7" => '\u0007', "\b" => '\b', "\t" => '\t', "\n" => '\n', "\xb" => '\u000b', ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/core.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/core.rb
#frozen_string_literal: false # This file requires the implementations of ruby core's custom objects for # serialisation/deserialisation. require 'json/add/date' require 'json/add/date_time' require 'json/add/exception' require 'json/add/range' require 'json/add/regexp' require 'json/add/struct' require 'json/add/symb...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/range.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/range.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end class Range # Deserializes JSON string by constructing new Range object with arguments # <tt>a</tt> serialized by <tt>to_json</tt>. def self.json_create(object) new(*object['a']) end # Return...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/struct.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/struct.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end class Struct # Deserializes JSON string by constructing new Struct object with values # <tt>v</tt> serialized by <tt>to_json</tt>. def self.json_create(object) new(*object['v']) end # Returns...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/ostruct.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/ostruct.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end require 'ostruct' class OpenStruct # Deserializes JSON string by constructing new Struct object with values # <tt>t</tt> serialized by <tt>to_json</tt>. def self.json_create(object) new(object['t'...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/set.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/set.rb
unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end defined?(::Set) or require 'set' class Set # Import a JSON Marshalled object. # # method used for JSON marshalling support. def self.json_create(object) new object['a'] end # Marshal the object to JSON. # # method us...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/time.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/time.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end class Time # Deserializes JSON string by converting time since epoch to Time def self.json_create(object) if usec = object.delete('u') # used to be tv_usec -> tv_nsec object['n'] = usec * 1000...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/exception.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/exception.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end class Exception # Deserializes JSON string by constructing new Exception object with message # <tt>m</tt> and backtrace <tt>b</tt> serialized with <tt>to_json</tt> def self.json_create(object) res...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/complex.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/complex.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end class Complex # Deserializes JSON string by converting Real value <tt>r</tt>, imaginary # value <tt>i</tt>, to a Complex object. def self.json_create(object) Complex(object['r'], object['i']) 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/json-2.6.3/lib/json/add/regexp.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/regexp.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end class Regexp # Deserializes JSON string by constructing new Regexp object with source # <tt>s</tt> (Regexp or String) and options <tt>o</tt> serialized by # <tt>to_json</tt> def self.json_create(obj...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/rational.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/rational.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end class Rational # Deserializes JSON string by converting numerator value <tt>n</tt>, # denominator value <tt>d</tt>, to a Rational object. def self.json_create(object) Rational(object['n'], object['...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/bigdecimal.rb
.bundles_cache/ruby/2.6.0/gems/json-2.6.3/lib/json/add/bigdecimal.rb
#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end defined?(::BigDecimal) or require 'bigdecimal' class BigDecimal # Import a JSON Marshalled object. # # method used for JSON marshalling support. def self.json_create(object) BigDecimal._load obje...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false