packwerk 3.2.2 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/packwerk/application_validator.rb +2 -1
  3. data/lib/packwerk/graph.rb +15 -56
  4. data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +1 -2
  5. data/lib/packwerk/run_context.rb +5 -0
  6. data/lib/packwerk/validators/dependency_validator.rb +5 -4
  7. data/lib/packwerk/version.rb +1 -1
  8. data/sorbet/rbi/gems/{actionpack@7.0.3.1.rbi → actionpack@7.0.8.7.rbi} +1338 -1227
  9. data/sorbet/rbi/gems/{actionview@7.0.3.1.rbi → actionview@7.0.8.7.rbi} +548 -503
  10. data/sorbet/rbi/gems/{activesupport@7.0.3.1.rbi → activesupport@7.0.8.7.rbi} +714 -635
  11. data/sorbet/rbi/gems/{better_html@2.0.1.rbi → better_html@2.1.1.rbi} +21 -21
  12. data/sorbet/rbi/gems/{concurrent-ruby@1.1.10.rbi → concurrent-ruby@1.3.5.rbi} +1390 -1366
  13. data/sorbet/rbi/gems/{constant_resolver@0.2.0.rbi → constant_resolver@0.3.0.rbi} +22 -13
  14. data/sorbet/rbi/gems/{erubi@1.11.0.rbi → erubi@1.13.1.rbi} +28 -17
  15. data/sorbet/rbi/gems/{i18n@1.12.0.rbi → i18n@1.14.7.rbi} +234 -172
  16. data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.7.2.rbi} +94 -74
  17. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  18. data/sorbet/rbi/gems/{loofah@2.18.0.rbi → loofah@2.24.0.rbi} +470 -243
  19. data/sorbet/rbi/gems/{minitest@5.16.2.rbi → minitest@5.25.4.rbi} +577 -472
  20. data/sorbet/rbi/gems/{mocha@1.14.0.rbi → mocha@2.5.0.rbi} +468 -684
  21. data/sorbet/rbi/gems/{nokogiri@1.15.3.rbi → nokogiri@1.18.4.rbi} +1756 -869
  22. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.25.1.rbi} +26 -20
  23. data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.1.rbi} +36 -36
  24. data/sorbet/rbi/gems/{rack-test@2.0.2.rbi → rack-test@2.2.0.rbi} +87 -114
  25. data/sorbet/rbi/gems/{rack@2.2.4.rbi → rack@2.2.13.rbi} +243 -195
  26. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +754 -0
  27. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +764 -0
  28. data/sorbet/rbi/gems/{railties@7.0.3.1.rbi → railties@7.0.8.7.rbi} +146 -140
  29. data/sorbet/rbi/gems/{regexp_parser@2.5.0.rbi → regexp_parser@2.9.2.rbi} +947 -542
  30. data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.3.9.rbi} +452 -312
  31. data/sorbet/rbi/gems/{rubocop-ast@1.21.0.rbi → rubocop-ast@1.31.3.rbi} +717 -588
  32. data/sorbet/rbi/gems/{rubocop@1.34.1.rbi → rubocop@1.64.1.rbi} +10916 -4406
  33. data/sorbet/rbi/gems/{ruby-progressbar@1.11.0.rbi → ruby-progressbar@1.13.0.rbi} +359 -281
  34. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  35. data/sorbet/rbi/gems/{tzinfo@2.0.5.rbi → tzinfo@2.0.6.rbi} +144 -141
  36. data/sorbet/rbi/gems/{unicode-display_width@2.2.0.rbi → unicode-display_width@2.5.0.rbi} +24 -7
  37. metadata +36 -41
  38. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +0 -8
  39. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +0 -8
  40. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -455
  41. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +0 -542
  42. data/sorbet/rbi/gems/ruby-lsp@0.2.3.rbi +0 -11
  43. data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +0 -8
  44. /data/sorbet/rbi/gems/{builder@3.2.4.rbi → builder@3.3.0.rbi} +0 -0
  45. /data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.3.0.rbi} +0 -0
@@ -471,56 +471,56 @@ module ActiveSupport::Cache
471
471
  end
472
472
  end
473
473
 
474
- # source://activesupport//lib/active_support/cache.rb#828
474
+ # source://activesupport//lib/active_support/cache.rb#833
475
475
  module ActiveSupport::Cache::Coders
476
476
  class << self
477
- # source://activesupport//lib/active_support/cache.rb#834
477
+ # source://activesupport//lib/active_support/cache.rb#839
478
478
  def [](version); end
479
479
  end
480
480
  end
481
481
 
482
- # source://activesupport//lib/active_support/cache.rb#846
482
+ # source://activesupport//lib/active_support/cache.rb#851
483
483
  module ActiveSupport::Cache::Coders::Loader
484
484
  extend ::ActiveSupport::Cache::Coders::Loader
485
485
 
486
- # source://activesupport//lib/active_support/cache.rb#849
486
+ # source://activesupport//lib/active_support/cache.rb#854
487
487
  def load(payload); end
488
488
  end
489
489
 
490
490
  # The one set by Marshal.
491
491
  #
492
- # source://activesupport//lib/active_support/cache.rb#829
492
+ # source://activesupport//lib/active_support/cache.rb#834
493
493
  ActiveSupport::Cache::Coders::MARK_61 = T.let(T.unsafe(nil), String)
494
494
 
495
- # source://activesupport//lib/active_support/cache.rb#831
495
+ # source://activesupport//lib/active_support/cache.rb#836
496
496
  ActiveSupport::Cache::Coders::MARK_70_COMPRESSED = T.let(T.unsafe(nil), String)
497
497
 
498
- # source://activesupport//lib/active_support/cache.rb#830
498
+ # source://activesupport//lib/active_support/cache.rb#835
499
499
  ActiveSupport::Cache::Coders::MARK_70_UNCOMPRESSED = T.let(T.unsafe(nil), String)
500
500
 
501
- # source://activesupport//lib/active_support/cache.rb#869
501
+ # source://activesupport//lib/active_support/cache.rb#874
502
502
  module ActiveSupport::Cache::Coders::Rails61Coder
503
503
  include ::ActiveSupport::Cache::Coders::Loader
504
504
  extend ::ActiveSupport::Cache::Coders::Loader
505
505
  extend ::ActiveSupport::Cache::Coders::Rails61Coder
506
506
 
507
- # source://activesupport//lib/active_support/cache.rb#873
507
+ # source://activesupport//lib/active_support/cache.rb#878
508
508
  def dump(entry); end
509
509
 
510
- # source://activesupport//lib/active_support/cache.rb#877
510
+ # source://activesupport//lib/active_support/cache.rb#882
511
511
  def dump_compressed(entry, threshold); end
512
512
  end
513
513
 
514
- # source://activesupport//lib/active_support/cache.rb#882
514
+ # source://activesupport//lib/active_support/cache.rb#887
515
515
  module ActiveSupport::Cache::Coders::Rails70Coder
516
516
  include ::ActiveSupport::Cache::Coders::Loader
517
517
  extend ::ActiveSupport::Cache::Coders::Loader
518
518
  extend ::ActiveSupport::Cache::Coders::Rails70Coder
519
519
 
520
- # source://activesupport//lib/active_support/cache.rb#886
520
+ # source://activesupport//lib/active_support/cache.rb#891
521
521
  def dump(entry); end
522
522
 
523
- # source://activesupport//lib/active_support/cache.rb#890
523
+ # source://activesupport//lib/active_support/cache.rb#895
524
524
  def dump_compressed(entry, threshold); end
525
525
  end
526
526
 
@@ -535,34 +535,34 @@ ActiveSupport::Cache::DEFAULT_COMPRESS_LIMIT = T.let(T.unsafe(nil), Integer)
535
535
  # Since cache entries in most instances will be serialized, the internals of this class are highly optimized
536
536
  # using short instance variable names that are lazily defined.
537
537
  #
538
- # source://activesupport//lib/active_support/cache.rb#911
538
+ # source://activesupport//lib/active_support/cache.rb#916
539
539
  class ActiveSupport::Cache::Entry
540
540
  # Creates a new cache entry for the specified value. Options supported are
541
541
  # +:compressed+, +:version+, +:expires_at+ and +:expires_in+.
542
542
  #
543
543
  # @return [Entry] a new instance of Entry
544
544
  #
545
- # source://activesupport//lib/active_support/cache.rb#922
545
+ # source://activesupport//lib/active_support/cache.rb#927
546
546
  def initialize(value, compressed: T.unsafe(nil), version: T.unsafe(nil), expires_in: T.unsafe(nil), expires_at: T.unsafe(nil), **_arg5); end
547
547
 
548
548
  # Returns the size of the cached value. This could be less than
549
549
  # <tt>value.bytesize</tt> if the data is compressed.
550
550
  #
551
- # source://activesupport//lib/active_support/cache.rb#958
551
+ # source://activesupport//lib/active_support/cache.rb#963
552
552
  def bytesize; end
553
553
 
554
- # source://activesupport//lib/active_support/cache.rb#973
554
+ # source://activesupport//lib/active_support/cache.rb#978
555
555
  def compressed(compress_threshold); end
556
556
 
557
557
  # @return [Boolean]
558
558
  #
559
- # source://activesupport//lib/active_support/cache.rb#969
559
+ # source://activesupport//lib/active_support/cache.rb#974
560
560
  def compressed?; end
561
561
 
562
562
  # Duplicates the value in a class. This is used by cache implementations that don't natively
563
563
  # serialize entries to protect against accidental cache modifications.
564
564
  #
565
- # source://activesupport//lib/active_support/cache.rb#1003
565
+ # source://activesupport//lib/active_support/cache.rb#1008
566
566
  def dup_value!; end
567
567
 
568
568
  # Checks if the entry is expired. The +expires_in+ parameter can override
@@ -570,43 +570,43 @@ class ActiveSupport::Cache::Entry
570
570
  #
571
571
  # @return [Boolean]
572
572
  #
573
- # source://activesupport//lib/active_support/cache.rb#940
573
+ # source://activesupport//lib/active_support/cache.rb#945
574
574
  def expired?; end
575
575
 
576
- # source://activesupport//lib/active_support/cache.rb#944
576
+ # source://activesupport//lib/active_support/cache.rb#949
577
577
  def expires_at; end
578
578
 
579
- # source://activesupport//lib/active_support/cache.rb#948
579
+ # source://activesupport//lib/active_support/cache.rb#953
580
580
  def expires_at=(value); end
581
581
 
582
582
  # @return [Boolean]
583
583
  #
584
- # source://activesupport//lib/active_support/cache.rb#997
584
+ # source://activesupport//lib/active_support/cache.rb#1002
585
585
  def local?; end
586
586
 
587
587
  # @return [Boolean]
588
588
  #
589
- # source://activesupport//lib/active_support/cache.rb#934
589
+ # source://activesupport//lib/active_support/cache.rb#939
590
590
  def mismatched?(version); end
591
591
 
592
- # source://activesupport//lib/active_support/cache.rb#1013
592
+ # source://activesupport//lib/active_support/cache.rb#1018
593
593
  def pack; end
594
594
 
595
- # source://activesupport//lib/active_support/cache.rb#930
595
+ # source://activesupport//lib/active_support/cache.rb#935
596
596
  def value; end
597
597
 
598
598
  # Returns the value of attribute version.
599
599
  #
600
- # source://activesupport//lib/active_support/cache.rb#918
600
+ # source://activesupport//lib/active_support/cache.rb#923
601
601
  def version; end
602
602
 
603
603
  private
604
604
 
605
- # source://activesupport//lib/active_support/cache.rb#1020
605
+ # source://activesupport//lib/active_support/cache.rb#1025
606
606
  def uncompress(value); end
607
607
 
608
608
  class << self
609
- # source://activesupport//lib/active_support/cache.rb#913
609
+ # source://activesupport//lib/active_support/cache.rb#918
610
610
  def unpack(members); end
611
611
  end
612
612
  end
@@ -853,17 +853,17 @@ end
853
853
  # source://activesupport//lib/active_support/cache/memory_store.rb#144
854
854
  ActiveSupport::Cache::MemoryStore::PER_ENTRY_OVERHEAD = T.let(T.unsafe(nil), Integer)
855
855
 
856
- # source://activesupport//lib/active_support/cache.rb#812
856
+ # source://activesupport//lib/active_support/cache.rb#817
857
857
  module ActiveSupport::Cache::NullCoder
858
858
  extend ::ActiveSupport::Cache::NullCoder
859
859
 
860
- # source://activesupport//lib/active_support/cache.rb#815
860
+ # source://activesupport//lib/active_support/cache.rb#820
861
861
  def dump(entry); end
862
862
 
863
- # source://activesupport//lib/active_support/cache.rb#819
863
+ # source://activesupport//lib/active_support/cache.rb#824
864
864
  def dump_compressed(entry, threshold); end
865
865
 
866
- # source://activesupport//lib/active_support/cache.rb#823
866
+ # source://activesupport//lib/active_support/cache.rb#828
867
867
  def load(payload); end
868
868
  end
869
869
 
@@ -933,7 +933,7 @@ ActiveSupport::Cache::OPTION_ALIASES = T.let(T.unsafe(nil), Hash)
933
933
  # popular cache store for large production websites.
934
934
  #
935
935
  # Some implementations may not support all methods beyond the basic cache
936
- # methods of +fetch+, +write+, +read+, +exist?+, and +delete+.
936
+ # methods of #fetch, #write, #read, #exist?, and #delete.
937
937
  #
938
938
  # ActiveSupport::Cache::Store can store any Ruby object that is supported by
939
939
  # its +coder+'s +dump+ and +load+ methods.
@@ -966,24 +966,28 @@ ActiveSupport::Cache::OPTION_ALIASES = T.let(T.unsafe(nil), Hash)
966
966
  # cache.namespace = -> { @last_mod_time } # Set the namespace to a variable
967
967
  # @last_mod_time = Time.now # Invalidate the entire cache by changing namespace
968
968
  #
969
- # Cached data larger than 1kB are compressed by default. To turn off
970
- # compression, pass <tt>compress: false</tt> to the initializer or to
971
- # individual +fetch+ or +write+ method calls. The 1kB compression
972
- # threshold is configurable with the <tt>:compress_threshold</tt> option,
973
- # specified in bytes.
974
- #
975
- # source://activesupport//lib/active_support/cache.rb#180
969
+ # source://activesupport//lib/active_support/cache.rb#175
976
970
  class ActiveSupport::Cache::Store
977
- # Creates a new cache. The options will be passed to any write method calls
978
- # except for <tt>:namespace</tt> which can be used to set the global
979
- # namespace for the cache.
971
+ # Creates a new cache.
972
+ #
973
+ # ==== Options
974
+ #
975
+ # * +:namespace+ - Sets the namespace for the cache. This option is
976
+ # especially useful if your application shares a cache with other
977
+ # applications.
978
+ # * +:coder+ - Replaces the default cache entry serialization mechanism
979
+ # with a custom one. The +coder+ must respond to +dump+ and +load+.
980
+ # Using a custom coder disables automatic compression.
981
+ #
982
+ # Any other specified options are treated as default options for the
983
+ # relevant cache operations, such as #read, #write, and #fetch.
980
984
  #
981
985
  # @return [Store] a new instance of Store
982
986
  #
983
- # source://activesupport//lib/active_support/cache.rb#206
987
+ # source://activesupport//lib/active_support/cache.rb#211
984
988
  def initialize(options = T.unsafe(nil)); end
985
989
 
986
- # Cleanups the cache by removing expired entries.
990
+ # Cleans up the cache by removing expired entries.
987
991
  #
988
992
  # Options are passed to the underlying cache implementation.
989
993
  #
@@ -991,7 +995,7 @@ class ActiveSupport::Cache::Store
991
995
  #
992
996
  # @raise [NotImplementedError]
993
997
  #
994
- # source://activesupport//lib/active_support/cache.rb#577
998
+ # source://activesupport//lib/active_support/cache.rb#582
995
999
  def cleanup(options = T.unsafe(nil)); end
996
1000
 
997
1001
  # Clears the entire cache. Be careful with this method since it could
@@ -1003,7 +1007,7 @@ class ActiveSupport::Cache::Store
1003
1007
  #
1004
1008
  # @raise [NotImplementedError]
1005
1009
  #
1006
- # source://activesupport//lib/active_support/cache.rb#587
1010
+ # source://activesupport//lib/active_support/cache.rb#592
1007
1011
  def clear(options = T.unsafe(nil)); end
1008
1012
 
1009
1013
  # Decrements an integer value in the cache.
@@ -1014,14 +1018,14 @@ class ActiveSupport::Cache::Store
1014
1018
  #
1015
1019
  # @raise [NotImplementedError]
1016
1020
  #
