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
@@ -1028,7 +1028,7 @@ end
1028
1028
  #
1029
1029
  # @private
1030
1030
  #
1031
- # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#16
1031
+ # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#12
1032
1032
  class TZInfo::DataSources::InvalidPosixTimeZone < ::StandardError; end
1033
1033
 
1034
1034
  # An {InvalidZoneinfoDirectory} exception is raised if {ZoneinfoDataSource}
@@ -1037,13 +1037,13 @@ class TZInfo::DataSources::InvalidPosixTimeZone < ::StandardError; end
1037
1037
  # files, a country code index file named iso3166.tab and a time zone index
1038
1038
  # file named zone1970.tab or zone.tab.
1039
1039
  #
1040
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#15
1040
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#11
1041
1041
  class TZInfo::DataSources::InvalidZoneinfoDirectory < ::StandardError; end
1042
1042
 
1043
1043
  # An {InvalidZoneinfoFile} exception is raised if an attempt is made to load
1044
1044
  # an invalid zoneinfo file.
1045
1045
  #
1046
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#12
1046
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#8
1047
1047
  class TZInfo::DataSources::InvalidZoneinfoFile < ::StandardError; end
1048
1048
 
1049
1049
  # Represents a time zone that is defined as a link to or alias of another
@@ -1084,7 +1084,7 @@ end
1084
1084
  #
1085
1085
  # @private
1086
1086
  #
1087
- # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#24
1087
+ # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#20
1088
1088
  class TZInfo::DataSources::PosixTimeZoneParser
1089
1089
  # Initializes a new {PosixTimeZoneParser}.
1090
1090
  #
@@ -1092,7 +1092,7 @@ class TZInfo::DataSources::PosixTimeZoneParser
1092
1092
  # to dedupe abbreviations.
1093
1093
  # @return [PosixTimeZoneParser] a new instance of PosixTimeZoneParser
1094
1094
  #
1095
- # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#29
1095
+ # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#25
1096
1096
  def initialize(string_deduper); end
1097
1097
 
1098
1098
  # Parses a POSIX-style TZ string.
@@ -1103,7 +1103,7 @@ class TZInfo::DataSources::PosixTimeZoneParser
1103
1103
  # @return [Object] either a {TimezoneOffset} for a constantly applied
1104
1104
  # offset or an {AnnualRules} instance representing the rules.
1105
1105
  #
1106
- # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#40
1106
+ # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#36
1107
1107
  def parse(tz_string); end
1108
1108
 
1109
1109
  private
@@ -1116,7 +1116,7 @@ class TZInfo::DataSources::PosixTimeZoneParser
1116
1116
  # @raise [InvalidPosixTimeZone] if the pattern does not match the input.
1117
1117
  # @return [String] the result of the scan.
1118
1118
  #
1119
- # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#173
1119
+ # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#169
1120
1120
  def check_scan(s, pattern); end
1121
1121
 
1122
1122
  # Returns an offset in seconds from hh:mm:ss values. The value can be
@@ -1130,7 +1130,7 @@ class TZInfo::DataSources::PosixTimeZoneParser
1130
1130
  # 59.
1131
1131
  # @return [Integer] the offset.
1132
1132
  #
1133
- # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#136
1133
+ # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#132
1134
1134
  def get_offset_from_hms(h, m, s); end
1135
1135
 
1136
1136
  # Returns the seconds from midnight from hh:mm:ss values. Hours can exceed
@@ -1145,7 +1145,7 @@ class TZInfo::DataSources::PosixTimeZoneParser
1145
1145
  # 59.
1146
1146
  # @return [Integer] the number of seconds after midnight.
1147
1147
  #
1148
- # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#157
1148
+ # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#153
1149
1149
  def get_seconds_after_midnight_from_hms(h, m, s); end
1150
1150
 
1151
1151
  # Parses a rule.
@@ -1155,7 +1155,7 @@ class TZInfo::DataSources::PosixTimeZoneParser
1155
1155
  # @raise [InvalidPosixTimeZone] if the rule is not valid.
1156
1156
  # @return [TransitionRule] the parsed rule.
1157
1157
  #
1158
- # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#96
1158
+ # source://tzinfo//lib/tzinfo/data_sources/posix_time_zone_parser.rb#92
1159
1159
  def parse_rule(s, type); end
1160
1160
  end
1161
1161
 
@@ -1168,7 +1168,7 @@ end
1168
1168
  #
1169
1169
  # TZInfo::DataSource.set(:ruby)
1170
1170
  #
1171
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#24
1171
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#20
1172
1172
  class TZInfo::DataSources::RubyDataSource < ::TZInfo::DataSource
1173
1173
  # Initializes a new {RubyDataSource} instance.
1174
1174
  #
@@ -1176,7 +1176,7 @@ class TZInfo::DataSources::RubyDataSource < ::TZInfo::DataSource
1176
1176
  # (i.e. `require 'tzinfo/data'` failed).
1177
1177
  # @return [RubyDataSource] a new instance of RubyDataSource
1178
1178
  #
1179
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#38
1179
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#34
1180
1180
  def initialize; end
1181
1181
 
1182
1182
  # Returns a frozen `Array` of all the available ISO 3166-1 alpha-2 country
@@ -1185,7 +1185,7 @@ class TZInfo::DataSources::RubyDataSource < ::TZInfo::DataSource
1185
1185
  # @return [Array<String>] a frozen `Array` of all the available ISO 3166-1
1186
1186
  # alpha-2 country codes.
1187
1187
  #
1188
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#32
1188
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#28
1189
1189
  def country_codes; end
1190
1190
 
1191
1191
  # Returns a frozen `Array` of all the available time zone identifiers for
@@ -1195,13 +1195,13 @@ class TZInfo::DataSources::RubyDataSource < ::TZInfo::DataSource
1195
1195
  # @return [Array<String>] a frozen `Array` of all the available time zone
1196
1196
  # identifiers for data time zones.
1197
1197
  #
1198
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#26
1198
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#22
1199
1199
  def data_timezone_identifiers; end
1200
1200
 
1201
1201
  # @return [String] the internal object state as a programmer-readable
1202
1202
  # `String`.
1203
1203
  #
