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
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/test/xml_mini/rexml_engine_test.rb
activesupport/test/xml_mini/rexml_engine_test.rb
# frozen_string_literal: true require_relative "xml_mini_engine_test" class REXMLEngineTest < XMLMiniEngineTest def test_default_is_rexml assert_equal ActiveSupport::XmlMini_REXML, ActiveSupport::XmlMini.backend end def test_parse_from_empty_string assert_equal({}, ActiveSupport::XmlMini.parse("")) e...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/test/xml_mini/libxmlsax_engine_test.rb
activesupport/test/xml_mini/libxmlsax_engine_test.rb
# frozen_string_literal: true require_relative "xml_mini_engine_test" XMLMiniEngineTest.run_with_gem("libxml") do class LibXMLSAXEngineTest < XMLMiniEngineTest private def engine "LibXMLSAX" end def expansion_attack_error LibXML::XML::Error end end end
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support.rb
activesupport/lib/active_support.rb
# frozen_string_literal: true #-- # Copyright (c) David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/ordered_hash.rb
activesupport/lib/active_support/ordered_hash.rb
# frozen_string_literal: true require "yaml" YAML.add_builtin_type("omap") do |type, val| ActiveSupport::OrderedHash[val.map { |v| v.to_a.first }] end module ActiveSupport # DEPRECATED: +ActiveSupport::OrderedHash+ implements a hash that preserves # insertion order. # # oh = ActiveSupport::OrderedHash.ne...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/time_with_zone.rb
activesupport/lib/active_support/time_with_zone.rb
# frozen_string_literal: true require "yaml" require "active_support/duration" require "active_support/values/time_zone" require "active_support/core_ext/object/acts_like" require "active_support/core_ext/date_and_time/compatibility" module ActiveSupport # = Active Support \Time With Zone # # A Time-like class...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/encrypted_file.rb
activesupport/lib/active_support/encrypted_file.rb
# frozen_string_literal: true require "pathname" require "tempfile" require "active_support/message_encryptor" module ActiveSupport class EncryptedFile class MissingContentError < RuntimeError def initialize(content_path) super "Missing encrypted content file in #{content_path}." end end...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/event_reporter.rb
activesupport/lib/active_support/event_reporter.rb
# frozen_string_literal: true require "active_support/parameter_filter" module ActiveSupport class TagStack # :nodoc: EMPTY_TAGS = {}.freeze FIBER_KEY = :event_reporter_tags class << self def tags Fiber[FIBER_KEY] || EMPTY_TAGS end def with_tags(*args, **kwargs) exist...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/ordered_options.rb
activesupport/lib/active_support/ordered_options.rb
# frozen_string_literal: true require "active_support/core_ext/object/blank" module ActiveSupport # = Ordered Options # # +OrderedOptions+ inherits from +Hash+ and provides dynamic accessor methods. # # With a +Hash+, key-value pairs are typically managed like this: # # h = {} # h[:boy] = 'John' ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/key_generator.rb
activesupport/lib/active_support/key_generator.rb
# frozen_string_literal: true require "concurrent/map" require "openssl" module ActiveSupport # = Key Generator # # KeyGenerator is a simple wrapper around OpenSSL's implementation of PBKDF2. # It can be used to derive a number of keys for various purposes from a given secret. # This lets \Rails application...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/test_case.rb
activesupport/lib/active_support/test_case.rb
# frozen_string_literal: true require "minitest" require "active_support/testing/tagged_logging" require "active_support/testing/setup_and_teardown" require "active_support/testing/tests_without_assertions" require "active_support/testing/assertions" require "active_support/testing/error_reporter_assertions" require "...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/deprecation.rb
activesupport/lib/active_support/deprecation.rb
# frozen_string_literal: true module ActiveSupport # = Active Support \Deprecation # # \Deprecation specifies the API used by \Rails to deprecate methods, instance variables, objects, and constants. It's # also available for gems or applications. # # For a gem, use Deprecation.new to create a Deprecation o...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/secure_compare_rotator.rb
activesupport/lib/active_support/secure_compare_rotator.rb
# frozen_string_literal: true require "active_support/security_utils" require "active_support/messages/rotator" module ActiveSupport # = Secure Compare Rotator # # The ActiveSupport::SecureCompareRotator is a wrapper around ActiveSupport::SecurityUtils.secure_compare # and allows you to rotate a previously de...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/version.rb
activesupport/lib/active_support/version.rb
# frozen_string_literal: true require_relative "gem_version" module ActiveSupport # Returns the currently loaded version of Active Support as a +Gem::Version+. def self.version gem_version end end
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/rails.rb
activesupport/lib/active_support/rails.rb
# frozen_string_literal: true # This is a private interface. # # Rails components cherry pick from Active Support as needed, but there are a # few features that are used for sure in some way or another and it is not worth # putting individual requires absolutely everywhere. Think blank? for example. # # This file is l...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/rescuable.rb
activesupport/lib/active_support/rescuable.rb
# frozen_string_literal: true require "active_support/concern" require "active_support/core_ext/class/attribute" require "active_support/core_ext/string/inflections" module ActiveSupport # = Active Support \Rescuable # # Rescuable module adds support for easier exception handling. module Rescuable extend ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/duration.rb
activesupport/lib/active_support/duration.rb
# frozen_string_literal: true require "active_support/core_ext/array/conversions" require "active_support/core_ext/module/delegation" require "active_support/core_ext/object/acts_like" module ActiveSupport # = Active Support \Duration # # Provides accurate date and time measurements using Date#advance and # T...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/configuration_file.rb
activesupport/lib/active_support/configuration_file.rb
# frozen_string_literal: true module ActiveSupport # Reads a YAML configuration file, evaluating any ERB, then # parsing the resulting YAML. # # Warns in case of YAML confusing characters, like invisible # non-breaking spaces. class ConfigurationFile # :nodoc: class FormatError < StandardError; end ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/broadcast_logger.rb
activesupport/lib/active_support/broadcast_logger.rb
# frozen_string_literal: true module ActiveSupport # = Active Support Broadcast Logger # # The Broadcast logger is a logger used to write messages to multiple IO. It is commonly used # in development to display messages on STDOUT and also write them to a file (development.log). # With the Broadcast logger, y...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/log_subscriber.rb
activesupport/lib/active_support/log_subscriber.rb
# frozen_string_literal: true require "active_support/core_ext/module/attribute_accessors" require "active_support/core_ext/class/attribute" require "active_support/core_ext/enumerable" require "active_support/subscriber" require "active_support/deprecation/proxy_wrappers" module ActiveSupport # = Active Support Lo...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/error_reporter.rb
activesupport/lib/active_support/error_reporter.rb
# frozen_string_literal: true module ActiveSupport # = Active Support \Error Reporter # # +ActiveSupport::ErrorReporter+ is a common interface for error reporting services. # # To rescue and report any unhandled error, you can use the #handle method: # # Rails.error.handle do # do_something! # ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/logger.rb
activesupport/lib/active_support/logger.rb
# frozen_string_literal: true require "active_support/logger_silence" require "active_support/logger_thread_safe_level" require "logger" module ActiveSupport class Logger < ::Logger include LoggerSilence # Returns true if the logger destination matches one of the sources # # logger = Logger.new(S...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/core_ext.rb
activesupport/lib/active_support/core_ext.rb
# frozen_string_literal: true (Dir.glob(File.expand_path("core_ext/*.rb", __dir__)).sort - [File.expand_path("core_ext/benchmark.rb", __dir__)]).each do |path| require path end
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/security_utils.rb
activesupport/lib/active_support/security_utils.rb
# frozen_string_literal: true module ActiveSupport module SecurityUtils # Constant time string comparison, for fixed length strings. # # The values compared should be of fixed length, such as strings # that have already been processed by HMAC. Raises in case of length mismatch. if defined?(OpenS...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/xml_mini.rb
activesupport/lib/active_support/xml_mini.rb
# frozen_string_literal: true require "time" require "base64" require "bigdecimal" require "bigdecimal/util" require "active_support/core_ext/module/delegation" require "active_support/core_ext/string/inflections" require "active_support/core_ext/date_time/calculations" module ActiveSupport # = \XmlMini # # To ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/evented_file_update_checker.rb
activesupport/lib/active_support/evented_file_update_checker.rb
# frozen_string_literal: true gem "listen", "~> 3.5" require "listen" require "pathname" require "concurrent/atomic/atomic_boolean" module ActiveSupport # Allows you to "listen" to changes in a file system. # The evented file updater does not hit disk when checking for updates. # Instead, it uses platform-spec...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/isolated_execution_state.rb
activesupport/lib/active_support/isolated_execution_state.rb
# frozen_string_literal: true module ActiveSupport module IsolatedExecutionState # :nodoc: @isolation_level = nil Thread.attr_accessor :active_support_execution_state Fiber.attr_accessor :active_support_execution_state class << self attr_reader :isolation_level, :scope def isolation_le...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/digest.rb
activesupport/lib/active_support/digest.rb
# frozen_string_literal: true require "openssl" module ActiveSupport class Digest # :nodoc: class << self def hash_digest_class @hash_digest_class ||= OpenSSL::Digest::MD5 end def hash_digest_class=(klass) raise ArgumentError, "#{klass} is expected to implement hexdigest class...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/benchmark.rb
activesupport/lib/active_support/benchmark.rb
# frozen_string_literal: true module ActiveSupport module Benchmark # :nodoc: # Benchmark realtime in the specified time unit. By default, # the returned unit is in seconds. # # ActiveSupport::Benchmark.realtime { sleep 0.1 } # # => 0.10007 # # ActiveSupport::Benchmark.realtime(:flo...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/parameter_filter.rb
activesupport/lib/active_support/parameter_filter.rb
# frozen_string_literal: true require "active_support/core_ext/object/duplicable" require "active_support/core_ext/array/extract" module ActiveSupport # = Active Support Parameter Filter # # +ParameterFilter+ replaces values in a <tt>Hash</tt>-like object if their # keys match one of the specified filters. ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/message_verifiers.rb
activesupport/lib/active_support/message_verifiers.rb
# frozen_string_literal: true require "active_support/messages/rotation_coordinator" module ActiveSupport class MessageVerifiers < Messages::RotationCoordinator ## # :attr_accessor: transitional # # If true, the first two rotation option sets are swapped when building # message verifiers. For ex...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/time.rb
activesupport/lib/active_support/time.rb
# frozen_string_literal: true module ActiveSupport autoload :Duration, "active_support/duration" autoload :TimeWithZone, "active_support/time_with_zone" autoload :TimeZone, "active_support/values/time_zone" end require "date" require "time" require "active_support/core_ext/time" require "active_support/core_ex...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/message_verifier.rb
activesupport/lib/active_support/message_verifier.rb
# frozen_string_literal: true require "openssl" require "base64" require "active_support/core_ext/object/blank" require "active_support/security_utils" require "active_support/messages/codec" require "active_support/messages/rotator" module ActiveSupport # = Active Support Message Verifier # # +MessageVerifier+...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/message_encryptors.rb
activesupport/lib/active_support/message_encryptors.rb
# frozen_string_literal: true require "active_support/messages/rotation_coordinator" module ActiveSupport class MessageEncryptors < Messages::RotationCoordinator ## # :attr_accessor: transitional # # If true, the first two rotation option sets are swapped when building # message encryptors. For ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/inflector.rb
activesupport/lib/active_support/inflector.rb
# frozen_string_literal: true # in case active_support/inflector is required without the rest of active_support require "active_support/inflector/inflections" require "active_support/inflector/transliterate" require "active_support/inflector/methods" require "active_support/inflections" require "active_support/core_e...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/deep_mergeable.rb
activesupport/lib/active_support/deep_mergeable.rb
# frozen_string_literal: true module ActiveSupport # Provides +deep_merge+ and +deep_merge!+ methods. Expects the including class # to provide a <tt>merge!(other, &block)</tt> method. module DeepMergeable # :nodoc: # Returns a new instance with the values from +other+ merged recursively. # # class ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/actionable_error.rb
activesupport/lib/active_support/actionable_error.rb
# frozen_string_literal: true module ActiveSupport # = Actionable Errors # # Actionable errors lets you define actions to resolve an error. # # To make an error actionable, include the +ActiveSupport::ActionableError+ # module and invoke the +action+ class macro to define the action. An action # needs a ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/execution_wrapper.rb
activesupport/lib/active_support/execution_wrapper.rb
# frozen_string_literal: true require "active_support/error_reporter" require "active_support/callbacks" module ActiveSupport class ExecutionWrapper include ActiveSupport::Callbacks Null = Object.new # :nodoc: def Null.complete! # :nodoc: end define_callbacks :run define_callbacks :complet...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/callbacks.rb
activesupport/lib/active_support/callbacks.rb
# frozen_string_literal: true require "active_support/concern" require "active_support/descendants_tracker" require "active_support/core_ext/array/extract_options" require "active_support/core_ext/class/attribute" require "active_support/core_ext/module/redefine_method" require "active_support/core_ext/string/filters"...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/message_encryptor.rb
activesupport/lib/active_support/message_encryptor.rb
# frozen_string_literal: true require "openssl" require "base64" require "active_support/core_ext/module/attribute_accessors" require "active_support/messages/codec" require "active_support/messages/rotator" require "active_support/message_verifier" module ActiveSupport # = Active Support Message Encryptor # # ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/message_pack.rb
activesupport/lib/active_support/message_pack.rb
# frozen_string_literal: true begin gem "msgpack", ">= 1.7.0" require "msgpack" rescue LoadError => error warn "ActiveSupport::MessagePack requires the msgpack gem, version 1.7.0 or later. " \ "Please add it to your Gemfile: `gem \"msgpack\", \">= 1.7.0\"`" raise error end require_relative "message_pack/c...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/environment_inquirer.rb
activesupport/lib/active_support/environment_inquirer.rb
# frozen_string_literal: true require "active_support/string_inquirer" require "active_support/core_ext/object/inclusion" module ActiveSupport class EnvironmentInquirer < StringInquirer # :nodoc: # Optimization for the three default environments, so this inquirer doesn't need to rely on # the slower delegat...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/class_attribute.rb
activesupport/lib/active_support/class_attribute.rb
# frozen_string_literal: true module ActiveSupport module ClassAttribute # :nodoc: class << self def redefine(owner, name, namespaced_name, value) if owner.singleton_class? if owner.attached_object.is_a?(Module) redefine_method(owner, namespaced_name, private: true) { value } ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/json.rb
activesupport/lib/active_support/json.rb
# frozen_string_literal: true require "active_support/json/decoding" require "active_support/json/encoding"
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/lazy_load_hooks.rb
activesupport/lib/active_support/lazy_load_hooks.rb
# frozen_string_literal: true module ActiveSupport # = Lazy Load Hooks # # LazyLoadHooks allows \Rails to lazily load a lot of components and thus # making the app boot faster. Because of this feature now there is no need to # require +ActiveRecord::Base+ at boot time purely to apply # configuration. Inste...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/structured_event_subscriber.rb
activesupport/lib/active_support/structured_event_subscriber.rb
# frozen_string_literal: true require "active_support/subscriber" module ActiveSupport # = Active Support Structured Event \Subscriber # # +ActiveSupport::StructuredEventSubscriber+ consumes ActiveSupport::Notifications # in order to emit structured events via +Rails.event+. # # An example would be the Ac...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/fork_tracker.rb
activesupport/lib/active_support/fork_tracker.rb
# frozen_string_literal: true module ActiveSupport module ForkTracker # :nodoc: module CoreExt def _fork pid = super if pid == 0 ForkTracker.after_fork_callback end pid end end @pid = Process.pid @callbacks = [] class << self def after...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/combined_configuration.rb
activesupport/lib/active_support/combined_configuration.rb
# frozen_string_literal: true require "active_support/core_ext/enumerable" module ActiveSupport # Allows for configuration keys to be pulled from multiple backends. Keys are pulled in first-found order from # the configuration backends that the combined configuration has been initialized with. # # This is use...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/array_inquirer.rb
activesupport/lib/active_support/array_inquirer.rb
# frozen_string_literal: true module ActiveSupport # = \Array Inquirer # # Wrapping an array in an +ArrayInquirer+ gives a friendlier way to check # its string-like contents: # # variants = ActiveSupport::ArrayInquirer.new([:phone, :tablet]) # # variants.phone? # => true # variants.tablet? ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/descendants_tracker.rb
activesupport/lib/active_support/descendants_tracker.rb
# frozen_string_literal: true require "weakref" module ActiveSupport # = Active Support Descendants Tracker # # This module provides an internal implementation to track descendants # which is faster than iterating through +ObjectSpace+. # # However Ruby 3.1 provide a fast native +Class#subclasses+ method,...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/encrypted_configuration.rb
activesupport/lib/active_support/encrypted_configuration.rb
# frozen_string_literal: true require "yaml" require "active_support/encrypted_file" require "active_support/ordered_options" require "active_support/core_ext/object/inclusion" require "active_support/core_ext/hash/keys" require "active_support/core_ext/module/delegation" module ActiveSupport # = Encrypted Configur...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/railtie.rb
activesupport/lib/active_support/railtie.rb
# frozen_string_literal: true require "active_support" require "active_support/i18n_railtie" module ActiveSupport class Railtie < Rails::Railtie # :nodoc: config.active_support = ActiveSupport::OrderedOptions.new config.eager_load_namespaces << ActiveSupport initializer "active_support.deprecator", be...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/hash_with_indifferent_access.rb
activesupport/lib/active_support/hash_with_indifferent_access.rb
# frozen_string_literal: true require "active_support/core_ext/hash/keys" require "active_support/core_ext/hash/reverse_merge" require "active_support/core_ext/hash/except" require "active_support/core_ext/hash/slice" module ActiveSupport # = \Hash With Indifferent Access # # Implements a hash where keys <tt>:f...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/benchmarkable.rb
activesupport/lib/active_support/benchmarkable.rb
# frozen_string_literal: true require "active_support/core_ext/hash/keys" module ActiveSupport # = \Benchmarkable module Benchmarkable # Allows you to measure the execution time of a block in a template and # records the result to the log. Wrap this block around expensive operations # or possible bott...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/inflections.rb
activesupport/lib/active_support/inflections.rb
# frozen_string_literal: true require "active_support/inflector/inflections" #-- # Defines the standard inflection rules. These are the starting point for # new projects and are not considered complete. The current set of inflection # rules is frozen. This means, we do not change them to become more complete. # This ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/dot_env_configuration.rb
activesupport/lib/active_support/dot_env_configuration.rb
# frozen_string_literal: true require "active_support/env_configuration" module ActiveSupport # Provide an interface for accessing configuration options stored in a .env file. # Keys are accepted as symbols and turned into upcased strings. Nesting is provided by double underscores. # # This interface mirrors ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/i18n.rb
activesupport/lib/active_support/i18n.rb
# frozen_string_literal: true require "active_support/core_ext/hash/deep_merge" require "active_support/core_ext/hash/except" require "active_support/core_ext/hash/slice" begin require "i18n" require "i18n/backend/fallbacks" rescue LoadError => e warn "The i18n gem is not available. Please add it to your Gemfile...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/subscriber.rb
activesupport/lib/active_support/subscriber.rb
# frozen_string_literal: true require "active_support/notifications" module ActiveSupport # = Active Support \Subscriber # # +ActiveSupport::Subscriber+ is an object set to consume # ActiveSupport::Notifications. The subscriber dispatches notifications to # a registered object based on its given namespace. ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/gzip.rb
activesupport/lib/active_support/gzip.rb
# frozen_string_literal: true require "zlib" require "stringio" module ActiveSupport # = Active Support \Gzip # # A convenient wrapper for the zlib standard library that allows # compression/decompression of strings with gzip. # # gzip = ActiveSupport::Gzip.compress('compress me!') # # => "\x1F\x8B\...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/logger_thread_safe_level.rb
activesupport/lib/active_support/logger_thread_safe_level.rb
# frozen_string_literal: true require "active_support/concern" require "logger" module ActiveSupport module LoggerThreadSafeLevel # :nodoc: extend ActiveSupport::Concern def initialize(...) super @local_level_key = :"logger_thread_safe_level_#{object_id}" end def local_level Isol...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/concern.rb
activesupport/lib/active_support/concern.rb
# frozen_string_literal: true module ActiveSupport # = Active Support \Concern # # A typical module looks like this: # # module M # def self.included(base) # base.extend ClassMethods # base.class_eval do # scope :disabled, -> { where(disabled: true) } # end # e...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/env_configuration.rb
activesupport/lib/active_support/env_configuration.rb
# frozen_string_literal: true # require "active_support/core_ext/module/delegation" module ActiveSupport # Provide a better interface for accessing configuration options stored in ENV. # Keys are accepted as symbols and turned into upcased strings. Nesting is provided by double underscores. # # This interface...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/editor.rb
activesupport/lib/active_support/editor.rb
# frozen_string_literal: true # :markup: markdown module ActiveSupport class Editor @editors = {} @current = false class << self # Registers a URL pattern for opening file in a given editor. # This allows Rails to generate clickable links to control known editors. # # Example: ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/backtrace_cleaner.rb
activesupport/lib/active_support/backtrace_cleaner.rb
# frozen_string_literal: true module ActiveSupport # = Backtrace Cleaner # # Backtraces often include many lines that are not relevant for the context # under review. This makes it hard to find the signal amongst the backtrace # noise, and adds debugging time. With a BacktraceCleaner, filters and # silence...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/file_update_checker.rb
activesupport/lib/active_support/file_update_checker.rb
# frozen_string_literal: true require "active_support/core_ext/time/calculations" module ActiveSupport # = \File Update Checker # # FileUpdateChecker specifies the API used by \Rails to watch files # and control reloading. The API depends on four methods: # # * +initialize+ which expects two parameters an...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/html_safe_translation.rb
activesupport/lib/active_support/html_safe_translation.rb
# frozen_string_literal: true module ActiveSupport module HtmlSafeTranslation # :nodoc: extend self def translate(key, **options) if html_safe_translation_key?(key) html_safe_options = html_escape_translation_options(options) exception = false exception_handler = ->(*args) do...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/syntax_error_proxy.rb
activesupport/lib/active_support/syntax_error_proxy.rb
# frozen_string_literal: true require "delegate" module ActiveSupport # This is a class for wrapping syntax errors. The purpose of this class # is to enhance the backtraces on SyntaxError exceptions to include the # source location of the syntax error. That way we can display the error # source on error pag...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/colorize_logging.rb
activesupport/lib/active_support/colorize_logging.rb
# frozen_string_literal: true module ActiveSupport module ColorizeLogging # :nodoc: extend ActiveSupport::Concern # ANSI sequence modes MODES = { clear: 0, bold: 1, italic: 3, underline: 4, } # ANSI sequence colors BLACK = "\e[30m" RED = "\e[31m...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/option_merger.rb
activesupport/lib/active_support/option_merger.rb
# frozen_string_literal: true require "active_support/core_ext/hash/deep_merge" module ActiveSupport class OptionMerger # :nodoc: instance_methods.each do |method| undef_method(method) unless method.start_with?("__", "instance_eval", "class", "object_id") end def initialize(context, options) ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/dependencies.rb
activesupport/lib/active_support/dependencies.rb
# frozen_string_literal: true require "active_support/dependencies/interlock" module ActiveSupport # :nodoc: module Dependencies # :nodoc: require_relative "dependencies/require_dependency" singleton_class.attr_accessor :interlock @interlock = Interlock.new # :doc: # Execute the supplied bloc...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/i18n_railtie.rb
activesupport/lib/active_support/i18n_railtie.rb
# frozen_string_literal: true require "active_support" require "active_support/core_ext/array/wrap" require "rails/railtie" # :enddoc: module I18n class Railtie < Rails::Railtie config.i18n = ActiveSupport::OrderedOptions.new config.i18n.railties_load_path = [] config.i18n.load_path = [] config.i18...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/deprecator.rb
activesupport/lib/active_support/deprecator.rb
# frozen_string_literal: true module ActiveSupport def self.deprecator # :nodoc: ActiveSupport::Deprecation._instance end end
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/notifications.rb
activesupport/lib/active_support/notifications.rb
# frozen_string_literal: true require "active_support/notifications/instrumenter" require "active_support/notifications/fanout" module ActiveSupport # = \Notifications # # +ActiveSupport::Notifications+ provides an instrumentation API for # Ruby. # # == Instrumenters # # To instrument an event you jus...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/code_generator.rb
activesupport/lib/active_support/code_generator.rb
# frozen_string_literal: true module ActiveSupport class CodeGenerator # :nodoc: class MethodSet METHOD_CACHES = Hash.new { |h, k| h[k] = Module.new } def initialize(namespace) @cache = METHOD_CACHES[namespace] @sources = [] @methods = {} @canonical_methods = {} ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/current_attributes.rb
activesupport/lib/active_support/current_attributes.rb
# frozen_string_literal: true require "active_support/callbacks" require "active_support/execution_context" require "active_support/core_ext/object/with" require "active_support/core_ext/enumerable" require "active_support/core_ext/module/delegation" module ActiveSupport # = Current Attributes # # Abstract supe...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/builder.rb
activesupport/lib/active_support/builder.rb
# frozen_string_literal: true begin require "builder" rescue LoadError => e warn "You don't have builder installed in your application. Please add it to your Gemfile and run bundle install" raise e end
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/executor.rb
activesupport/lib/active_support/executor.rb
# frozen_string_literal: true require "active_support/execution_wrapper" module ActiveSupport class Executor < ExecutionWrapper end end
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/number_helper.rb
activesupport/lib/active_support/number_helper.rb
# frozen_string_literal: true module ActiveSupport # = Number Helper # # Provides methods for formatting numbers into currencies, percentages, # phone numbers, and more. # # Example usage in a class: # class Topic # include ActiveSupport::NumberHelper # # def price # number_to_cur...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/gem_version.rb
activesupport/lib/active_support/gem_version.rb
# frozen_string_literal: true module ActiveSupport # Returns the currently loaded version of Active Support as a +Gem::Version+. def self.gem_version Gem::Version.new VERSION::STRING end module VERSION MAJOR = 8 MINOR = 2 TINY = 0 PRE = "alpha" STRING = [MAJOR, MINOR, TINY, PRE].co...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/configurable.rb
activesupport/lib/active_support/configurable.rb
# frozen_string_literal: true ActiveSupport.deprecator.warn <<~MSG ActiveSupport::Configurable is deprecated without replacement, and will be removed in Rails 8.2. You can emulate the previous behavior with `class_attribute`. MSG require "active_support/concern" require "active_support/ordered_options" module A...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/logger_silence.rb
activesupport/lib/active_support/logger_silence.rb
# frozen_string_literal: true require "active_support/concern" require "active_support/core_ext/module/attribute_accessors" require "active_support/logger_thread_safe_level" module ActiveSupport module LoggerSilence extend ActiveSupport::Concern included do cattr_accessor :silencer, default: true ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/multibyte.rb
activesupport/lib/active_support/multibyte.rb
# frozen_string_literal: true module ActiveSupport # :nodoc: module Multibyte autoload :Chars, "active_support/multibyte/chars" autoload :Unicode, "active_support/multibyte/unicode" # The proxy class returned when calling mb_chars. You can use this accessor # to configure your own proxy class so you...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/delegation.rb
activesupport/lib/active_support/delegation.rb
# frozen_string_literal: true require "delegate" module ActiveSupport # Error generated by +delegate+ when a method is called on +nil+ and +allow_nil+ # option is not used. class DelegationError < NoMethodError class << self def nil_target(method_name, target) # :nodoc: new("#{method_name} del...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/cache.rb
activesupport/lib/active_support/cache.rb
# frozen_string_literal: true require "zlib" require "active_support/core_ext/array/extract_options" require "active_support/core_ext/enumerable" require "active_support/core_ext/module/attribute_accessors" require "active_support/core_ext/numeric/bytes" require "active_support/core_ext/object/to_param" require "activ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
true
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/execution_context.rb
activesupport/lib/active_support/execution_context.rb
# frozen_string_literal: true module ActiveSupport module ExecutionContext # :nodoc: class Record attr_reader :store, :current_attributes_instances def initialize @store = {} @current_attributes_instances = {} @stack = [] end def push @stack << @store << ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/reloader.rb
activesupport/lib/active_support/reloader.rb
# frozen_string_literal: true require "active_support/execution_wrapper" require "active_support/executor" module ActiveSupport # = Active Support \Reloader # # This class defines several callbacks: # # to_prepare -- Run once at application startup, and also from # +to_run+. # # to_run -- Run be...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/string_inquirer.rb
activesupport/lib/active_support/string_inquirer.rb
# frozen_string_literal: true module ActiveSupport # = \String Inquirer # # Wrapping a string in this class gives you a prettier way to test # for equality. The value returned by <tt>Rails.env</tt> is wrapped # in a StringInquirer object, so instead of calling this: # # Rails.env == 'production' # ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/continuous_integration.rb
activesupport/lib/active_support/continuous_integration.rb
# frozen_string_literal: true module ActiveSupport # Provides a DSL for declaring a continuous integration workflow that can be run either locally or in the cloud. # Each step is timed, reports success/error, and is aggregated into a collective report that reports total runtime, # as well as whether the entire r...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/tagged_logging.rb
activesupport/lib/active_support/tagged_logging.rb
# frozen_string_literal: true require "active_support/core_ext/module/delegation" require "active_support/core_ext/object/blank" require "active_support/logger" module ActiveSupport # = Active Support Tagged Logging # # Wraps any standard Logger object to provide tagging capabilities. # # May be called with...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/all.rb
activesupport/lib/active_support/all.rb
# frozen_string_literal: true require "active_support" require "active_support/time" require "active_support/core_ext"
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/log_subscriber/test_helper.rb
activesupport/lib/active_support/log_subscriber/test_helper.rb
# frozen_string_literal: true require "active_support/log_subscriber" require "active_support/logger" require "active_support/notifications" module ActiveSupport class LogSubscriber # Provides some helpers to deal with testing log subscribers by setting up # notifications. Take for instance Active Record su...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/current_attributes/test_helper.rb
activesupport/lib/active_support/current_attributes/test_helper.rb
# frozen_string_literal: true module ActiveSupport::CurrentAttributes::TestHelper # :nodoc: def before_setup ActiveSupport::CurrentAttributes.clear_all super end def after_teardown super ActiveSupport::CurrentAttributes.clear_all end end
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/multibyte/chars.rb
activesupport/lib/active_support/multibyte/chars.rb
# frozen_string_literal: true require "active_support/json" require "active_support/core_ext/string/access" require "active_support/core_ext/string/behavior" require "active_support/core_ext/module/delegation" module ActiveSupport # :nodoc: module Multibyte # :nodoc: # = Active Support \Multibyte \Chars # ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/multibyte/unicode.rb
activesupport/lib/active_support/multibyte/unicode.rb
# frozen_string_literal: true module ActiveSupport module Multibyte module Unicode extend self # The Unicode version that is supported by the implementation UNICODE_VERSION = RbConfig::CONFIG["UNICODE_VERSION"] # Decompose composed characters to the decomposed form. def decompose(...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/cache/entry.rb
activesupport/lib/active_support/cache/entry.rb
# frozen_string_literal: true require "zlib" module ActiveSupport module Cache # This class is used to represent cache entries. Cache entries have a value, an optional # expiration time, and an optional version. The expiration time is used to support the :race_condition_ttl option # on the cache. The ve...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/cache/null_store.rb
activesupport/lib/active_support/cache/null_store.rb
# frozen_string_literal: true module ActiveSupport module Cache # = Null \Cache \Store # # A cache store implementation which doesn't actually store anything. Useful in # development and test environments where you don't want caching turned on but # need to go through the caching interface. #...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/cache/mem_cache_store.rb
activesupport/lib/active_support/cache/mem_cache_store.rb
# frozen_string_literal: true begin require "dalli" rescue LoadError => e warn "You don't have dalli installed in your application. Please add it to your Gemfile and run bundle install" raise e end require "connection_pool" require "delegate" require "active_support/core_ext/enumerable" require "active_support/...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/cache/serializer_with_fallback.rb
activesupport/lib/active_support/cache/serializer_with_fallback.rb
# frozen_string_literal: true require "zlib" require "active_support/core_ext/kernel/reporting" module ActiveSupport module Cache module SerializerWithFallback # :nodoc: def self.[](format) if format.to_s.include?("message_pack") && !defined?(ActiveSupport::MessagePack) require "active_s...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/cache/redis_cache_store.rb
activesupport/lib/active_support/cache/redis_cache_store.rb
# frozen_string_literal: true begin gem "redis", ">= 4.0.1" require "redis" require "redis/distributed" rescue LoadError warn "The Redis cache store requires the redis gem, version 4.0.1 or later. Please add it to your Gemfile: `gem \"redis\", \">= 4.0.1\"`" raise end require "connection_pool" require "acti...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/cache/coder.rb
activesupport/lib/active_support/cache/coder.rb
# frozen_string_literal: true require_relative "entry" module ActiveSupport module Cache class Coder # :nodoc: def initialize(serializer, compressor, legacy_serializer: false) @serializer = serializer @compressor = compressor @legacy_serializer = legacy_serializer end ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false
rails/rails
https://github.com/rails/rails/blob/ba0d6f09e991d0621cc30f19c9d189cd21dbf76e/activesupport/lib/active_support/cache/file_store.rb
activesupport/lib/active_support/cache/file_store.rb
# frozen_string_literal: true require "active_support/core_ext/file/atomic" require "active_support/core_ext/string/conversions" require "uri/common" module ActiveSupport module Cache # = \File \Cache \Store # # A cache store implementation which stores everything on the filesystem. class FileStore ...
ruby
MIT
ba0d6f09e991d0621cc30f19c9d189cd21dbf76e
2026-01-04T15:37:27.222351Z
false