1017
- # source://activesupport//lib/active_support/cache.rb#568
1021
+ # source://activesupport//lib/active_support/cache.rb#573
1018
1022
  def decrement(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end
1019
1023
 
1020
1024
  # Deletes an entry in the cache. Returns +true+ if an entry is deleted.
1021
1025
  #
1022
1026
  # Options are passed to the underlying cache implementation.
1023
1027
  #
1024
- # source://activesupport//lib/active_support/cache.rb#509
1028
+ # source://activesupport//lib/active_support/cache.rb#514
1025
1029
  def delete(name, options = T.unsafe(nil)); end
1026
1030
 
1027
1031
  # Deletes all entries with keys matching the pattern.
@@ -1032,14 +1036,14 @@ class ActiveSupport::Cache::Store
1032
1036
  #
1033
1037
  # @raise [NotImplementedError]
1034
1038
  #
1035
- # source://activesupport//lib/active_support/cache.rb#550
1039
+ # source://activesupport//lib/active_support/cache.rb#555
1036
1040
  def delete_matched(matcher, options = T.unsafe(nil)); end
1037
1041
 
1038
1042
  # Deletes multiple entries in the cache.
1039
1043
  #
1040
1044
  # Options are passed to the underlying cache implementation.
1041
1045
  #
1042
- # source://activesupport//lib/active_support/cache.rb#520
1046
+ # source://activesupport//lib/active_support/cache.rb#525
1043
1047
  def delete_multi(names, options = T.unsafe(nil)); end
1044
1048
 
1045
1049
  # Returns +true+ if the cache contains an entry for the given key.
@@ -1048,7 +1052,7 @@ class ActiveSupport::Cache::Store
1048
1052
  #
1049
1053
  # @return [Boolean]
1050
1054
  #
1051
- # source://activesupport//lib/active_support/cache.rb#532
1055
+ # source://activesupport//lib/active_support/cache.rb#537
1052
1056
  def exist?(name, options = T.unsafe(nil)); end
1053
1057
 
1054
1058
  # Fetches data from the cache, using the given key. If there is data in
@@ -1069,113 +1073,76 @@ class ActiveSupport::Cache::Store
1069
1073
  # end
1070
1074
  # cache.fetch('city') # => "Duckburgh"
1071
1075
  #
1072
- # You may also specify additional options via the +options+ argument.
1073
- # Setting <tt>force: true</tt> forces a cache "miss," meaning we treat
1074
- # the cache value as missing even if it's present. Passing a block is
1075
- # required when +force+ is true so this always results in a cache write.
1076
+ # ==== Options
1076
1077
  #
1077
- # cache.write('today', 'Monday')
1078
- # cache.fetch('today', force: true) { 'Tuesday' } # => 'Tuesday'
1079
- # cache.fetch('today', force: true) # => ArgumentError
1080
- #
1081
- # The +:force+ option is useful when you're calling some other method to
1082
- # ask whether you should force a cache write. Otherwise, it's clearer to
1083
- # just call <tt>Cache#write</tt>.
1084
- #
1085
- # Setting <tt>skip_nil: true</tt> will not cache nil result:
1086
- #
1087
- # cache.fetch('foo') { nil }
1088
- # cache.fetch('bar', skip_nil: true) { nil }
1089
- # cache.exist?('foo') # => true
1090
- # cache.exist?('bar') # => false
1091
- #
1092
- #
1093
- # Setting <tt>compress: false</tt> disables compression of the cache entry.
1094
- #
1095
- # Setting <tt>:expires_in</tt> will set an expiration time on the cache.
1096
- # All caches support auto-expiring content after a specified number of
1097
- # seconds. This value can be specified as an option to the constructor
1098
- # (in which case all entries will be affected), or it can be supplied to
1099
- # the +fetch+ or +write+ method to affect just one entry.
1100
- # <tt>:expire_in</tt> and <tt>:expired_in</tt> are aliases for
1101
- # <tt>:expires_in</tt>.
1102
- #
1103
- # cache = ActiveSupport::Cache::MemoryStore.new(expires_in: 5.minutes)
1104
- # cache.write(key, value, expires_in: 1.minute) # Set a lower value for one entry
1105
- #
1106
- # Setting <tt>:expires_at</tt> will set an absolute expiration time on the cache.
1107
- # All caches support auto-expiring content after a specified number of
1108
- # seconds. This value can only be supplied to the +fetch+ or +write+ method to
1109
- # affect just one entry.
1110
- #
1111
- # cache = ActiveSupport::Cache::MemoryStore.new
1112
- # cache.write(key, value, expires_at: Time.now.at_end_of_hour)
1113
- #
1114
- # Setting <tt>:version</tt> verifies the cache stored under <tt>name</tt>
1115
- # is of the same version. nil is returned on mismatches despite contents.
1116
- # This feature is used to support recyclable cache keys.
1117
- #
1118
- # Setting <tt>:race_condition_ttl</tt> is very useful in situations where
1119
- # a cache entry is used very frequently and is under heavy load. If a
1120
- # cache expires and due to heavy load several different processes will try
1121
- # to read data natively and then they all will try to write to cache. To
1122
- # avoid that case the first process to find an expired cache entry will
1123
- # bump the cache expiration time by the value set in <tt>:race_condition_ttl</tt>.
1124
- # Yes, this process is extending the time for a stale value by another few
1125
- # seconds. Because of extended life of the previous cache, other processes
1126
- # will continue to use slightly stale data for a just a bit longer. In the
1127
- # meantime that first process will go ahead and will write into cache the
1128
- # new value. After that all the processes will start getting the new value.
1129
- # The key is to keep <tt>:race_condition_ttl</tt> small.
1130
- #
1131
- # If the process regenerating the entry errors out, the entry will be
1132
- # regenerated after the specified number of seconds. Also note that the
1133
- # life of stale cache is extended only if it expired recently. Otherwise
1134
- # a new value is generated and <tt>:race_condition_ttl</tt> does not play
1135
- # any role.
1136
- #
1137
- # # Set all values to expire after one minute.
1138
- # cache = ActiveSupport::Cache::MemoryStore.new(expires_in: 1.minute)
1139
- #
1140
- # cache.write('foo', 'original value')
1141
- # val_1 = nil
1142
- # val_2 = nil
1143
- # sleep 60
1144
- #
1145
- # Thread.new do
1146
- # val_1 = cache.fetch('foo', race_condition_ttl: 10.seconds) do
1147
- # sleep 1
1148
- # 'new value 1'
1078
+ # Internally, +fetch+ calls #read_entry, and calls #write_entry on a cache
1079
+ # miss. Thus, +fetch+ supports the same options as #read and #write.
1080
+ # Additionally, +fetch+ supports the following options:
1081
+ #
1082
+ # * <tt>force: true</tt> - Forces a cache "miss," meaning we treat the
1083
+ # cache value as missing even if it's present. Passing a block is
1084
+ # required when +force+ is true so this always results in a cache write.
1085
+ #
1086
+ # cache.write('today', 'Monday')
1087
+ # cache.fetch('today', force: true) { 'Tuesday' } # => 'Tuesday'
1088
+ # cache.fetch('today', force: true) # => ArgumentError
1089
+ #
1090
+ # The +:force+ option is useful when you're calling some other method to
1091
+ # ask whether you should force a cache write. Otherwise, it's clearer to
1092
+ # just call +write+.
1093
+ #
1094
+ # * <tt>skip_nil: true</tt> - Prevents caching a nil result:
1095
+ #
1096
+ # cache.fetch('foo') { nil }
1097
+ # cache.fetch('bar', skip_nil: true) { nil }
1098
+ # cache.exist?('foo') # => true
1099
+ # cache.exist?('bar') # => false
1100
+ #
1101
+ # * +:race_condition_ttl+ - Specifies the number of seconds during which
1102
+ # an expired value can be reused while a new value is being generated.
1103
+ # This can be used to prevent race conditions when cache entries expire,
1104
+ # by preventing multiple processes from simultaneously regenerating the
1105
+ # same entry (also known as the dog pile effect).
1106
+ #
1107
+ # When a process encounters a cache entry that has expired less than
1108
+ # +:race_condition_ttl+ seconds ago, it will bump the expiration time by
1109
+ # +:race_condition_ttl+ seconds before generating a new value. During
1110
+ # this extended time window, while the process generates a new value,
1111
+ # other processes will continue to use the old value. After the first
1112
+ # process writes the new value, other processes will then use it.
1113
+ #
1114
+ # If the first process errors out while generating a new value, another
1115
+ # process can try to generate a new value after the extended time window
1116
+ # has elapsed.
1117
+ #
1118
+ # # Set all values to expire after one minute.
1119
+ # cache = ActiveSupport::Cache::MemoryStore.new(expires_in: 1.minute)
1120
+ #
1121
+ # cache.write('foo', 'original value')
1122
+ # val_1 = nil
1123
+ # val_2 = nil
1124
+ # sleep 60
1125
+ #
1126
+ # Thread.new do
1127
+ # val_1 = cache.fetch('foo', race_condition_ttl: 10.seconds) do
1128
+ # sleep 1
1129
+ # 'new value 1'
1130
+ # end
1149
1131
  # end
1150
- # end
1151
1132
  #
1152
- # Thread.new do
1153
- # val_2 = cache.fetch('foo', race_condition_ttl: 10.seconds) do
1154
- # 'new value 2'
1133
+ # Thread.new do
1134
+ # val_2 = cache.fetch('foo', race_condition_ttl: 10.seconds) do
1135
+ # 'new value 2'
1136
+ # end
1155
1137
  # end
1156
- # end
1157
- #
1158
- # cache.fetch('foo') # => "original value"
1159
- # sleep 10 # First thread extended the life of cache by another 10 seconds
1160
- # cache.fetch('foo') # => "new value 1"
1161
- # val_1 # => "new value 1"
1162
- # val_2 # => "original value"
1163
- #
1164
- # Other options will be handled by the specific cache store implementation.
1165
- # Internally, #fetch calls #read_entry, and calls #write_entry on a cache
1166
- # miss. +options+ will be passed to the #read and #write calls.
1167
- #
1168
- # For example, MemCacheStore's #write method supports the +:raw+
1169
- # option, which tells the memcached server to store all values as strings.
1170
- # We can use this option with #fetch too:
1171
1138
  #
1172
- # cache = ActiveSupport::Cache::MemCacheStore.new
1173
- # cache.fetch("foo", force: true, raw: true) do
1174
- # :bar
1175
- # end
1176
- # cache.fetch('foo') # => "bar"
1139
+ # cache.fetch('foo') # => "original value"
1140
+ # sleep 10 # First thread extended the life of cache by another 10 seconds
1141
+ # cache.fetch('foo') # => "new value 1"
1142
+ # val_1 # => "new value 1"
1143
+ # val_2 # => "original value"
1177
1144
  #
1178
- # source://activesupport//lib/active_support/cache.rb#352
1145
+ # source://activesupport//lib/active_support/cache.rb#321
1179
1146
  def fetch(name, options = T.unsafe(nil), &block); end
1180
1147
 
1181
1148
  # Fetches data from the cache, using the given keys. If there is data in
@@ -1209,7 +1176,7 @@ class ActiveSupport::Cache::Store
1209
1176
  #
1210
1177
  # @raise [ArgumentError]
1211
1178
  #
1212
- # source://activesupport//lib/active_support/cache.rb#472
1179
+ # source://activesupport//lib/active_support/cache.rb#447
1213
1180
  def fetch_multi(*names); end
1214
1181
 
1215
1182
  # Increments an integer value in the cache.
@@ -1220,26 +1187,26 @@ class ActiveSupport::Cache::Store
1220
1187
  #
1221
1188
  # @raise [NotImplementedError]
1222
1189
  #
1223
- # source://activesupport//lib/active_support/cache.rb#559
1190
+ # source://activesupport//lib/active_support/cache.rb#564
1224
1191
  def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end
1225
1192
 
1226
- # source://activesupport//lib/active_support/cache.rb#181
1193
+ # source://activesupport//lib/active_support/cache.rb#176
1227
1194
  def logger; end
1228
1195
 
1229
- # source://activesupport//lib/active_support/cache.rb#181
1196
+ # source://activesupport//lib/active_support/cache.rb#176
1230
1197
  def logger=(val); end
1231
1198
 
1232
1199
  # Silences the logger within a block.
1233
1200
  #
1234
- # source://activesupport//lib/active_support/cache.rb#222
1201
+ # source://activesupport//lib/active_support/cache.rb#227
1235
1202
  def mute; end
1236
1203
 
1237
- # source://activesupport//lib/active_support/cache.rb#541
1204
+ # source://activesupport//lib/active_support/cache.rb#546
1238
1205
  def new_entry(value, options = T.unsafe(nil)); end
1239
1206
 
1240
1207
  # Returns the value of attribute options.
1241
1208
  #
1242
- # source://activesupport//lib/active_support/cache.rb#183
1209
+ # source://activesupport//lib/active_support/cache.rb#178
1243
1210
  def options; end
1244
1211
 
1245
1212
  # Reads data from the cache, using the given key. If there is data in
@@ -1250,9 +1217,15 @@ class ActiveSupport::Cache::Store
1250
1217
  # <tt>:version</tt> options, both of these conditions are applied before
1251
1218
  # the data is returned.
1252
1219
  #
1253
- # Options are passed to the underlying cache implementation.
1220
+ # ==== Options
1254
1221
  #
1255
- # source://activesupport//lib/active_support/cache.rb#387
1222
+ # * +:version+ - Specifies a version for the cache entry. If the cached
1223
+ # version does not match the requested version, the read will be treated
1224
+ # as a cache miss. This feature is used to support recyclable cache keys.
1225
+ #
1226
+ # Other options will be handled by the specific cache store implementation.
1227
+ #
1228
+ # source://activesupport//lib/active_support/cache.rb#362
1256
1229
  def read(name, options = T.unsafe(nil)); end
1257
1230
 
1258
1231
  # Reads multiple values at once from the cache. Options can be passed
@@ -1262,39 +1235,69 @@ class ActiveSupport::Cache::Store
1262
1235
  #
1263
1236
  # Returns a hash mapping the names provided to the values found.
1264
1237
  #
1265
- # source://activesupport//lib/active_support/cache.rb#420
1238
+ # source://activesupport//lib/active_support/cache.rb#395
1266
1239
  def read_multi(*names); end
1267
1240
 
1268
1241
  # Returns the value of attribute silence.
1269
1242
  #
1270
- # source://activesupport//lib/active_support/cache.rb#183
1243
+ # source://activesupport//lib/active_support/cache.rb#178
1271
1244
  def silence; end
1272
1245
 
1273
1246
  # Silences the logger.
1274
1247
  #
1275
- # source://activesupport//lib/active_support/cache.rb#216
1248
+ # source://activesupport//lib/active_support/cache.rb#221
1276
1249
  def silence!; end
1277
1250
 
1278
1251
  # Returns the value of attribute silence.
1279
1252
  #
1280
- # source://activesupport//lib/active_support/cache.rb#183
1253
+ # source://activesupport//lib/active_support/cache.rb#178
1281
1254
  def silence?; end
1282
1255
 
1283
- # Writes the value to the cache, with the key.
1256
+ # Writes the value to the cache with the key. The value must be supported
1257
+ # by the +coder+'s +dump+ and +load+ methods.
1284
1258
  #
1285
- # Options are passed to the underlying cache implementation.
1259
+ # By default, cache entries larger than 1kB are compressed. Compression
1260
+ # allows more data to be stored in the same memory footprint, leading to
1261
+ # fewer cache evictions and higher hit rates.
1262
+ #
1263
+ # ==== Options
1264
+ #
1265
+ # * <tt>compress: false</tt> - Disables compression of the cache entry.
1266
+ #
1267
+ # * +:compress_threshold+ - The compression threshold, specified in bytes.
1268
+ # \Cache entries larger than this threshold will be compressed. Defaults
1269
+ # to +1.kilobyte+.
1270
+ #
1271
+ # * +:expires_in+ - Sets a relative expiration time for the cache entry,
1272
+ # specified in seconds. +:expire_in+ and +:expired_in+ are aliases for
1273
+ # +:expires_in+.
1274
+ #
1275
+ # cache = ActiveSupport::Cache::MemoryStore.new(expires_in: 5.minutes)
1276
+ # cache.write(key, value, expires_in: 1.minute) # Set a lower value for one entry
1277
+ #
1278
+ # * +:expires_at+ - Sets an absolute expiration time for the cache entry.
1279
+ #
1280
+ # cache = ActiveSupport::Cache::MemoryStore.new
1281
+ # cache.write(key, value, expires_at: Time.now.at_end_of_hour)
1286
1282
  #
1287
- # source://activesupport//lib/active_support/cache.rb#497
1283
+ # * +:version+ - Specifies a version for the cache entry. When reading
1284
+ # from the cache, if the cached version does not match the requested
1285
+ # version, the read will be treated as a cache miss. This feature is
1286
+ # used to support recyclable cache keys.
1287
+ #
1288
+ # Other options will be handled by the specific cache store implementation.
1289
+ #
1290
+ # source://activesupport//lib/active_support/cache.rb#502
1288
1291
  def write(name, value, options = T.unsafe(nil)); end
1289
1292
 
1290
1293
  # Cache Storage API to write multiple values at once.
1291
1294
  #
1292
- # source://activesupport//lib/active_support/cache.rb#432
1295
+ # source://activesupport//lib/active_support/cache.rb#407
1293
1296
  def write_multi(hash, options = T.unsafe(nil)); end
1294
1297
 
1295
1298
  private
1296
1299
 
1297
- # source://activesupport//lib/active_support/cache.rb#592
1300
+ # source://activesupport//lib/active_support/cache.rb#597
1298
1301
  def default_coder; end
1299
1302
 
1300
1303
  # Deletes an entry from the cache implementation. Subclasses must
@@ -1302,35 +1305,35 @@ class ActiveSupport::Cache::Store
1302
1305
  #
1303
1306
  # @raise [NotImplementedError]
1304
1307
  #
1305
- # source://activesupport//lib/active_support/cache.rb#669
1308
+ # source://activesupport//lib/active_support/cache.rb#674
1306
1309
  def delete_entry(key, **options); end
1307
1310
 
1308
1311
  # Deletes multiples entries in the cache implementation. Subclasses MAY
1309
1312
  # implement this method.
1310
1313
  #
1311
- # source://activesupport//lib/active_support/cache.rb#675
1314
+ # source://activesupport//lib/active_support/cache.rb#680
1312
1315
  def delete_multi_entries(entries, **options); end
1313
1316
 
1314
- # source://activesupport//lib/active_support/cache.rb#636
1317
+ # source://activesupport//lib/active_support/cache.rb#641
1315
1318
  def deserialize_entry(payload); end
1316
1319
 
1317
1320
  # Expands key to be a consistent string value. Invokes +cache_key+ if
1318
1321
  # object responds to +cache_key+. Otherwise, +to_param+ method will be
1319
1322
  # called. If the key is a Hash, then keys will be sorted alphabetically.
1320
1323
  #
1321
- # source://activesupport//lib/active_support/cache.rb#742
1324
+ # source://activesupport//lib/active_support/cache.rb#747
1322
1325
  def expanded_key(key); end
1323
1326
 
1324
- # source://activesupport//lib/active_support/cache.rb#763
1327
+ # source://activesupport//lib/active_support/cache.rb#768
1325
1328
  def expanded_version(key); end
1326
1329
 
1327
- # source://activesupport//lib/active_support/cache.rb#797
1330
+ # source://activesupport//lib/active_support/cache.rb#802
1328
1331
  def get_entry_value(entry, name, options); end
1329
1332
 
1330
- # source://activesupport//lib/active_support/cache.rb#781
1333
+ # source://activesupport//lib/active_support/cache.rb#786
1331
1334
  def handle_expired_entry(entry, key, options); end
1332
1335
 
1333
- # source://activesupport//lib/active_support/cache.rb#771
1336
+ # source://activesupport//lib/active_support/cache.rb#776
1334
1337
  def instrument(operation, key, options = T.unsafe(nil)); end
1335
1338
 
1336
1339
  # Adds the namespace defined in the options to a pattern designed to
@@ -1338,12 +1341,12 @@ class ActiveSupport::Cache::Store
1338
1341
  # this method to translate a pattern that matches names into one that
1339
1342
  # matches namespaced keys.
1340
1343
  #
1341
- # source://activesupport//lib/active_support/cache.rb#600
1344
+ # source://activesupport//lib/active_support/cache.rb#605
1342
1345
  def key_matcher(pattern, options); end
1343
1346
 
1344
1347
  # Merges the default options with ones specific to a method call.
1345
1348
  #
1346
- # source://activesupport//lib/active_support/cache.rb#680
1349
+ # source://activesupport//lib/active_support/cache.rb#685
1347
1350
  def merged_options(call_options); end
1348
1351
 
1349
1352
  # Prefix the key with a namespace string:
@@ -1356,21 +1359,21 @@ class ActiveSupport::Cache::Store
1356
1359
  # namespace_key 'foo', namespace: -> { 'cache' }
1357
1360
  # # => 'cache:foo'
1358
1361
  #
1359
- # source://activesupport//lib/active_support/cache.rb#720
1362
+ # source://activesupport//lib/active_support/cache.rb#725
1360
1363
  def namespace_key(key, options = T.unsafe(nil)); end
1361
1364
 
1362
1365
  # Expands and namespaces the cache key. May be overridden by
1363
1366
  # cache stores to do additional normalization.
1364
1367
  #
1365
- # source://activesupport//lib/active_support/cache.rb#707
1368
+ # source://activesupport//lib/active_support/cache.rb#712
1366
1369
  def normalize_key(key, options = T.unsafe(nil)); end
1367
1370
 
1368
1371
  # Normalize aliased options to their canonical form
1369
1372
  #
1370
- # source://activesupport//lib/active_support/cache.rb#694
1373
+ # source://activesupport//lib/active_support/cache.rb#699
1371
1374
  def normalize_options(options); end
1372
1375
 
1373
- # source://activesupport//lib/active_support/cache.rb#759
1376
+ # source://activesupport//lib/active_support/cache.rb#764
1374
1377
  def normalize_version(key, options = T.unsafe(nil)); end
1375
1378
 
1376
1379
  # Reads an entry from the cache implementation. Subclasses must implement
@@ -1378,19 +1381,19 @@ class ActiveSupport::Cache::Store
1378
1381
  #
1379
1382
  # @raise [NotImplementedError]
1380
1383
  #
1381
- # source://activesupport//lib/active_support/cache.rb#617
1384
+ # source://activesupport//lib/active_support/cache.rb#622
1382
1385
  def read_entry(key, **options); end
1383
1386
 
1384
1387
  # Reads multiple entries from the cache implementation. Subclasses MAY
1385
1388
  # implement this method.
1386
1389
  #
1387
- # source://activesupport//lib/active_support/cache.rb#642
1390
+ # source://activesupport//lib/active_support/cache.rb#647
1388
1391
  def read_multi_entries(names, **options); end
1389
1392
 
1390
- # source://activesupport//lib/active_support/cache.rb#802
1393
+ # source://activesupport//lib/active_support/cache.rb#807
1391
1394
  def save_block_result_to_cache(name, options); end
1392
1395
 
1393
- # source://activesupport//lib/active_support/cache.rb#627
1396
+ # source://activesupport//lib/active_support/cache.rb#632
1394
1397
  def serialize_entry(entry, **options); end
1395
1398
 
1396
1399
  # Writes an entry to the cache implementation. Subclasses must implement
@@ -1398,28 +1401,28 @@ class ActiveSupport::Cache::Store
1398
1401
  #
1399
1402
  # @raise [NotImplementedError]
1400
1403
  #
1401
- # source://activesupport//lib/active_support/cache.rb#623
1404
+ # source://activesupport//lib/active_support/cache.rb#628
1402
1405
  def write_entry(key, entry, **options); end
1403
1406
 
1404
1407
  # Writes multiple entries to the cache implementation. Subclasses MAY
1405
1408
  # implement this method.
1406
1409
  #
1407
- # source://activesupport//lib/active_support/cache.rb#661
1410
+ # source://activesupport//lib/active_support/cache.rb#666
1408
1411
  def write_multi_entries(hash, **options); end
1409
1412
 
1410
1413
  class << self
1411
- # source://activesupport//lib/active_support/cache.rb#181
1414
+ # source://activesupport//lib/active_support/cache.rb#176
1412
1415
  def logger; end
1413
1416
 
1414
- # source://activesupport//lib/active_support/cache.rb#181
1417
+ # source://activesupport//lib/active_support/cache.rb#176
1415
1418
  def logger=(val); end
1416
1419
 
1417
1420
  private
1418
1421
 
1419
- # source://activesupport//lib/active_support/cache.rb#195
1422
+ # source://activesupport//lib/active_support/cache.rb#190
1420
1423
  def ensure_connection_pool_added!; end
1421
1424
 
1422
- # source://activesupport//lib/active_support/cache.rb#188
1425
+ # source://activesupport//lib/active_support/cache.rb#183
1423
1426
  def retrieve_pool_options(options); end
1424
1427
  end
1425
1428
  end
@@ -3524,15 +3527,15 @@ module ActiveSupport::Deprecation::Disallowed
3524
3527
 
3525
3528
  # Sets the criteria used to identify deprecation messages which should be
3526
3529
  # disallowed. Can be an array containing strings, symbols, or regular
3527
- # expressions. (Symbols are treated as strings). These are compared against
3530
+ # expressions. (Symbols are treated as strings.) These are compared against
3528
3531
  # the text of the generated deprecation warning.
3529
3532
  #
3530
3533
  # Additionally the scalar symbol +:all+ may be used to treat all
3531
3534
  # deprecations as disallowed.
3532
3535
  #
3533
3536
  # Deprecations matching a substring or regular expression will be handled
3534
- # using the configured +ActiveSupport::Deprecation.disallowed_behavior+
3535
- # rather than +ActiveSupport::Deprecation.behavior+
3537
+ # using the configured Behavior#disallowed_behavior rather than
3538
+ # Behavior#behavior.
3536
3539
  #
3537
3540
  # source://activesupport//lib/active_support/deprecation/disallowed.rb#17
3538
3541
  def disallowed_warnings=(_arg0); end
@@ -4368,42 +4371,72 @@ end
4368
4371
  # source://activesupport//lib/active_support/duration.rb#130
4369
4372
  ActiveSupport::Duration::VARIABLE_PARTS = T.let(T.unsafe(nil), Array)
4370
4373
 
4371
- # source://activesupport//lib/active_support/encrypted_configuration.rb#10
4374
+ # Provides convenience methods on top of EncryptedFile to access values stored
4375
+ # as encrypted YAML.
4376
+ #
4377
+ # Values can be accessed via +Hash+ methods, such as +fetch+ and +dig+, or via
4378
+ # dynamic accessor methods, similar to OrderedOptions.
4379
+ #
4380
+ # my_config = ActiveSupport::EncryptedConfiguration.new(...)
4381
+ # my_config.read # => "some_secret: 123\nsome_namespace:\n another_secret: 456"
4382
+ #
4383
+ # my_config[:some_secret]
4384
+ # # => 123
4385
+ # my_config.some_secret
4386
+ # # => 123
4387
+ # my_config.dig(:some_namespace, :another_secret)
4388
+ # # => 456
4389
+ # my_config.some_namespace.another_secret
4390
+ # # => 456
4391
+ # my_config.fetch(:foo)
4392
+ # # => KeyError
4393
+ # my_config.foo!
4394
+ # # => KeyError
4395
+ #
4396
+ # source://activesupport//lib/active_support/encrypted_configuration.rb#32
4372
4397
  class ActiveSupport::EncryptedConfiguration < ::ActiveSupport::EncryptedFile
4373
4398
  # @return [EncryptedConfiguration] a new instance of EncryptedConfiguration
4374
4399
  #
4375
- # source://activesupport//lib/active_support/encrypted_configuration.rb#14
4400
+ # source://activesupport//lib/active_support/encrypted_configuration.rb#36
4376
4401
  def initialize(config_path:, key_path:, env_key:, raise_if_missing_key:); end
4377
4402
 
4378
- # source://activesupport//lib/active_support/encrypted_configuration.rb#11
4403
+ # source://activesupport//lib/active_support/encrypted_configuration.rb#33
4379
4404
  def [](*_arg0, **_arg1, &_arg2); end
4380
4405
 
4381
- # source://activesupport//lib/active_support/encrypted_configuration.rb#32
4406
+ # Returns the decrypted content as a Hash with symbolized keys.
4407
+ #
4408
+ # my_config = ActiveSupport::EncryptedConfiguration.new(...)
4409
+ # my_config.read # => "some_secret: 123\nsome_namespace:\n another_secret: 456"
4410
+ #
4411
+ # my_config.config
4412
+ # # => { some_secret: 123, some_namespace: { another_secret: 789 } }
4413
+ #
4414
+ # source://activesupport//lib/active_support/encrypted_configuration.rb#63
4382
4415
  def config; end
4383
4416
 
4384
- # source://activesupport//lib/active_support/encrypted_configuration.rb#11
4417
+ # source://activesupport//lib/active_support/encrypted_configuration.rb#33
4385
4418
  def fetch(*_arg0, **_arg1, &_arg2); end
4386
4419
 
4387
4420
  # source://activesupport//lib/active_support/core_ext/module/delegation.rb#302
4388
4421
  def method_missing(method, *args, **_arg2, &block); end
4389
4422
 
4390
- # Allow a config to be started without a file present
4423
+ # Reads the file and returns the decrypted content. See EncryptedFile#read.
4391
4424
  #
4392
- # source://activesupport//lib/active_support/encrypted_configuration.rb#20
4425
+ # source://activesupport//lib/active_support/encrypted_configuration.rb#42
4393
4426
  def read; end
4394
4427
 
4395
- # source://activesupport//lib/active_support/encrypted_configuration.rb#26
4428
+ # source://activesupport//lib/active_support/encrypted_configuration.rb#49
4396
4429
  def write(contents); end
4397
4430
 
4398
4431
  private
4399
4432
 
4400
- # source://activesupport//lib/active_support/encrypted_configuration.rb#37
4433
+ # source://activesupport//lib/active_support/encrypted_configuration.rb#68
4401
4434
  def deep_transform(hash); end
4402
4435
 
4403
- # source://activesupport//lib/active_support/encrypted_configuration.rb#51
4436
+ # source://activesupport//lib/active_support/encrypted_configuration.rb#82
4404
4437
  def deserialize(config); end
4405
4438
 
4406
- # source://activesupport//lib/active_support/encrypted_configuration.rb#47
4439
+ # source://activesupport//lib/active_support/encrypted_configuration.rb#78
4407
4440
  def options; end
4408
4441
 
4409
4442
  # source://activesupport//lib/active_support/core_ext/module/delegation.rb#294
@@ -4417,7 +4450,7 @@ class ActiveSupport::EncryptedFile
4417
4450
  # source://activesupport//lib/active_support/encrypted_file.rb#42
4418
4451
  def initialize(content_path:, key_path:, env_key:, raise_if_missing_key:); end
4419
4452
 
4420
- # source://activesupport//lib/active_support/encrypted_file.rb#65
4453
+ # source://activesupport//lib/active_support/encrypted_file.rb#77
4421
4454
  def change(&block); end
4422
4455
 
4423
4456
  # Returns the value of attribute content_path.
@@ -4430,7 +4463,12 @@ class ActiveSupport::EncryptedFile
4430
4463
  # source://activesupport//lib/active_support/encrypted_file.rb#40
4431
4464
  def env_key; end
4432
4465
 
4433
- # source://activesupport//lib/active_support/encrypted_file.rb#48
4466
+ # Returns the encryption key, first trying the environment variable
4467
+ # specified by +env_key+, then trying the key file specified by +key_path+.
4468
+ # If +raise_if_missing_key+ is true, raises MissingKeyError if the
4469
+ # environment variable is not set and the key file does not exist.
4470
+ #
4471
+ # source://activesupport//lib/active_support/encrypted_file.rb#52
4434
4472
  def key; end
4435
4473
 
4436
4474
  # Returns the value of attribute key_path.
@@ -4443,40 +4481,49 @@ class ActiveSupport::EncryptedFile
4443
4481
  # source://activesupport//lib/active_support/encrypted_file.rb#40
4444
4482
  def raise_if_missing_key; end
4445
4483
 
4446
- # source://activesupport//lib/active_support/encrypted_file.rb#52
4484
+ # Reads the file and returns the decrypted content.
4485
+ #
4486
+ # Raises:
4487
+ # - MissingKeyError if the key is missing and +raise_if_missing_key+ is true.
4488
+ # - MissingContentError if the encrypted file does not exist or otherwise
4489
+ # if the key is missing.
4490
+ # - ActiveSupport::MessageEncryptor::InvalidMessage if the content cannot be
4491
+ # decrypted or verified.
4492
+ #
4493
+ # source://activesupport//lib/active_support/encrypted_file.rb#64
4447
4494
  def read; end
4448
4495
 
4449
- # source://activesupport//lib/active_support/encrypted_file.rb#60
4496
+ # source://activesupport//lib/active_support/encrypted_file.rb#72
4450
4497
  def write(contents); end
4451
4498
 
4452
4499
  private
4453
4500
 
4454
4501
  # @raise [InvalidKeyLengthError]
4455
4502
  #
4456
- # source://activesupport//lib/active_support/encrypted_file.rb#113
4503
+ # source://activesupport//lib/active_support/encrypted_file.rb#124
4457
4504
  def check_key_length; end
4458
4505
 
4459
- # source://activesupport//lib/active_support/encrypted_file.rb#91
4506
+ # source://activesupport//lib/active_support/encrypted_file.rb#102
4460
4507
  def decrypt(contents); end
4461
4508
 
4462
- # source://activesupport//lib/active_support/encrypted_file.rb#86
4509
+ # source://activesupport//lib/active_support/encrypted_file.rb#97
4463
4510
  def encrypt(contents); end
4464
4511
 
4465
- # source://activesupport//lib/active_support/encrypted_file.rb#95
4512
+ # source://activesupport//lib/active_support/encrypted_file.rb#106
4466
4513
  def encryptor; end
4467
4514
 
4468
4515
  # @raise [MissingKeyError]
4469
4516
  #
4470
- # source://activesupport//lib/active_support/encrypted_file.rb#109
4517
+ # source://activesupport//lib/active_support/encrypted_file.rb#120
4471
4518
  def handle_missing_key; end
4472
4519
 
4473
- # source://activesupport//lib/active_support/encrypted_file.rb#100
4520
+ # source://activesupport//lib/active_support/encrypted_file.rb#111
4474
4521
  def read_env_key; end
4475
4522
 
4476
- # source://activesupport//lib/active_support/encrypted_file.rb#104
4523
+ # source://activesupport//lib/active_support/encrypted_file.rb#115
4477
4524
  def read_key_file; end
4478
4525
 
4479
- # source://activesupport//lib/active_support/encrypted_file.rb#71
4526
+ # source://activesupport//lib/active_support/encrypted_file.rb#83
4480
4527
  def writing(contents); end
4481
4528
 
4482
4529
  class << self
@@ -5520,8 +5567,8 @@ module ActiveSupport::Inflector
5520
5567
  def camelize(term, uppercase_first_letter = T.unsafe(nil)); end
5521
5568
 
5522
5569
  # Creates a class name from a plural table name like Rails does for table
5523
- # names to models. Note that this returns a string and not a Class (To
5524
- # convert to an actual class follow +classify+ with #constantize).
5570
+ # names to models. Note that this returns a string and not a Class. (To
5571
+ # convert to an actual class follow +classify+ with #constantize.)
5525
5572
  #
5526
5573
  # classify('ham_and_eggs') # => "HamAndEgg"
5527
5574
  # classify('posts') # => "Post"
@@ -5530,7 +5577,7 @@ module ActiveSupport::Inflector
5530
5577
  #
5531
5578
  # classify('calculus') # => "Calculu"
5532
5579
  #
5533
- # source://activesupport//lib/active_support/inflector/methods.rb#208
5580
+ # source://activesupport//lib/active_support/inflector/methods.rb#206
5534
5581
  def classify(table_name); end
5535
5582
 
5536
5583
  # Tries to find a constant with the name specified in the argument string.
@@ -5552,14 +5599,14 @@ module ActiveSupport::Inflector
5552
5599
  # NameError is raised when the name is not in CamelCase or the constant is
5553
5600
  # unknown.
5554
5601
  #
5555
- # source://activesupport//lib/active_support/inflector/methods.rb#279
5602
+ # source://activesupport//lib/active_support/inflector/methods.rb#277
5556
5603
  def constantize(camel_cased_word); end
5557
5604
 
5558
5605
  # Replaces underscores with dashes in the string.
5559
5606
  #
5560
5607
  # dasherize('puni_puni') # => "puni-puni"
5561
5608
  #
5562
- # source://activesupport//lib/active_support/inflector/methods.rb#216
5609
+ # source://activesupport//lib/active_support/inflector/methods.rb#214
5563
5610
  def dasherize(underscored_word); end
5564
5611
 
5565
5612
  # Removes the rightmost segment from the constant expression in the string.
@@ -5572,7 +5619,7 @@ module ActiveSupport::Inflector
5572
5619
  #
5573
5620
  # See also #demodulize.
5574
5621
  #
5575
- # source://activesupport//lib/active_support/inflector/methods.rb#246
5622
+ # source://activesupport//lib/active_support/inflector/methods.rb#244
5576
5623
  def deconstantize(path); end
5577
5624
 
5578
5625
  # Removes the module part from the expression in the string.
@@ -5584,7 +5631,7 @@ module ActiveSupport::Inflector
5584
5631
  #
5585
5632
  # See also #deconstantize.
5586
5633
  #
5587
- # source://activesupport//lib/active_support/inflector/methods.rb#228
5634
+ # source://activesupport//lib/active_support/inflector/methods.rb#226
5588
5635
  def demodulize(path); end
5589
5636
 
5590
5637
  # Creates a foreign key name from a class name.
@@ -5595,7 +5642,7 @@ module ActiveSupport::Inflector
5595
5642
  # foreign_key('Message', false) # => "messageid"
5596
5643
  # foreign_key('Admin::Post') # => "post_id"
5597
5644
  #
5598
- # source://activesupport//lib/active_support/inflector/methods.rb#257
5645
+ # source://activesupport//lib/active_support/inflector/methods.rb#255
5599
5646
  def foreign_key(class_name, separate_class_name_and_id_with_underscore = T.unsafe(nil)); end
5600
5647
 
5601
5648
  # Tweaks an attribute name for display to end users.
@@ -5649,7 +5696,7 @@ module ActiveSupport::Inflector
5649
5696
  # ordinal(-11) # => "th"
5650
5697
  # ordinal(-1021) # => "st"
5651
5698
  #
5652
- # source://activesupport//lib/active_support/inflector/methods.rb#324
5699
+ # source://activesupport//lib/active_support/inflector/methods.rb#322
5653
5700
  def ordinal(number); end
5654
5701
 
5655
5702
  # Turns a number into an ordinal string used to denote the position in an
@@ -5662,7 +5709,7 @@ module ActiveSupport::Inflector
5662
5709
  # ordinalize(-11) # => "-11th"
5663
5710
  # ordinalize(-1021) # => "-1021st"
5664
5711
  #
5665
- # source://activesupport//lib/active_support/inflector/methods.rb#337
5712
+ # source://activesupport//lib/active_support/inflector/methods.rb#335
5666
5713
  def ordinalize(number); end
5667
5714
 
5668
5715
  # Replaces special characters in a string so that it may be used as part of
@@ -5734,7 +5781,7 @@ module ActiveSupport::Inflector
5734
5781
  # safe_constantize('UnknownModule') # => nil
5735
5782
  # safe_constantize('UnknownModule::Foo::Bar') # => nil
5736
5783
  #
5737
- # source://activesupport//lib/active_support/inflector/methods.rb#305
5784
+ # source://activesupport//lib/active_support/inflector/methods.rb#303
5738
5785
  def safe_constantize(camel_cased_word); end
5739
5786
 
5740
5787
  # The reverse of #pluralize, returns the singular form of a word in a
@@ -5761,7 +5808,7 @@ module ActiveSupport::Inflector
5761
5808
  # tableize('ham_and_egg') # => "ham_and_eggs"
5762
5809
  # tableize('fancyCategory') # => "fancy_categories"
5763
5810
  #
5764
- # source://activesupport//lib/active_support/inflector/methods.rb#194
5811
+ # source://activesupport//lib/active_support/inflector/methods.rb#192
5765
5812
  def tableize(class_name); end
5766
5813
 
5767
5814
  # Capitalizes all the words and replaces some characters in the string to
@@ -5772,15 +5819,13 @@ module ActiveSupport::Inflector
5772
5819
  # optional parameter +keep_id_suffix+ to true.
5773
5820
  # By default, this parameter is false.
5774
5821
  #
5775
- # +titleize+ is also aliased as +titlecase+.
5776
- #
5777
5822
  # titleize('man from the boondocks') # => "Man From The Boondocks"
5778
5823
  # titleize('x-men: the last stand') # => "X Men: The Last Stand"
5779
5824
  # titleize('TheManWithoutAPast') # => "The Man Without A Past"
5780
5825
  # titleize('raiders_of_the_lost_ark') # => "Raiders Of The Lost Ark"
5781
5826
  # titleize('string_ending_with_id', keep_id_suffix: true) # => "String Ending With Id"
5782
5827
  #
5783
- # source://activesupport//lib/active_support/inflector/methods.rb#182
5828
+ # source://activesupport//lib/active_support/inflector/methods.rb#180
5784
5829
  def titleize(word, keep_id_suffix: T.unsafe(nil)); end
5785
5830
 
5786
5831
  # Replaces non-ASCII characters with an ASCII approximation, or if none
@@ -5874,10 +5919,10 @@ module ActiveSupport::Inflector
5874
5919
  # If passed an optional +locale+ parameter, the uncountables will be
5875
5920
  # found for that locale.
5876
5921
  #
5877
- # apply_inflections('post', inflections.plurals, :en) # => "posts"
5878
- # apply_inflections('posts', inflections.singulars, :en) # => "post"
5922
+ # apply_inflections('post', inflections.plurals, :en) # => "posts"
5923
+ # apply_inflections('posts', inflections.singulars, :en) # => "post"
5879
5924
  #
5880
- # source://activesupport//lib/active_support/inflector/methods.rb#366
5925
+ # source://activesupport//lib/active_support/inflector/methods.rb#364
5881
5926
  def apply_inflections(word, rules, locale = T.unsafe(nil)); end
5882
5927
 
5883
5928
  # Mounts a regular expression, returned as a string to ease interpolation,
@@ -5886,7 +5931,7 @@ module ActiveSupport::Inflector
5886
5931
  # const_regexp("Foo::Bar::Baz") # => "Foo(::Bar(::Baz)?)?"
5887
5932
  # const_regexp("::") # => "::"
5888
5933
  #
5889
- # source://activesupport//lib/active_support/inflector/methods.rb#347
5934
+ # source://activesupport//lib/active_support/inflector/methods.rb#345
5890
5935
  def const_regexp(camel_cased_word); end
5891
5936
  end
5892
5937
 
@@ -6398,40 +6443,53 @@ end
6398
6443
  # with the on_load method. In the case of the above example, it will
6399
6444
  # execute the block of code that is in the +initializer+.
6400
6445
  #
6401
- # source://activesupport//lib/active_support/lazy_load_hooks.rb#29
6446
+ # Registering a hook that has already run results in that hook executing
6447
+ # immediately. This allows hooks to be nested for code that relies on
6448
+ # multiple lazily loaded components:
6449
+ #
6450
+ # initializer "action_text.renderer" do
6451
+ # ActiveSupport.on_load(:action_controller_base) do
6452
+ # ActiveSupport.on_load(:action_text_content) do
6453
+ # self.default_renderer = Class.new(ActionController::Base).renderer
6454
+ # end
6455
+ # end
6456
+ # end
6457
+ #
6458
+ # source://activesupport//lib/active_support/lazy_load_hooks.rb#41
6402
6459
  module ActiveSupport::LazyLoadHooks
6403
6460
  # Declares a block that will be executed when a Rails component is fully
6404
- # loaded.
6461
+ # loaded. If the component has already loaded, the block is executed
6462
+ # immediately.
6405
6463
  #
6406
6464
  # Options:
6407
6465
  #
6408
6466
  # * <tt>:yield</tt> - Yields the object that run_load_hooks to +block+.
6409
6467
  # * <tt>:run_once</tt> - Given +block+ will run only once.
6410
6468
  #
6411
- # source://activesupport//lib/active_support/lazy_load_hooks.rb#45
6469
+ # source://activesupport//lib/active_support/lazy_load_hooks.rb#58
6412
6470
  def on_load(name, options = T.unsafe(nil), &block); end
6413
6471
 
6414
6472
  # Executes all blocks registered to +name+ via on_load, using +base+ as the
6415
6473
  # evaluation context.
6416
6474
  #
6417
- # ActiveSupport.run_load_hooks(:active_record, ActiveRecord::Base)
6475
+ # ActiveSupport.run_load_hooks(:active_record, ActiveRecord::Base)
6418
6476
  #
6419
6477
  # In the case of the above example, it will execute all hooks registered
6420
6478
  # for +:active_record+ within the class +ActiveRecord::Base+.
6421
6479
  #
6422
- # source://activesupport//lib/active_support/lazy_load_hooks.rb#60
6480
+ # source://activesupport//lib/active_support/lazy_load_hooks.rb#73
6423
6481
  def run_load_hooks(name, base = T.unsafe(nil)); end
6424
6482
 
6425
6483
  private
6426
6484
 
6427
- # source://activesupport//lib/active_support/lazy_load_hooks.rb#76
6485
+ # source://activesupport//lib/active_support/lazy_load_hooks.rb#89
6428
6486
  def execute_hook(name, base, options, block); end
6429
6487
 
6430
- # source://activesupport//lib/active_support/lazy_load_hooks.rb#68
6488
+ # source://activesupport//lib/active_support/lazy_load_hooks.rb#81
6431
6489
  def with_execution_control(name, block, once); end
6432
6490
 
6433
6491
  class << self
6434
- # source://activesupport//lib/active_support/lazy_load_hooks.rb#30
6492
+ # source://activesupport//lib/active_support/lazy_load_hooks.rb#42
6435
6493
  def extended(base); end
6436
6494
  end
6437
6495
  end
@@ -6618,7 +6676,7 @@ class ActiveSupport::Logger < ::Logger
6618
6676
 
6619
6677
  # @return [Logger] a new instance of Logger
6620
6678
  #
6621
- # source://activesupport//lib/active_support/logger.rb#79
6679
+ # source://activesupport//lib/active_support/logger.rb#80
6622
6680
  def initialize(*args, **kwargs); end
6623
6681
 
6624
6682
  # source://activesupport//lib/active_support/logger_silence.rb#12
@@ -6654,11 +6712,11 @@ end
6654
6712
 
6655
6713
  # Simple formatter which only displays the message.
6656
6714
  #
6657
- # source://activesupport//lib/active_support/logger.rb#85
6715
+ # source://activesupport//lib/active_support/logger.rb#86
6658
6716
  class ActiveSupport::Logger::SimpleFormatter < ::Logger::Formatter
6659
6717
  # This method is invoked when a log event occurs
6660
6718
  #
6661
- # source://activesupport//lib/active_support/logger.rb#87
6719
+ # source://activesupport//lib/active_support/logger.rb#88
6662
6720
  def call(severity, timestamp, progname, msg); end
6663
6721
  end
6664
6722
 
@@ -7658,10 +7716,17 @@ module ActiveSupport::Notifications
7658
7716
  # source://activesupport//lib/active_support/notifications.rb#204
7659
7717
  def instrument(name, payload = T.unsafe(nil)); end
7660
7718
 
7661
- # source://activesupport//lib/active_support/notifications.rb#262
7719
+ # source://activesupport//lib/active_support/notifications.rb#268
7662
7720
  def instrumenter; end
7663
7721
 
7664
- # source://activesupport//lib/active_support/notifications.rb#247
7722
+ # Performs the same functionality as #subscribe, but the +start+ and
7723
+ # +finish+ block arguments are in monotonic time instead of wall-clock
7724
+ # time. Monotonic time will not jump forward or backward (due to NTP or
7725
+ # Daylights Savings). Use +monotonic_subscribe+ when accuracy of time
7726
+ # duration is important. For example, computing elapsed time between
7727
+ # two events.
7728
+ #
7729
+ # source://activesupport//lib/active_support/notifications.rb#253
7665
7730
  def monotonic_subscribe(pattern = T.unsafe(nil), callback = T.unsafe(nil), &block); end
7666
7731
 
7667
7732
  # Returns the value of attribute notifier.
@@ -7710,21 +7775,21 @@ module ActiveSupport::Notifications
7710
7775
  #
7711
7776
  # Raises an error if invalid event name type is passed:
7712
7777
  #
7713
- # ActiveSupport::Notifications.subscribe(:render) {|*args| ...}
7714
- # #=> ArgumentError (pattern must be specified as a String, Regexp or empty)
7778
+ # ActiveSupport::Notifications.subscribe(:render) {|*args| ...}
7779
+ # #=> ArgumentError (pattern must be specified as a String, Regexp or empty)
7715
7780
  #
7716
7781
  # source://activesupport//lib/active_support/notifications.rb#243
7717
7782
  def subscribe(pattern = T.unsafe(nil), callback = T.unsafe(nil), &block); end
7718
7783
 
7719
- # source://activesupport//lib/active_support/notifications.rb#251
7784
+ # source://activesupport//lib/active_support/notifications.rb#257
7720
7785
  def subscribed(callback, pattern = T.unsafe(nil), monotonic: T.unsafe(nil), &block); end
7721
7786
 
7722
- # source://activesupport//lib/active_support/notifications.rb#258
7787
+ # source://activesupport//lib/active_support/notifications.rb#264
7723
7788
  def unsubscribe(subscriber_or_name); end
7724
7789
 
7725
7790
  private
7726
7791
 
7727
- # source://activesupport//lib/active_support/notifications.rb#267
7792
+ # source://activesupport//lib/active_support/notifications.rb#273
7728
7793
  def registry; end
7729
7794
  end
7730
7795
  end
@@ -8258,13 +8323,14 @@ module ActiveSupport::NumberHelper
8258
8323
  # out by default (set <tt>:strip_insignificant_zeros</tt> to
8259
8324
  # +false+ to change that):
8260
8325
  #
8261
- # number_to_human(12.00001) # => "12"
8262
- # number_to_human(12.00001, strip_insignificant_zeros: false) # => "12.0"
8326
+ # number_to_human(12.00001) # => "12"
8327
+ # number_to_human(12.00001, strip_insignificant_zeros: false) # => "12.0"
8263
8328
  #
8264
8329
  # ==== Custom Unit Quantifiers
8265
8330
  #
8266
8331
  # You can also use your own custom unit quantifiers:
8267
- # number_to_human(500000, units: { unit: 'ml', thousand: 'lt' }) # => "500 lt"
8332
+ #
8333
+ # number_to_human(500000, units: { unit: 'ml', thousand: 'lt' }) # => "500 lt"
8268
8334
  #
8269
8335
  # If in your I18n locale you have:
8270
8336
  #
@@ -8289,7 +8355,7 @@ module ActiveSupport::NumberHelper
8289
8355
  # number_to_human(1, units: :distance) # => "1 meter"
8290
8356
  # number_to_human(0.34, units: :distance) # => "34 centimeters"
8291
8357
  #
8292
- # source://activesupport//lib/active_support/number_helper.rb#391
8358
+ # source://activesupport//lib/active_support/number_helper.rb#392
8293
8359
  def number_to_human(number, options = T.unsafe(nil)); end
8294
8360
 
8295
8361
  # Formats the bytes in +number+ into a more understandable
@@ -8879,34 +8945,37 @@ class ActiveSupport::OrderedOptions < ::Hash
8879
8945
  def respond_to_missing?(name, include_private); end
8880
8946
  end
8881
8947
 
8882
- # +ParameterFilter+ allows you to specify keys for sensitive data from
8883
- # hash-like object and replace corresponding value. Filtering only certain
8884
- # sub-keys from a hash is possible by using the dot notation:
8885
- # 'credit_card.number'. If a proc is given, each key and value of a hash and
8886
- # all sub-hashes are passed to it, where the value or the key can be replaced
8887
- # using String#replace or similar methods.
8948
+ # +ParameterFilter+ replaces values in a <tt>Hash</tt>-like object if their
8949
+ # keys match one of the specified filters.
8950
+ #
8951
+ # Matching based on nested keys is possible by using dot notation, e.g.
8952
+ # <tt>"credit_card.number"</tt>.
8888
8953
  #
8954
+ # If a proc is given as a filter, each key and value of the <tt>Hash</tt>-like
8955
+ # and of any nested <tt>Hash</tt>es will be passed to it. The value or key can
8956
+ # then be mutated as desired using methods such as <tt>String#replace</tt>.
8957
+ #
8958
+ # # Replaces values with "[FILTERED]" for keys that match /password/i.
8889
8959
  # ActiveSupport::ParameterFilter.new([:password])
8890
- # => replaces the value to all keys matching /password/i with "[FILTERED]"
8891
8960
  #
8961
+ # # Replaces values with "[FILTERED]" for keys that match /foo|bar/i.
8892
8962
  # ActiveSupport::ParameterFilter.new([:foo, "bar"])
8893
- # => replaces the value to all keys matching /foo|bar/i with "[FILTERED]"
8894
8963
  #
8895
- # ActiveSupport::ParameterFilter.new([/\Apin\z/i, /\Apin_/i])
8896
- # => replaces the value for the exact (case-insensitive) key 'pin' and all
8897
- # (case-insensitive) keys beginning with 'pin_', with "[FILTERED]".
8898
- # Does not match keys with 'pin' as a substring, such as 'shipping_id'.
8964
+ # # Replaces values for the exact key "pin" and for keys that begin with
8965
+ # # "pin_". Does not match keys that otherwise include "pin" as a
8966
+ # # substring, such as "shipping_id".
8967
+ # ActiveSupport::ParameterFilter.new([/\Apin\z/, /\Apin_/])
8899
8968
  #
8969
+ # # Replaces the value for :code in `{ credit_card: { code: "xxxx" } }`.
8970
+ # # Does not change `{ file: { code: "xxxx" } }`.
8900
8971
  # ActiveSupport::ParameterFilter.new(["credit_card.code"])
8901
- # => replaces { credit_card: {code: "xxxx"} } with "[FILTERED]", does not
8902
- # change { file: { code: "xxxx"} }
8903
8972
  #
8973
+ # # Reverses values for keys that match /secret/i.
8904
8974
  # ActiveSupport::ParameterFilter.new([-> (k, v) do
8905
8975
  # v.reverse! if /secret/i.match?(k)
8906
8976
  # end])
8907
- # => reverses the value to all keys matching /secret/i
8908
8977
  #
8909
- # source://activesupport//lib/active_support/parameter_filter.rb#32
8978
+ # source://activesupport//lib/active_support/parameter_filter.rb#36
8910
8979
  class ActiveSupport::ParameterFilter
8911
8980
  # Create instance with given filters. Supported type of filters are +String+, +Regexp+, and +Proc+.
8912
8981
  # Other types of filters are treated as +String+ using +to_s+.
@@ -8918,60 +8987,60 @@ class ActiveSupport::ParameterFilter
8918
8987
  #
8919
8988
  # @return [ParameterFilter] a new instance of ParameterFilter
8920
8989
  #
8921
- # source://activesupport//lib/active_support/parameter_filter.rb#42
8990
+ # source://activesupport//lib/active_support/parameter_filter.rb#46
8922
8991
  def initialize(filters = T.unsafe(nil), mask: T.unsafe(nil)); end
8923
8992
 
8924
8993
  # Mask value of +params+ if key matches one of filters.
8925
8994
  #
8926
- # source://activesupport//lib/active_support/parameter_filter.rb#48
8995
+ # source://activesupport//lib/active_support/parameter_filter.rb#52
8927
8996
  def filter(params); end
8928
8997
 
8929
8998
  # Returns filtered value for given key. For +Proc+ filters, third block argument is not populated.
8930
8999
  #
8931
- # source://activesupport//lib/active_support/parameter_filter.rb#53
9000
+ # source://activesupport//lib/active_support/parameter_filter.rb#57
8932
9001
  def filter_param(key, value); end
8933
9002
 
8934
9003
  private
8935
9004
 
8936
- # source://activesupport//lib/active_support/parameter_filter.rb#58
9005
+ # source://activesupport//lib/active_support/parameter_filter.rb#62
8937
9006
  def compiled_filter; end
8938
9007
  end
8939
9008
 
8940
- # source://activesupport//lib/active_support/parameter_filter.rb#62
9009
+ # source://activesupport//lib/active_support/parameter_filter.rb#66
8941
9010
  class ActiveSupport::ParameterFilter::CompiledFilter
8942
9011
  # @return [CompiledFilter] a new instance of CompiledFilter
8943
9012
  #
8944
- # source://activesupport//lib/active_support/parameter_filter.rb#96
9013
+ # source://activesupport//lib/active_support/parameter_filter.rb#100
8945
9014
  def initialize(regexps, deep_regexps, blocks, mask:); end
8946
9015
 
8947
9016
  # Returns the value of attribute blocks.
8948
9017
  #
8949
- # source://activesupport//lib/active_support/parameter_filter.rb#94
9018
+ # source://activesupport//lib/active_support/parameter_filter.rb#98
8950
9019
  def blocks; end
8951
9020
 
8952
- # source://activesupport//lib/active_support/parameter_filter.rb#103
9021
+ # source://activesupport//lib/active_support/parameter_filter.rb#107
8953
9022
  def call(params, parents = T.unsafe(nil), original_params = T.unsafe(nil)); end
8954
9023
 
8955
9024
  # Returns the value of attribute deep_regexps.
8956
9025
  #
8957
- # source://activesupport//lib/active_support/parameter_filter.rb#94
9026
+ # source://activesupport//lib/active_support/parameter_filter.rb#98
8958
9027
  def deep_regexps; end
8959
9028
 
8960
9029
  # Returns the value of attribute regexps.
8961
9030
  #
8962
- # source://activesupport//lib/active_support/parameter_filter.rb#94
9031
+ # source://activesupport//lib/active_support/parameter_filter.rb#98
8963
9032
  def regexps; end
8964
9033
 
8965
- # source://activesupport//lib/active_support/parameter_filter.rb#113
9034
+ # source://activesupport//lib/active_support/parameter_filter.rb#117
8966
9035
  def value_for_key(key, value, parents = T.unsafe(nil), original_params = T.unsafe(nil)); end
8967
9036
 
8968
9037
  class << self
8969
- # source://activesupport//lib/active_support/parameter_filter.rb#63
9038
+ # source://activesupport//lib/active_support/parameter_filter.rb#67
8970
9039
  def compile(filters, mask:); end
8971
9040
  end
8972
9041
  end
8973
9042
 
8974
- # source://activesupport//lib/active_support/parameter_filter.rb#33
9043
+ # source://activesupport//lib/active_support/parameter_filter.rb#37
8975
9044
  ActiveSupport::ParameterFilter::FILTERED = T.let(T.unsafe(nil), String)
8976
9045
 
8977
9046
  # NOTE: This approach has been deprecated for end-user code in favor of {thread_mattr_accessor}[rdoc-ref:Module#thread_mattr_accessor] and friends.
@@ -9248,20 +9317,20 @@ module ActiveSupport::Rescuable::ClassMethods
9248
9317
  # any.
9249
9318
  #
9250
9319
  # class ApplicationController < ActionController::Base
9251
- # rescue_from User::NotAuthorized, with: :deny_access # self defined exception
9252
- # rescue_from ActiveRecord::RecordInvalid, with: :show_errors
9320
+ # rescue_from User::NotAuthorized, with: :deny_access
9321
+ # rescue_from ActiveRecord::RecordInvalid, with: :show_record_errors
9253
9322
  #
9254
- # rescue_from 'MyAppError::Base' do |exception|
9255
- # render xml: exception, status: 500
9323
+ # rescue_from "MyApp::BaseError" do |exception|
9324
+ # redirect_to root_url, alert: exception.message
9256
9325
  # end
9257
9326
  #
9258
9327
  # private
9259
9328
  # def deny_access
9260
- # ...
9329
+ # head :forbidden
9261
9330
  # end
9262
9331
  #
9263
- # def show_errors(exception)
9264
- # exception.record.new_record? ? ...
9332
+ # def show_record_errors(exception)
9333
+ # redirect_back_or_to root_url, alert: exception.record.errors.full_messages.to_sentence
9265
9334
  # end
9266
9335
  # end
9267
9336
  #
@@ -9278,7 +9347,7 @@ module ActiveSupport::Rescuable::ClassMethods
9278
9347
  # Be sure to re-raise unhandled exceptions if this is what you expect.
9279
9348
  #
9280
9349
  # begin
9281
- #
9350
+ # # ...
9282
9351
  # rescue => exception
9283
9352
  # rescue_with_handler(exception) || raise
9284
9353
  # end
@@ -9312,13 +9381,13 @@ class ActiveSupport::SafeBuffer < ::String
9312
9381
  # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#200
9313
9382
  def initialize(str = T.unsafe(nil)); end
9314
9383
 
9315
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#253
9384
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#257
9316
9385
  def %(args); end
9317
9386
 
9318
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#246
9387
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#250
9319
9388
  def *(*_arg0); end
9320
9389
 
9321
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#242
9390
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#246
9322
9391
  def +(other); end
9323
9392
 
9324
9393
  # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#214
@@ -9327,25 +9396,28 @@ class ActiveSupport::SafeBuffer < ::String
9327
9396
  # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#181
9328
9397
  def [](*args); end
9329
9398
 
9330
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#234
9399
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#238
9331
9400
  def []=(*args); end
9332
9401
 
9333
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9334
- def capitalize(*args, &block); end
9402
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#222
9403
+ def bytesplice(*args, value); end
9335
9404
 
9336
9405
  # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9406
+ def capitalize(*args, &block); end
9407
+
9408
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9337
9409
  def capitalize!(*args); end
9338
9410
 
9339
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9411
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9340
9412
  def chomp(*args, &block); end
9341
9413
 
9342
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9414
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9343
9415
  def chomp!(*args); end
9344
9416
 
9345
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9417
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9346
9418
  def chop(*args, &block); end
9347
9419
 
9348
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9420
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9349
9421
  def chop!(*args); end
9350
9422
 
9351
9423
  # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#210
@@ -9354,75 +9426,75 @@ class ActiveSupport::SafeBuffer < ::String
9354
9426
  # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#214
9355
9427
  def concat(value); end
9356
9428
 
9357
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9429
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9358
9430
  def delete(*args, &block); end
9359
9431
 
9360
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9432
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9361
9433
  def delete!(*args); end
9362
9434
 
9363
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9435
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9364
9436
  def delete_prefix(*args, &block); end
9365
9437
 
9366
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9438
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9367
9439
  def delete_prefix!(*args); end
9368
9440
 
9369
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9441
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9370
9442
  def delete_suffix(*args, &block); end
9371
9443
 
9372
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9444
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9373
9445
  def delete_suffix!(*args); end
9374
9446
 
9375
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9447
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9376
9448
  def downcase(*args, &block); end
9377
9449
 
9378
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9450
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9379
9451
  def downcase!(*args); end
9380
9452
 
9381
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#276
9453
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#280
9382
9454
  def encode_with(coder); end
9383
9455
 
9384
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#297
9456
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#301
9385
9457
  def gsub(*args, &block); end
9386
9458
 
9387
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#308
9459
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#312
9388
9460
  def gsub!(*args, &block); end
9389
9461
 
9390
9462
  # @return [Boolean]
9391
9463
  #
9392
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#264
9464
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#268
9393
9465
  def html_safe?; end
9394
9466
 
9395
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#222
9467
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#226
9396
9468
  def insert(index, value); end
9397
9469
 
9398
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9470
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9399
9471
  def lstrip(*args, &block); end
9400
9472
 
9401
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9473
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9402
9474
  def lstrip!(*args); end
9403
9475
 
9404
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9476
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9405
9477
  def next(*args, &block); end
9406
9478
 
9407
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9479
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9408
9480
  def next!(*args); end
9409
9481
 
9410
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#226
9482
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#230
9411
9483
  def prepend(value); end
9412
9484
 
9413
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#230
9485
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#234
9414
9486
  def replace(value); end
9415
9487
 
9416
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9488
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9417
9489
  def reverse(*args, &block); end
9418
9490
 
9419
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9491
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9420
9492
  def reverse!(*args); end
9421
9493
 
9422
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9494
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9423
9495
  def rstrip(*args, &block); end
9424
9496
 
9425
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9497
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9426
9498
  def rstrip!(*args); end
9427
9499
 
9428
9500
  # @raise [SafeConcatError]
@@ -9430,84 +9502,84 @@ class ActiveSupport::SafeBuffer < ::String
9430
9502
  # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#195
9431
9503
  def safe_concat(value); end
9432
9504
 
9433
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9505
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9434
9506
  def scrub(*args, &block); end
9435
9507
 
9436
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9508
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9437
9509
  def scrub!(*args); end
9438
9510
 
9439
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9511
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9440
9512
  def slice(*args, &block); end
9441
9513
 
9442
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9514
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9443
9515
  def slice!(*args); end
9444
9516
 
9445
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9517
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9446
9518
  def squeeze(*args, &block); end
9447
9519
 
9448
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9520
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9449
9521
  def squeeze!(*args); end
9450
9522
 
9451
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9523
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9452
9524
  def strip(*args, &block); end
9453
9525
 
9454
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9526
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9455
9527
  def strip!(*args); end
9456
9528
 
9457
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#297
9529
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#301
9458
9530
  def sub(*args, &block); end
9459
9531
 
9460
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#308
9532
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#312
9461
9533
  def sub!(*args, &block); end
9462
9534
 
9463
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9535
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9464
9536
  def succ(*args, &block); end
9465
9537
 
9466
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9538
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9467
9539
  def succ!(*args); end
9468
9540
 
9469
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9541
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9470
9542
  def swapcase(*args, &block); end
9471
9543
 
9472
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9544
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9473
9545
  def swapcase!(*args); end
9474
9546
 
9475
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#272
9547
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#276
9476
9548
  def to_param; end
9477
9549
 
9478
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#268
9550
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#272
9479
9551
  def to_s; end
9480
9552
 
9481
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9553
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9482
9554
  def tr(*args, &block); end
9483
9555
 
9484
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9556
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9485
9557
  def tr!(*args); end
9486
9558
 
9487
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9559
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9488
9560
  def tr_s(*args, &block); end
9489
9561
 
9490
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9562
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9491
9563
  def tr_s!(*args); end
9492
9564
 
9493
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9565
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9494
9566
  def unicode_normalize(*args, &block); end
9495
9567
 
9496
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9568
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9497
9569
  def unicode_normalize!(*args); end
9498
9570
 
9499
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#283
9571
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9500
9572
  def upcase(*args, &block); end
9501
9573
 
9502
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#287
9574
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#291
9503
9575
  def upcase!(*args); end
9504
9576
 
9505
9577
  private
9506
9578
 
9507
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#323
9579
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#327
9508
9580
  def explicit_html_escape_interpolated_argument(arg); end
9509
9581
 
9510
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#327
9582
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#331
9511
9583
  def implicit_html_escape_interpolated_argument(arg); end
9512
9584
 
9513
9585
  # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#205
@@ -9515,7 +9587,7 @@ class ActiveSupport::SafeBuffer < ::String
9515
9587
 
9516
9588
  def original_concat(*_arg0); end
9517
9589
 
9518
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#350
9590
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#354
9519
9591
  def set_block_back_references(block, match_data); end
9520
9592
  end
9521
9593
 
@@ -9779,76 +9851,73 @@ end
9779
9851
  # it easy to stamp log lines with subdomains, request ids, and anything else
9780
9852
  # to aid debugging of multi-user production applications.
9781
9853
  #
9782
- # source://activesupport//lib/active_support/tagged_logging.rb#29
9854
+ # source://activesupport//lib/active_support/tagged_logging.rb#28
9783
9855
  module ActiveSupport::TaggedLogging
9784
- # source://activesupport//lib/active_support/tagged_logging.rb#98
9785
- def broadcast_to(other_logger); end
9786
-
9787
- # source://activesupport//lib/active_support/tagged_logging.rb#96
9856
+ # source://activesupport//lib/active_support/tagged_logging.rb#95
9788
9857
  def clear_tags!(*_arg0, **_arg1, &_arg2); end
9789
9858
 
9790
- # source://activesupport//lib/active_support/tagged_logging.rb#123
9859
+ # source://activesupport//lib/active_support/tagged_logging.rb#108
9791
9860
  def flush; end
9792
9861
 
9793
- # source://activesupport//lib/active_support/tagged_logging.rb#96
9862
+ # source://activesupport//lib/active_support/tagged_logging.rb#95
9794
9863
  def pop_tags(*_arg0, **_arg1, &_arg2); end
9795
9864
 
9796
- # source://activesupport//lib/active_support/tagged_logging.rb#96
9865
+ # source://activesupport//lib/active_support/tagged_logging.rb#95
9797
9866
  def push_tags(*_arg0, **_arg1, &_arg2); end
9798
9867
 
9799
- # source://activesupport//lib/active_support/tagged_logging.rb#112
9868
+ # source://activesupport//lib/active_support/tagged_logging.rb#97
9800
9869
  def tagged(*tags); end
9801
9870
 
9802
9871
  class << self
9803
- # source://activesupport//lib/active_support/tagged_logging.rb#82
9872
+ # source://activesupport//lib/active_support/tagged_logging.rb#81
9804
9873
  def new(logger); end
9805
9874
  end
9806
9875
  end
9807
9876
 
9808
- # source://activesupport//lib/active_support/tagged_logging.rb#30
9877
+ # source://activesupport//lib/active_support/tagged_logging.rb#29
9809
9878
  module ActiveSupport::TaggedLogging::Formatter
9810
9879
  # This method is invoked when a log event occurs.
9811
9880
  #
9812
- # source://activesupport//lib/active_support/tagged_logging.rb#32
9881
+ # source://activesupport//lib/active_support/tagged_logging.rb#31
9813
9882
  def call(severity, timestamp, progname, msg); end
9814
9883
 
9815
- # source://activesupport//lib/active_support/tagged_logging.rb#54
9884
+ # source://activesupport//lib/active_support/tagged_logging.rb#53
9816
9885
  def clear_tags!; end
9817
9886
 
9818
- # source://activesupport//lib/active_support/tagged_logging.rb#58
9887
+ # source://activesupport//lib/active_support/tagged_logging.rb#57
9819
9888
  def current_tags; end
9820
9889
 
9821
- # source://activesupport//lib/active_support/tagged_logging.rb#50
9890
+ # source://activesupport//lib/active_support/tagged_logging.rb#49
9822
9891
  def pop_tags(size = T.unsafe(nil)); end
9823
9892
 
9824
- # source://activesupport//lib/active_support/tagged_logging.rb#43
9893
+ # source://activesupport//lib/active_support/tagged_logging.rb#42
9825
9894
  def push_tags(*tags); end
9826
9895
 
9827
- # source://activesupport//lib/active_support/tagged_logging.rb#36
9896
+ # source://activesupport//lib/active_support/tagged_logging.rb#35
9828
9897
  def tagged(*tags); end
9829
9898
 
9830
- # source://activesupport//lib/active_support/tagged_logging.rb#64
9899
+ # source://activesupport//lib/active_support/tagged_logging.rb#63
9831
9900
  def tags_text; end
9832
9901
  end
9833
9902
 
9834
- # source://activesupport//lib/active_support/tagged_logging.rb#74
9903
+ # source://activesupport//lib/active_support/tagged_logging.rb#73
9835
9904
  module ActiveSupport::TaggedLogging::LocalTagStorage
9836
9905
  # Returns the value of attribute current_tags.
9837
9906
  #
9838
- # source://activesupport//lib/active_support/tagged_logging.rb#75
9907
+ # source://activesupport//lib/active_support/tagged_logging.rb#74
9839
9908
  def current_tags; end
9840
9909
 
9841
9910
  # Sets the attribute current_tags
9842
9911
  #
9843
9912
  # @param value the value to set the attribute current_tags to.
9844
9913
  #
9845
- # source://activesupport//lib/active_support/tagged_logging.rb#75
9914
+ # source://activesupport//lib/active_support/tagged_logging.rb#74
9846
9915
  def current_tags=(_arg0); end
9847
9916
 
9848
9917
  class << self
9849
9918
  # @private
9850
9919
  #
9851
- # source://activesupport//lib/active_support/tagged_logging.rb#77
9920
+ # source://activesupport//lib/active_support/tagged_logging.rb#76
9852
9921
  def extended(base); end
9853
9922
  end
9854
9923
  end
@@ -9885,48 +9954,48 @@ class ActiveSupport::TestCase < ::Minitest::Test
9885
9954
  # source://activesupport//lib/active_support/callbacks.rb#940
9886
9955
  def _teardown_callbacks; end
9887
9956
 
9888
- # source://minitest/5.16.2/lib/minitest/assertions.rb#709
9957
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#731
9889
9958
  def assert_no_match(matcher, obj, msg = T.unsafe(nil)); end
9890
9959
 
9891
- # source://minitest/5.16.2/lib/minitest/assertions.rb#638
9960
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#660
9892
9961
  def assert_not_empty(obj, msg = T.unsafe(nil)); end
9893
9962
 
9894
- # source://minitest/5.16.2/lib/minitest/assertions.rb#649
9963
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#671
9895
9964
  def assert_not_equal(exp, act, msg = T.unsafe(nil)); end
9896
9965
 
9897
- # source://minitest/5.16.2/lib/minitest/assertions.rb#661
9966
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#683
9898
9967
  def assert_not_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
9899
9968
 
9900
- # source://minitest/5.16.2/lib/minitest/assertions.rb#673
9969
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#695
9901
9970
  def assert_not_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
9902
9971
 
9903
- # source://minitest/5.16.2/lib/minitest/assertions.rb#680
9972
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#702
9904
9973
  def assert_not_includes(collection, obj, msg = T.unsafe(nil)); end
9905
9974
 
9906
- # source://minitest/5.16.2/lib/minitest/assertions.rb#691
9975
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#713
9907
9976
  def assert_not_instance_of(cls, obj, msg = T.unsafe(nil)); end
9908
9977
 
9909
- # source://minitest/5.16.2/lib/minitest/assertions.rb#701
9978
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#723
9910
9979
  def assert_not_kind_of(cls, obj, msg = T.unsafe(nil)); end
9911
9980
 
9912
- # source://minitest/5.16.2/lib/minitest/assertions.rb#719
9981
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#741
9913
9982
  def assert_not_nil(obj, msg = T.unsafe(nil)); end
9914
9983
 
9915
- # source://minitest/5.16.2/lib/minitest/assertions.rb#730
9984
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#776
9916
9985
  def assert_not_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
9917
9986
 
9918
- # source://minitest/5.16.2/lib/minitest/assertions.rb#753
9987
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#799
9919
9988
  def assert_not_predicate(o1, op, msg = T.unsafe(nil)); end
9920
9989
 
9921
- # source://minitest/5.16.2/lib/minitest/assertions.rb#761
9922
- def assert_not_respond_to(obj, meth, msg = T.unsafe(nil)); end
9990
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#808
9991
+ def assert_not_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end
9923
9992
 
9924
- # source://minitest/5.16.2/lib/minitest/assertions.rb#770
9993
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#817
9925
9994
  def assert_not_same(exp, act, msg = T.unsafe(nil)); end
9926
9995
 
9927
9996
  # test/unit backwards compatibility methods
9928
9997
  #
9929
- # source://minitest/5.16.2/lib/minitest/assertions.rb#396
9998
+ # source://minitest/5.25.4/lib/minitest/assertions.rb#418
9930
9999
  def assert_raise(*exp); end
9931
10000
 
9932
10001
  # source://activesupport//lib/active_support/testing/file_fixtures.rb#20
@@ -9935,7 +10004,10 @@ class ActiveSupport::TestCase < ::Minitest::Test
9935
10004
  # source://activesupport//lib/active_support/testing/file_fixtures.rb#20
9936
10005
  def file_fixture_path?; end
9937
10006
 
9938
- # source://minitest/5.16.2/lib/minitest.rb#304
10007
+ # source://activesupport//lib/active_support/test_case.rb#151
10008
+ def inspect; end
10009
+
10010
+ # source://minitest/5.25.4/lib/minitest.rb#376
9939
10011
  def method_name; end
9940
10012
 
9941
10013
  class << self
@@ -10425,16 +10497,16 @@ module ActiveSupport::Testing::Isolation::Forking
10425
10497
  def run_in_isolation(&blk); end
10426
10498
  end
10427
10499
 
10428
- # source://activesupport//lib/active_support/testing/isolation.rb#63
10500
+ # source://activesupport//lib/active_support/testing/isolation.rb#64
10429
10501
  module ActiveSupport::Testing::Isolation::Subprocess
10430
10502
  # Complicated H4X to get this working in windows / jruby with
10431
10503
  # no forking.
10432
10504
  #
10433
- # source://activesupport//lib/active_support/testing/isolation.rb#68
10505
+ # source://activesupport//lib/active_support/testing/isolation.rb#69
10434
10506
  def run_in_isolation(&blk); end
10435
10507
  end
10436
10508
 
10437
- # source://activesupport//lib/active_support/testing/isolation.rb#64
10509
+ # source://activesupport//lib/active_support/testing/isolation.rb#65
10438
10510
  ActiveSupport::Testing::Isolation::Subprocess::ORIG_ARGV = T.let(T.unsafe(nil), Array)
10439
10511
 
10440
10512
  # source://activesupport//lib/active_support/testing/parallelization/server.rb#8
@@ -10974,13 +11046,12 @@ class ActiveSupport::TimeWithZone
10974
11046
  # now + 24.hours # => Mon, 03 Nov 2014 00:26:28.725182881 EST -05:00
10975
11047
  # now + 1.day # => Mon, 03 Nov 2014 01:26:28.725182881 EST -05:00
10976
11048
  #
10977
- # source://activesupport//lib/active_support/time_with_zone.rb#328
11049
+ # source://activesupport//lib/active_support/time_with_zone.rb#309
10978
11050
  def +(other); end
10979
11051
 
10980
11052
  # Subtracts an interval of time and returns a new TimeWithZone object unless
10981
- # the other value +acts_like?+ time. Then it will return a Float of the difference
10982
- # between the two times that represents the difference between the current
10983
- # object's time and the +other+ time.
11053
+ # the other value +acts_like?+ time. In which case, it will subtract the
11054
+ # other time and return the difference in seconds as a Float.
10984
11055
  #
10985
11056
  # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)'
10986
11057
  # now = Time.zone.now # => Mon, 03 Nov 2014 00:26:28.725182881 EST -05:00
@@ -11001,19 +11072,19 @@ class ActiveSupport::TimeWithZone
11001
11072
  #
11002
11073
  # Time.zone.now - 1.day.ago # => 86399.999967
11003
11074
  #
11004
- # source://activesupport//lib/active_support/time_with_zone.rb#363
11075
+ # source://activesupport//lib/active_support/time_with_zone.rb#343
11005
11076
  def -(other); end
11006
11077
 
11007
11078
  # Use the time in UTC for comparisons.
11008
11079
  #
11009
- # source://activesupport//lib/active_support/time_with_zone.rb#261
11080
+ # source://activesupport//lib/active_support/time_with_zone.rb#242
11010
11081
  def <=>(other); end
11011
11082
 
11012
11083
  # So that +self+ <tt>acts_like?(:time)</tt>.
11013
11084
  #
11014
11085
  # @return [Boolean]
11015
11086
  #
11016
- # source://activesupport//lib/active_support/time_with_zone.rb#524
11087
+ # source://activesupport//lib/active_support/time_with_zone.rb#504
11017
11088
  def acts_like_time?; end
11018
11089
 
11019
11090
  # Uses Date to provide precise Time calculations for years, months, and days
@@ -11038,7 +11109,7 @@ class ActiveSupport::TimeWithZone
11038
11109
  # now.advance(months: 1) # => Tue, 02 Dec 2014 01:26:28.558049687 EST -05:00
11039
11110
  # now.advance(years: 1) # => Mon, 02 Nov 2015 01:26:28.558049687 EST -05:00
11040
11111
  #
11041
- # source://activesupport//lib/active_support/time_with_zone.rb#452
11112
+ # source://activesupport//lib/active_support/time_with_zone.rb#432
11042
11113
  def advance(options); end
11043
11114
 
11044
11115
  def after?(_arg0); end
@@ -11061,7 +11132,7 @@ class ActiveSupport::TimeWithZone
11061
11132
  # now.ago(24.hours) # => Sun, 02 Nov 2014 01:26:28.725182881 EDT -04:00
11062
11133
  # now.ago(1.day) # => Sun, 02 Nov 2014 00:26:28.725182881 EDT -04:00
11063
11134
  #
11064
- # source://activesupport//lib/active_support/time_with_zone.rb#391
11135
+ # source://activesupport//lib/active_support/time_with_zone.rb#371
11065
11136
  def ago(other); end
11066
11137
 
11067
11138
  # Coerces time to a string for JSON encoding. The default format is ISO 8601.
@@ -11087,14 +11158,14 @@ class ActiveSupport::TimeWithZone
11087
11158
  #
11088
11159
  # @return [Boolean]
11089
11160
  #
11090
- # source://activesupport//lib/active_support/time_with_zone.rb#269
11161
+ # source://activesupport//lib/active_support/time_with_zone.rb#250
11091
11162
  def between?(min, max); end
11092
11163
 
11093
11164
  # An instance of ActiveSupport::TimeWithZone is never blank
11094
11165
  #
11095
11166
  # @return [Boolean]
11096
11167
  #
11097
- # source://activesupport//lib/active_support/time_with_zone.rb#535
11168
+ # source://activesupport//lib/active_support/time_with_zone.rb#515
11098
11169
  def blank?; end
11099
11170
 
11100
11171
  # Returns a new +ActiveSupport::TimeWithZone+ where one or more of the elements have
@@ -11115,7 +11186,7 @@ class ActiveSupport::TimeWithZone
11115
11186
  # t.change(offset: "-10:00") # => Fri, 14 Apr 2017 11:45:15.116992711 HST -10:00
11116
11187
  # t.change(zone: "Hawaii") # => Fri, 14 Apr 2017 11:45:15.116992711 HST -10:00
11117
11188
  #
11118
- # source://activesupport//lib/active_support/time_with_zone.rb#412
11189
+ # source://activesupport//lib/active_support/time_with_zone.rb#392
11119
11190
  def change(options); end
11120
11191
 
11121
11192
  # Returns a <tt>Time</tt> instance of the simultaneous time in the UTC timezone.
@@ -11123,7 +11194,7 @@ class ActiveSupport::TimeWithZone
11123
11194
  # source://activesupport//lib/active_support/time_with_zone.rb#73
11124
11195
  def comparable_time; end
11125
11196
 
11126
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11197
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11127
11198
  def day; end
11128
11199
 
11129
11200
  # Returns true if the current time is within Daylight Savings Time for the
@@ -11145,7 +11216,7 @@ class ActiveSupport::TimeWithZone
11145
11216
  #
11146
11217
  # @return [Boolean]
11147
11218
  #
11148
- # source://activesupport//lib/active_support/time_with_zone.rb#304
11219
+ # source://activesupport//lib/active_support/time_with_zone.rb#285
11149
11220
  def eql?(other); end
11150
11221
 
11151
11222
  # Returns a formatted string of the offset from UTC, or an alternative
@@ -11160,14 +11231,14 @@ class ActiveSupport::TimeWithZone
11160
11231
  # source://activesupport//lib/active_support/time_with_zone.rb#135
11161
11232
  def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end
11162
11233
 
11163
- # source://activesupport//lib/active_support/time_with_zone.rb#539
11234
+ # source://activesupport//lib/active_support/time_with_zone.rb#519
11164
11235
  def freeze; end
11165
11236
 
11166
11237
  # Returns true if the current object's time is in the future.
11167
11238
  #
11168
11239
  # @return [Boolean]
11169
11240
  #
11170
- # source://activesupport//lib/active_support/time_with_zone.rb#299
11241
+ # source://activesupport//lib/active_support/time_with_zone.rb#280
11171
11242
  def future?; end
11172
11243
 
11173
11244
  # Returns a <tt>Time</tt> instance of the simultaneous time in the UTC timezone.
@@ -11212,10 +11283,10 @@ class ActiveSupport::TimeWithZone
11212
11283
  # source://activesupport//lib/active_support/time_with_zone.rb#121
11213
11284
  def gmtoff; end
11214
11285
 
11215
- # source://activesupport//lib/active_support/time_with_zone.rb#308
11286
+ # source://activesupport//lib/active_support/time_with_zone.rb#289
11216
11287
  def hash; end
11217
11288
 
11218
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11289
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11219
11290
  def hour; end
11220
11291
 
11221
11292
  # Returns a string of the object's date and time in the format used by
@@ -11243,7 +11314,7 @@ class ActiveSupport::TimeWithZone
11243
11314
  # now + 24.hours # => Mon, 03 Nov 2014 00:26:28.725182881 EST -05:00
11244
11315
  # now + 1.day # => Mon, 03 Nov 2014 01:26:28.725182881 EST -05:00
11245
11316
  #
11246
- # source://activesupport//lib/active_support/time_with_zone.rb#328
11317
+ # source://activesupport//lib/active_support/time_with_zone.rb#309
11247
11318
  def in(other); end
11248
11319
 
11249
11320
  # Returns the simultaneous time in <tt>Time.zone</tt>, or the specified zone.
@@ -11265,7 +11336,7 @@ class ActiveSupport::TimeWithZone
11265
11336
  #
11266
11337
  # @return [Boolean]
11267
11338
  #
11268
- # source://activesupport//lib/active_support/time_with_zone.rb#529
11339
+ # source://activesupport//lib/active_support/time_with_zone.rb#509
11269
11340
  def is_a?(klass); end
11270
11341
 
11271
11342
  # Returns true if the current time is within Daylight Savings Time for the
@@ -11292,7 +11363,7 @@ class ActiveSupport::TimeWithZone
11292
11363
  #
11293
11364
  # @return [Boolean]
11294
11365
  #
11295
- # source://activesupport//lib/active_support/time_with_zone.rb#529
11366
+ # source://activesupport//lib/active_support/time_with_zone.rb#509
11296
11367
  def kind_of?(klass); end
11297
11368
 
11298
11369
  # Returns a <tt>Time</tt> instance of the simultaneous time in the system timezone.
@@ -11300,28 +11371,28 @@ class ActiveSupport::TimeWithZone
11300
11371
  # source://activesupport//lib/active_support/time_with_zone.rb#93
11301
11372
  def localtime(utc_offset = T.unsafe(nil)); end
11302
11373
 
11303
- # source://activesupport//lib/active_support/time_with_zone.rb#545
11374
+ # source://activesupport//lib/active_support/time_with_zone.rb#525
11304
11375
  def marshal_dump; end
11305
11376
 
11306
- # source://activesupport//lib/active_support/time_with_zone.rb#549
11377
+ # source://activesupport//lib/active_support/time_with_zone.rb#529
11307
11378
  def marshal_load(variables); end
11308
11379
 
11309
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11380
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11310
11381
  def mday; end
11311
11382
 
11312
11383
  # Send the missing method to +time+ instance, and wrap result in a new
11313
11384
  # TimeWithZone with the existing +time_zone+.
11314
11385
  #
11315
- # source://activesupport//lib/active_support/time_with_zone.rb#570
11316
- def method_missing(sym, *args, &block); end
11386
+ # source://activesupport//lib/active_support/time_with_zone.rb#550
11387
+ def method_missing(*_arg0, **_arg1, &_arg2); end
11317
11388
 
11318
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11389
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11319
11390
  def min; end
11320
11391
 
11321
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11392
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11322
11393
  def mon; end
11323
11394
 
11324
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11395
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11325
11396
  def month; end
11326
11397
 
11327
11398
  # Returns true if the current object's time falls within
@@ -11329,17 +11400,17 @@ class ActiveSupport::TimeWithZone
11329
11400
  #
11330
11401
  # @return [Boolean]
11331
11402
  #
11332
- # source://activesupport//lib/active_support/time_with_zone.rb#286
11403
+ # source://activesupport//lib/active_support/time_with_zone.rb#267
11333
11404
  def next_day?; end
11334
11405
 
11335
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11406
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11336
11407
  def nsec; end
11337
11408
 
11338
11409
  # Returns true if the current object's time is in the past.
11339
11410
  #
11340
11411
  # @return [Boolean]
11341
11412
  #
11342
- # source://activesupport//lib/active_support/time_with_zone.rb#274
11413
+ # source://activesupport//lib/active_support/time_with_zone.rb#255
11343
11414
  def past?; end
11344
11415
 
11345
11416
  # Returns the underlying <tt>TZInfo::TimezonePeriod</tt>.
@@ -11352,7 +11423,7 @@ class ActiveSupport::TimeWithZone
11352
11423
  #
11353
11424
  # @return [Boolean]
11354
11425
  #
11355
- # source://activesupport//lib/active_support/time_with_zone.rb#293
11426
+ # source://activesupport//lib/active_support/time_with_zone.rb#274
11356
11427
  def prev_day?; end
11357
11428
 
11358
11429
  # respond_to_missing? is not called in some cases, such as when type conversion is
@@ -11360,7 +11431,7 @@ class ActiveSupport::TimeWithZone
11360
11431
  #
11361
11432
  # @return [Boolean]
11362
11433
  #
11363
- # source://activesupport//lib/active_support/time_with_zone.rb#555
11434
+ # source://activesupport//lib/active_support/time_with_zone.rb#535
11364
11435
  def respond_to?(sym, include_priv = T.unsafe(nil)); end
11365
11436
 
11366
11437
  # Returns a string of the object's date and time in the RFC 2822 standard
@@ -11387,7 +11458,7 @@ class ActiveSupport::TimeWithZone
11387
11458
  # source://activesupport//lib/active_support/time_with_zone.rb#204
11388
11459
  def rfc822; end
11389
11460
 
11390
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11461
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11391
11462
  def sec; end
11392
11463
 
11393
11464
  # Adds an interval of time to the current object's time and returns that
@@ -11407,13 +11478,13 @@ class ActiveSupport::TimeWithZone
11407
11478
  # now + 24.hours # => Mon, 03 Nov 2014 00:26:28.725182881 EST -05:00
11408
11479
  # now + 1.day # => Mon, 03 Nov 2014 01:26:28.725182881 EST -05:00
11409
11480
  #
11410
- # source://activesupport//lib/active_support/time_with_zone.rb#328
11481
+ # source://activesupport//lib/active_support/time_with_zone.rb#309
11411
11482
  def since(other); end
11412
11483
 
11413
11484
  # Replaces <tt>%Z</tt> directive with +zone before passing to Time#strftime,
11414
11485
  # so that zone information is correct.
11415
11486
  #
11416
- # source://activesupport//lib/active_support/time_with_zone.rb#255
11487
+ # source://activesupport//lib/active_support/time_with_zone.rb#236
11417
11488
  def strftime(format); end
11418
11489
 
11419
11490
  # Returns a <tt>Time</tt> instance that represents the time in +time_zone+.
@@ -11432,10 +11503,10 @@ class ActiveSupport::TimeWithZone
11432
11503
  # now = Time.zone.now # => Tue, 18 Aug 2015 02:29:27.485278555 UTC +00:00
11433
11504
  # now.to_a # => [27, 29, 2, 18, 8, 2015, 2, 230, false, "UTC"]
11434
11505
  #
11435
- # source://activesupport//lib/active_support/time_with_zone.rb#475
11506
+ # source://activesupport//lib/active_support/time_with_zone.rb#455
11436
11507
  def to_a; end
11437
11508
 
11438
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11509
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11439
11510
  def to_date; end
11440
11511
 
11441
11512
  # Returns an instance of DateTime with the timezone's UTC offset
@@ -11443,7 +11514,7 @@ class ActiveSupport::TimeWithZone
11443
11514
  # Time.zone.now.to_datetime # => Tue, 18 Aug 2015 02:32:20 +0000
11444
11515
  # Time.current.in_time_zone('Hawaii').to_datetime # => Mon, 17 Aug 2015 16:32:20 -1000
11445
11516
  #
11446
- # source://activesupport//lib/active_support/time_with_zone.rb#508
11517
+ # source://activesupport//lib/active_support/time_with_zone.rb#488
11447
11518
  def to_datetime; end
11448
11519
 
11449
11520
  # Returns the object's date and time as a floating-point number of seconds
@@ -11451,7 +11522,7 @@ class ActiveSupport::TimeWithZone
11451
11522
  #
11452
11523
  # Time.zone.now.to_f # => 1417709320.285418
11453
11524
  #
11454
- # source://activesupport//lib/active_support/time_with_zone.rb#483
11525
+ # source://activesupport//lib/active_support/time_with_zone.rb#463
11455
11526
  def to_f; end
11456
11527
 
11457
11528
  # Returns a string of the object's date and time.
@@ -11463,7 +11534,7 @@ class ActiveSupport::TimeWithZone
11463
11534
  # * <tt>:db</tt> - format outputs time in UTC :db time. See Time#to_fs(:db).
11464
11535
  # * Any key in <tt>Time::DATE_FORMATS</tt> can be used. See active_support/core_ext/time/conversions.rb.
11465
11536
  #
11466
- # source://activesupport//lib/active_support/time_with_zone.rb#241
11537
+ # source://activesupport//lib/active_support/time_with_zone.rb#222
11467
11538
  def to_formatted_s(format = T.unsafe(nil)); end
11468
11539
 
11469
11540
  # Returns a string of the object's date and time.
@@ -11475,7 +11546,7 @@ class ActiveSupport::TimeWithZone
11475
11546
  # * <tt>:db</tt> - format outputs time in UTC :db time. See Time#to_fs(:db).
11476
11547
  # * Any key in <tt>Time::DATE_FORMATS</tt> can be used. See active_support/core_ext/time/conversions.rb.
11477
11548
  #
11478
- # source://activesupport//lib/active_support/time_with_zone.rb#241
11549
+ # source://activesupport//lib/active_support/time_with_zone.rb#222
11479
11550
  def to_fs(format = T.unsafe(nil)); end
11480
11551
 
11481
11552
  # Returns the object's date and time as an integer number of seconds
@@ -11483,7 +11554,7 @@ class ActiveSupport::TimeWithZone
11483
11554
  #
11484
11555
  # Time.zone.now.to_i # => 1417709320
11485
11556
  #
11486
- # source://activesupport//lib/active_support/time_with_zone.rb#491
11557
+ # source://activesupport//lib/active_support/time_with_zone.rb#471
11487
11558
  def to_i; end
11488
11559
 
11489
11560
  # Returns the object's date and time as a rational number of seconds
@@ -11491,19 +11562,19 @@ class ActiveSupport::TimeWithZone
11491
11562
  #
11492
11563
  # Time.zone.now.to_r # => (708854548642709/500000)
11493
11564
  #
11494
- # source://activesupport//lib/active_support/time_with_zone.rb#500
11565
+ # source://activesupport//lib/active_support/time_with_zone.rb#480
11495
11566
  def to_r; end
11496
11567
 
11497
11568
  # Returns a string of the object's date and time.
11498
11569
  #
11499
- # source://activesupport//lib/active_support/time_with_zone.rb#212
11500
- def to_s(format = T.unsafe(nil)); end
11570
+ # source://activesupport//lib/active_support/time_with_zone.rb#210
11571
+ def to_s; end
11501
11572
 
11502
11573
  # Returns an instance of +Time+, either with the same UTC offset
11503
11574
  # as +self+ or in the local system timezone depending on the setting
11504
11575
  # of +ActiveSupport.to_time_preserves_timezone+.
11505
11576
  #
11506
- # source://activesupport//lib/active_support/time_with_zone.rb#515
11577
+ # source://activesupport//lib/active_support/time_with_zone.rb#495
11507
11578
  def to_time; end
11508
11579
 
11509
11580
  # Returns true if the current object's time falls within
@@ -11511,7 +11582,7 @@ class ActiveSupport::TimeWithZone
11511
11582
  #
11512
11583
  # @return [Boolean]
11513
11584
  #
11514
- # source://activesupport//lib/active_support/time_with_zone.rb#280
11585
+ # source://activesupport//lib/active_support/time_with_zone.rb#261
11515
11586
  def today?; end
11516
11587
 
11517
11588
  # Returns true if the current object's time falls within
@@ -11519,7 +11590,7 @@ class ActiveSupport::TimeWithZone
11519
11590
  #
11520
11591
  # @return [Boolean]
11521
11592
  #
11522
- # source://activesupport//lib/active_support/time_with_zone.rb#286
11593
+ # source://activesupport//lib/active_support/time_with_zone.rb#267
11523
11594
  def tomorrow?; end
11524
11595
 
11525
11596
  # Returns the object's date and time as an integer number of seconds
@@ -11527,10 +11598,10 @@ class ActiveSupport::TimeWithZone
11527
11598
  #
11528
11599
  # Time.zone.now.to_i # => 1417709320
11529
11600
  #
11530
- # source://activesupport//lib/active_support/time_with_zone.rb#491
11601
+ # source://activesupport//lib/active_support/time_with_zone.rb#471
11531
11602
  def tv_sec; end
11532
11603
 
11533
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11604
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11534
11605
  def usec; end
11535
11606
 
11536
11607
  # Returns a <tt>Time</tt> instance of the simultaneous time in the UTC timezone.
@@ -11555,7 +11626,7 @@ class ActiveSupport::TimeWithZone
11555
11626
  # source://activesupport//lib/active_support/time_with_zone.rb#121
11556
11627
  def utc_offset; end
11557
11628
 
11558
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11629
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11559
11630
  def wday; end
11560
11631
 
11561
11632
  # Returns a string of the object's date and time in the ISO 8601 standard
@@ -11566,10 +11637,10 @@ class ActiveSupport::TimeWithZone
11566
11637
  # source://activesupport//lib/active_support/time_with_zone.rb#158
11567
11638
  def xmlschema(fraction_digits = T.unsafe(nil)); end
11568
11639
 
11569
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11640
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11570
11641
  def yday; end
11571
11642
 
11572
- # source://activesupport//lib/active_support/time_with_zone.rb#464
11643
+ # source://activesupport//lib/active_support/time_with_zone.rb#444
11573
11644
  def year; end
11574
11645
 
11575
11646
  # Returns true if the current object's time falls within
@@ -11577,7 +11648,7 @@ class ActiveSupport::TimeWithZone
11577
11648
  #
11578
11649
  # @return [Boolean]
11579
11650
  #
11580
- # source://activesupport//lib/active_support/time_with_zone.rb#293
11651
+ # source://activesupport//lib/active_support/time_with_zone.rb#274
11581
11652
  def yesterday?; end
11582
11653
 
11583
11654
  # Returns the time zone abbreviation.
@@ -11592,13 +11663,13 @@ class ActiveSupport::TimeWithZone
11592
11663
 
11593
11664
  # @return [Boolean]
11594
11665
  #
11595
- # source://activesupport//lib/active_support/time_with_zone.rb#606
11666
+ # source://activesupport//lib/active_support/time_with_zone.rb#586
11596
11667
  def duration_of_variable_length?(obj); end
11597
11668
 
11598
- # source://activesupport//lib/active_support/time_with_zone.rb#587
11669
+ # source://activesupport//lib/active_support/time_with_zone.rb#567
11599
11670
  def get_period_and_ensure_valid_local_time(period); end
11600
11671
 
11601
- # source://activesupport//lib/active_support/time_with_zone.rb#579
11672
+ # source://activesupport//lib/active_support/time_with_zone.rb#559
11602
11673
  def incorporate_utc_offset(time, offset); end
11603
11674
 
11604
11675
  # Ensure proxy class responds to all methods that underlying time instance
@@ -11606,13 +11677,13 @@ class ActiveSupport::TimeWithZone
11606
11677
  #
11607
11678
  # @return [Boolean]
11608
11679
  #
11609
- # source://activesupport//lib/active_support/time_with_zone.rb#563
11680
+ # source://activesupport//lib/active_support/time_with_zone.rb#543
11610
11681
  def respond_to_missing?(sym, include_priv); end
11611
11682
 
11612
- # source://activesupport//lib/active_support/time_with_zone.rb#600
11683
+ # source://activesupport//lib/active_support/time_with_zone.rb#580
11613
11684
  def transfer_time_values_to_utc_constructor(time); end
11614
11685
 
11615
- # source://activesupport//lib/active_support/time_with_zone.rb#610
11686
+ # source://activesupport//lib/active_support/time_with_zone.rb#590
11616
11687
  def wrap_with_time_zone(time); end
11617
11688
 
11618
11689
  class << self
@@ -11623,13 +11694,10 @@ class ActiveSupport::TimeWithZone
11623
11694
  end
11624
11695
  end
11625
11696
 
11626
- # source://activesupport//lib/active_support/time_with_zone.rb#209
11627
- ActiveSupport::TimeWithZone::NOT_SET = T.let(T.unsafe(nil), Object)
11628
-
11629
11697
  # source://activesupport//lib/active_support/time_with_zone.rb#55
11630
11698
  ActiveSupport::TimeWithZone::PRECISIONS = T.let(T.unsafe(nil), Hash)
11631
11699
 
11632
- # source://activesupport//lib/active_support/time_with_zone.rb#577
11700
+ # source://activesupport//lib/active_support/time_with_zone.rb#557
11633
11701
  ActiveSupport::TimeWithZone::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer)