1204
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#76
1204
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#72
1205
1205
  def inspect; end
1206
1206
 
1207
1207
  # Returns a frozen `Array` of all the available time zone identifiers that
@@ -1211,12 +1211,12 @@ class TZInfo::DataSources::RubyDataSource < ::TZInfo::DataSource
1211
1211
  # @return [Array<String>] a frozen `Array` of all the available time zone
1212
1212
  # identifiers that are links to other time zones.
1213
1213
  #
1214
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#29
1214
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#25
1215
1215
  def linked_timezone_identifiers; end
1216
1216
 
1217
1217
  # @return [String] a description of the {DataSource}.
1218
1218
  #
1219
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#71
1219
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#67
1220
1220
  def to_s; end
1221
1221
 
1222
1222
  protected
@@ -1227,7 +1227,7 @@ class TZInfo::DataSources::RubyDataSource < ::TZInfo::DataSource
1227
1227
  # @return [DataSources::CountryInfo] a {DataSources::CountryInfo} instance
1228
1228
  # for the given ISO 3166-1 alpha-2 country code.
1229
1229
  #
1230
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#108
1230
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#104
1231
1231
  def load_country_info(code); end
1232
1232
 
1233
1233
  # Returns a {TimezoneInfo} instance for the given time zone identifier.
@@ -1241,7 +1241,7 @@ class TZInfo::DataSources::RubyDataSource < ::TZInfo::DataSource
1241
1241
  # @return [TimezoneInfo] a {TimezoneInfo} instance for the given time zone
1242
1242
  # identifier.
1243
1243
  #
1244
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#92
1244
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#88
1245
1245
  def load_timezone_info(identifier); end
1246
1246
 
1247
1247
  private
@@ -1250,7 +1250,7 @@ class TZInfo::DataSources::RubyDataSource < ::TZInfo::DataSource
1250
1250
  #
1251
1251
  # @param file [Array<String>] a relative path to a file to be required.
1252
1252
  #
1253
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#132
1253
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#128
1254
1254
  def require_data(*file); end
1255
1255
 
1256
1256
  # Requires a zone definition by its identifier (split on /).
@@ -1258,20 +1258,20 @@ class TZInfo::DataSources::RubyDataSource < ::TZInfo::DataSource
1258
1258
  # @param identifier [Array<string>] the component parts of a time zone
1259
1259
  # identifier (split on /). This must have already been validated.
1260
1260
  #
1261
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#118
1261
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#114
1262
1262
  def require_definition(identifier); end
1263
1263
 
1264
1264
  # Requires an index by its name.
1265
1265
  #
1266
1266
  # @param name [String] an index name.
1267
1267
  #
1268
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#125
1268
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#121
1269
1269
  def require_index(name); end
1270
1270
 
1271
1271
  # @return [String] a `String` containing TZInfo::Data version infomation
1272
1272
  # for inclusion in the #to_s and #inspect output.
1273
1273
  #
1274
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#138
1274
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#134
1275
1275
  def version_info; end
1276
1276
  end
1277
1277
 
@@ -1279,7 +1279,7 @@ end
1279
1279
  # not be found (i.e. `require 'tzinfo/data'` failed) when selecting the Ruby
1280
1280
  # data source.
1281
1281
  #
1282
- # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#13
1282
+ # source://tzinfo//lib/tzinfo/data_sources/ruby_data_source.rb#9
1283
1283
  class TZInfo::DataSources::TZInfoDataNotFound < ::StandardError; end
1284
1284
 
1285
1285
  # Represents a time zone defined by a data source.
@@ -1503,7 +1503,7 @@ end
1503
1503
  # 2038-01-19 03:14:07. Any queries falling after this time may be
1504
1504
  # inaccurate.
1505
1505
  #
1506
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#72
1506
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#68
1507
1507
  class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1508
1508
  # Initializes a new {ZoneinfoDataSource}.
1509
1509
  #
@@ -1538,7 +1538,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1538
1538
  # by searching.
1539
1539
  # @return [ZoneinfoDataSource] a new instance of ZoneinfoDataSource
1540
1540
  #
1541
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#241
1541
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#237
1542
1542
  def initialize(zoneinfo_dir = T.unsafe(nil), alternate_iso3166_tab_path = T.unsafe(nil)); end
1543
1543
 
1544
1544
  # Returns a frozen `Array` of all the available ISO 3166-1 alpha-2 country
@@ -1547,7 +1547,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1547
1547
  # @return [Array<String>] a frozen `Array` of all the available ISO 3166-1
1548
1548
  # alpha-2 country codes.
1549
1549
  #
1550
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#208
1550
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#204
1551
1551
  def country_codes; end
1552
1552
 
1553
1553
  # Returns a frozen `Array` of all the available time zone identifiers. The
@@ -1556,13 +1556,13 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1556
1556
  # @return [Array<String>] a frozen `Array` of all the available time zone
1557
1557
  # identifiers.
1558
1558
  #
1559
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#275
1559
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#271
1560
1560
  def data_timezone_identifiers; end
1561
1561
 
1562
1562
  # @return [String] the internal object state as a programmer-readable
1563
1563
  # `String`.
1564
1564
  #
1565
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#294
1565
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#290
1566
1566
  def inspect; end
1567
1567
 
1568
1568
  # Returns an empty `Array`. There is no information about linked/aliased
@@ -1571,17 +1571,17 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1571
1571
  #
1572
1572
  # @return [Array<String>] an empty `Array`.
1573
1573
  #
1574
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#284
1574
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#280
1575
1575
  def linked_timezone_identifiers; end
1576
1576
 
1577
1577
  # @return [String] a description of the {DataSource}.
1578
1578
  #
1579
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#289
1579
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#285
1580
1580
  def to_s; end
1581
1581
 
1582
1582
  # @return [String] the zoneinfo directory being used.
1583
1583
  #
1584
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#205
1584
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#201
1585
1585
  def zoneinfo_dir; end
1586
1586
 
1587
1587
  protected
@@ -1592,7 +1592,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1592
1592
  # @return [DataSources::CountryInfo] a {DataSources::CountryInfo} instance
1593
1593
  # for the given ISO 3166-1 alpha-2 country code.
