Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump activesupport from 6.1.4.7 to 6.1.5 in /Library/Homebrew #12985

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Library/Homebrew/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.4.7)
activesupport (6.1.5)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ module ActiveSupport::ForkTracker::CoreExtPrivate
include ::ActiveSupport::ForkTracker::CoreExt
end

module ActiveSupport::VERSION
PRE = ::T.let(nil, ::T.untyped)
end

class Addrinfo
def connect_internal(local_addrinfo, timeout=T.unsafe(nil)); end
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/vendor/bundle/bundler/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/minitest-5.15.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tzinfo-2.0.4/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/zeitwerk-2.5.4/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/activesupport-6.1.4.7/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/activesupport-6.1.5/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/public_suffix-4.0.6/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/addressable-2.8.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ast-2.4.2/lib"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require "securerandom"
require "digest"

module Digest
module UUID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ def change(options)
::Time.new(new_year, new_month, new_day, new_hour, new_min, new_sec, new_offset)
elsif utc?
::Time.utc(new_year, new_month, new_day, new_hour, new_min, new_sec)
elsif zone&.respond_to?(:utc_to_local)
::Time.new(new_year, new_month, new_day, new_hour, new_min, new_sec, zone)
elsif zone
::Time.local(new_year, new_month, new_day, new_hour, new_min, new_sec)
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module URI
class << self
def parser
ActiveSupport::Deprecation.warn(<<-MSG.squish)
URI.parser is deprecated and will be removed in Rails 6.2.
URI.parser is deprecated and will be removed in Rails 7.0.
Use `URI::DEFAULT_PARSER` instead.
MSG
URI::DEFAULT_PARSER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Deprecation
# and the second is a library name.
#
# ActiveSupport::Deprecation.new('2.0', 'MyLibrary')
def initialize(deprecation_horizon = "6.2", gem_name = "Rails")
def initialize(deprecation_horizon = "7.0", gem_name = "Rails")
self.gem_name = gem_name
self.deprecation_horizon = deprecation_horizon
# By default, warnings are not silenced and debugging is off.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "digest"

module ActiveSupport
class Digest #:nodoc:
class <<self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,18 @@ def build(value)
end

parts = {}
remainder = value.round(9)
remainder_sign = value <=> 0
remainder = value.round(9).abs

PARTS.each do |part|
unless part == :seconds
part_in_seconds = PARTS_IN_SECONDS[part]
parts[part] = remainder.div(part_in_seconds)
parts[part] = remainder.div(part_in_seconds) * remainder_sign
remainder %= part_in_seconds
end
end unless value == 0

parts[:seconds] = remainder
parts[:seconds] = remainder * remainder_sign

new(value, parts)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def self.gem_version
module VERSION
MAJOR = 6
MINOR = 1
TINY = 4
PRE = "7"
TINY = 5
PRE = nil

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ def method_missing(name, *args, &block)

send(name, *args, &block)
end
ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Railtie < Rails::Railtie # :nodoc:
if app.config.active_support.use_sha1_digests
ActiveSupport::Deprecation.warn(<<-MSG.squish)
config.active_support.use_sha1_digests is deprecated and will
be removed from Rails 6.2. Use
be removed from Rails 7.0. Use
config.active_support.hash_digest_class = ::Digest::SHA1 instead.
MSG
ActiveSupport::Digest.hash_digest_class = ::Digest::SHA1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def self.extended(base)
end

def self.new(logger)
logger = logger.dup
logger = logger.clone

if logger.formatter
logger.formatter = logger.formatter.dup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ def at(*args)
# If the string is invalid then an +ArgumentError+ will be raised unlike +parse+
# which usually returns +nil+ when given an invalid date string.
def iso8601(str)
raise ArgumentError, "invalid date" if str.nil?

parts = Date._iso8601(str)

raise ArgumentError, "invalid date" if parts.empty?
Expand Down