11634
11702
 
11635
11703
  # The TimeZone class serves as a wrapper around <tt>TZInfo::Timezone</tt> instances.
@@ -12269,7 +12337,7 @@ class Array
12269
12337
  # a.compact_blank!
12270
12338
  # # => [1, 2, true]
12271
12339
  #
12272
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#325
12340
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#330
12273
12341
  def compact_blank!; end
12274
12342
 
12275
12343
  # Returns a deep copy of array.
@@ -12363,7 +12431,7 @@ class Array
12363
12431
  # source://activesupport//lib/active_support/core_ext/array/access.rb#97
12364
12432
  def second_to_last; end
12365
12433
 
12366
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#310
12434
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#315
12367
12435
  def sum(init = T.unsafe(nil), &block); end
12368
12436
 
12369
12437
  # Equal to <tt>self[2]</tt>.
@@ -12754,7 +12822,7 @@ class Date
12754
12822
 
12755
12823
  # Allow Date to be compared with Time by converting to DateTime and relying on the <=> from there.
12756
12824
  #
12757
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#137
12825
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#152
12758
12826
  def <=>(other); end
12759
12827
 
12760
12828
  # Duck-types as a Date-like class. See Object#acts_like?.
@@ -12767,7 +12835,21 @@ class Date
12767
12835
  # Provides precise Date calculations for years, months, and days. The +options+ parameter takes a hash with