1594
1594
  #
1595
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#330
1595
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#326
1596
1596
  def load_country_info(code); end
1597
1597
 
1598
1598
  # Returns a {TimezoneInfo} instance for the given time zone identifier.
@@ -1606,7 +1606,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1606
1606
  # @return [TimezoneInfo] a {TimezoneInfo} instance for the given time zone
1607
1607
  # identifier.
1608
1608
  #
1609
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#310
1609
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#306
1610
1610
  def load_timezone_info(identifier); end
1611
1611
 
1612
1612
  private
@@ -1620,7 +1620,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1620
1620
  # @return [Rational] the result of converting from degrees, minutes and
1621
1621
  # seconds to a `Rational`.
1622
1622
  #
1623
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#583
1623
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#579
1624
1624
  def dms_to_rational(sign, degrees, minutes, seconds = T.unsafe(nil)); end
1625
1625
 
1626
1626
  # Recursively enumerate a directory of time zones.
@@ -1634,7 +1634,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1634
1634
  # @yieldparam path [Array<String>] the path of a time zone file as an
1635
1635
  # `Array` of path components.
1636
1636
  #
1637
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#438
1637
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#434
1638
1638
  def enum_timezones(dir, exclude = T.unsafe(nil), &block); end
1639
1639
 
1640
1640
  # Finds a zoneinfo directory using {search_path} and
@@ -1643,7 +1643,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1643
1643
  # @return [Array<String>] an `Array` containing the iso3166.tab and
1644
1644
  # zone.tab paths if a zoneinfo directory was found, otherwise `nil`.
1645
1645
  #
1646
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#393
1646
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#389
1647
1647
  def find_zoneinfo_dir; end
1648
1648
 
1649
1649
  # Uses the iso3166.tab and zone1970.tab or zone.tab files to return a Hash
@@ -1654,7 +1654,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1654
1654
  # @return [Hash<String, CountryInfo>] a mapping from ISO 3166-1 alpha-2
1655
1655
  # country codes to {CountryInfo} instances.
1656
1656
  #
1657
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#467
1657
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#463
1658
1658
  def load_countries(iso3166_tab_path, zone_tab_path); end
1659
1659
 
1660
1660
  # Scans @zoneinfo_dir and returns an `Array` of available time zone
@@ -1663,7 +1663,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1663
1663
  # @return [Array<String>] an `Array` containing all the time zone
1664
1664
  # identifiers found.
1665
1665
  #
1666
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#418
1666
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#414
1667
1667
  def load_timezone_identifiers; end
1668
1668
 
1669
1669
  # Attempts to resolve the path to a tab file given its standard names and
@@ -1676,7 +1676,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1676
1676
  # the tab sub-directory.
1677
1677
  # @return [String] the path to the tab file.
1678
1678
  #
1679
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#376
1679
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#372
1680
1680
  def resolve_tab_path(zoneinfo_path, standard_names, tab_name); end
1681
1681
 
1682
1682
  # Validates a zoneinfo directory and returns the paths to the iso3166.tab
@@ -1693,7 +1693,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1693
1693
  # @return [Array<String>] an `Array` containing the iso3166.tab and
1694
1694
  # zone.tab paths if the directory is valid, otherwise `nil`.
1695
1695
  #
1696
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#349
1696
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#345
1697
1697
  def validate_zoneinfo_dir(path, iso3166_tab_path = T.unsafe(nil)); end
1698
1698
 
1699
1699
  class << self
@@ -1709,7 +1709,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1709
1709
  # @return [Array<String>] an `Array` of paths to check in order to
1710
1710
  # locate an iso3166.tab file.
1711
1711
  #
1712
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#160
1712
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#156
1713
1713
  def alternate_iso3166_tab_search_path; end
1714
1714
 
1715
1715
  # Sets the paths to check to locate an alternate iso3166.tab file if one
@@ -1726,7 +1726,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1726
1726
  # list of paths to check as either an `Array` of `String` or a
1727
1727
  # `File::PATH_SEPARATOR` separated `String`.
1728
1728
  #
1729
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#177
1729
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#173
1730
1730
  def alternate_iso3166_tab_search_path=(alternate_iso3166_tab_search_path); end
1731
1731
 
1732
1732
  # An `Array` of directories that will be checked to find the system
@@ -1740,7 +1740,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1740
1740
  # @return [Array<String>] an `Array` of directories to check in order to
1741
1741
  # find the system zoneinfo directory.
1742
1742
  #
1743
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#127
1743
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#123
1744
1744
  def search_path; end
1745
1745
 
1746
1746
  # Sets the directories to be checked when locating the system zoneinfo
@@ -1758,7 +1758,7 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1758
1758
  # check as either an `Array` of `String` or a `File::PATH_SEPARATOR`
1759
1759
  # separated `String`.
1760
1760
  #
1761
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#145
1761
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#141
1762
1762
  def search_path=(search_path); end
1763
1763
 
1764
1764
  private
@@ -1772,19 +1772,19 @@ class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
1772
1772
  # @param default [Array<String>] the default value.
1773
1773
  # @return [Array<String>] the processed path.
1774
1774
  #
1775
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#191
1775
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#187
1776
1776
  def process_search_path(path, default); end
1777
1777
  end
1778
1778
  end
1779
1779
 
1780
1780
  # The default value of {ZoneinfoDataSource.alternate_iso3166_tab_search_path}.
1781
1781
  #
1782
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#78
1782
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#74
1783
1783
  TZInfo::DataSources::ZoneinfoDataSource::DEFAULT_ALTERNATE_ISO3166_TAB_SEARCH_PATH = T.let(T.unsafe(nil), Array)
1784
1784
 
1785
1785
  # The default value of {ZoneinfoDataSource.search_path}.
1786
1786
  #
1787
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#74
1787
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#70
1788
1788
  TZInfo::DataSources::ZoneinfoDataSource::DEFAULT_SEARCH_PATH = T.let(T.unsafe(nil), Array)
1789
1789
 
1790
1790
  # Files and directories in the top level zoneinfo directory that will be
