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
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/builder.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/builder.rb
# frozen_string_literal: true begin require "builder" rescue LoadError => e $stderr.puts "You don't have builder installed in your application. Please add it to your Gemfile and run bundle install" raise e end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/executor.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/executor.rb
# frozen_string_literal: true require "active_support/execution_wrapper" module ActiveSupport class Executor < ExecutionWrapper end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/gem_version.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/gem_version.rb
# frozen_string_literal: true module ActiveSupport # Returns the version of the currently loaded Active Support as a <tt>Gem::Version</tt>. def self.gem_version Gem::Version.new VERSION::STRING end module VERSION MAJOR = 5 MINOR = 2 TINY = 2 PRE = nil STRING = [MAJOR, MINOR, TINY, ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/configurable.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/configurable.rb
# frozen_string_literal: true require "active_support/concern" require "active_support/ordered_options" require "active_support/core_ext/array/extract_options" require "active_support/core_ext/regexp" module ActiveSupport # Configurable provides a <tt>config</tt> method to store and retrieve # configuration optio...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/logger_silence.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/logger_silence.rb
# frozen_string_literal: true require "active_support/concern" require "active_support/core_ext/module/attribute_accessors" require "concurrent" module LoggerSilence extend ActiveSupport::Concern included do cattr_accessor :silencer, default: true end # Silences the logger for the duration of the block....
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/multibyte.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/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
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/reloader.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/reloader.rb
# frozen_string_literal: true require "active_support/execution_wrapper" module ActiveSupport #-- # This class defines several callbacks: # # to_prepare -- Run once at application startup, and also from # +to_run+. # # to_run -- Run before a work run that is reloading. If # +reload_classes_onl...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/string_inquirer.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/string_inquirer.rb
# frozen_string_literal: true module ActiveSupport # 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' # # you can call this: # ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/tagged_logging.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/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 "logger" require "active_support/logger" module ActiveSupport # Wraps any standard Logger object to provide tagging capabilities. # # logger = ActiveSupport::TaggedLogging.n...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/inflector/methods.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/inflector/methods.rb
# frozen_string_literal: true require "active_support/inflections" require "active_support/core_ext/regexp" module ActiveSupport # The Inflector transforms words from singular to plural, class names to table # names, modularized class names to ones without, and class names to foreign # keys. The default inflect...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/inflector/transliterate.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/inflector/transliterate.rb
# frozen_string_literal: true require "active_support/core_ext/string/multibyte" require "active_support/i18n" module ActiveSupport module Inflector # Replaces non-ASCII characters with an ASCII approximation, or if none # exists, a replacement character which defaults to "?". # # transliterate('...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/inflector/inflections.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/inflector/inflections.rb
# frozen_string_literal: true require "concurrent/map" require "active_support/core_ext/array/prepend_and_append" require "active_support/core_ext/regexp" require "active_support/i18n" require "active_support/deprecation" module ActiveSupport module Inflector extend self # A singleton instance of this clas...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/big_decimal.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/big_decimal.rb
# frozen_string_literal: true require "active_support/core_ext/big_decimal/conversions"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range.rb
# frozen_string_literal: true require "active_support/core_ext/range/conversions" require "active_support/core_ext/range/include_range" require "active_support/core_ext/range/include_time_with_zone" require "active_support/core_ext/range/overlaps" require "active_support/core_ext/range/each"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/load_error.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/load_error.rb
# frozen_string_literal: true class LoadError # Returns true if the given path name (except perhaps for the ".rb" # extension) is the missing file which caused the exception to be raised. def is_missing?(location) location.sub(/\.rb$/, "".freeze) == path.sub(/\.rb$/, "".freeze) end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/securerandom.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/securerandom.rb
# frozen_string_literal: true require "securerandom" module SecureRandom BASE58_ALPHABET = ("0".."9").to_a + ("A".."Z").to_a + ("a".."z").to_a - ["0", "O", "I", "l"] # SecureRandom.base58 generates a random base58 string. # # The argument _n_ specifies the length, of the random string to be generated. # #...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/name_error.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/name_error.rb
# frozen_string_literal: true class NameError # Extract the name of the missing constant from the exception message. # # begin # HelloWorld # rescue NameError => e # e.missing_name # end # # => "HelloWorld" def missing_name # Since ruby v2.3.0 `did_you_mean` gem is loaded by defau...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/benchmark.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/benchmark.rb
# frozen_string_literal: true require "benchmark" class << Benchmark # Benchmark realtime in milliseconds. # # Benchmark.realtime { User.all } # # => 8.0e-05 # # Benchmark.ms { User.all } # # => 0.074 def ms 1000 * realtime { yield } end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/array.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/array.rb
# frozen_string_literal: true require "active_support/core_ext/array/wrap" require "active_support/core_ext/array/access" require "active_support/core_ext/array/conversions" require "active_support/core_ext/array/extract_options" require "active_support/core_ext/array/grouping" require "active_support/core_ext/array/p...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time.rb
# frozen_string_literal: true require "active_support/core_ext/time/acts_like" require "active_support/core_ext/time/calculations" require "active_support/core_ext/time/compatibility" require "active_support/core_ext/time/conversions" require "active_support/core_ext/time/zones"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/file.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/file.rb
# frozen_string_literal: true require "active_support/core_ext/file/atomic"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel.rb
# frozen_string_literal: true require "active_support/core_ext/kernel/agnostics" require "active_support/core_ext/kernel/concern" require "active_support/core_ext/kernel/reporting" require "active_support/core_ext/kernel/singleton_class"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/uri.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/uri.rb
# frozen_string_literal: true require "uri" if RUBY_VERSION < "2.6.0" require "active_support/core_ext/module/redefine_method" URI::Parser.class_eval do silence_redefinition_of_method :unescape def unescape(str, escaped = /%[a-fA-F\d]{2}/) # TODO: Are we actually sure that ASCII == UTF-8? # YK:...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/class.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/class.rb
# frozen_string_literal: true require "active_support/core_ext/class/attribute" require "active_support/core_ext/class/subclasses"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string.rb
# frozen_string_literal: true require "active_support/core_ext/string/conversions" require "active_support/core_ext/string/filters" require "active_support/core_ext/string/multibyte" require "active_support/core_ext/string/starts_ends_with" require "active_support/core_ext/string/inflections" require "active_support/c...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object.rb
# frozen_string_literal: true require "active_support/core_ext/object/acts_like" require "active_support/core_ext/object/blank" require "active_support/core_ext/object/duplicable" require "active_support/core_ext/object/deep_dup" require "active_support/core_ext/object/try" require "active_support/core_ext/object/incl...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/enumerable.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/enumerable.rb
# frozen_string_literal: true module Enumerable # Enumerable#sum was added in Ruby 2.4, but it only works with Numeric elements # when we omit an identity. # # We tried shimming it to attempt the fast native method, rescue TypeError, # and fall back to the compatible implementation, but that's much slower th...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/integer.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/integer.rb
# frozen_string_literal: true require "active_support/core_ext/integer/multiple" require "active_support/core_ext/integer/inflections" require "active_support/core_ext/integer/time"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/regexp.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/regexp.rb
# frozen_string_literal: true class Regexp #:nodoc: def multiline? options & MULTILINE == MULTILINE end def match?(string, pos = 0) !!match(string, pos) end unless //.respond_to?(:match?) end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/module.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/module.rb
# frozen_string_literal: true require "active_support/core_ext/module/aliasing" require "active_support/core_ext/module/introspection" require "active_support/core_ext/module/anonymous" require "active_support/core_ext/module/reachable" require "active_support/core_ext/module/attribute_accessors" require "active_suppo...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/marshal.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/marshal.rb
# frozen_string_literal: true module ActiveSupport module MarshalWithAutoloading # :nodoc: def load(source, proc = nil) super(source, proc) rescue ArgumentError, NameError => exc if exc.message.match(%r|undefined class/module (.+?)(?:::)?\z|) # try loading the class/module loaded ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date_time.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date_time.rb
# frozen_string_literal: true require "active_support/core_ext/date_time/acts_like" require "active_support/core_ext/date_time/blank" require "active_support/core_ext/date_time/calculations" require "active_support/core_ext/date_time/compatibility" require "active_support/core_ext/date_time/conversions"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash.rb
# frozen_string_literal: true require "active_support/core_ext/hash/compact" require "active_support/core_ext/hash/conversions" require "active_support/core_ext/hash/deep_merge" require "active_support/core_ext/hash/except" require "active_support/core_ext/hash/indifferent_access" require "active_support/core_ext/hash...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date.rb
# frozen_string_literal: true require "active_support/core_ext/date/acts_like" require "active_support/core_ext/date/blank" require "active_support/core_ext/date/calculations" require "active_support/core_ext/date/conversions" require "active_support/core_ext/date/zones"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/numeric.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/numeric.rb
# frozen_string_literal: true require "active_support/core_ext/numeric/bytes" require "active_support/core_ext/numeric/time" require "active_support/core_ext/numeric/inquiry" require "active_support/core_ext/numeric/conversions"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/inquiry.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/inquiry.rb
# frozen_string_literal: true require "active_support/string_inquirer" class String # Wraps the current string in the <tt>ActiveSupport::StringInquirer</tt> class, # which gives you a prettier way to test for equality. # # env = 'production'.inquiry # env.production? # => true # env.development? # ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/indent.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/indent.rb
# frozen_string_literal: true class String # Same as +indent+, except it indents the receiver in-place. # # Returns the indented string, or +nil+ if there was nothing to indent. def indent!(amount, indent_string = nil, indent_empty_lines = false) indent_string = indent_string || self[/^[ \t]/] || " " r...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/output_safety.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/output_safety.rb
# frozen_string_literal: true require "erb" require "active_support/core_ext/kernel/singleton_class" require "active_support/core_ext/module/redefine_method" require "active_support/multibyte/unicode" class ERB module Util HTML_ESCAPE = { "&" => "&amp;", ">" => "&gt;", "<" => "&lt;", '"' => "&quot;", "'" => ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/conversions.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/conversions.rb
# frozen_string_literal: true require "date" require "active_support/core_ext/time/calculations" class String # Converts a string to a Time value. # The +form+ can be either :utc or :local (default :local). # # The time is parsed using Time.parse method. # If +form+ is :local, then the time is in the system...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/strip.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/strip.rb
# frozen_string_literal: true class String # Strips indentation in heredocs. # # For example in # # if options[:usage] # puts <<-USAGE.strip_heredoc # This command does such and such. # # Supported options are: # -h This message # ... # USAGE # ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/access.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/access.rb
# frozen_string_literal: true class String # If you pass a single integer, returns a substring of one character at that # position. The first character of the string is at position 0, the next at # position 1, and so on. If a range is supplied, a substring containing # characters at offsets given by the range ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/starts_ends_with.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/starts_ends_with.rb
# frozen_string_literal: true class String alias_method :starts_with?, :start_with? alias_method :ends_with?, :end_with? end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/inflections.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/inflections.rb
# frozen_string_literal: true require "active_support/inflector/methods" require "active_support/inflector/transliterate" # String inflections define new methods on the String class to transform names for different purposes. # For instance, you can figure out the name of a table from the name of a class. # # 'Scale...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/filters.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/filters.rb
# frozen_string_literal: true class String # Returns the string, first removing all whitespace on both ends of # the string, and then changing remaining consecutive whitespace # groups into one space each. # # Note that it handles both ASCII and Unicode whitespace. # # %{ Multi-line # string }.s...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/exclude.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/exclude.rb
# frozen_string_literal: true class String # The inverse of <tt>String#include?</tt>. Returns true if the string # does not include the other string. # # "hello".exclude? "lo" # => false # "hello".exclude? "ol" # => true # "hello".exclude? ?h # => false def exclude?(string) !include?(string) ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/behavior.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/behavior.rb
# frozen_string_literal: true class String # Enables more predictable duck-typing on String-like classes. See <tt>Object#acts_like?</tt>. def acts_like_string? true end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/multibyte.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/multibyte.rb
# frozen_string_literal: true require "active_support/multibyte" class String # == Multibyte proxy # # +mb_chars+ is a multibyte safe proxy for string methods. # # It creates and returns an instance of the ActiveSupport::Multibyte::Chars class which # encapsulates the original string. A Unicode safe versi...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/zones.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/string/zones.rb
# frozen_string_literal: true require "active_support/core_ext/string/conversions" require "active_support/core_ext/time/zones" class String # Converts String to a TimeWithZone in the current zone if Time.zone or Time.zone_default # is set, otherwise converts String to a Time via String#to_time def in_time_zone...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/file/atomic.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/file/atomic.rb
# frozen_string_literal: true require "fileutils" class File # Write to a file atomically. Useful for situations where you don't # want other processes or threads to see half-written files. # # File.atomic_write('important.file') do |file| # file.write('hello') # end # # This method needs to c...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/slice.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/slice.rb
# frozen_string_literal: true class Hash # Slices a hash to include only the given keys. Returns a hash containing # the given keys. # # { a: 1, b: 2, c: 3, d: 4 }.slice(:a, :b) # # => {:a=>1, :b=>2} # # This is useful for limiting an options hash to valid keys before # passing to a method: # #...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/reverse_merge.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/reverse_merge.rb
# frozen_string_literal: true class Hash # Merges the caller into +other_hash+. For example, # # options = options.reverse_merge(size: 25, velocity: 10) # # is equivalent to # # options = { size: 25, velocity: 10 }.merge(options) # # This is particularly useful for initializing an options hash ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/keys.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/keys.rb
# frozen_string_literal: true class Hash # Returns a new hash with all keys converted using the +block+ operation. # # hash = { name: 'Rob', age: '28' } # # hash.transform_keys { |key| key.to_s.upcase } # => {"NAME"=>"Rob", "AGE"=>"28"} # # If you do not provide a +block+, it will return an Enumerator ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/conversions.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/conversions.rb
# frozen_string_literal: true require "active_support/xml_mini" require "active_support/time" require "active_support/core_ext/object/blank" require "active_support/core_ext/object/to_param" require "active_support/core_ext/object/to_query" require "active_support/core_ext/array/wrap" require "active_support/core_ext/...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/indifferent_access.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/indifferent_access.rb
# frozen_string_literal: true require "active_support/hash_with_indifferent_access" class Hash # Returns an <tt>ActiveSupport::HashWithIndifferentAccess</tt> out of its receiver: # # { a: 1 }.with_indifferent_access['a'] # => 1 def with_indifferent_access ActiveSupport::HashWithIndifferentAccess.new(sel...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/deep_merge.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/deep_merge.rb
# frozen_string_literal: true class Hash # Returns a new hash with +self+ and +other_hash+ merged recursively. # # h1 = { a: true, b: { c: [1, 2, 3] } } # h2 = { a: false, b: { x: [3, 4, 5] } } # # h1.deep_merge(h2) # => { a: false, b: { c: [1, 2, 3], x: [3, 4, 5] } } # # Like with Hash#merge in ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/except.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/except.rb
# frozen_string_literal: true class Hash # Returns a hash that includes everything except given keys. # hash = { a: true, b: false, c: nil } # hash.except(:c) # => { a: true, b: false } # hash.except(:a, :b) # => { c: nil } # hash # => { a: true, b: false, c: nil } # # This is ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/transform_values.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/transform_values.rb
# frozen_string_literal: true class Hash # Returns a new hash with the results of running +block+ once for every value. # The keys are unchanged. # # { a: 1, b: 2, c: 3 }.transform_values { |x| x * 2 } # => { a: 2, b: 4, c: 6 } # # If you do not provide a +block+, it will return an Enumerator # for cha...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/compact.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/compact.rb
# frozen_string_literal: true class Hash unless Hash.instance_methods(false).include?(:compact) # Returns a hash with non +nil+ values. # # hash = { a: true, b: false, c: nil } # hash.compact # => { a: true, b: false } # hash # => { a: true, b: false, c: nil } # ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date/blank.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date/blank.rb
# frozen_string_literal: true require "date" class Date #:nodoc: # No Date is blank: # # Date.today.blank? # => false # # @return [false] def blank? false end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date/conversions.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date/conversions.rb
# frozen_string_literal: true require "date" require "active_support/inflector/methods" require "active_support/core_ext/date/zones" require "active_support/core_ext/module/redefine_method" class Date DATE_FORMATS = { short: "%d %b", long: "%B %d, %Y", db: "%Y-%m-%d", number: "%Y%m%d", long_ordi...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date/acts_like.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date/acts_like.rb
# frozen_string_literal: true require "active_support/core_ext/object/acts_like" class Date # Duck-types as a Date-like class. See Object#acts_like?. def acts_like_date? true end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date/calculations.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date/calculations.rb
# frozen_string_literal: true require "date" require "active_support/duration" require "active_support/core_ext/object/acts_like" require "active_support/core_ext/date/zones" require "active_support/core_ext/time/zones" require "active_support/core_ext/date_and_time/calculations" class Date include DateAndTime::Cal...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date/zones.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date/zones.rb
# frozen_string_literal: true require "date" require "active_support/core_ext/date_and_time/zones" class Date include DateAndTime::Zones end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/integer/time.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/integer/time.rb
# frozen_string_literal: true require "active_support/duration" require "active_support/core_ext/numeric/time" class Integer # Returns a Duration instance matching the number of months provided. # # 2.months # => 2 months def months ActiveSupport::Duration.months(self) end alias :month :months # ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/integer/inflections.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/integer/inflections.rb
# frozen_string_literal: true require "active_support/inflector" class Integer # Ordinalize turns a number into an ordinal string used to denote the # position in an ordered sequence such as 1st, 2nd, 3rd, 4th. # # 1.ordinalize # => "1st" # 2.ordinalize # => "2nd" # 1002.ordinalize # => "1002n...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/integer/multiple.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/integer/multiple.rb
# frozen_string_literal: true class Integer # Check whether the integer is evenly divisible by the argument. # # 0.multiple_of?(0) # => true # 6.multiple_of?(5) # => false # 10.multiple_of?(2) # => true def multiple_of?(number) number != 0 ? self % number == 0 : zero? end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/singleton_class.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/singleton_class.rb
# frozen_string_literal: true module Kernel # class_eval on an object acts like singleton_class.class_eval. def class_eval(*args, &block) singleton_class.class_eval(*args, &block) end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/reporting.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/reporting.rb
# frozen_string_literal: true module Kernel module_function # Sets $VERBOSE to +nil+ for the duration of the block and back to its original # value afterwards. # # silence_warnings do # value = noisy_call # no warning voiced # end # # noisy_call # warning voiced def silence_warnings ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/agnostics.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/agnostics.rb
# frozen_string_literal: true class Object # Makes backticks behave (somewhat more) similarly on all platforms. # On win32 `nonexistent_command` raises Errno::ENOENT; on Unix, the # spawned shell prints a message to stderr and sets $?. We emulate # Unix on the former but not the latter. def `(command) #:nodo...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/concern.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/concern.rb
# frozen_string_literal: true require "active_support/core_ext/module/concerning" module Kernel module_function # A shortcut to define a toplevel concern, not within a module. # # See Module::Concerning for more. def concern(topic, &module_definition) Object.concern topic, &module_definition end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range/conversions.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range/conversions.rb
# frozen_string_literal: true module ActiveSupport::RangeWithFormat RANGE_FORMATS = { db: -> (start, stop) do case start when String then "BETWEEN '#{start}' AND '#{stop}'" else "BETWEEN '#{start.to_s(:db)}' AND '#{stop.to_s(:db)}'" end end } # Convert range to a formatte...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range/include_time_with_zone.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range/include_time_with_zone.rb
# frozen_string_literal: true require "active_support/time_with_zone" module ActiveSupport module IncludeTimeWithZone #:nodoc: # Extends the default Range#include? to support ActiveSupport::TimeWithZone. # # (1.hour.ago..1.hour.from_now).include?(Time.current) # => true # def include?(value) ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range/include_range.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range/include_range.rb
# frozen_string_literal: true module ActiveSupport module IncludeWithRange #:nodoc: # Extends the default Range#include? to support range comparisons. # (1..5).include?(1..5) # => true # (1..5).include?(2..3) # => true # (1..5).include?(2..6) # => false # # The native Range#include? behavi...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range/overlaps.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range/overlaps.rb
# frozen_string_literal: true class Range # Compare two ranges and see if they overlap each other # (1..5).overlaps?(4..6) # => true # (1..5).overlaps?(7..9) # => false def overlaps?(other) cover?(other.first) || other.cover?(first) end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range/each.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/range/each.rb
# frozen_string_literal: true require "active_support/time_with_zone" module ActiveSupport module EachTimeWithZone #:nodoc: def each(&block) ensure_iteration_allowed super end def step(n = 1, &block) ensure_iteration_allowed super end private def ensure_iteration...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time/conversions.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time/conversions.rb
# frozen_string_literal: true require "active_support/inflector/methods" require "active_support/values/time_zone" class Time DATE_FORMATS = { db: "%Y-%m-%d %H:%M:%S", number: "%Y%m%d%H%M%S", nsec: "%Y%m%d%H%M%S%9N", usec: "%Y%m%d%H%M%S%6N", time: "%H:%M", short: "%d %b %H:%M", long: "%B...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time/acts_like.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time/acts_like.rb
# frozen_string_literal: true require "active_support/core_ext/object/acts_like" class Time # Duck-types as a Time-like class. See Object#acts_like?. def acts_like_time? true end end
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time/compatibility.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time/compatibility.rb
# frozen_string_literal: true require "active_support/core_ext/date_and_time/compatibility" require "active_support/core_ext/module/redefine_method" class Time include DateAndTime::Compatibility silence_redefinition_of_method :to_time # Either return +self+ or the time in the local system timezone depending ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time/calculations.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time/calculations.rb
# frozen_string_literal: true require "active_support/duration" require "active_support/core_ext/time/conversions" require "active_support/time_with_zone" require "active_support/core_ext/time/zones" require "active_support/core_ext/date_and_time/calculations" require "active_support/core_ext/date/calculations" class...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time/zones.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/time/zones.rb
# frozen_string_literal: true require "active_support/time_with_zone" require "active_support/core_ext/time/acts_like" require "active_support/core_ext/date_and_time/zones" class Time include DateAndTime::Zones class << self attr_accessor :zone_default # Returns the TimeZone for the current request, if t...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/instance_variables.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/instance_variables.rb
# frozen_string_literal: true class Object # Returns a hash with string keys that maps instance variable names without "@" to their # corresponding values. # # class C # def initialize(x, y) # @x, @y = x, y # end # end # # C.new(0, 1).instance_values # => {"x" => 0, "y" => 1} ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/duplicable.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/duplicable.rb
# frozen_string_literal: true #-- # Most objects are cloneable, but not all. For example you can't dup methods: # # method(:puts).dup # => TypeError: allocator undefined for Method # # Classes may signal their instances are not duplicable removing +dup+/+clone+ # or raising exceptions from them. So, to dup an arbitr...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/to_param.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/to_param.rb
# frozen_string_literal: true require "active_support/core_ext/object/to_query"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/blank.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/blank.rb
# frozen_string_literal: true require "active_support/core_ext/regexp" require "concurrent/map" class Object # An object is blank if it's false, empty, or a whitespace string. # For example, +false+, '', ' ', +nil+, [], and {} are all blank. # # This simplifies # # !address || address.empty? # # t...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/deep_dup.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/deep_dup.rb
# frozen_string_literal: true require "active_support/core_ext/object/duplicable" class Object # Returns a deep copy of object if it's duplicable. If it's # not duplicable, returns +self+. # # object = Object.new # dup = object.deep_dup # dup.instance_variable_set(:@a, 1) # # object.instanc...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/conversions.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/conversions.rb
# frozen_string_literal: true require "active_support/core_ext/object/to_param" require "active_support/core_ext/object/to_query" require "active_support/core_ext/array/conversions" require "active_support/core_ext/hash/conversions"
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb
# frozen_string_literal: true # Hack to load json gem first so we can overwrite its to_json. require "json" require "bigdecimal" require "uri/generic" require "pathname" require "active_support/core_ext/big_decimal/conversions" # for #to_s require "active_support/core_ext/hash/except" require "active_support/core_ext/...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/to_query.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/to_query.rb
# frozen_string_literal: true require "cgi" class Object # Alias of <tt>to_s</tt>. def to_param to_s end # Converts an object into a string suitable for use as a URL query string, # using the given <tt>key</tt> as the param name. def to_query(key) "#{CGI.escape(key.to_param)}=#{CGI.escape(to_para...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/try.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/try.rb
# frozen_string_literal: true require "delegate" module ActiveSupport module Tryable #:nodoc: def try(*a, &b) try!(*a, &b) if a.empty? || respond_to?(a.first) end def try!(*a, &b) if a.empty? && block_given? if b.arity == 0 instance_eval(&b) else yield se...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/acts_like.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/acts_like.rb
# frozen_string_literal: true class Object # A duck-type assistant method. For example, Active Support extends Date # to define an <tt>acts_like_date?</tt> method, and extends Time to define # <tt>acts_like_time?</tt>. As a result, we can do <tt>x.acts_like?(:time)</tt> and # <tt>x.acts_like?(:date)</tt> to do...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/inclusion.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/inclusion.rb
# frozen_string_literal: true class Object # Returns true if this object is included in the argument. Argument must be # any object which responds to +#include?+. Usage: # # characters = ["Konata", "Kagami", "Tsukasa"] # "Konata".in?(characters) # => true # # This will throw an +ArgumentError+ if the...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/with_options.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/with_options.rb
# frozen_string_literal: true require "active_support/option_merger" class Object # An elegant way to factor duplication out of options passed to a series of # method calls. Each method called in the block, with the block variable as # the receiver, will have its options merged with the default +options+ hash ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date_and_time/compatibility.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date_and_time/compatibility.rb
# frozen_string_literal: true require "active_support/core_ext/module/attribute_accessors" module DateAndTime module Compatibility # If true, +to_time+ preserves the timezone offset of receiver. # # NOTE: With Ruby 2.4+ the default for +to_time+ changed from # converting to the local system time, to...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date_and_time/calculations.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date_and_time/calculations.rb
# frozen_string_literal: true require "active_support/core_ext/object/try" module DateAndTime module Calculations DAYS_INTO_WEEK = { monday: 0, tuesday: 1, wednesday: 2, thursday: 3, friday: 4, saturday: 5, sunday: 6 } WEEKEND_DAYS = [ 6, 0 ] # Returns a ne...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date_and_time/zones.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/date_and_time/zones.rb
# frozen_string_literal: true module DateAndTime module Zones # Returns the simultaneous time in <tt>Time.zone</tt> if a zone is given or # if Time.zone_default is set. Otherwise, it returns the current time. # # Time.zone = 'Hawaii' # => 'Hawaii' # Time.utc(2000).in_time_zone # => Fri...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/digest/uuid.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/digest/uuid.rb
# frozen_string_literal: true require "securerandom" module Digest module UUID DNS_NAMESPACE = "k\xA7\xB8\x10\x9D\xAD\x11\xD1\x80\xB4\x00\xC0O\xD40\xC8" #:nodoc: URL_NAMESPACE = "k\xA7\xB8\x11\x9D\xAD\x11\xD1\x80\xB4\x00\xC0O\xD40\xC8" #:nodoc: OID_NAMESPACE = "k\xA7\xB8\x12\x9D\xAD\x11\xD1\x80\xB4\x...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/array/inquiry.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/array/inquiry.rb
# frozen_string_literal: true require "active_support/array_inquirer" class Array # Wraps the array in an +ArrayInquirer+ object, which gives a friendlier way # to check its string-like contents. # # pets = [:cat, :dog].inquiry # # pets.cat? # => true # pets.ferret? # => false # # pets....
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/array/conversions.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/array/conversions.rb
# frozen_string_literal: true require "active_support/xml_mini" require "active_support/core_ext/hash/keys" require "active_support/core_ext/string/inflections" require "active_support/core_ext/object/to_param" require "active_support/core_ext/object/to_query" class Array # Converts the array to a comma-separated s...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/array/extract_options.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/array/extract_options.rb
# frozen_string_literal: true class Hash # By default, only instances of Hash itself are extractable. # Subclasses of Hash may implement this method and return # true to declare themselves as extractable. If a Hash # is extractable, Array#extract_options! pops it from # the Array when it is the last element ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false
Linuxbrew/brew
https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/array/grouping.rb
Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/activesupport-5.2.2/lib/active_support/core_ext/array/grouping.rb
# frozen_string_literal: true class Array # Splits or iterates over the array in groups of size +number+, # padding any remaining slots with +fill_with+ unless it is +false+. # # %w(1 2 3 4 5 6 7 8 9 10).in_groups_of(3) {|group| p group} # ["1", "2", "3"] # ["4", "5", "6"] # ["7", "8", "9"] # ...
ruby
BSD-2-Clause
93389fde63974f096156344e281610acec44130c
2026-01-04T15:53:38.399858Z
false