12768
12836
  # any of these keys: <tt>:years</tt>, <tt>:months</tt>, <tt>:weeks</tt>, <tt>:days</tt>.
12769
12837
  #
12770
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#112
12838
+ # The increments are applied in order of time units from largest to smallest.
12839
+ # In other words, the date is incremented first by +:years+, then by
12840
+ # +:months+, then by +:weeks+, then by +:days+. This order can affect the
12841
+ # result around the end of a month. For example, incrementing first by months
12842
+ # then by days:
12843
+ #
12844
+ # Date.new(2004, 9, 30).advance(months: 1, days: 1)
12845
+ # # => Sun, 31 Oct 2004
12846
+ #
12847
+ # Whereas incrementing first by days then by months yields a different result:
12848
+ #
12849
+ # Date.new(2004, 9, 30).advance(days: 1).advance(months: 1)
12850
+ # # => Mon, 01 Nov 2004
12851
+ #
12852
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#127
12771
12853
  def advance(options); end
12772
12854
 
12773
12855
  # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00)
@@ -12820,12 +12902,12 @@ class Date
12820
12902
  # Date.new(2007, 5, 12).change(day: 1) # => Date.new(2007, 5, 1)
12821
12903
  # Date.new(2007, 5, 12).change(year: 2005, month: 1) # => Date.new(2005, 1, 12)