@@ -1799,7 +1799,7 @@ TZInfo::DataSources::ZoneinfoDataSource::DEFAULT_SEARCH_PATH = T.let(T.unsafe(ni
1799
1799
  # - src is a directory containing the tzdata source included on Solaris.
1800
1800
  # - timeconfig is a symlink included on Slackware.
1801
1801
  #
1802
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#92
1802
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#88
1803
1803
  TZInfo::DataSources::ZoneinfoDataSource::EXCLUDED_FILENAMES = T.let(T.unsafe(nil), Array)
1804
1804
 
1805
1805
  # A {ZoneinfoDirectoryNotFound} exception is raised if no valid zoneinfo
@@ -1808,12 +1808,12 @@ TZInfo::DataSources::ZoneinfoDataSource::EXCLUDED_FILENAMES = T.let(T.unsafe(nil
1808
1808
  # contains time zone files, a country code index file named iso3166.tab and
1809
1809
  # a time zone index file named zone1970.tab or zone.tab.
1810
1810
  #
1811
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#23
1811
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_data_source.rb#19
1812
1812
  class TZInfo::DataSources::ZoneinfoDirectoryNotFound < ::StandardError; end
1813
1813
 
1814
1814
  # Reads compiled zoneinfo TZif (\0, 2 or 3) files.
1815
1815
  #
1816
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#16
1816
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#12
1817
1817
  class TZInfo::DataSources::ZoneinfoReader
1818
1818
  # Initializes a new {ZoneinfoReader}.
1819
1819
  #
@@ -1823,7 +1823,7 @@ class TZInfo::DataSources::ZoneinfoReader
1823
1823
  # to dedupe abbreviations.
1824
1824
  # @return [ZoneinfoReader] a new instance of ZoneinfoReader
1825
1825
  #
1826
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#29
1826
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#25
1827
1827
  def initialize(posix_tz_parser, string_deduper); end
1828
1828
 
1829
1829
  # Reads a zoneinfo structure from the given path. Returns either a
@@ -1838,7 +1838,7 @@ class TZInfo::DataSources::ZoneinfoReader
1838
1838
  # @return [Object] either a {TimezoneOffset} or an `Array` of
1839
1839
  # {TimezoneTransition}s.
1840
1840
  #
1841
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#45
1841
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#41
1842
1842
  def read(file_path); end
1843
1843
 
1844
1844
  private
@@ -1861,7 +1861,7 @@ class TZInfo::DataSources::ZoneinfoReader
1861
1861
  # generated transition does not match the offset of the last defined
1862
1862
  # transition.
1863
1863
  #
1864
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#315
1864
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#311
1865
1865
  def apply_rules_with_transitions(file, transitions, offsets, rules); end
1866
1866
 
1867
1867
  # Apply the rules from the TZ string when there were no defined
@@ -1879,7 +1879,7 @@ class TZInfo::DataSources::ZoneinfoReader
1879
1879
  # @return [Object] either a {TimezoneOffset} or an `Array` of
1880
1880
  # {TimezoneTransition}s.
1881
1881
  #
1882
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#203
1882
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#199
1883
1883
  def apply_rules_without_transitions(file, first_offset, rules); end
1884
1884
 
1885
1885
  # Reads the given number of bytes from the given file and checks that the
@@ -1891,7 +1891,7 @@ class TZInfo::DataSources::ZoneinfoReader
1891
1891
  # match the number requested.
1892
1892
  # @return [String] the bytes that were read.
1893
1893
  #
1894
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#80
1894
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#76
1895
1895
  def check_read(file, bytes); end
1896
1896
 
1897
1897
  # Zoneinfo files don't include the offset from standard time (std_offset)
@@ -1903,7 +1903,7 @@ class TZInfo::DataSources::ZoneinfoReader
1903
1903
  # @return [Integer] the index of the offset to be used prior to the first
1904
1904
  # transition.
1905
1905
  #
1906
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#98
1906
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#94
1907
1907
  def derive_offsets(transitions, offsets); end
1908
1908
 
1909
1909
  # Finds an offset that is equivalent to the one specified in the given
@@ -1914,7 +1914,7 @@ class TZInfo::DataSources::ZoneinfoReader
1914
1914
  # @return [TimezoneOffset] the matching offset from `offsets` or `nil`
1915
1915
  # if not found.
1916
1916
  #
1917
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#237
1917
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#233
1918
1918
  def find_existing_offset(offsets, offset); end
1919
1919
 
1920
1920
  # Translates an unsigned 32-bit integer (as returned by unpack) to signed
@@ -1923,7 +1923,7 @@ class TZInfo::DataSources::ZoneinfoReader
1923
1923
  # @param long [Integer] an unsigned 32-bit integer.
1924
1924
  # @return [Integer] {long} translated to signed 32-bit.
1925
1925
  #
1926
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#56
1926
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#52
1927
1927
  def make_signed_int32(long); end
1928
1928
 
1929
1929
  # Translates a pair of unsigned 32-bit integers (as returned by unpack,
@@ -1934,7 +1934,7 @@ class TZInfo::DataSources::ZoneinfoReader
1934
1934
  # @return [Integer] {high} and {low} combined and translated to signed
1935
1935
  # 64-bit.
1936
1936
  #
1937
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#67
1937
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#63
1938
1938
  def make_signed_int64(high, low); end
1939
1939
 
1940
1940
  # Determines if the offset from a transition matches the offset from a
@@ -1946,7 +1946,7 @@ class TZInfo::DataSources::ZoneinfoReader
1946
1946
  # @param rule_offset [TimezoneOffset] an offset from a rule.
1947
1947
  # @return [Boolean] whether the offsets match.
1948
1948
  #
1949
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#183
1949
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#179
1950
1950
  def offset_matches_rule?(offset, rule_offset); end
1951
1951
 
1952
1952
  # Parses a zoneinfo file and returns either a {TimezoneOffset} that is
@@ -1957,7 +1957,7 @@ class TZInfo::DataSources::ZoneinfoReader
1957
1957
  # @return [Object] either a {TimezoneOffset} or an `Array` of
1958
1958
  # {TimezoneTransition}s.
1959
1959
  #
1960
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#347
1960
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#343
1961
1961
  def parse(file); end
1962
1962
 
1963
1963
  # Returns a new AnnualRules instance with standard and daylight savings
@@ -1974,7 +1974,7 @@ class TZInfo::DataSources::ZoneinfoReader
1974
1974
  # either {AnnualRules#std_offset std_offset} or {AnnualRules#dst_offset
1975
1975
  # dst_offset} could be found.
1976
1976
  #
1977
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#254
1977
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#250
1978
1978
  def replace_with_existing_offsets(offsets, annual_rules); end
1979
1979
 
1980
1980
  # Validates the offset indicated to be observed by the rules before the
@@ -1995,7 +1995,7 @@ class TZInfo::DataSources::ZoneinfoReader
1995
1995
  # @return [TimezoneTransition] the last defined transition (either the
1996
1996
  # original instance or a replacement).
1997
1997
  #
1998
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#282
1998
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#278
1999
1999
  def validate_and_fix_last_defined_transition_offset(file, last_defined, first_rule_offset); end
2000
2000
  end
2001
2001
 
@@ -2003,7 +2003,7 @@ end
2003
2003
  #
2004
2004
  # @private
2005
2005
  #
2006
- # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#20
2006
+ # source://tzinfo//lib/tzinfo/data_sources/zoneinfo_reader.rb#16
2007
2007
  TZInfo::DataSources::ZoneinfoReader::GENERATE_UP_TO = T.let(T.unsafe(nil), Integer)
2008
2008
 
2009
2009
  # Represents time zones that are defined by rules that set out when
@@ -2209,20 +2209,20 @@ end
2209
2209
  class TZInfo::DayOfMonthTransitionRule < ::TZInfo::DayOfWeekTransitionRule
2210
2210
  # Initializes a new {DayOfMonthTransitionRule}.
2211
2211
  #
2212
- # @param month [Integer] the month of the year when the transition occurs.
2212
+ # @param transition_at [Integer] the time in seconds after midnight local
2213
+ # time at which the transition occurs.
2213
2214
  # @param week [Integer] the week of the month when the transition occurs (1
2214
2215
  # to 4).
2215
2216
  # @param day_of_week [Integer] the day of the week when the transition
2216
2217
  # occurs. 0 is Sunday, 6 is Saturday.
2217
- # @param transition_at [Integer] the time in seconds after midnight local
2218
- # time at which the transition occurs.
2219
- # @raise [ArgumentError] if `transition_at` is not an `Integer`.
2220
- # @raise [ArgumentError] if `month` is not an `Integer`.
2221
- # @raise [ArgumentError] if `month` is less than 1 or greater than 12.
2222
- # @raise [ArgumentError] if `week` is not an `Integer`.
2218
+ # @param month [Integer] the month of the year when the transition occurs.
2223
2219
  # @raise [ArgumentError] if `week` is less than 1 or greater than 4.
2224
2220
  # @raise [ArgumentError] if `day_of_week` is not an `Integer`.
2225
2221
  # @raise [ArgumentError] if `day_of_week` is less than 0 or greater than 6.
2222
+ # @raise [ArgumentError] if `month` is less than 1 or greater than 12.
2223
+ # @raise [ArgumentError] if `transition_at` is not an `Integer`.
2224
+ # @raise [ArgumentError] if `month` is not an `Integer`.
2225
+ # @raise [ArgumentError] if `week` is not an `Integer`.
2226
2226
  # @return [DayOfMonthTransitionRule] a new instance of DayOfMonthTransitionRule
2227
2227
  #
2228
2228
  # source://tzinfo//lib/tzinfo/transition_rule.rb#340
@@ -2287,16 +2287,16 @@ end
2287
2287
  class TZInfo::DayOfWeekTransitionRule < ::TZInfo::TransitionRule
2288
2288
  # Initializes a new {DayOfWeekTransitionRule}.
2289
2289
  #
2290
- # @param month [Integer] the month of the year when the transition occurs.
2291
- # @param day_of_week [Integer] the day of the week when the transition
2292
- # occurs. 0 is Sunday, 6 is Saturday.
2293
2290
  # @param transition_at [Integer] the time in seconds after midnight local
2294
2291
  # time at which the transition occurs.
2295
- # @raise [ArgumentError] if `transition_at` is not an `Integer`.
2296
- # @raise [ArgumentError] if `month` is not an `Integer`.
2297
- # @raise [ArgumentError] if `month` is less than 1 or greater than 12.
2292
+ # @param day_of_week [Integer] the day of the week when the transition
2293
+ # occurs. 0 is Sunday, 6 is Saturday.
2294
+ # @param month [Integer] the month of the year when the transition occurs.
2298
2295
  # @raise [ArgumentError] if `day_of_week` is not an `Integer`.
2299
2296
  # @raise [ArgumentError] if `day_of_week` is less than 0 or greater than 6.
2297
+ # @raise [ArgumentError] if `month` is not an `Integer`.
2298
+ # @raise [ArgumentError] if `transition_at` is not an `Integer`.
2299
+ # @raise [ArgumentError] if `month` is less than 1 or greater than 12.
2300
2300
  # @return [DayOfWeekTransitionRule] a new instance of DayOfWeekTransitionRule
2301
2301
  #
2302
2302
  # source://tzinfo//lib/tzinfo/transition_rule.rb#274
@@ -3151,16 +3151,16 @@ TZInfo::JulianDayOfYearTransitionRule::YEAR = T.let(T.unsafe(nil), Integer)
3151
3151
  class TZInfo::LastDayOfMonthTransitionRule < ::TZInfo::DayOfWeekTransitionRule
3152
3152
  # Initializes a new {LastDayOfMonthTransitionRule}.
3153
3153
  #
3154
- # @param month [Integer] the month of the year when the transition occurs.
3155
- # @param day_of_week [Integer] the day of the week when the transition
3156
- # occurs. 0 is Sunday, 6 is Saturday.
3157
3154
  # @param transition_at [Integer] the time in seconds after midnight local
3158
3155
  # time at which the transition occurs.
3159
- # @raise [ArgumentError] if `transition_at` is not an `Integer`.
3160
- # @raise [ArgumentError] if `month` is not an `Integer`.
3161
- # @raise [ArgumentError] if `month` is less than 1 or greater than 12.
3156
+ # @param day_of_week [Integer] the day of the week when the transition
3157
+ # occurs. 0 is Sunday, 6 is Saturday.
3158
+ # @param month [Integer] the month of the year when the transition occurs.
3162
3159
  # @raise [ArgumentError] if `day_of_week` is not an `Integer`.
3163
3160
  # @raise [ArgumentError] if `day_of_week` is less than 0 or greater than 6.
3161
+ # @raise [ArgumentError] if `month` is not an `Integer`.
3162
+ # @raise [ArgumentError] if `transition_at` is not an `Integer`.
3163
+ # @raise [ArgumentError] if `month` is less than 1 or greater than 12.
3164
3164
  # @return [LastDayOfMonthTransitionRule] a new instance of LastDayOfMonthTransitionRule
3165
3165
  #
3166
3166
  # source://tzinfo//lib/tzinfo/transition_rule.rb#409
@@ -3352,6 +3352,18 @@ end
3352
3352
  # source://tzinfo//lib/tzinfo/timezone.rb#21
3353
3353
  class TZInfo::PeriodNotFound < ::StandardError; end
3354
3354
 
3355
+ # Methods to support different versions of Ruby.
3356
+ #
3357
+ # @private
3358
+ #
3359
+ # source://tzinfo//lib/tzinfo/ruby_core_support.rb#6
3360
+ module TZInfo::RubyCoreSupport
3361
+ class << self
3362
+ # source://tzinfo//lib/tzinfo/ruby_core_support.rb#17
3363
+ def untaint(o); end
3364
+ end
3365
+ end
3366
+
3355
3367
  # Maintains a pool of `String` instances. The {#dedupe} method will return
3356
3368
  # either a pooled copy of a given `String` or add the instance to the pool.
3357
3369
  #
@@ -3544,19 +3556,19 @@ class TZInfo::Timestamp
3544
3556
  #
3545
3557
  # @param value [Integer] the number of seconds since 1970-01-01 00:00:00 UTC
3546
3558
  # ignoring leap seconds.
3547
- # @param sub_second [Numeric] the fractional part of the second as either a
3548
- # `Rational` that is greater than or equal to 0 and less than 1, or
3549
- # the `Integer` 0.
3550
3559
  # @param utc_offset [Object] either `nil` for a {Timestamp} without a
3551
3560
  # specified offset, an offset from UTC specified as an `Integer` number of
3552
3561
  # seconds or the `Symbol` `:utc`).
3553
- # @raise [ArgumentError] if `value` is not an `Integer`.
3562
+ # @param sub_second [Numeric] the fractional part of the second as either a
3563
+ # `Rational` that is greater than or equal to 0 and less than 1, or
3564
+ # the `Integer` 0.
3565
+ # @raise [ArgumentError] if `utc_offset` is not `nil`, not an `Integer` and
3566
+ # not the `Symbol` `:utc`.
3554
3567
  # @raise [ArgumentError] if `sub_second` is not a `Rational`, or the
3555
3568
  # `Integer` 0.
3569
+ # @raise [ArgumentError] if `value` is not an `Integer`.
3556
3570
  # @raise [RangeError] if `sub_second` is a `Rational` but that is less
3557
3571
  # than 0 or greater than or equal to 1.
3558
- # @raise [ArgumentError] if `utc_offset` is not `nil`, not an `Integer` and
3559
- # not the `Symbol` `:utc`.
3560
3572
  # @return [Timestamp] a new instance of Timestamp
3561
3573
  #
3562
3574
  # source://tzinfo//lib/tzinfo/timestamp.rb#344
@@ -3748,7 +3760,6 @@ class TZInfo::Timestamp
3748
3760
  # and time parameters will be interpreted as a local date and time with
3749
3761
  # the given offset.
3750
3762
  #
3751
- # @param year [Integer] the year.
3752
3763
  # @param month [Integer] the month (1-12).
3753
3764
  # @param day [Integer] the day of the month (1-31).
3754
3765
  # @param hour [Integer] the hour (0-23).
@@ -3760,10 +3771,13 @@ class TZInfo::Timestamp
3760
3771
  # @param utc_offset [Object] either `nil` for a {Timestamp} without a
3761
3772
  # specified offset, an offset from UTC specified as an `Integer` number
3762
3773
  # of seconds or the `Symbol` `:utc`).
3763
- # @raise [ArgumentError] if either of `year`, `month`, `day`, `hour`,
3764
- # `minute`, or `second` is not an `Integer`.
3774
+ # @param year [Integer] the year.
3775
+ # @raise [RangeError] if `sub_second` is a `Rational` but that is less
3776
+ # than 0 or greater than or equal to 1.
3765
3777
  # @raise [ArgumentError] if `sub_second` is not a `Rational`, or the
3766
3778
  # `Integer` 0.
3779
+ # @raise [ArgumentError] if either of `year`, `month`, `day`, `hour`,
3780
+ # `minute`, or `second` is not an `Integer`.
3767
3781
  # @raise [ArgumentError] if `utc_offset` is not `nil`, not an `Integer`
3768
3782
  # and not the `Symbol` `:utc`.
3769
3783
  # @raise [RangeError] if `month` is not between 1 and 12.
@@ -3771,8 +3785,6 @@ class TZInfo::Timestamp
3771
3785
  # @raise [RangeError] if `hour` is not between 0 and 23.
3772
3786
  # @raise [RangeError] if `minute` is not between 0 and 59.
3773
3787
  # @raise [RangeError] if `second` is not between 0 and 59.
3774
- # @raise [RangeError] if `sub_second` is a `Rational` but that is less
3775
- # than 0 or greater than or equal to 1.
3776
3788
  # @return [Timestamp] a new {Timestamp} representing the specified
3777
3789
  # (proleptic Gregorian calendar) date and time.
3778
3790
  #
@@ -4288,9 +4300,6 @@ class TZInfo::Timezone
4288
4300
  #
4289
4301
  # values, interpreted as a local time in the time zone.
4290
4302
  #
4291
- # @param year [Integer] the year.
4292
- # @param month [Integer] the month (1-12).
4293
- # @param day [Integer] the day of the month (1-31).
4294
4303
  # @param hour [Integer] the hour (0-23).
4295
4304
  # @param minute [Integer] the minute (0-59).
4296
4305
  # @param second [Integer] the second (0-59).
@@ -4301,24 +4310,27 @@ class TZInfo::Timezone
4301
4310
  # selecting the period observing daylight savings time (`true`), always
4302
4311
  # selecting the period observing standard time (`false`), or leaving the
4303
4312
  # ambiguity unresolved (`nil`).
4313
+ # @param month [Integer] the month (1-12).
4314
+ # @param day [Integer] the day of the month (1-31).
4315
+ # @param year [Integer] the year.
4316
+ # @raise [RangeError] if `sub_second` is a `Rational` but that is less
4317
+ # than 0 or greater than or equal to 1.
4318
+ # @raise [PeriodNotFound] if the date and time parameters do not specify a
4319
+ # valid local time in the time zone.
4320
+ # @raise [AmbiguousTime] if the date and time parameters are ambiguous for
4321
+ # the time zone and the `dst` parameter or block did not resolve the
4322
+ # ambiguity.
4323
+ # @raise [RangeError] if `month` is not between 1 and 12.
4304
4324
  # @raise [ArgumentError] if either of `year`, `month`, `day`, `hour`,
4305
4325
  # `minute`, or `second` is not an `Integer`.
4306
4326
  # @raise [ArgumentError] if `sub_second` is not a `Rational`, or the
4307
4327
  # `Integer` 0.
4308
4328
  # @raise [ArgumentError] if `utc_offset` is not `nil`, not an `Integer`
4309
4329
  # and not the `Symbol` `:utc`.
4310
- # @raise [RangeError] if `month` is not between 1 and 12.
4311
4330
  # @raise [RangeError] if `day` is not between 1 and 31.
4312
4331
  # @raise [RangeError] if `hour` is not between 0 and 23.
4313
4332
  # @raise [RangeError] if `minute` is not between 0 and 59.
4314
4333
  # @raise [RangeError] if `second` is not between 0 and 59.
4315
- # @raise [RangeError] if `sub_second` is a `Rational` but that is less
4316
- # than 0 or greater than or equal to 1.
4317
- # @raise [PeriodNotFound] if the date and time parameters do not specify a
4318
- # valid local time in the time zone.
4319
- # @raise [AmbiguousTime] if the date and time parameters are ambiguous for
4320
- # the time zone and the `dst` parameter or block did not resolve the
4321
- # ambiguity.
4322
4334
  # @return [DateTimeWithOffset] a new `DateTime` object based on the given
4323
4335
  # @yield [periods] if the `dst` parameter did not resolve an ambiguity, an
4324
4336
  # optional block is yielded to.
@@ -4375,9 +4387,6 @@ class TZInfo::Timezone
4375
4387
  # The default value of the `dst` parameter can be specified using
4376
4388
  # {Timezone.default_dst=}.
4377
4389
  #
4378
- # @param year [Integer] the year.
4379
- # @param month [Integer] the month (1-12).
4380
- # @param day [Integer] the day of the month (1-31).
4381
4390
  # @param hour [Integer] the hour (0-23).
4382
4391
  # @param minute [Integer] the minute (0-59).
4383
4392
  # @param second [Integer] the second (0-59).
@@ -4388,24 +4397,27 @@ class TZInfo::Timezone
4388
4397
  # selecting the period observing daylight savings time (`true`), always
4389
4398
  # selecting the period observing standard time (`false`), or leaving the
4390
4399
  # ambiguity unresolved (`nil`).
4400
+ # @param month [Integer] the month (1-12).
4401
+ # @param day [Integer] the day of the month (1-31).
4402
+ # @param year [Integer] the year.
4403
+ # @raise [RangeError] if `sub_second` is a `Rational` but that is less
4404
+ # than 0 or greater than or equal to 1.
4405
+ # @raise [PeriodNotFound] if the date and time parameters do not specify a
4406
+ # valid local time in the time zone.
4407
+ # @raise [AmbiguousTime] if the date and time parameters are ambiguous for
4408
+ # the time zone and the `dst` parameter or block did not resolve the
4409
+ # ambiguity.
4410
+ # @raise [RangeError] if `month` is not between 1 and 12.
4391
4411
  # @raise [ArgumentError] if either of `year`, `month`, `day`, `hour`,
4392
4412
  # `minute`, or `second` is not an `Integer`.
4393
4413
  # @raise [ArgumentError] if `sub_second` is not a `Rational`, or the
4394
4414
  # `Integer` 0.
4395
4415
  # @raise [ArgumentError] if `utc_offset` is not `nil`, not an `Integer`
4396
4416
  # and not the `Symbol` `:utc`.
4397
- # @raise [RangeError] if `month` is not between 1 and 12.
4398
4417
  # @raise [RangeError] if `day` is not between 1 and 31.
4399
4418
  # @raise [RangeError] if `hour` is not between 0 and 23.
4400
4419
  # @raise [RangeError] if `minute` is not between 0 and 59.
4401
4420
  # @raise [RangeError] if `second` is not between 0 and 59.
4402
- # @raise [RangeError] if `sub_second` is a `Rational` but that is less
4403
- # than 0 or greater than or equal to 1.
4404
- # @raise [PeriodNotFound] if the date and time parameters do not specify a
4405
- # valid local time in the time zone.
4406
- # @raise [AmbiguousTime] if the date and time parameters are ambiguous for
4407
- # the time zone and the `dst` parameter or block did not resolve the
4408
- # ambiguity.
4409
4421
  # @return [TimeWithOffset] a new `Time` object based on the given values,
4410
4422
  # interpreted as a local time in the time zone.
4411
4423
  # @yield [periods] if the `dst` parameter did not resolve an ambiguity, an
@@ -4463,9 +4475,6 @@ class TZInfo::Timezone
4463
4475
  # The default value of the `dst` parameter can be specified using
4464
4476
  # {Timezone.default_dst=}.
4465
4477
  #
4466
- # @param year [Integer] the year.
4467
- # @param month [Integer] the month (1-12).
4468
- # @param day [Integer] the day of the month (1-31).
4469
4478
  # @param hour [Integer] the hour (0-23).
4470
4479
  # @param minute [Integer] the minute (0-59).
4471
4480
  # @param second [Integer] the second (0-59).
@@ -4476,24 +4485,27 @@ class TZInfo::Timezone
4476
4485
  # selecting the period observing daylight savings time (`true`), always
4477
4486
  # selecting the period observing standard time (`false`), or leaving the
4478
4487
  # ambiguity unresolved (`nil`).
4488
+ # @param month [Integer] the month (1-12).
4489
+ # @param day [Integer] the day of the month (1-31).
4490
+ # @param year [Integer] the year.
4491
+ # @raise [RangeError] if `sub_second` is a `Rational` but that is less
4492
+ # than 0 or greater than or equal to 1.
4493
+ # @raise [PeriodNotFound] if the date and time parameters do not specify a
4494
+ # valid local time in the time zone.
4495
+ # @raise [AmbiguousTime] if the date and time parameters are ambiguous for
4496
+ # the time zone and the `dst` parameter or block did not resolve the
4497
+ # ambiguity.
4498
+ # @raise [RangeError] if `month` is not between 1 and 12.
4479
4499
  # @raise [ArgumentError] if either of `year`, `month`, `day`, `hour`,
4480
4500
  # `minute`, or `second` is not an `Integer`.
4481
4501
  # @raise [ArgumentError] if `sub_second` is not a `Rational`, or the
4482
4502
  # `Integer` 0.
4483
4503
  # @raise [ArgumentError] if `utc_offset` is not `nil`, not an `Integer`
4484
4504
  # and not the `Symbol` `:utc`.
4485
- # @raise [RangeError] if `month` is not between 1 and 12.
4486
4505
  # @raise [RangeError] if `day` is not between 1 and 31.
4487
4506
  # @raise [RangeError] if `hour` is not between 0 and 23.
4488
4507
  # @raise [RangeError] if `minute` is not between 0 and 59.
4489
4508
  # @raise [RangeError] if `second` is not between 0 and 59.
4490
- # @raise [RangeError] if `sub_second` is a `Rational` but that is less
4491
- # than 0 or greater than or equal to 1.
4492
- # @raise [PeriodNotFound] if the date and time parameters do not specify a
4493
- # valid local time in the time zone.
4494
- # @raise [AmbiguousTime] if the date and time parameters are ambiguous for
4495
- # the time zone and the `dst` parameter or block did not resolve the
4496
- # ambiguity.
4497
4509
  # @return [TimestampWithOffset] a new {Timestamp} object based on the given
4498
4510
  # values, interpreted as a local time in the time zone.
4499
4511
  # @yield [periods] if the `dst` parameter did not resolve an ambiguity, an
@@ -4553,16 +4565,16 @@ class TZInfo::Timezone
4553
4565
  # The default value of the `dst` parameter can be specified using
4554
4566
  # {Timezone.default_dst=}.
4555
4567
  #
4556
- # @param local_time [Object] a `Time`, `DateTime` or {Timestamp}.
4557
4568
  # @param dst [Boolean] whether to resolve ambiguous local times by always
4558
4569
  # selecting the period observing daylight savings time (`true`), always
4559
4570
  # selecting the period observing standard time (`false`), or leaving the
4560
4571
  # ambiguity unresolved (`nil`).
4561
- # @raise [ArgumentError] if `local_time` is `nil`.
4572
+ # @param local_time [Object] a `Time`, `DateTime` or {Timestamp}.
4562
4573
  # @raise [PeriodNotFound] if `local_time` is not valid for the time zone
4563
4574
  # (there is no equivalent UTC time).
4564
4575
  # @raise [AmbiguousTime] if `local_time` was ambiguous for the time zone and
4565
4576
  # the `dst` parameter or block did not resolve the ambiguity.
4577
+ # @raise [ArgumentError] if `local_time` is `nil`.
4566
4578
  # @return [Object] the UTC equivalent of `local_time` as a `Time`,
4567
4579
  # `DateTime` or {Timestamp}.
4568
4580
  # @yield [periods] if the `dst` parameter did not resolve an ambiguity, an
@@ -4684,16 +4696,16 @@ class TZInfo::Timezone
4684
4696
  # The default value of the `dst` parameter can be specified using
4685
4697
  # {Timezone.default_dst=}.
4686
4698
  #
4687
- # @param local_time [Object] a `Time`, `DateTime` or {Timestamp}.
4688
4699
  # @param dst [Boolean] whether to resolve ambiguous local times by always
4689
4700
  # selecting the period observing daylight savings time (`true`), always
4690
4701
  # selecting the period observing standard time (`false`), or leaving the
4691
4702
  # ambiguity unresolved (`nil`).
4692
- # @raise [ArgumentError] if `local_time` is `nil`.
4703
+ # @param local_time [Object] a `Time`, `DateTime` or {Timestamp}.
4693
4704
  # @raise [PeriodNotFound] if `local_time` is not valid for the time zone
4694
4705
  # (there is no equivalent UTC time).
4695
4706
  # @raise [AmbiguousTime] if `local_time` was ambiguous for the time zone and
4696
4707
  # the `dst` parameter or block did not resolve the ambiguity.
4708
+ # @raise [ArgumentError] if `local_time` is `nil`.
4697
4709
  # @return [TimezonePeriod] the {TimezonePeriod} that is valid at
4698
4710
  # `local_time`.
4699
4711
  # @yield [periods] if the `dst` parameter did not resolve an ambiguity, an
@@ -5857,15 +5869,6 @@ end
5857
5869
  # source://tzinfo//lib/tzinfo/timezone.rb#32
5858
5870
  class TZInfo::UnknownTimezone < ::StandardError; end
5859
5871
 
5860
- # Object#untaint is deprecated in Ruby >= 2.7 and will be removed in 3.2.
5861
- # UntaintExt adds a refinement to make Object#untaint a no-op and avoid the
5862
- # warning.
5863
- #
5864
- # @private
5865
- #
5866
- # source://tzinfo//lib/tzinfo/untaint_ext.rb#10
5867
- module TZInfo::UntaintExt; end
5868
-
5869
5872
  # The TZInfo version number.
5870
5873
  #
5871
5874
  # source://tzinfo//lib/tzinfo/version.rb#6