Merge pull request #10265 from Homebrew/dependabot/bundler/Library/Homebrew/activesupport-6.1.1
build(deps): bump activesupport from 6.1.0 to 6.1.1 in /Library/Homebrew
This commit is contained in:
commit
8c4183abc8
@ -1,7 +1,7 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
activesupport (6.1.0)
|
||||
activesupport (6.1.1)
|
||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||
i18n (>= 1.6, < 2)
|
||||
minitest (>= 5.1)
|
||||
@ -28,7 +28,7 @@ GEM
|
||||
hpricot (0.8.6)
|
||||
http-cookie (1.0.3)
|
||||
domain_name (~> 0.5)
|
||||
i18n (1.8.5)
|
||||
i18n (1.8.7)
|
||||
concurrent-ruby (~> 1.0)
|
||||
mechanize (2.7.6)
|
||||
domain_name (~> 0.5, >= 0.5.1)
|
||||
@ -44,7 +44,7 @@ GEM
|
||||
mime-types-data (~> 3.2015)
|
||||
mime-types-data (3.2020.1104)
|
||||
mini_portile2 (2.5.0)
|
||||
minitest (5.14.2)
|
||||
minitest (5.14.3)
|
||||
mustache (1.1.1)
|
||||
net-http-digest_auth (1.4.1)
|
||||
net-http-persistent (4.0.0)
|
||||
@ -153,7 +153,7 @@ GEM
|
||||
spoom
|
||||
thor (>= 0.19.2)
|
||||
thor (1.0.1)
|
||||
tzinfo (2.0.3)
|
||||
tzinfo (2.0.4)
|
||||
concurrent-ruby (~> 1.0)
|
||||
unf (0.1.4)
|
||||
unf_ext
|
||||
|
||||
@ -406,6 +406,12 @@ IO::EWOULDBLOCKWaitReadable = IO::EAGAINWaitReadable
|
||||
|
||||
IO::EWOULDBLOCKWaitWritable = IO::EAGAINWaitWritable
|
||||
|
||||
class IPAddr
|
||||
include(::Comparable)
|
||||
|
||||
def as_json(options = T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
class Module
|
||||
def cattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), &blk); end
|
||||
def cattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end
|
||||
@ -458,12 +464,6 @@ class Object < ::BasicObject
|
||||
def present?; end
|
||||
end
|
||||
|
||||
::APPLE_GEM_HOME = T.let(T.unsafe(nil), String)
|
||||
|
||||
::RUBY_FRAMEWORK = T.let(T.unsafe(nil), TrueClass)
|
||||
|
||||
::RUBY_FRAMEWORK_VERSION = T.let(T.unsafe(nil), String)
|
||||
|
||||
class Pathname
|
||||
def as_json(options = T.unsafe(nil)); end
|
||||
end
|
||||
@ -1,7 +0,0 @@
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `i18n` gem.
|
||||
# Please instead update this file by running `tapioca generate --exclude json`.
|
||||
|
||||
# typed: true
|
||||
|
||||
|
||||
637
Library/Homebrew/sorbet/rbi/gems/i18n@1.8.7.rbi
Normal file
637
Library/Homebrew/sorbet/rbi/gems/i18n@1.8.7.rbi
Normal file
@ -0,0 +1,637 @@
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `i18n` gem.
|
||||
# Please instead update this file by running `tapioca sync`.
|
||||
|
||||
# typed: true
|
||||
|
||||
module I18n
|
||||
extend(::I18n::Base)
|
||||
|
||||
class << self
|
||||
def interpolate(string, values); end
|
||||
def interpolate_hash(string, values); end
|
||||
def new_double_nested_cache; end
|
||||
end
|
||||
end
|
||||
|
||||
class I18n::ArgumentError < ::ArgumentError
|
||||
end
|
||||
|
||||
module I18n::Backend
|
||||
end
|
||||
|
||||
module I18n::Backend::Base
|
||||
include(::I18n::Backend::Transliterator)
|
||||
|
||||
def available_locales; end
|
||||
def eager_load!; end
|
||||
def exists?(locale, key, options = T.unsafe(nil)); end
|
||||
def load_translations(*filenames); end
|
||||
def localize(locale, object, format = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||
def reload!; end
|
||||
def store_translations(locale, data, options = T.unsafe(nil)); end
|
||||
def translate(locale, key, options = T.unsafe(nil)); end
|
||||
|
||||
protected
|
||||
|
||||
def deep_interpolate(locale, data, values = T.unsafe(nil)); end
|
||||
def default(locale, object, subject, options = T.unsafe(nil)); end
|
||||
def eager_loaded?; end
|
||||
def interpolate(locale, subject, values = T.unsafe(nil)); end
|
||||
def load_file(filename); end
|
||||
def load_json(filename); end
|
||||
def load_rb(filename); end
|
||||
def load_yaml(filename); end
|
||||
def load_yml(filename); end
|
||||
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||
def pluralization_key(entry, count); end
|
||||
def pluralize(locale, entry, count); end
|
||||
def resolve(locale, object, subject, options = T.unsafe(nil)); end
|
||||
def subtrees?; end
|
||||
def translate_localization_format(locale, object, format, options); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Cache
|
||||
def translate(locale, key, options = T.unsafe(nil)); end
|
||||
|
||||
protected
|
||||
|
||||
def _fetch(cache_key, &block); end
|
||||
def cache_key(locale, key, options); end
|
||||
def fetch(cache_key, &block); end
|
||||
|
||||
private
|
||||
|
||||
def digest_item(key); end
|
||||
end
|
||||
|
||||
module I18n::Backend::CacheFile
|
||||
def path_roots; end
|
||||
def path_roots=(_arg0); end
|
||||
|
||||
protected
|
||||
|
||||
def load_file(filename); end
|
||||
def normalized_path(file); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Cascade
|
||||
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
class I18n::Backend::Chain
|
||||
include(::I18n::Backend::Transliterator)
|
||||
include(::I18n::Backend::Base)
|
||||
include(::I18n::Backend::Chain::Implementation)
|
||||
end
|
||||
|
||||
module I18n::Backend::Chain::Implementation
|
||||
include(::I18n::Backend::Transliterator)
|
||||
include(::I18n::Backend::Base)
|
||||
|
||||
def initialize(*backends); end
|
||||
|
||||
def available_locales; end
|
||||
def backends; end
|
||||
def backends=(_arg0); end
|
||||
def eager_load!; end
|
||||
def exists?(locale, key, options = T.unsafe(nil)); end
|
||||
def initialized?; end
|
||||
def localize(locale, object, format = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||
def reload!; end
|
||||
def store_translations(locale, data, options = T.unsafe(nil)); end
|
||||
def translate(locale, key, default_options = T.unsafe(nil)); end
|
||||
|
||||
protected
|
||||
|
||||
def init_translations; end
|
||||
def namespace_lookup?(result, options); end
|
||||
def translations; end
|
||||
|
||||
private
|
||||
|
||||
def _deep_merge(hash, other_hash); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Fallbacks
|
||||
def exists?(locale, key, options = T.unsafe(nil)); end
|
||||
def extract_non_symbol_default!(options); end
|
||||
def translate(locale, key, options = T.unsafe(nil)); end
|
||||
|
||||
private
|
||||
|
||||
def on_fallback(_original_locale, _fallback_locale, _key, _optoins); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Flatten
|
||||
def flatten_keys(hash, escape, prev_key = T.unsafe(nil), &block); end
|
||||
def flatten_translations(locale, data, escape, subtree); end
|
||||
def links; end
|
||||
def normalize_flat_keys(locale, key, scope, separator); end
|
||||
|
||||
protected
|
||||
|
||||
def escape_default_separator(key); end
|
||||
def find_link(locale, key); end
|
||||
def resolve_link(locale, key); end
|
||||
def store_link(locale, key, link); end
|
||||
|
||||
class << self
|
||||
def escape_default_separator(key); end
|
||||
def normalize_flat_keys(locale, key, scope, separator); end
|
||||
end
|
||||
end
|
||||
|
||||
I18n::Backend::Flatten::FLATTEN_SEPARATOR = T.let(T.unsafe(nil), String)
|
||||
|
||||
I18n::Backend::Flatten::SEPARATOR_ESCAPE_CHAR = T.let(T.unsafe(nil), String)
|
||||
|
||||
module I18n::Backend::Gettext
|
||||
|
||||
protected
|
||||
|
||||
def load_po(filename); end
|
||||
def normalize(locale, data); end
|
||||
def normalize_pluralization(locale, key, value); end
|
||||
def parse(filename); end
|
||||
end
|
||||
|
||||
class I18n::Backend::Gettext::PoData < ::Hash
|
||||
def set_comment(msgid_or_sym, comment); end
|
||||
end
|
||||
|
||||
module I18n::Backend::InterpolationCompiler
|
||||
def interpolate(locale, string, values); end
|
||||
def store_translations(locale, data, options = T.unsafe(nil)); end
|
||||
|
||||
protected
|
||||
|
||||
def compile_all_strings_in(data); end
|
||||
end
|
||||
|
||||
module I18n::Backend::InterpolationCompiler::Compiler
|
||||
extend(::I18n::Backend::InterpolationCompiler::Compiler)
|
||||
|
||||
def compile_if_an_interpolation(string); end
|
||||
def interpolated_str?(str); end
|
||||
|
||||
protected
|
||||
|
||||
def compile_interpolation_token(key); end
|
||||
def compiled_interpolation_body(str); end
|
||||
def direct_key(key); end
|
||||
def escape_key_sym(key); end
|
||||
def escape_plain_str(str); end
|
||||
def handle_interpolation_token(interpolation, matchdata); end
|
||||
def interpolate_key(key); end
|
||||
def interpolate_or_raise_missing(key); end
|
||||
def missing_key(key); end
|
||||
def nil_key(key); end
|
||||
def reserved_key(key); end
|
||||
def tokenize(str); end
|
||||
end
|
||||
|
||||
I18n::Backend::InterpolationCompiler::Compiler::INTERPOLATION_SYNTAX_PATTERN = T.let(T.unsafe(nil), Regexp)
|
||||
|
||||
I18n::Backend::InterpolationCompiler::Compiler::TOKENIZER = T.let(T.unsafe(nil), Regexp)
|
||||
|
||||
class I18n::Backend::KeyValue
|
||||
include(::I18n::Backend::Flatten)
|
||||
include(::I18n::Backend::Transliterator)
|
||||
include(::I18n::Backend::Base)
|
||||
include(::I18n::Backend::KeyValue::Implementation)
|
||||
end
|
||||
|
||||
module I18n::Backend::KeyValue::Implementation
|
||||
include(::I18n::Backend::Flatten)
|
||||
include(::I18n::Backend::Transliterator)
|
||||
include(::I18n::Backend::Base)
|
||||
|
||||
def initialize(store, subtrees = T.unsafe(nil)); end
|
||||
|
||||
def available_locales; end
|
||||
def initialized?; end
|
||||
def store; end
|
||||
def store=(_arg0); end
|
||||
def store_translations(locale, data, options = T.unsafe(nil)); end
|
||||
|
||||
protected
|
||||
|
||||
def init_translations; end
|
||||
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||
def pluralize(locale, entry, count); end
|
||||
def subtrees?; end
|
||||
def translations; end
|
||||
end
|
||||
|
||||
class I18n::Backend::KeyValue::SubtreeProxy
|
||||
def initialize(master_key, store); end
|
||||
|
||||
def [](key); end
|
||||
def has_key?(key); end
|
||||
def inspect; end
|
||||
def instance_of?(klass); end
|
||||
def is_a?(klass); end
|
||||
def kind_of?(klass); end
|
||||
def nil?; end
|
||||
end
|
||||
|
||||
module I18n::Backend::Memoize
|
||||
def available_locales; end
|
||||
def eager_load!; end
|
||||
def reload!; end
|
||||
def store_translations(locale, data, options = T.unsafe(nil)); end
|
||||
|
||||
protected
|
||||
|
||||
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||
def memoized_lookup; end
|
||||
def reset_memoizations!(locale = T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Metadata
|
||||
def interpolate(locale, entry, values = T.unsafe(nil)); end
|
||||
def pluralize(locale, entry, count); end
|
||||
def translate(locale, key, options = T.unsafe(nil)); end
|
||||
|
||||
protected
|
||||
|
||||
def with_metadata(metadata, &block); end
|
||||
|
||||
class << self
|
||||
def included(base); end
|
||||
end
|
||||
end
|
||||
|
||||
module I18n::Backend::Pluralization
|
||||
def pluralize(locale, entry, count); end
|
||||
|
||||
protected
|
||||
|
||||
def pluralizer(locale); end
|
||||
def pluralizers; end
|
||||
end
|
||||
|
||||
class I18n::Backend::Simple
|
||||
include(::I18n::Backend::Transliterator)
|
||||
include(::I18n::Backend::Base)
|
||||
include(::I18n::Backend::Simple::Implementation)
|
||||
end
|
||||
|
||||
module I18n::Backend::Simple::Implementation
|
||||
include(::I18n::Backend::Transliterator)
|
||||
include(::I18n::Backend::Base)
|
||||
|
||||
def available_locales; end
|
||||
def eager_load!; end
|
||||
def initialized?; end
|
||||
def reload!; end
|
||||
def store_translations(locale, data, options = T.unsafe(nil)); end
|
||||
def translations(do_init: T.unsafe(nil)); end
|
||||
|
||||
protected
|
||||
|
||||
def init_translations; end
|
||||
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Transliterator
|
||||
def transliterate(locale, string, replacement = T.unsafe(nil)); end
|
||||
|
||||
class << self
|
||||
def get(rule = T.unsafe(nil)); end
|
||||
end
|
||||
end
|
||||
|
||||
I18n::Backend::Transliterator::DEFAULT_REPLACEMENT_CHAR = T.let(T.unsafe(nil), String)
|
||||
|
||||
class I18n::Backend::Transliterator::HashTransliterator
|
||||
def initialize(rule = T.unsafe(nil)); end
|
||||
|
||||
def transliterate(string, replacement = T.unsafe(nil)); end
|
||||
|
||||
private
|
||||
|
||||
def add(hash); end
|
||||
def add_default_approximations; end
|
||||
def approximations; end
|
||||
end
|
||||
|
||||
I18n::Backend::Transliterator::HashTransliterator::DEFAULT_APPROXIMATIONS = T.let(T.unsafe(nil), Hash)
|
||||
|
||||
class I18n::Backend::Transliterator::ProcTransliterator
|
||||
def initialize(rule); end
|
||||
|
||||
def transliterate(string, replacement = T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Base
|
||||
def available_locales; end
|
||||
def available_locales=(value); end
|
||||
def available_locales_initialized?; end
|
||||
def backend; end
|
||||
def backend=(value); end
|
||||
def config; end
|
||||
def config=(value); end
|
||||
def default_locale; end
|
||||
def default_locale=(value); end
|
||||
def default_separator; end
|
||||
def default_separator=(value); end
|
||||
def eager_load!; end
|
||||
def enforce_available_locales; end
|
||||
def enforce_available_locales!(locale); end
|
||||
def enforce_available_locales=(value); end
|
||||
def exception_handler; end
|
||||
def exception_handler=(value); end
|
||||
def exists?(key, _locale = T.unsafe(nil), locale: T.unsafe(nil), **options); end
|
||||
def l(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
|
||||
def load_path; end
|
||||
def load_path=(value); end
|
||||
def locale; end
|
||||
def locale=(value); end
|
||||
def locale_available?(locale); end
|
||||
def localize(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
|
||||
def normalize_keys(locale, key, scope, separator = T.unsafe(nil)); end
|
||||
def reload!; end
|
||||
def t(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
|
||||
def t!(key, **options); end
|
||||
def translate(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
|
||||
def translate!(key, **options); end
|
||||
def transliterate(key, throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), replacement: T.unsafe(nil), **options); end
|
||||
def with_locale(tmp_locale = T.unsafe(nil)); end
|
||||
|
||||
private
|
||||
|
||||
def handle_exception(handling, exception, locale, key, options); end
|
||||
def normalize_key(key, separator); end
|
||||
end
|
||||
|
||||
class I18n::Config
|
||||
def available_locales; end
|
||||
def available_locales=(locales); end
|
||||
def available_locales_initialized?; end
|
||||
def available_locales_set; end
|
||||
def backend; end
|
||||
def backend=(backend); end
|
||||
def clear_available_locales_set; end
|
||||
def default_locale; end
|
||||
def default_locale=(locale); end
|
||||
def default_separator; end
|
||||
def default_separator=(separator); end
|
||||
def enforce_available_locales; end
|
||||
def enforce_available_locales=(enforce_available_locales); end
|
||||
def exception_handler; end
|
||||
def exception_handler=(exception_handler); end
|
||||
def interpolation_patterns; end
|
||||
def interpolation_patterns=(interpolation_patterns); end
|
||||
def load_path; end
|
||||
def load_path=(load_path); end
|
||||
def locale; end
|
||||
def locale=(locale); end
|
||||
def missing_interpolation_argument_handler; end
|
||||
def missing_interpolation_argument_handler=(exception_handler); end
|
||||
end
|
||||
|
||||
I18n::DEFAULT_INTERPOLATION_PATTERNS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class I18n::Disabled < ::I18n::ArgumentError
|
||||
def initialize(method); end
|
||||
end
|
||||
|
||||
I18n::EMPTY_HASH = T.let(T.unsafe(nil), Hash)
|
||||
|
||||
class I18n::ExceptionHandler
|
||||
def call(exception, _locale, _key, _options); end
|
||||
end
|
||||
|
||||
module I18n::Gettext
|
||||
class << self
|
||||
def extract_scope(msgid, separator); end
|
||||
def plural_keys(*args); end
|
||||
end
|
||||
end
|
||||
|
||||
I18n::Gettext::CONTEXT_SEPARATOR = T.let(T.unsafe(nil), String)
|
||||
|
||||
module I18n::Gettext::Helpers
|
||||
def N_(msgsid); end
|
||||
def _(msgid, options = T.unsafe(nil)); end
|
||||
def gettext(msgid, options = T.unsafe(nil)); end
|
||||
def n_(msgid, msgid_plural, n = T.unsafe(nil)); end
|
||||
def ngettext(msgid, msgid_plural, n = T.unsafe(nil)); end
|
||||
def np_(msgctxt, msgid, msgid_plural, n = T.unsafe(nil)); end
|
||||
def npgettext(msgctxt, msgid, msgid_plural, n = T.unsafe(nil)); end
|
||||
def ns_(msgid, msgid_plural, n = T.unsafe(nil), separator = T.unsafe(nil)); end
|
||||
def nsgettext(msgid, msgid_plural, n = T.unsafe(nil), separator = T.unsafe(nil)); end
|
||||
def p_(msgctxt, msgid); end
|
||||
def pgettext(msgctxt, msgid); end
|
||||
def s_(msgid, separator = T.unsafe(nil)); end
|
||||
def sgettext(msgid, separator = T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
I18n::Gettext::PLURAL_SEPARATOR = T.let(T.unsafe(nil), String)
|
||||
|
||||
I18n::INTERPOLATION_PATTERN = T.let(T.unsafe(nil), Regexp)
|
||||
|
||||
class I18n::InvalidLocale < ::I18n::ArgumentError
|
||||
def initialize(locale); end
|
||||
|
||||
def locale; end
|
||||
end
|
||||
|
||||
class I18n::InvalidLocaleData < ::I18n::ArgumentError
|
||||
def initialize(filename, exception_message); end
|
||||
|
||||
def filename; end
|
||||
end
|
||||
|
||||
class I18n::InvalidPluralizationData < ::I18n::ArgumentError
|
||||
def initialize(entry, count, key); end
|
||||
|
||||
def count; end
|
||||
def entry; end
|
||||
def key; end
|
||||
end
|
||||
|
||||
module I18n::Locale
|
||||
end
|
||||
|
||||
class I18n::Locale::Fallbacks < ::Hash
|
||||
def initialize(*mappings); end
|
||||
|
||||
def [](locale); end
|
||||
def defaults; end
|
||||
def defaults=(defaults); end
|
||||
def map(mappings); end
|
||||
|
||||
protected
|
||||
|
||||
def compute(tags, include_defaults = T.unsafe(nil), exclude = T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Locale::Tag
|
||||
class << self
|
||||
def implementation; end
|
||||
def implementation=(implementation); end
|
||||
def tag(tag); end
|
||||
end
|
||||
end
|
||||
|
||||
module I18n::Locale::Tag::Parents
|
||||
def parent; end
|
||||
def parents; end
|
||||
def self_and_parents; end
|
||||
end
|
||||
|
||||
class I18n::Locale::Tag::Rfc4646 < ::Struct
|
||||
include(::I18n::Locale::Tag::Parents)
|
||||
|
||||
def language; end
|
||||
def region; end
|
||||
def script; end
|
||||
def to_a; end
|
||||
def to_s; end
|
||||
def to_sym; end
|
||||
def variant; end
|
||||
|
||||
class << self
|
||||
def parser; end
|
||||
def parser=(parser); end
|
||||
def tag(tag); end
|
||||
end
|
||||
end
|
||||
|
||||
module I18n::Locale::Tag::Rfc4646::Parser
|
||||
class << self
|
||||
def match(tag); end
|
||||
end
|
||||
end
|
||||
|
||||
I18n::Locale::Tag::Rfc4646::Parser::PATTERN = T.let(T.unsafe(nil), Regexp)
|
||||
|
||||
class I18n::Locale::Tag::Simple
|
||||
include(::I18n::Locale::Tag::Parents)
|
||||
|
||||
def initialize(*tag); end
|
||||
|
||||
def subtags; end
|
||||
def tag; end
|
||||
def to_a; end
|
||||
def to_s; end
|
||||
def to_sym; end
|
||||
|
||||
class << self
|
||||
def tag(tag); end
|
||||
end
|
||||
end
|
||||
|
||||
class I18n::Middleware
|
||||
def initialize(app); end
|
||||
|
||||
def call(env); end
|
||||
end
|
||||
|
||||
class I18n::MissingInterpolationArgument < ::I18n::ArgumentError
|
||||
def initialize(key, values, string); end
|
||||
|
||||
def key; end
|
||||
def string; end
|
||||
def values; end
|
||||
end
|
||||
|
||||
class I18n::MissingTranslation < ::I18n::ArgumentError
|
||||
include(::I18n::MissingTranslation::Base)
|
||||
end
|
||||
|
||||
module I18n::MissingTranslation::Base
|
||||
def initialize(locale, key, options = T.unsafe(nil)); end
|
||||
|
||||
def key; end
|
||||
def keys; end
|
||||
def locale; end
|
||||
def message; end
|
||||
def options; end
|
||||
def to_exception; end
|
||||
def to_s; end
|
||||
end
|
||||
|
||||
class I18n::MissingTranslationData < ::I18n::ArgumentError
|
||||
include(::I18n::MissingTranslation::Base)
|
||||
end
|
||||
|
||||
I18n::RESERVED_KEYS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
I18n::RESERVED_KEYS_PATTERN = T.let(T.unsafe(nil), Regexp)
|
||||
|
||||
class I18n::ReservedInterpolationKey < ::I18n::ArgumentError
|
||||
def initialize(key, string); end
|
||||
|
||||
def key; end
|
||||
def string; end
|
||||
end
|
||||
|
||||
module I18n::Tests
|
||||
end
|
||||
|
||||
module I18n::Tests::Localization
|
||||
class << self
|
||||
def included(base); end
|
||||
end
|
||||
end
|
||||
|
||||
module I18n::Tests::Localization::Date
|
||||
def setup; end
|
||||
end
|
||||
|
||||
class I18n::UnknownFileType < ::I18n::ArgumentError
|
||||
def initialize(type, filename); end
|
||||
|
||||
def filename; end
|
||||
def type; end
|
||||
end
|
||||
|
||||
I18n::VERSION = T.let(T.unsafe(nil), String)
|
||||
|
||||
module I18n::HashRefinements
|
||||
end
|
||||
|
||||
I18n::JSON = ActiveSupport::JSON
|
||||
|
||||
I18n::Locale::Tag::RFC4646_FORMATS = T.let(T.unsafe(nil), Hash)
|
||||
|
||||
I18n::Locale::Tag::RFC4646_SUBTAGS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
module I18n::Tests::Basics
|
||||
def teardown; end
|
||||
end
|
||||
|
||||
module I18n::Tests::Defaults
|
||||
def setup; end
|
||||
end
|
||||
|
||||
module I18n::Tests::Interpolation
|
||||
end
|
||||
|
||||
module I18n::Tests::Link
|
||||
end
|
||||
|
||||
module I18n::Tests::Localization::DateTime
|
||||
def setup; end
|
||||
end
|
||||
|
||||
module I18n::Tests::Localization::Procs
|
||||
end
|
||||
|
||||
module I18n::Tests::Localization::Time
|
||||
def setup; end
|
||||
end
|
||||
|
||||
module I18n::Tests::Lookup
|
||||
def setup; end
|
||||
end
|
||||
|
||||
module I18n::Tests::Pluralization
|
||||
end
|
||||
|
||||
module I18n::Tests::Procs
|
||||
end
|
||||
@ -8818,816 +8818,6 @@ module Hpricot
|
||||
end
|
||||
|
||||
module I18n
|
||||
DEFAULT_INTERPOLATION_PATTERNS = ::T.let(nil, ::T.untyped)
|
||||
EMPTY_HASH = ::T.let(nil, ::T.untyped)
|
||||
INTERPOLATION_PATTERN = ::T.let(nil, ::T.untyped)
|
||||
RESERVED_KEYS = ::T.let(nil, ::T.untyped)
|
||||
RESERVED_KEYS_PATTERN = ::T.let(nil, ::T.untyped)
|
||||
VERSION = ::T.let(nil, ::T.untyped)
|
||||
end
|
||||
|
||||
class I18n::ArgumentError
|
||||
end
|
||||
|
||||
class I18n::ArgumentError
|
||||
end
|
||||
|
||||
module I18n::Backend
|
||||
end
|
||||
|
||||
module I18n::Backend::Base
|
||||
include ::I18n::Backend::Transliterator
|
||||
def available_locales(); end
|
||||
|
||||
def deep_interpolate(locale, data, values=T.unsafe(nil)); end
|
||||
|
||||
def default(locale, object, subject, options=T.unsafe(nil)); end
|
||||
|
||||
def eager_load!(); end
|
||||
|
||||
def eager_loaded?(); end
|
||||
|
||||
def exists?(locale, key, options=T.unsafe(nil)); end
|
||||
|
||||
def interpolate(locale, subject, values=T.unsafe(nil)); end
|
||||
|
||||
def load_file(filename); end
|
||||
|
||||
def load_json(filename); end
|
||||
|
||||
def load_rb(filename); end
|
||||
|
||||
def load_translations(*filenames); end
|
||||
|
||||
def load_yaml(filename); end
|
||||
|
||||
def load_yml(filename); end
|
||||
|
||||
def localize(locale, object, format=T.unsafe(nil), options=T.unsafe(nil)); end
|
||||
|
||||
def lookup(locale, key, scope=T.unsafe(nil), options=T.unsafe(nil)); end
|
||||
|
||||
def pluralization_key(entry, count); end
|
||||
|
||||
def pluralize(locale, entry, count); end
|
||||
|
||||
def reload!(); end
|
||||
|
||||
def resolve(locale, object, subject, options=T.unsafe(nil)); end
|
||||
|
||||
def store_translations(locale, data, options=T.unsafe(nil)); end
|
||||
|
||||
def subtrees?(); end
|
||||
|
||||
def translate(locale, key, options=T.unsafe(nil)); end
|
||||
|
||||
def translate_localization_format(locale, object, format, options); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Base
|
||||
end
|
||||
|
||||
module I18n::Backend::Cache
|
||||
def _fetch(cache_key, &block); end
|
||||
|
||||
def cache_key(locale, key, options); end
|
||||
|
||||
def fetch(cache_key, &block); end
|
||||
|
||||
def translate(locale, key, options=T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Cache
|
||||
end
|
||||
|
||||
module I18n::Backend::CacheFile
|
||||
def load_file(filename); end
|
||||
|
||||
def normalized_path(file); end
|
||||
|
||||
def path_roots(); end
|
||||
|
||||
def path_roots=(path_roots); end
|
||||
end
|
||||
|
||||
module I18n::Backend::CacheFile
|
||||
end
|
||||
|
||||
module I18n::Backend::Cascade
|
||||
def lookup(locale, key, scope=T.unsafe(nil), options=T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Cascade
|
||||
end
|
||||
|
||||
class I18n::Backend::Chain
|
||||
include ::I18n::Backend::Chain::Implementation
|
||||
include ::I18n::Backend::Base
|
||||
include ::I18n::Backend::Transliterator
|
||||
end
|
||||
|
||||
module I18n::Backend::Chain::Implementation
|
||||
include ::I18n::Backend::Base
|
||||
include ::I18n::Backend::Transliterator
|
||||
def available_locales(); end
|
||||
|
||||
def backends(); end
|
||||
|
||||
def backends=(backends); end
|
||||
|
||||
def eager_load!(); end
|
||||
|
||||
def exists?(locale, key, options=T.unsafe(nil)); end
|
||||
|
||||
def init_translations(); end
|
||||
|
||||
def initialize(*backends); end
|
||||
|
||||
def initialized?(); end
|
||||
|
||||
def localize(locale, object, format=T.unsafe(nil), options=T.unsafe(nil)); end
|
||||
|
||||
def namespace_lookup?(result, options); end
|
||||
|
||||
def reload!(); end
|
||||
|
||||
def store_translations(locale, data, options=T.unsafe(nil)); end
|
||||
|
||||
def translate(locale, key, default_options=T.unsafe(nil)); end
|
||||
|
||||
def translations(); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Chain::Implementation
|
||||
end
|
||||
|
||||
class I18n::Backend::Chain
|
||||
end
|
||||
|
||||
module I18n::Backend::Fallbacks
|
||||
def exists?(locale, key, options=T.unsafe(nil)); end
|
||||
|
||||
def extract_non_symbol_default!(options); end
|
||||
|
||||
def translate(locale, key, options=T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Fallbacks
|
||||
end
|
||||
|
||||
module I18n::Backend::Flatten
|
||||
def escape_default_separator(key); end
|
||||
|
||||
def find_link(locale, key); end
|
||||
|
||||
def flatten_keys(hash, escape, prev_key=T.unsafe(nil), &block); end
|
||||
|
||||
def flatten_translations(locale, data, escape, subtree); end
|
||||
|
||||
def links(); end
|
||||
|
||||
def normalize_flat_keys(locale, key, scope, separator); end
|
||||
|
||||
def resolve_link(locale, key); end
|
||||
|
||||
def store_link(locale, key, link); end
|
||||
FLATTEN_SEPARATOR = ::T.let(nil, ::T.untyped)
|
||||
SEPARATOR_ESCAPE_CHAR = ::T.let(nil, ::T.untyped)
|
||||
end
|
||||
|
||||
module I18n::Backend::Flatten
|
||||
def self.escape_default_separator(key); end
|
||||
|
||||
def self.normalize_flat_keys(locale, key, scope, separator); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Gettext
|
||||
def load_po(filename); end
|
||||
|
||||
def normalize(locale, data); end
|
||||
|
||||
def normalize_pluralization(locale, key, value); end
|
||||
|
||||
def parse(filename); end
|
||||
end
|
||||
|
||||
class I18n::Backend::Gettext::PoData
|
||||
def set_comment(msgid_or_sym, comment); end
|
||||
end
|
||||
|
||||
class I18n::Backend::Gettext::PoData
|
||||
end
|
||||
|
||||
module I18n::Backend::Gettext
|
||||
end
|
||||
|
||||
module I18n::Backend::InterpolationCompiler
|
||||
def compile_all_strings_in(data); end
|
||||
|
||||
def interpolate(locale, string, values); end
|
||||
|
||||
def store_translations(locale, data, options=T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Backend::InterpolationCompiler::Compiler
|
||||
def compile_if_an_interpolation(string); end
|
||||
|
||||
def compile_interpolation_token(key); end
|
||||
|
||||
def compiled_interpolation_body(str); end
|
||||
|
||||
def direct_key(key); end
|
||||
|
||||
def escape_key_sym(key); end
|
||||
|
||||
def escape_plain_str(str); end
|
||||
|
||||
def handle_interpolation_token(interpolation, matchdata); end
|
||||
|
||||
def interpolate_key(key); end
|
||||
|
||||
def interpolate_or_raise_missing(key); end
|
||||
|
||||
def interpolated_str?(str); end
|
||||
|
||||
def missing_key(key); end
|
||||
|
||||
def nil_key(key); end
|
||||
|
||||
def reserved_key(key); end
|
||||
|
||||
def tokenize(str); end
|
||||
INTERPOLATION_SYNTAX_PATTERN = ::T.let(nil, ::T.untyped)
|
||||
TOKENIZER = ::T.let(nil, ::T.untyped)
|
||||
end
|
||||
|
||||
module I18n::Backend::InterpolationCompiler::Compiler
|
||||
extend ::I18n::Backend::InterpolationCompiler::Compiler
|
||||
end
|
||||
|
||||
module I18n::Backend::InterpolationCompiler
|
||||
end
|
||||
|
||||
class I18n::Backend::KeyValue
|
||||
include ::I18n::Backend::KeyValue::Implementation
|
||||
include ::I18n::Backend::Flatten
|
||||
include ::I18n::Backend::Base
|
||||
include ::I18n::Backend::Transliterator
|
||||
end
|
||||
|
||||
module I18n::Backend::KeyValue::Implementation
|
||||
include ::I18n::Backend::Flatten
|
||||
include ::I18n::Backend::Base
|
||||
include ::I18n::Backend::Transliterator
|
||||
def available_locales(); end
|
||||
|
||||
def init_translations(); end
|
||||
|
||||
def initialize(store, subtrees=T.unsafe(nil)); end
|
||||
|
||||
def initialized?(); end
|
||||
|
||||
def lookup(locale, key, scope=T.unsafe(nil), options=T.unsafe(nil)); end
|
||||
|
||||
def pluralize(locale, entry, count); end
|
||||
|
||||
def store(); end
|
||||
|
||||
def store=(store); end
|
||||
|
||||
def store_translations(locale, data, options=T.unsafe(nil)); end
|
||||
|
||||
def subtrees?(); end
|
||||
|
||||
def translations(); end
|
||||
end
|
||||
|
||||
module I18n::Backend::KeyValue::Implementation
|
||||
end
|
||||
|
||||
class I18n::Backend::KeyValue::SubtreeProxy
|
||||
def [](key); end
|
||||
|
||||
def has_key?(key); end
|
||||
|
||||
def initialize(master_key, store); end
|
||||
|
||||
def instance_of?(klass); end
|
||||
|
||||
def is_a?(klass); end
|
||||
|
||||
def kind_of?(klass); end
|
||||
end
|
||||
|
||||
class I18n::Backend::KeyValue::SubtreeProxy
|
||||
end
|
||||
|
||||
class I18n::Backend::KeyValue
|
||||
end
|
||||
|
||||
module I18n::Backend::Memoize
|
||||
def available_locales(); end
|
||||
|
||||
def eager_load!(); end
|
||||
|
||||
def lookup(locale, key, scope=T.unsafe(nil), options=T.unsafe(nil)); end
|
||||
|
||||
def memoized_lookup(); end
|
||||
|
||||
def reload!(); end
|
||||
|
||||
def reset_memoizations!(locale=T.unsafe(nil)); end
|
||||
|
||||
def store_translations(locale, data, options=T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Memoize
|
||||
end
|
||||
|
||||
module I18n::Backend::Metadata
|
||||
def interpolate(locale, entry, values=T.unsafe(nil)); end
|
||||
|
||||
def pluralize(locale, entry, count); end
|
||||
|
||||
def translate(locale, key, options=T.unsafe(nil)); end
|
||||
|
||||
def with_metadata(metadata, &block); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Metadata
|
||||
def self.included(base); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Pluralization
|
||||
def pluralize(locale, entry, count); end
|
||||
|
||||
def pluralizer(locale); end
|
||||
|
||||
def pluralizers(); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Pluralization
|
||||
end
|
||||
|
||||
class I18n::Backend::Simple
|
||||
include ::I18n::Backend::Simple::Implementation
|
||||
include ::I18n::Backend::Base
|
||||
include ::I18n::Backend::Transliterator
|
||||
end
|
||||
|
||||
module I18n::Backend::Simple::Implementation
|
||||
include ::I18n::Backend::Base
|
||||
include ::I18n::Backend::Transliterator
|
||||
def available_locales(); end
|
||||
|
||||
def eager_load!(); end
|
||||
|
||||
def init_translations(); end
|
||||
|
||||
def initialized?(); end
|
||||
|
||||
def lookup(locale, key, scope=T.unsafe(nil), options=T.unsafe(nil)); end
|
||||
|
||||
def reload!(); end
|
||||
|
||||
def store_translations(locale, data, options=T.unsafe(nil)); end
|
||||
|
||||
def translations(do_init: T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Backend::Simple::Implementation
|
||||
end
|
||||
|
||||
class I18n::Backend::Simple
|
||||
end
|
||||
|
||||
module I18n::Backend::Transliterator
|
||||
def transliterate(locale, string, replacement=T.unsafe(nil)); end
|
||||
DEFAULT_REPLACEMENT_CHAR = ::T.let(nil, ::T.untyped)
|
||||
end
|
||||
|
||||
class I18n::Backend::Transliterator::HashTransliterator
|
||||
def initialize(rule=T.unsafe(nil)); end
|
||||
|
||||
def transliterate(string, replacement=T.unsafe(nil)); end
|
||||
DEFAULT_APPROXIMATIONS = ::T.let(nil, ::T.untyped)
|
||||
end
|
||||
|
||||
class I18n::Backend::Transliterator::HashTransliterator
|
||||
end
|
||||
|
||||
class I18n::Backend::Transliterator::ProcTransliterator
|
||||
def initialize(rule); end
|
||||
|
||||
def transliterate(string, replacement=T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
class I18n::Backend::Transliterator::ProcTransliterator
|
||||
end
|
||||
|
||||
module I18n::Backend::Transliterator
|
||||
def self.get(rule=T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Backend
|
||||
end
|
||||
|
||||
module I18n::Base
|
||||
def available_locales(); end
|
||||
|
||||
def available_locales=(value); end
|
||||
|
||||
def available_locales_initialized?(); end
|
||||
|
||||
def backend(); end
|
||||
|
||||
def backend=(value); end
|
||||
|
||||
def config(); end
|
||||
|
||||
def config=(value); end
|
||||
|
||||
def default_locale(); end
|
||||
|
||||
def default_locale=(value); end
|
||||
|
||||
def default_separator(); end
|
||||
|
||||
def default_separator=(value); end
|
||||
|
||||
def eager_load!(); end
|
||||
|
||||
def enforce_available_locales(); end
|
||||
|
||||
def enforce_available_locales!(locale); end
|
||||
|
||||
def enforce_available_locales=(value); end
|
||||
|
||||
def exception_handler(); end
|
||||
|
||||
def exception_handler=(value); end
|
||||
|
||||
def exists?(key, _locale=T.unsafe(nil), locale: T.unsafe(nil), **options); end
|
||||
|
||||
def l(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
|
||||
|
||||
def load_path(); end
|
||||
|
||||
def load_path=(value); end
|
||||
|
||||
def locale(); end
|
||||
|
||||
def locale=(value); end
|
||||
|
||||
def locale_available?(locale); end
|
||||
|
||||
def localize(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
|
||||
|
||||
def normalize_keys(locale, key, scope, separator=T.unsafe(nil)); end
|
||||
|
||||
def reload!(); end
|
||||
|
||||
def t(key=T.unsafe(nil), *_, throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
|
||||
|
||||
def t!(key, options=T.unsafe(nil)); end
|
||||
|
||||
def translate(key=T.unsafe(nil), *_, throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
|
||||
|
||||
def translate!(key, options=T.unsafe(nil)); end
|
||||
|
||||
def transliterate(key, *_, throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), replacement: T.unsafe(nil), **options); end
|
||||
|
||||
def with_locale(tmp_locale=T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Base
|
||||
end
|
||||
|
||||
class I18n::Config
|
||||
def available_locales(); end
|
||||
|
||||
def available_locales=(locales); end
|
||||
|
||||
def available_locales_initialized?(); end
|
||||
|
||||
def available_locales_set(); end
|
||||
|
||||
def backend(); end
|
||||
|
||||
def backend=(backend); end
|
||||
|
||||
def clear_available_locales_set(); end
|
||||
|
||||
def default_locale(); end
|
||||
|
||||
def default_locale=(locale); end
|
||||
|
||||
def default_separator(); end
|
||||
|
||||
def default_separator=(separator); end
|
||||
|
||||
def enforce_available_locales(); end
|
||||
|
||||
def enforce_available_locales=(enforce_available_locales); end
|
||||
|
||||
def exception_handler(); end
|
||||
|
||||
def exception_handler=(exception_handler); end
|
||||
|
||||
def interpolation_patterns(); end
|
||||
|
||||
def interpolation_patterns=(interpolation_patterns); end
|
||||
|
||||
def load_path(); end
|
||||
|
||||
def load_path=(load_path); end
|
||||
|
||||
def locale(); end
|
||||
|
||||
def locale=(locale); end
|
||||
|
||||
def missing_interpolation_argument_handler(); end
|
||||
|
||||
def missing_interpolation_argument_handler=(exception_handler); end
|
||||
end
|
||||
|
||||
class I18n::Config
|
||||
end
|
||||
|
||||
class I18n::Disabled
|
||||
def initialize(method); end
|
||||
end
|
||||
|
||||
class I18n::Disabled
|
||||
end
|
||||
|
||||
class I18n::ExceptionHandler
|
||||
def call(exception, _locale, _key, _options); end
|
||||
end
|
||||
|
||||
class I18n::ExceptionHandler
|
||||
end
|
||||
|
||||
module I18n::Gettext
|
||||
CONTEXT_SEPARATOR = ::T.let(nil, ::T.untyped)
|
||||
PLURAL_SEPARATOR = ::T.let(nil, ::T.untyped)
|
||||
end
|
||||
|
||||
module I18n::Gettext::Helpers
|
||||
def N_(msgsid); end
|
||||
|
||||
def _(msgid, options=T.unsafe(nil)); end
|
||||
|
||||
def gettext(msgid, options=T.unsafe(nil)); end
|
||||
|
||||
def n_(msgid, msgid_plural, n=T.unsafe(nil)); end
|
||||
|
||||
def ngettext(msgid, msgid_plural, n=T.unsafe(nil)); end
|
||||
|
||||
def np_(msgctxt, msgid, msgid_plural, n=T.unsafe(nil)); end
|
||||
|
||||
def npgettext(msgctxt, msgid, msgid_plural, n=T.unsafe(nil)); end
|
||||
|
||||
def ns_(msgid, msgid_plural, n=T.unsafe(nil), separator=T.unsafe(nil)); end
|
||||
|
||||
def nsgettext(msgid, msgid_plural, n=T.unsafe(nil), separator=T.unsafe(nil)); end
|
||||
|
||||
def p_(msgctxt, msgid); end
|
||||
|
||||
def pgettext(msgctxt, msgid); end
|
||||
|
||||
def s_(msgid, separator=T.unsafe(nil)); end
|
||||
|
||||
def sgettext(msgid, separator=T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module I18n::Gettext::Helpers
|
||||
end
|
||||
|
||||
module I18n::Gettext
|
||||
def self.extract_scope(msgid, separator); end
|
||||
|
||||
def self.plural_keys(*args); end
|
||||
end
|
||||
|
||||
module I18n::HashRefinements
|
||||
end
|
||||
|
||||
module I18n::HashRefinements
|
||||
end
|
||||
|
||||
class I18n::InvalidLocale
|
||||
def initialize(locale); end
|
||||
|
||||
def locale(); end
|
||||
end
|
||||
|
||||
class I18n::InvalidLocale
|
||||
end
|
||||
|
||||
class I18n::InvalidLocaleData
|
||||
def filename(); end
|
||||
|
||||
def initialize(filename, exception_message); end
|
||||
end
|
||||
|
||||
class I18n::InvalidLocaleData
|
||||
end
|
||||
|
||||
class I18n::InvalidPluralizationData
|
||||
def count(); end
|
||||
|
||||
def entry(); end
|
||||
|
||||
def initialize(entry, count, key); end
|
||||
|
||||
def key(); end
|
||||
end
|
||||
|
||||
class I18n::InvalidPluralizationData
|
||||
end
|
||||
|
||||
I18n::JSON = ActiveSupport::JSON
|
||||
|
||||
module I18n::Locale
|
||||
end
|
||||
|
||||
class I18n::Locale::Fallbacks
|
||||
def [](locale); end
|
||||
|
||||
def compute(tags, include_defaults=T.unsafe(nil), exclude=T.unsafe(nil)); end
|
||||
|
||||
def defaults(); end
|
||||
|
||||
def defaults=(defaults); end
|
||||
|
||||
def initialize(*mappings); end
|
||||
|
||||
def map(mappings); end
|
||||
end
|
||||
|
||||
class I18n::Locale::Fallbacks
|
||||
end
|
||||
|
||||
module I18n::Locale::Tag
|
||||
RFC4646_FORMATS = ::T.let(nil, ::T.untyped)
|
||||
RFC4646_SUBTAGS = ::T.let(nil, ::T.untyped)
|
||||
end
|
||||
|
||||
module I18n::Locale::Tag::Parents
|
||||
def parent(); end
|
||||
|
||||
def parents(); end
|
||||
|
||||
def self_and_parents(); end
|
||||
end
|
||||
|
||||
module I18n::Locale::Tag::Parents
|
||||
end
|
||||
|
||||
class I18n::Locale::Tag::Rfc4646
|
||||
include ::I18n::Locale::Tag::Parents
|
||||
def to_sym(); end
|
||||
end
|
||||
|
||||
module I18n::Locale::Tag::Rfc4646::Parser
|
||||
PATTERN = ::T.let(nil, ::T.untyped)
|
||||
end
|
||||
|
||||
module I18n::Locale::Tag::Rfc4646::Parser
|
||||
def self.match(tag); end
|
||||
end
|
||||
|
||||
class I18n::Locale::Tag::Rfc4646
|
||||
def self.parser(); end
|
||||
|
||||
def self.parser=(parser); end
|
||||
|
||||
def self.tag(tag); end
|
||||
end
|
||||
|
||||
class I18n::Locale::Tag::Simple
|
||||
include ::I18n::Locale::Tag::Parents
|
||||
def initialize(*tag); end
|
||||
|
||||
def subtags(); end
|
||||
|
||||
def tag(); end
|
||||
|
||||
def to_a(); end
|
||||
|
||||
def to_sym(); end
|
||||
end
|
||||
|
||||
class I18n::Locale::Tag::Simple
|
||||
def self.tag(tag); end
|
||||
end
|
||||
|
||||
module I18n::Locale::Tag
|
||||
def self.implementation(); end
|
||||
|
||||
def self.implementation=(implementation); end
|
||||
|
||||
def self.tag(tag); end
|
||||
end
|
||||
|
||||
module I18n::Locale
|
||||
end
|
||||
|
||||
class I18n::Middleware
|
||||
def call(env); end
|
||||
|
||||
def initialize(app); end
|
||||
end
|
||||
|
||||
class I18n::Middleware
|
||||
end
|
||||
|
||||
class I18n::MissingInterpolationArgument
|
||||
def initialize(key, values, string); end
|
||||
|
||||
def key(); end
|
||||
|
||||
def string(); end
|
||||
|
||||
def values(); end
|
||||
end
|
||||
|
||||
class I18n::MissingInterpolationArgument
|
||||
end
|
||||
|
||||
class I18n::MissingTranslation
|
||||
include ::I18n::MissingTranslation::Base
|
||||
end
|
||||
|
||||
module I18n::MissingTranslation::Base
|
||||
def initialize(locale, key, options=T.unsafe(nil)); end
|
||||
|
||||
def key(); end
|
||||
|
||||
def keys(); end
|
||||
|
||||
def locale(); end
|
||||
|
||||
def message(); end
|
||||
|
||||
def options(); end
|
||||
|
||||
def to_exception(); end
|
||||
|
||||
def to_s(); end
|
||||
end
|
||||
|
||||
module I18n::MissingTranslation::Base
|
||||
end
|
||||
|
||||
class I18n::MissingTranslation
|
||||
end
|
||||
|
||||
class I18n::MissingTranslationData
|
||||
include ::I18n::MissingTranslation::Base
|
||||
end
|
||||
|
||||
class I18n::MissingTranslationData
|
||||
end
|
||||
|
||||
class I18n::ReservedInterpolationKey
|
||||
def initialize(key, string); end
|
||||
|
||||
def key(); end
|
||||
|
||||
def string(); end
|
||||
end
|
||||
|
||||
class I18n::ReservedInterpolationKey
|
||||
end
|
||||
|
||||
module I18n::Tests
|
||||
end
|
||||
|
||||
module I18n::Tests::Localization
|
||||
end
|
||||
|
||||
module I18n::Tests::Localization
|
||||
def self.included(base); end
|
||||
end
|
||||
|
||||
module I18n::Tests
|
||||
end
|
||||
|
||||
class I18n::UnknownFileType
|
||||
def filename(); end
|
||||
|
||||
def initialize(type, filename); end
|
||||
|
||||
def type(); end
|
||||
end
|
||||
|
||||
class I18n::UnknownFileType
|
||||
end
|
||||
|
||||
module I18n
|
||||
extend ::I18n::Base
|
||||
def self.cache_key_digest(); end
|
||||
|
||||
def self.cache_key_digest=(key_digest); end
|
||||
@ -9644,12 +8834,6 @@ module I18n
|
||||
|
||||
def self.fallbacks=(fallbacks); end
|
||||
|
||||
def self.interpolate(string, values); end
|
||||
|
||||
def self.interpolate_hash(string, values); end
|
||||
|
||||
def self.new_double_nested_cache(); end
|
||||
|
||||
def self.perform_caching?(); end
|
||||
end
|
||||
|
||||
|
||||
@ -4,11 +4,11 @@ ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
|
||||
ruby_version = RbConfig::CONFIG["ruby_version"]
|
||||
path = File.expand_path('..', __FILE__)
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/concurrent-ruby-1.1.7/lib/concurrent-ruby"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/i18n-1.8.5/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/minitest-5.14.2/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tzinfo-2.0.3/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/i18n-1.8.7/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/minitest-5.14.3/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tzinfo-2.0.4/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/zeitwerk-2.4.2/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/activesupport-6.1.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/activesupport-6.1.1/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ast-2.4.1/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/bindata-2.4.8/lib"
|
||||
$:.unshift "#{path}/"
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Dir.glob(File.expand_path("core_ext/*.rb", __dir__)).each do |path|
|
||||
require path
|
||||
end
|
||||
@ -0,0 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Dir.glob(File.expand_path("core_ext/*.rb", __dir__)).sort.each do |path|
|
||||
require path
|
||||
end
|
||||
@ -3,6 +3,7 @@
|
||||
# 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
|
||||
@ -219,6 +220,12 @@ class Pathname #:nodoc:
|
||||
end
|
||||
end
|
||||
|
||||
class IPAddr # :nodoc:
|
||||
def as_json(options = nil)
|
||||
to_s
|
||||
end
|
||||
end
|
||||
|
||||
class Process::Status #:nodoc:
|
||||
def as_json(options = nil)
|
||||
{ exitstatus: exitstatus, pid: pid }
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user