12822
12904
  #
12823
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#128
12905
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#143
12824
12906
  def change(options); end
12825
12907
 
12826
12908
  # Allow Date to be compared with Time by converting to DateTime and relying on the <=> from there.
12827
12909
  #
12828
- # source://activesupport//lib/active_support/core_ext/date/calculations.rb#137
12910
+ # source://activesupport//lib/active_support/core_ext/date/calculations.rb#152
12829
12911
  def compare_with_coercion(other); end
12830
12912
 
12831
12913
  # Converts Date to a Time (or DateTime if necessary) with the time portion set to the end of the day (23:59:59)
@@ -13526,7 +13608,7 @@ class DateTime < ::Date
13526
13608
  # Layers additional behavior on DateTime#<=> so that Time and
13527
13609
  # ActiveSupport::TimeWithZone instances can be compared with a DateTime.
13528
13610
  #
13529
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#204
13611
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#208
13530
13612
  def <=>(other); end
13531
13613
 
13532
13614
  # Uses Date to provide precise Time calculations for years, months, and days.
@@ -13534,13 +13616,17 @@ class DateTime < ::Date
13534
13616
  # <tt>:months</tt>, <tt>:weeks</tt>, <tt>:days</tt>, <tt>:hours</tt>,
13535
13617
  # <tt>:minutes</tt>, <tt>:seconds</tt>.
13536
13618
  #
13537
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#78
13619
+ # Just like Date#advance, increments are applied in order of time units from
13620
+ # largest to smallest. This order can affect the result around the end of a
13621
+ # month.
13622
+ #
13623
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#82
13538
13624
  def advance(options); end
13539
13625
 
13540
13626
  # Returns a new DateTime representing the time a number of seconds ago.
13541
13627
  # Do not use this method in combination with x.months, use months_ago instead!
13542
13628
  #
13543
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#105
13629
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#109
13544
13630
  def ago(seconds); end
13545
13631
 
13546
13632
  # source://activesupport//lib/active_support/core_ext/object/json.rb#207
@@ -13548,67 +13634,67 @@ class DateTime < ::Date
13548
13634
 
13549
13635
  # Returns a new DateTime representing the start of the day (0:00).
13550
13636
  #
13551
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#118
13637
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122
13552
13638
  def at_beginning_of_day; end
13553
13639
 
13554
13640
  # Returns a new DateTime representing the start of the hour (hh:00:00).
13555
13641
  #
13556
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#142
13642
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#146
13557
13643
  def at_beginning_of_hour; end
13558
13644
 
13559
13645
  # Returns a new DateTime representing the start of the minute (hh:mm:00).
13560
13646
  #
13561
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#154
13647
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#158
13562
13648
  def at_beginning_of_minute; end
13563
13649
 
13564
13650
  # Returns a new DateTime representing the end of the day (23:59:59).
13565
13651
  #
13566
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#136
13652
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#140
13567
13653
  def at_end_of_day; end
13568
13654
 
13569
13655
  # Returns a new DateTime representing the end of the hour (hh:59:59).
13570
13656
  #
13571
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#148
13657
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#152
13572
13658
  def at_end_of_hour; end
13573
13659
 
13574
13660
  # Returns a new DateTime representing the end of the minute (hh:mm:59).
13575
13661
  #
13576
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#160
13662
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#164
13577
13663
  def at_end_of_minute; end
13578
13664
 
13579
13665
  # Returns a new DateTime representing the middle of the day (12:00)
13580
13666
  #
13581
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#126
13667
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130
13582
13668
  def at_midday; end
13583
13669
 
13584
13670
  # Returns a new DateTime representing the middle of the day (12:00)
13585
13671
  #
13586
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#126
13672
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130
13587
13673
  def at_middle_of_day; end
13588
13674
 
13589
13675
  # Returns a new DateTime representing the start of the day (0:00).
13590
13676
  #
13591
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#118
13677
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122
13592
13678
  def at_midnight; end
13593
13679
 
13594
13680
  # Returns a new DateTime representing the middle of the day (12:00)
13595
13681
  #
13596
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#126
13682
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130
13597
13683
  def at_noon; end
13598
13684
 
13599
13685
  # Returns a new DateTime representing the start of the day (0:00).
13600
13686
  #
13601
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#118
13687
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122
13602
13688
  def beginning_of_day; end
13603
13689
 
13604
13690
  # Returns a new DateTime representing the start of the hour (hh:00:00).
13605
13691
  #
13606
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#142
13692
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#146
13607
13693
  def beginning_of_hour; end
13608
13694
 
13609
13695
  # Returns a new DateTime representing the start of the minute (hh:mm:00).
13610
13696
  #
13611
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#154
13697
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#158
13612
13698
  def beginning_of_minute; end
13613
13699
 
13614
13700
  # Returns a new DateTime where one or more of the elements have been changed
@@ -13630,17 +13716,17 @@ class DateTime < ::Date
13630
13716
 
13631
13717
  # Returns a new DateTime representing the end of the day (23:59:59).
13632
13718
  #
13633
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#136
13719
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#140
13634
13720
  def end_of_day; end
13635
13721
 
13636
13722
  # Returns a new DateTime representing the end of the hour (hh:59:59).
13637
13723
  #
13638
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#148
13724
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#152
13639
13725
  def end_of_hour; end
13640
13726
 
13641
13727
  # Returns a new DateTime representing the end of the minute (hh:mm:59).
13642
13728
  #
13643
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#160
13729
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#164
13644
13730
  def end_of_minute; end
13645
13731
 
13646
13732
  # Returns a formatted string of the offset from UTC, or an alternative
@@ -13658,12 +13744,12 @@ class DateTime < ::Date
13658
13744
  # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600
13659
13745
  # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC
13660
13746
  #
13661
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#180
13747
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184
13662
13748
  def getgm; end
13663
13749
 
13664
13750
  # Returns a <tt>Time</tt> instance of the simultaneous time in the system timezone.
13665
13751
  #
13666
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#166
13752
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#170
13667
13753
  def getlocal(utc_offset = T.unsafe(nil)); end
13668
13754
 
13669
13755
  # Returns a <tt>Time</tt> instance of the simultaneous time in the UTC timezone.
@@ -13671,7 +13757,7 @@ class DateTime < ::Date
13671
13757
  # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600
13672
13758
  # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC
13673
13759
  #
13674
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#180
13760
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184
13675
13761
  def getutc; end
13676
13762
 
13677
13763
  # Returns a <tt>Time</tt> instance of the simultaneous time in the UTC timezone.
@@ -13679,14 +13765,14 @@ class DateTime < ::Date
13679
13765
  # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600
13680
13766
  # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC
13681
13767
  #
13682
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#180
13768
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184
13683
13769
  def gmtime; end
13684
13770
 
13685
13771
  # Returns a new DateTime representing the time a number of seconds since the
13686
13772
  # instance time. Do not use this method in combination with x.months, use
13687
13773
  # months_since instead!
13688
13774
  #
13689
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#112
13775
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#116
13690
13776
  def in(seconds); end
13691
13777
 
13692
13778
  # Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005 14:30:00 +0000".
@@ -13696,27 +13782,27 @@ class DateTime < ::Date
13696
13782
 
13697
13783
  # Returns a <tt>Time</tt> instance of the simultaneous time in the system timezone.
13698
13784
  #
13699
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#166
13785
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#170
13700
13786
  def localtime(utc_offset = T.unsafe(nil)); end
13701
13787
 
13702
13788
  # Returns a new DateTime representing the middle of the day (12:00)
13703
13789
  #
13704
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#126
13790
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130
13705
13791
  def midday; end
13706
13792
 
13707
13793
  # Returns a new DateTime representing the middle of the day (12:00)
13708
13794
  #
13709
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#126
13795
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130
13710
13796
  def middle_of_day; end
13711
13797
 
13712
13798
  # Returns a new DateTime representing the start of the day (0:00).
13713
13799
  #
13714
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#118
13800
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122
13715
13801
  def midnight; end
13716
13802
 
13717
13803
  # Returns a new DateTime representing the middle of the day (12:00)
13718
13804
  #
13719
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#126
13805
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130
13720
13806
  def noon; end
13721
13807
 
13722
13808
  # Returns the fraction of a second as nanoseconds
@@ -13751,7 +13837,7 @@ class DateTime < ::Date
13751
13837
  # instance time. Do not use this method in combination with x.months, use
13752
13838
  # months_since instead!
13753
13839
  #
13754
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#112
13840
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#116
13755
13841
  def since(seconds); end
13756
13842
 
13757
13843
  # Returns the fraction of a second as a +Rational+
@@ -13839,19 +13925,19 @@ class DateTime < ::Date
13839
13925
  # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600
13840
13926
  # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC
13841
13927
  #
13842
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#180
13928
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184
13843
13929
  def utc; end
13844
13930
 
13845
13931
  # Returns +true+ if <tt>offset == 0</tt>.
13846
13932
  #
13847
13933
  # @return [Boolean]
13848
13934
  #
13849
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#193
13935
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#197
13850
13936
  def utc?; end
13851
13937
 
13852
13938
  # Returns the offset value in seconds.
13853
13939
  #
13854
- # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#198
13940
+ # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#202
13855
13941
  def utc_offset; end
13856
13942
 
13857
13943
  private
@@ -14143,15 +14229,15 @@ module Enumerable
14143
14229
  # [1, "", nil, 2, " ", [], {}, false, true].compact_blank
14144
14230
  # # => [1, 2, true]
14145
14231
  #
14146
- # Set.new([nil, "", 1, 2])
14147
- # # => [2, 1] (or [1, 2])
14232
+ # Set.new([nil, "", 1, false]).compact_blank
14233
+ # # => [1]
14148
14234
  #
14149
14235
  # When called on a +Hash+, returns a new +Hash+ without the blank values.
14150
14236
  #
14151
14237
  # { a: "", b: 1, c: nil, d: [], e: false, f: true }.compact_blank
14152
14238
  # # => { b: 1, f: true }
14153
14239
  #
14154
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#235
14240
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#240
14155
14241
  def compact_blank; end
14156
14242
 
14157
14243
  # The negative of the <tt>Enumerable#include?</tt>. Returns +true+ if the
@@ -14159,7 +14245,7 @@ module Enumerable
14159
14245
  #
14160
14246
  # @return [Boolean]
14161
14247
  #
14162
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#169
14248
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#174
14163
14249
  def exclude?(object); end
14164
14250
 
14165
14251
  # Returns a copy of the enumerable excluding the specified elements.
@@ -14173,7 +14259,7 @@ module Enumerable
14173
14259
  # {foo: 1, bar: 2, baz: 3}.excluding :bar
14174
14260
  # # => {foo: 1, baz: 3}
14175
14261
  #
14176
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#183
14262
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#188
14177
14263
  def excluding(*elements); end
14178
14264
 
14179
14265
  # Returns a new +Array+ where the order has been set to that provided in the +series+, based on the +key+ of the
@@ -14185,7 +14271,7 @@ module Enumerable
14185
14271
  # If the +series+ include keys that have no corresponding element in the Enumerable, these are ignored.
14186
14272
  # If the Enumerable has additional elements that aren't named in the +series+, these are not included in the result.
14187
14273
  #
14188
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#247
14274
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#252
14189
14275
  def in_order_of(key, series); end
14190
14276
 
14191
14277
  # Returns a new array that includes the passed elements.
@@ -14196,7 +14282,7 @@ module Enumerable
14196
14282
  # ["David", "Rafael"].including %w[ Aaron Todd ]
14197
14283
  # # => ["David", "Rafael", "Aaron", "Todd"]
14198
14284
  #
14199
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#163
14285
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#168
14200
14286
  def including(*elements); end
14201
14287
 
14202
14288
  # Convert an enumerable to a hash, using the block result as the key and the
@@ -14208,7 +14294,7 @@ module Enumerable
14208
14294
  # people.index_by { |person| "#{person.first_name} #{person.last_name}" }
14209
14295
  # # => { "Chade- Fowlersburg-e" => <Person ...>, "David Heinemeier Hansson" => <Person ...>, ...}
14210
14296
  #
14211
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#103
14297
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#108
14212
14298
  def index_by; end
14213
14299
 
14214
14300
  # Convert an enumerable to a hash, using the element as the key and the block
@@ -14225,7 +14311,7 @@ module Enumerable
14225
14311
  # %i( created_at updated_at ).index_with(Time.now)
14226
14312
  # # => { created_at: 2020-03-09 22:31:47, updated_at: 2020-03-09 22:31:47 }
14227
14313
  #
14228
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#126
14314
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#131
14229
14315
  def index_with(default = T.unsafe(nil)); end
14230
14316
 
14231
14317
  # Returns +true+ if the enumerable has more than 1 element. Functionally
@@ -14235,7 +14321,7 @@ module Enumerable
14235
14321
  #
14236
14322
  # @return [Boolean]
14237
14323
  #
14238
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#144
14324
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#149
14239
14325
  def many?; end
14240
14326
 
14241
14327
  # Calculates the maximum from the extracted elements.
@@ -14262,7 +14348,7 @@ module Enumerable
14262
14348
  # [{ id: 1, name: "David" }, { id: 2, name: "Rafael" }].pick(:id, :name)
14263
14349
  # # => [1, "David"]
14264
14350
  #
14265
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#212
14351
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#217
14266
14352
  def pick(*keys); end
14267
14353
 
14268
14354
  # Extract the given key from each element in the enumerable.
@@ -14273,7 +14359,7 @@ module Enumerable
14273
14359
  # [{ id: 1, name: "David" }, { id: 2, name: "Rafael" }].pluck(:id, :name)
14274
14360
  # # => [[1, "David"], [2, "Rafael"]]
14275
14361
  #
14276
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#196
14362
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#201
14277
14363
  def pluck(*keys); end
14278
14364
 
14279
14365
  # Returns the sole item in the enumerable. If there are no items, or more
@@ -14283,17 +14369,17 @@ module Enumerable
14283
14369
  # Set.new.sole # => Enumerable::SoleItemExpectedError: no item found
14284
14370
  # { a: 1, b: 2 }.sole # => Enumerable::SoleItemExpectedError: multiple items found
14285
14371
  #
14286
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#257
14372
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#262
14287
14373
  def sole; end
14288
14374
 
14289
14375
  # Calculates a sum from the elements.
14290
14376
  #
14291
- # payments.sum { |p| p.price * p.tax_rate }
14292
- # payments.sum(&:price)
14377
+ # payments.sum { |p| p.price * p.tax_rate }
14378
+ # payments.sum(&:price)
14293
14379
  #
14294
14380
  # The latter is a shortcut for:
14295
14381
  #
14296
- # payments.inject(0) { |sum, p| sum + p.price }
14382
+ # payments.inject(0) { |sum, p| sum + p.price }
14297
14383
  #
14298
14384
  # It can also calculate the sum without the use of a block.
14299
14385
  #
@@ -14319,7 +14405,7 @@ module Enumerable
14319
14405
  # {foo: 1, bar: 2, baz: 3}.excluding :bar
14320
14406
  # # => {foo: 1, baz: 3}
14321
14407
  #
14322
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#183
14408
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#188
14323
14409
  def without(*elements); end
14324
14410
  end
14325
14411
 
@@ -14415,7 +14501,7 @@ class Hash
14415
14501
 
14416
14502
  # Hash#reject has its own definition, so this needs one too.
14417
14503
  #
14418
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#268
14504
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#273
14419
14505
  def compact_blank; end
14420
14506
 
14421
14507
  # Removes all blank values from the +Hash+ in place and returns self.
@@ -14425,7 +14511,7 @@ class Hash
14425
14511
  # h.compact_blank!
14426
14512
  # # => { b: 1, f: true }
14427
14513
  #
14428
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#278
14514
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#283
14429
14515
  def compact_blank!; end
14430
14516
 
14431
14517
  # Returns a deep copy of hash.
@@ -14505,10 +14591,10 @@ class Hash
14505
14591
  # This includes the keys from the root hash and from all
14506
14592
  # nested hashes and arrays.
14507
14593
  #
14508
- # hash = { person: { name: 'Rob', age: '28' } }
14594
+ # hash = { person: { name: 'Rob', age: '28' } }
14509
14595
  #
14510
- # hash.deep_transform_keys{ |key| key.to_s.upcase }
14511
- # # => {"PERSON"=>{"NAME"=>"Rob", "AGE"=>"28"}}
14596
+ # hash.deep_transform_keys{ |key| key.to_s.upcase }
14597
+ # # => {"PERSON"=>{"NAME"=>"Rob", "AGE"=>"28"}}
14512
14598
  #
14513
14599
  # source://activesupport//lib/active_support/core_ext/hash/keys.rb#65
14514
14600
  def deep_transform_keys(&block); end
@@ -14663,9 +14749,7 @@ class Hash
14663
14749
  # The string pairs "key=value" that conform the query string
14664
14750
  # are sorted lexicographically in ascending order.
14665
14751
  #
14666
- # This method is also aliased as +to_param+.
14667
- #
14668
- # source://activesupport//lib/active_support/core_ext/object/to_query.rb#77
14752
+ # source://activesupport//lib/active_support/core_ext/object/to_query.rb#75
14669
14753
  def to_param(namespace = T.unsafe(nil)); end
14670
14754
 
14671
14755
  # Returns a string representation of the receiver suitable for use as a URL
@@ -14682,9 +14766,7 @@ class Hash
14682
14766
  # The string pairs "key=value" that conform the query string
14683
14767
  # are sorted lexicographically in ascending order.
14684
14768
  #
14685
- # This method is also aliased as +to_param+.
14686
- #
14687
- # source://activesupport//lib/active_support/core_ext/object/to_query.rb#77
14769
+ # source://activesupport//lib/active_support/core_ext/object/to_query.rb#75
14688
14770
  def to_query(namespace = T.unsafe(nil)); end
14689
14771
 
14690
14772
  # Returns a string containing an XML representation of its receiver:
@@ -14845,46 +14927,46 @@ HashWithIndifferentAccess = ActiveSupport::HashWithIndifferentAccess
14845
14927
  # source://activesupport//lib/active_support/i18n_railtie.rb#8
14846
14928
  module I18n
14847
14929
  class << self
14848
- # source://i18n/1.12.0/lib/i18n/backend/cache.rb#64
14930
+ # source://i18n/1.14.7/lib/i18n/backend/cache.rb#64
14849
14931
  def cache_key_digest; end
14850
14932
 
14851
- # source://i18n/1.12.0/lib/i18n/backend/cache.rb#68
14933
+ # source://i18n/1.14.7/lib/i18n/backend/cache.rb#68
14852
14934
  def cache_key_digest=(key_digest); end
14853
14935
 
14854
- # source://i18n/1.12.0/lib/i18n/backend/cache.rb#56
14936
+ # source://i18n/1.14.7/lib/i18n/backend/cache.rb#56
14855
14937
  def cache_namespace; end
14856
14938
 
14857
- # source://i18n/1.12.0/lib/i18n/backend/cache.rb#60
14939
+ # source://i18n/1.14.7/lib/i18n/backend/cache.rb#60
14858
14940
  def cache_namespace=(namespace); end
14859
14941
 
14860
- # source://i18n/1.12.0/lib/i18n/backend/cache.rb#48
14942
+ # source://i18n/1.14.7/lib/i18n/backend/cache.rb#48
14861
14943
  def cache_store; end
14862
14944
 
14863
- # source://i18n/1.12.0/lib/i18n/backend/cache.rb#52
14945
+ # source://i18n/1.14.7/lib/i18n/backend/cache.rb#52
14864
14946
  def cache_store=(store); end
14865
14947
 
14866
- # source://i18n/1.12.0/lib/i18n/backend/fallbacks.rb#17
14948
+ # source://i18n/1.14.7/lib/i18n/backend/fallbacks.rb#17
14867
14949
  def fallbacks; end
14868
14950
 
14869
- # source://i18n/1.12.0/lib/i18n/backend/fallbacks.rb#23
14951
+ # source://i18n/1.14.7/lib/i18n/backend/fallbacks.rb#23
14870
14952
  def fallbacks=(fallbacks); end
14871
14953
 
14872
- # source://i18n/1.12.0/lib/i18n/interpolate/ruby.rb#16
14954
+ # source://i18n/1.14.7/lib/i18n/interpolate/ruby.rb#23
14873
14955
  def interpolate(string, values); end
14874
14956
 
14875
- # source://i18n/1.12.0/lib/i18n/interpolate/ruby.rb#22
14957
+ # source://i18n/1.14.7/lib/i18n/interpolate/ruby.rb#29
14876
14958
  def interpolate_hash(string, values); end
14877
14959
 
14878
- # source://i18n/1.12.0/lib/i18n.rb#37
14960
+ # source://i18n/1.14.7/lib/i18n.rb#38
14879
14961
  def new_double_nested_cache; end
14880
14962
 
14881
- # source://i18n/1.12.0/lib/i18n/backend/cache.rb#72
14963
+ # source://i18n/1.14.7/lib/i18n/backend/cache.rb#72
14882
14964
  def perform_caching?; end
14883
14965
 
14884
- # source://i18n/1.12.0/lib/i18n.rb#45
14966
+ # source://i18n/1.14.7/lib/i18n.rb#46
14885
14967
  def reserve_key(key); end
14886
14968
 
14887
- # source://i18n/1.12.0/lib/i18n.rb#50
14969
+ # source://i18n/1.14.7/lib/i18n.rb#51
14888
14970
  def reserved_keys_pattern; end
14889
14971
  end
14890
14972
  end
@@ -15071,6 +15153,8 @@ class Integer < ::Numeric
15071
15153
  def years; end
15072
15154
  end
15073
15155
 
15156
+ Integer::GMP_VERSION = T.let(T.unsafe(nil), String)
15157
+
15074
15158
  # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#3
15075
15159
  module Kernel
15076
15160
  private
@@ -15163,16 +15247,16 @@ class LoadError < ::ScriptError
15163
15247
  def is_missing?(location); end
15164
15248
  end
15165
15249
 
15166
- # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#31
15250
+ # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#39
15167
15251
  class Method
15168
15252
  # Methods are not duplicable:
15169
15253
  #
15170
- # method(:puts).duplicable? # => false
15171
- # method(:puts).dup # => TypeError: allocator undefined for Method
15254
+ # method(:puts).duplicable? # => false
15255
+ # method(:puts).dup # => TypeError: allocator undefined for Method
15172
15256
  #
15173
15257
  # @return [Boolean]
15174
15258
  #
15175
- # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#36
15259
+ # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#44
15176
15260
  def duplicable?; end
15177
15261
  end
15178
15262
 
@@ -16839,7 +16923,7 @@ class Object < ::BasicObject
16839
16923
  #
16840
16924
  # Hence the inherited default for +if+ key is ignored.
16841
16925
  #
16842
- # NOTE: You cannot call class methods implicitly inside of with_options.
16926
+ # NOTE: You cannot call class methods implicitly inside of +with_options+.
16843
16927
  # You can access these methods using the class name instead:
16844
16928
  #
16845
16929
  # class Phone < ActiveRecord::Base
@@ -16858,11 +16942,11 @@ class Object < ::BasicObject
16858
16942
  # end
16859
16943
  # end
16860
16944
  #
16861
- # # styled.link_to "I'm red", "/"
16862
- # # #=> <a href="/" style="color: red;">I'm red</a>
16945
+ # styled.link_to "I'm red", "/"
16946
+ # # => <a href="/" style="color: red;">I'm red</a>
16863
16947
  #
16864
- # # styled.button_tag "I'm red too!"
16865
- # # #=> <button style="color: red;">I'm red too!</button>
16948
+ # styled.button_tag "I'm red too!"
16949
+ # # => <button style="color: red;">I'm red too!</button>
16866
16950
  #
16867
16951
  # source://activesupport//lib/active_support/core_ext/object/with_options.rb#92
16868
16952
  def with_options(options, &block); end
@@ -16899,7 +16983,7 @@ class Range
16899
16983
  # Optimize range sum to use arithmetic progression if a block is not given and
16900
16984
  # we have a range of numeric values.
16901
16985
  #
16902
- # source://activesupport//lib/active_support/core_ext/enumerable.rb#287
16986
+ # source://activesupport//lib/active_support/core_ext/enumerable.rb#292
16903
16987
  def sum(identity = T.unsafe(nil)); end
16904
16988
  end
16905
16989
 
@@ -16922,17 +17006,17 @@ class Regexp
16922
17006
  def multiline?; end
16923
17007
  end
16924
17008
 
16925
- # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#53
17009
+ # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#62
16926
17010
  module Singleton
16927
17011
  mixes_in_class_methods ::Singleton::SingletonClassMethods
16928
17012
 
16929
17013
  # Singleton instances are not duplicable:
16930
17014
  #
16931
- # Class.new.include(Singleton).instance.dup # TypeError (can't dup instance of singleton
17015
+ # Class.new.include(Singleton).instance.dup # TypeError (can't dup instance of singleton
16932
17016
  #
16933
17017
  # @return [Boolean]
16934
17018
  #
16935
- # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#57
17019
+ # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#66
16936
17020
  def duplicable?; end
16937
17021
  end
16938
17022
 
@@ -17010,11 +17094,9 @@ class String
17010
17094
  # 'active_record/errors'.camelize # => "ActiveRecord::Errors"
17011
17095
  # 'active_record/errors'.camelize(:lower) # => "activeRecord::Errors"
17012
17096
  #
17013
- # +camelize+ is also aliased as +camelcase+.
17014
- #
17015
17097
  # See ActiveSupport::Inflector.camelize.
17016
17098
  #
17017
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#103
17099
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#101
17018
17100
  def camelcase(first_letter = T.unsafe(nil)); end
17019
17101
 
17020
17102
  # By default, +camelize+ converts strings to UpperCamelCase. If the argument to camelize
@@ -17027,11 +17109,9 @@ class String
17027
17109
  # 'active_record/errors'.camelize # => "ActiveRecord::Errors"
17028
17110
  # 'active_record/errors'.camelize(:lower) # => "activeRecord::Errors"
17029
17111
  #
17030
- # +camelize+ is also aliased as +camelcase+.
17031
- #
17032
17112
  # See ActiveSupport::Inflector.camelize.
17033
17113
  #
17034
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#103
17114
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#101
17035
17115
  def camelize(first_letter = T.unsafe(nil)); end
17036
17116
 
17037
17117
  # Creates a class name from a plural table name like Rails does for table names to models.
@@ -17043,7 +17123,7 @@ class String
17043
17123
  #
17044
17124
  # See ActiveSupport::Inflector.classify.
17045
17125
  #
17046
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#243
17126
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#239
17047
17127
  def classify; end
17048
17128
 
17049
17129
  # +constantize+ tries to find a declared constant with the name specified
@@ -17065,7 +17145,7 @@ class String
17065
17145
  #
17066
17146
  # See ActiveSupport::Inflector.dasherize.
17067
17147
  #
17068
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#152
17148
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#148
17069
17149
  def dasherize; end
17070
17150
 
17071
17151
  # Removes the rightmost segment from the constant expression in the string.
@@ -17080,7 +17160,7 @@ class String
17080
17160
  #
17081
17161
  # See also +demodulize+.
17082
17162
  #
17083
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#181
17163
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#177
17084
17164
  def deconstantize; end
17085
17165
 
17086
17166
  # Removes the module part from the constant expression in the string.
@@ -17094,7 +17174,7 @@ class String
17094
17174
  #
17095
17175
  # See also +deconstantize+.
17096
17176
  #
17097
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#166
17177
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#162
17098
17178
  def demodulize; end
17099
17179
 
17100
17180
  # The inverse of <tt>String#include?</tt>. Returns true if the string
@@ -17133,7 +17213,7 @@ class String
17133
17213
  #
17134
17214
  # See ActiveSupport::Inflector.foreign_key.
17135
17215
  #
17136
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#290
17216
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#286
17137
17217
  def foreign_key(separate_class_name_and_id_with_underscore = T.unsafe(nil)); end
17138
17218
 
17139
17219
  # Returns a substring from the given position to the end of the string.
@@ -17159,7 +17239,7 @@ class String
17159
17239
  # +raw+ helper in views. It is recommended that you use +sanitize+ instead of
17160
17240
  # this method. It should never be called on user input.
17161
17241
  #
17162
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#364
17242
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#368
17163
17243
  def html_safe; end
17164
17244
 
17165
17245
  # Capitalizes the first word, turns underscores into spaces, and (by default)strips a
@@ -17182,7 +17262,7 @@ class String
17182
17262
  #
17183
17263
  # See ActiveSupport::Inflector.humanize.
17184
17264
  #
17185
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#266
17265
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#262
17186
17266
  def humanize(capitalize: T.unsafe(nil), keep_id_suffix: T.unsafe(nil)); end
17187
17267
 
17188
17268
  # Converts String to a TimeWithZone in the current zone if Time.zone or Time.zone_default
@@ -17337,7 +17417,7 @@ class String
17337
17417
  #
17338
17418
  # See ActiveSupport::Inflector.parameterize.
17339
17419
  #
17340
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#219
17420
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#215
17341
17421
  def parameterize(separator: T.unsafe(nil), preserve_case: T.unsafe(nil), locale: T.unsafe(nil)); end
17342
17422
 
17343
17423
  # Returns the plural form of the word in the string.
@@ -17469,7 +17549,7 @@ class String
17469
17549
  #
17470
17550
  # See ActiveSupport::Inflector.tableize.
17471
17551
  #
17472
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#231
17552
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#227
17473
17553
  def tableize; end
17474
17554
 
17475
17555
  # Capitalizes all the words and replaces some characters in the string to create
@@ -17484,11 +17564,9 @@ class String
17484
17564
  # 'x-men: the last stand'.titleize # => "X Men: The Last Stand"
17485
17565
  # 'string_ending_with_id'.titleize(keep_id_suffix: true) # => "String Ending With Id"
17486
17566
  #
17487
- # +titleize+ is also aliased as +titlecase+.
17488
- #
17489
17567
  # See ActiveSupport::Inflector.titleize.
17490
17568
  #
17491
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#130
17569
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#126
17492
17570
  def titlecase(keep_id_suffix: T.unsafe(nil)); end
17493
17571
 
17494
17572
  # Capitalizes all the words and replaces some characters in the string to create
@@ -17503,11 +17581,9 @@ class String
17503
17581
  # 'x-men: the last stand'.titleize # => "X Men: The Last Stand"
17504
17582
  # 'string_ending_with_id'.titleize(keep_id_suffix: true) # => "String Ending With Id"
17505
17583
  #
17506
- # +titleize+ is also aliased as +titlecase+.
17507
- #
17508
17584
  # See ActiveSupport::Inflector.titleize.
17509
17585
  #
17510
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#130
17586
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#126
17511
17587
  def titleize(keep_id_suffix: T.unsafe(nil)); end
17512
17588
 
17513
17589
  # Returns a substring from the beginning of the string to the given position.
@@ -17633,7 +17709,7 @@ class String
17633
17709
  #
17634
17710
  # See ActiveSupport::Inflector.underscore.
17635
17711
  #
17636
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#143
17712
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#139
17637
17713
  def underscore; end
17638
17714
 
17639
17715
  # Converts just the first character to uppercase.
@@ -17644,7 +17720,7 @@ class String
17644
17720
  #
17645
17721
  # See ActiveSupport::Inflector.upcase_first.
17646
17722
  #
17647
- # source://activesupport//lib/active_support/core_ext/string/inflections.rb#277
17723
+ # source://activesupport//lib/active_support/core_ext/string/inflections.rb#273
17648
17724
  def upcase_first; end
17649
17725
  end
17650
17726
 
@@ -17676,20 +17752,20 @@ class Time
17676
17752
  include ::DateAndTime::Zones
17677
17753
  include ::DateAndTime::Calculations
17678
17754
 
17679
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#280
17755
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#284
17680
17756
  def +(other); end
17681
17757
 
17682
17758
  # Time#- can also be used to determine the number of seconds between two Time instances.
17683
17759
  # We're layering on additional behavior so that ActiveSupport::TimeWithZone instances
17684
17760
  # are coerced into values that Time#- will recognize
17685
17761
  #
17686
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#303
17762
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#307
17687
17763
  def -(other); end
17688
17764
 
17689
17765
  # Layers additional behavior on Time#<=> so that DateTime and ActiveSupport::TimeWithZone instances
17690
17766
  # can be chronologically compared with a Time
17691
17767
  #
17692
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#312
17768
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#316
17693
17769
  def <=>(other); end
17694
17770
 
17695
17771
  # Duck-types as a Time-like class. See Object#acts_like?.
@@ -17711,12 +17787,16 @@ class Time
17711
17787
  # Time.new(2015, 8, 1, 14, 35, 0).advance(days: 1) # => 2015-08-02 14:35:00 -0700
17712
17788
  # Time.new(2015, 8, 1, 14, 35, 0).advance(weeks: 1) # => 2015-08-08 14:35:00 -0700
17713
17789
  #
17714
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#182
17790
+ # Just like Date#advance, increments are applied in order of time units from
17791
+ # largest to smallest. This order can affect the result around the end of a
17792
+ # month.
17793
+ #
17794
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#186
17715
17795
  def advance(options); end
17716
17796
 
17717
17797
  # Returns a new Time representing the time a number of seconds ago, this is basically a wrapper around the Numeric extension
17718
17798
  #
17719
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#208
17799
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#212
17720
17800
  def ago(seconds); end
17721
17801
 
17722
17802
  # source://activesupport//lib/active_support/core_ext/object/json.rb#187
@@ -17724,67 +17804,67 @@ class Time
17724
17804
 
17725
17805
  # Returns a new Time representing the start of the day (0:00)
17726
17806
  #
17727
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#221
17807
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#225
17728
17808
  def at_beginning_of_day; end
17729
17809
 
17730
17810
  # Returns a new Time representing the start of the hour (x:00)
17731
17811
  #
17732
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#250
17812
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#254
17733
17813
  def at_beginning_of_hour; end
17734
17814
 
17735
17815
  # Returns a new Time representing the start of the minute (x:xx:00)
17736
17816
  #
17737
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#266
17817
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#270
17738
17818
  def at_beginning_of_minute; end
17739
17819
 
17740
17820
  # Returns a new Time representing the end of the day, 23:59:59.999999
17741
17821
  #
17742
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#239
17822
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#243
17743
17823
  def at_end_of_day; end
17744
17824
 
17745
17825
  # Returns a new Time representing the end of the hour, x:59:59.999999
17746
17826
  #
17747
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#256
17827
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#260
17748
17828
  def at_end_of_hour; end
17749
17829
 
17750
17830
  # Returns a new Time representing the end of the minute, x:xx:59.999999
17751
17831
  #
17752
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#272
17832
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#276
17753
17833
  def at_end_of_minute; end
17754
17834
 
17755
17835
  # Returns a new Time representing the middle of the day (12:00)
17756
17836
  #
17757
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#229
17837
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#233
17758
17838
  def at_midday; end
17759
17839
 
17760
17840
  # Returns a new Time representing the middle of the day (12:00)
17761
17841
  #
17762
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#229
17842
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#233
17763
17843
  def at_middle_of_day; end
17764
17844
 
17765
17845
  # Returns a new Time representing the start of the day (0:00)
17766
17846
  #
17767
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#221
17847
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#225
17768
17848
  def at_midnight; end
17769
17849
 
17770
17850
  # Returns a new Time representing the middle of the day (12:00)
17771
17851
  #
17772
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#229
17852
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#233
17773
17853
  def at_noon; end
17774
17854
 
17775
17855
  # Returns a new Time representing the start of the day (0:00)
17776
17856
  #
17777
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#221
17857
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#225
17778
17858
  def beginning_of_day; end
17779
17859
 
17780
17860
  # Returns a new Time representing the start of the hour (x:00)
17781
17861
  #
17782
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#250
17862
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#254
17783
17863
  def beginning_of_hour; end
17784
17864
 
17785
17865
  # Returns a new Time representing the start of the minute (x:xx:00)
17786
17866
  #
17787
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#266
17867
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#270
17788
17868
  def beginning_of_minute; end
17789
17869
 
17790
17870
  # No Time is blank:
@@ -17817,34 +17897,34 @@ class Time
17817
17897
  # Layers additional behavior on Time#<=> so that DateTime and ActiveSupport::TimeWithZone instances
17818
17898
  # can be chronologically compared with a Time
17819
17899
  #
17820
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#312
17900
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#316
17821
17901
  def compare_with_coercion(other); end
17822
17902
 
17823
17903
  # Returns a new Time representing the end of the day, 23:59:59.999999
17824
17904
  #
17825
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#239
17905
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#243
17826
17906
  def end_of_day; end
17827
17907
 
17828
17908
  # Returns a new Time representing the end of the hour, x:59:59.999999
17829
17909
  #
17830
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#256
17910
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#260
17831
17911
  def end_of_hour; end
17832
17912
 
17833
17913
  # Returns a new Time representing the end of the minute, x:xx:59.999999
17834
17914
  #
17835
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#272
17915
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#276
17836
17916
  def end_of_minute; end
17837
17917
 
17838
17918
  # Layers additional behavior on Time#eql? so that ActiveSupport::TimeWithZone instances
17839
17919
  # can be eql? to an equivalent Time
17840
17920
  #
17841
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#327
17921
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#331
17842
17922
  def eql?(other); end
17843
17923
 
17844
17924
  # Layers additional behavior on Time#eql? so that ActiveSupport::TimeWithZone instances
17845
17925
  # can be eql? to an equivalent Time
17846
17926
  #
17847
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#327
17927
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#331
17848
17928
  def eql_with_coercion(other); end
17849
17929
 
17850
17930
  # Returns a formatted string of the offset from UTC, or an alternative
@@ -17858,73 +17938,73 @@ class Time
17858
17938
 
17859
17939
  # Returns a new Time representing the time a number of seconds since the instance time
17860
17940
  #
17861
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#213
17941
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#217
17862
17942
  def in(seconds); end
17863
17943
 
17864
17944
  # Returns a new Time representing the middle of the day (12:00)
17865
17945
  #
17866
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#229
17946
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#233
17867
17947
  def midday; end
17868
17948
 
17869
17949
  # Returns a new Time representing the middle of the day (12:00)
17870
17950
  #
17871
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#229
17951
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#233
17872
17952
  def middle_of_day; end
17873
17953
 
17874
17954
  # Returns a new Time representing the start of the day (0:00)
17875
17955
  #
17876
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#221
17956
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#225
17877
17957
  def midnight; end
17878
17958
 
17879
17959
  # Time#- can also be used to determine the number of seconds between two Time instances.
17880
17960
  # We're layering on additional behavior so that ActiveSupport::TimeWithZone instances
17881
17961
  # are coerced into values that Time#- will recognize
17882
17962
  #
17883
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#303
17963
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#307
17884
17964
  def minus_with_coercion(other); end
17885
17965
 
17886
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#290
17966
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#294
17887
17967
  def minus_with_duration(other); end
17888
17968
 
17889
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#290
17969
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#294
17890
17970
  def minus_without_coercion(other); end
17891
17971
 
17892
17972
  # Returns a new time the specified number of days in the future.
17893
17973
  #
17894
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#341
17974
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#345
17895
17975
  def next_day(days = T.unsafe(nil)); end
17896
17976
 
17897
17977
  # Returns a new time the specified number of months in the future.
17898
17978
  #
17899
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#351
17979
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#355
17900
17980
  def next_month(months = T.unsafe(nil)); end
17901
17981
 
17902
17982
  # Returns a new time the specified number of years in the future.
17903
17983
  #
17904
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#361
17984
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#365
17905
17985
  def next_year(years = T.unsafe(nil)); end
17906
17986
 
17907
17987
  # Returns a new Time representing the middle of the day (12:00)
17908
17988
  #
17909
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#229
17989
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#233
17910
17990
  def noon; end
17911
17991
 
17912
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#280
17992
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#284
17913
17993
  def plus_with_duration(other); end
17914
17994
 
17915
17995
  # Returns a new time the specified number of days ago.
17916
17996
  #
17917
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#336
17997
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#340
17918
17998
  def prev_day(days = T.unsafe(nil)); end
17919
17999
 
17920
18000
  # Returns a new time the specified number of months ago.
17921
18001
  #
17922
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#346
18002
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#350
17923
18003
  def prev_month(months = T.unsafe(nil)); end
17924
18004
 
17925
18005
  # Returns a new time the specified number of years ago.
17926
18006
  #
17927
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#356
18007
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#360
17928
18008
  def prev_year(years = T.unsafe(nil)); end
17929
18009
 
17930
18010
  # Returns the fraction of a second as a +Rational+
@@ -17954,7 +18034,7 @@ class Time
17954
18034
 
17955
18035
  # Returns a new Time representing the time a number of seconds since the instance time
17956
18036
  #
17957
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#213
18037
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#217
17958
18038
  def since(seconds); end
17959
18039
 
17960
18040
  # Converts to a formatted string. See DATE_FORMATS for built-in formats.
@@ -18057,7 +18137,7 @@ class Time
18057
18137
  # Time.find_zone "America/New_York" # => #<ActiveSupport::TimeZone @name="America/New_York" ...>
18058
18138
  # Time.find_zone "NOT-A-TIMEZONE" # => nil
18059
18139
  #
18060
- # source://activesupport//lib/active_support/core_ext/time/zones.rb#94
18140
+ # source://activesupport//lib/active_support/core_ext/time/zones.rb#93
18061
18141
  def find_zone(time_zone); end
18062
18142
 
18063
18143
  # Returns a TimeZone instance matching the time zone provided.
@@ -18071,7 +18151,7 @@ class Time
18071
18151
  # Time.find_zone! false # => false
18072
18152
  # Time.find_zone! "NOT-A-TIMEZONE" # => ArgumentError: Invalid Timezone: NOT-A-TIMEZONE
18073
18153
  #
18074
- # source://activesupport//lib/active_support/core_ext/time/zones.rb#82
18154
+ # source://activesupport//lib/active_support/core_ext/time/zones.rb#81
18075
18155
  def find_zone!(time_zone); end
18076
18156
 
18077
18157
  # Creates a +Time+ instance from an RFC 3339 string.
@@ -18094,10 +18174,9 @@ class Time
18094
18174
  # around_action :set_time_zone
18095
18175
  #
18096
18176
  # private
18097
- #
18098
- # def set_time_zone
18099
- # Time.use_zone(current_user.timezone) { yield }
18100
- # end
18177
+ # def set_time_zone
18178
+ # Time.use_zone(current_user.timezone) { yield }
18179
+ # end
18101
18180
  # end
18102
18181
  #
18103
18182
  # NOTE: This won't affect any ActiveSupport::TimeWithZone
@@ -18105,7 +18184,7 @@ class Time
18105
18184
  # attributes that have been read before the block will remain in
18106
18185
  # the application's default timezone.
18107
18186
  #
18108
- # source://activesupport//lib/active_support/core_ext/time/zones.rb#62
18187
+ # source://activesupport//lib/active_support/core_ext/time/zones.rb#61
18109
18188
  def use_zone(time_zone); end
18110
18189
 
18111
18190
  # Returns the TimeZone for the current request, if this has been set (via Time.zone=).
@@ -18190,15 +18269,15 @@ class URI::Generic
18190
18269
  def as_json(options = T.unsafe(nil)); end
18191
18270
  end
18192
18271
 
18193
- # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#41
18272
+ # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#49
18194
18273
  class UnboundMethod
18195
18274
  # Unbound methods are not duplicable:
18196
18275
  #
18197
- # method(:puts).unbind.duplicable? # => false
18198
- # method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod
18276
+ # method(:puts).unbind.duplicable? # => false
18277
+ # method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod
18199
18278
  #
18200
18279
  # @return [Boolean]
18201
18280
  #
18202
- # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#46
18281
+ # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#54
18203
18282
  def duplicable?; end
18204
18283
  end