packwerk 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +29 -20
  3. data/.github/workflows/cla.yml +22 -0
  4. data/.rubocop.yml +48 -19
  5. data/Gemfile +7 -2
  6. data/Gemfile.lock +201 -175
  7. data/README.md +1 -1
  8. data/RESOLVING_VIOLATIONS.md +81 -0
  9. data/Rakefile +1 -1
  10. data/USAGE.md +14 -5
  11. data/bin/m +1 -1
  12. data/bin/rake +1 -1
  13. data/bin/rubocop +1 -1
  14. data/bin/srb +1 -1
  15. data/bin/tapioca +1 -1
  16. data/gemfiles/Gemfile-rails-6-0 +1 -1
  17. data/gemfiles/Gemfile-rails-6-1 +22 -0
  18. data/lib/packwerk/application_validator.rb +7 -6
  19. data/lib/packwerk/association_inspector.rb +17 -15
  20. data/lib/packwerk/cache.rb +36 -29
  21. data/lib/packwerk/cli.rb +5 -6
  22. data/lib/packwerk/const_node_inspector.rb +8 -7
  23. data/lib/packwerk/constant_name_inspector.rb +2 -2
  24. data/lib/packwerk/deprecated_references.rb +34 -19
  25. data/lib/packwerk/file_processor.rb +14 -14
  26. data/lib/packwerk/files_for_processing.rb +27 -31
  27. data/lib/packwerk/formatters/offenses_formatter.rb +3 -3
  28. data/lib/packwerk/formatters/progress_formatter.rb +2 -2
  29. data/lib/packwerk/node.rb +1 -294
  30. data/lib/packwerk/node_helpers.rb +335 -0
  31. data/lib/packwerk/node_processor.rb +6 -5
  32. data/lib/packwerk/node_processor_factory.rb +3 -3
  33. data/lib/packwerk/node_visitor.rb +1 -1
  34. data/lib/packwerk/offense_collection.rb +6 -3
  35. data/lib/packwerk/offenses_formatter.rb +2 -2
  36. data/lib/packwerk/package.rb +3 -0
  37. data/lib/packwerk/package_set.rb +2 -0
  38. data/lib/packwerk/parse_run.rb +15 -13
  39. data/lib/packwerk/parsed_constant_definitions.rb +23 -20
  40. data/lib/packwerk/parsers/erb.rb +3 -3
  41. data/lib/packwerk/reference_checking/checkers/checker.rb +16 -3
  42. data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +16 -0
  43. data/lib/packwerk/reference_checking/checkers/privacy_checker.rb +18 -0
  44. data/lib/packwerk/reference_checking/reference_checker.rb +3 -1
  45. data/lib/packwerk/reference_extractor.rb +51 -48
  46. data/lib/packwerk/reference_offense.rb +3 -27
  47. data/lib/packwerk/run_context.rb +3 -3
  48. data/lib/packwerk/spring_command.rb +1 -1
  49. data/lib/packwerk/version.rb +1 -1
  50. data/lib/packwerk.rb +1 -0
  51. data/packwerk.gemspec +4 -12
  52. data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +2754 -0
  53. data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +1496 -0
  54. data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +2362 -0
  55. data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +19397 -0
  56. data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +1569 -0
  57. data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +14907 -0
  58. data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +2553 -0
  59. data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +5999 -0
  60. data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +37832 -0
  61. data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +2321 -0
  62. data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +18818 -0
  63. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +11722 -0
  64. data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +90 -0
  65. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  66. data/sorbet/rbi/gems/digest@3.1.0.rbi +189 -0
  67. data/sorbet/rbi/gems/erubi@1.11.0.rbi +140 -0
  68. data/sorbet/rbi/gems/globalid@1.0.0.rbi +572 -0
  69. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  70. data/sorbet/rbi/gems/json@2.6.2.rbi +1548 -0
  71. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +8 -0
  72. data/sorbet/rbi/gems/loofah@2.18.0.rbi +877 -0
  73. data/sorbet/rbi/gems/m@1.6.0.rbi +257 -0
  74. data/sorbet/rbi/gems/marcel@1.0.2.rbi +220 -0
  75. data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +170 -0
  76. data/sorbet/rbi/gems/mini_portile2@2.8.0.rbi +8 -0
  77. data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +104 -0
  78. data/sorbet/rbi/gems/minitest@5.16.2.rbi +2136 -0
  79. data/sorbet/rbi/gems/mocha@1.14.0.rbi +4177 -0
  80. data/sorbet/rbi/gems/net-imap@0.2.3.rbi +2147 -0
  81. data/sorbet/rbi/gems/net-pop@0.1.1.rbi +926 -0
  82. data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +11 -0
  83. data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +1108 -0
  84. data/sorbet/rbi/gems/netrc@0.11.0.rbi +153 -0
  85. data/sorbet/rbi/gems/nio4r@2.5.8.rbi +292 -0
  86. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +6478 -0
  87. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  88. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +9029 -0
  89. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +8 -0
  90. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  91. data/sorbet/rbi/gems/racc@1.6.0.rbi +152 -0
  92. data/sorbet/rbi/gems/rack-test@2.0.2.rbi +953 -0
  93. data/sorbet/rbi/gems/rack@2.2.4.rbi +5636 -0
  94. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +688 -0
  95. data/sorbet/rbi/gems/rails@7.0.3.1.rbi +8 -0
  96. data/sorbet/rbi/gems/railties@7.0.3.1.rbi +3507 -0
  97. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +392 -0
  98. data/sorbet/rbi/gems/rake@13.0.6.rbi +2924 -0
  99. data/sorbet/rbi/gems/rbi@0.0.15.rbi +3007 -0
  100. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +3383 -0
  101. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4714 -0
  102. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +6961 -0
  103. data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +2986 -0
  104. data/sorbet/rbi/gems/{rubocop-shopify@2.0.1.rbi → rubocop-shopify@2.9.0.rbi} +4 -4
  105. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +992 -0
  106. data/sorbet/rbi/gems/rubocop@1.34.1.rbi +51820 -0
  107. data/sorbet/rbi/gems/ruby-lsp@0.2.1.rbi +11 -0
  108. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +474 -0
  109. data/sorbet/rbi/gems/spoom@1.1.11.rbi +2181 -0
  110. data/sorbet/rbi/gems/spring@4.0.0.rbi +411 -0
  111. data/sorbet/rbi/gems/strscan@3.0.4.rbi +8 -0
  112. data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +8 -0
  113. data/sorbet/rbi/gems/tapioca@0.9.2.rbi +3181 -0
  114. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  115. data/sorbet/rbi/gems/timeout@0.3.0.rbi +142 -0
  116. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5896 -0
  117. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +48 -0
  118. data/sorbet/rbi/gems/unparser@0.6.5.rbi +4529 -0
  119. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2582 -0
  120. data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +993 -0
  121. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +388 -0
  122. data/sorbet/rbi/gems/yard@0.9.28.rbi +18242 -0
  123. data/sorbet/rbi/gems/zeitwerk@2.6.0.rbi +867 -0
  124. data/sorbet/rbi/shims/psych.rbi +5 -0
  125. data/sorbet/tapioca/require.rb +2 -3
  126. metadata +88 -157
  127. data/.github/probots.yml +0 -2
  128. data/library.yml +0 -6
  129. data/service.yml +0 -1
  130. data/sorbet/rbi/gems/actioncable@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -860
  131. data/sorbet/rbi/gems/actionmailbox@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -568
  132. data/sorbet/rbi/gems/actionmailer@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -587
  133. data/sorbet/rbi/gems/actionpack@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -5314
  134. data/sorbet/rbi/gems/actiontext@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -699
  135. data/sorbet/rbi/gems/actionview@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -2515
  136. data/sorbet/rbi/gems/activejob@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -624
  137. data/sorbet/rbi/gems/activemodel@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -1248
  138. data/sorbet/rbi/gems/activerecord@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8363
  139. data/sorbet/rbi/gems/activestorage@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -876
  140. data/sorbet/rbi/gems/activesupport@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -3987
  141. data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -40
  142. data/sorbet/rbi/gems/commander@4.5.2.rbi +0 -8
  143. data/sorbet/rbi/gems/concurrent-ruby@1.1.8.rbi +0 -1969
  144. data/sorbet/rbi/gems/constant_resolver@0.1.5.rbi +0 -26
  145. data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -41
  146. data/sorbet/rbi/gems/globalid@0.4.2.rbi +0 -178
  147. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
  148. data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -600
  149. data/sorbet/rbi/gems/loofah@2.9.0.rbi +0 -274
  150. data/sorbet/rbi/gems/m@1.5.1.rbi +0 -108
  151. data/sorbet/rbi/gems/marcel@1.0.0.rbi +0 -70
  152. data/sorbet/rbi/gems/mini_mime@1.0.3.rbi +0 -71
  153. data/sorbet/rbi/gems/minitest-focus@1.2.1.rbi +0 -8
  154. data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -544
  155. data/sorbet/rbi/gems/mocha@1.12.0.rbi +0 -953
  156. data/sorbet/rbi/gems/nio4r@2.5.7.rbi +0 -90
  157. data/sorbet/rbi/gems/nokogiri@1.11.2.rbi +0 -1647
  158. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -117
  159. data/sorbet/rbi/gems/parlour@6.0.0.rbi +0 -1272
  160. data/sorbet/rbi/gems/parser@3.0.0.0.rbi +0 -1745
  161. data/sorbet/rbi/gems/pry@0.14.0.rbi +0 -8
  162. data/sorbet/rbi/gems/psych@3.3.2.rbi +0 -24
  163. data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -57
  164. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -335
  165. data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1718
  166. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -213
  167. data/sorbet/rbi/gems/rails@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8
  168. data/sorbet/rbi/gems/railties@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -880
  169. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -155
  170. data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -837
  171. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -8
  172. data/sorbet/rbi/gems/rexml@3.2.4.rbi +0 -8
  173. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -8
  174. data/sorbet/rbi/gems/rubocop-performance@1.10.2.rbi +0 -8
  175. data/sorbet/rbi/gems/rubocop-sorbet@0.6.1.rbi +0 -8
  176. data/sorbet/rbi/gems/rubocop@1.12.0.rbi +0 -8
  177. data/sorbet/rbi/gems/smart_properties@1.15.0.rbi +0 -168
  178. data/sorbet/rbi/gems/spoom@1.1.0.rbi +0 -1061
  179. data/sorbet/rbi/gems/spring@2.1.1.rbi +0 -160
  180. data/sorbet/rbi/gems/sprockets-rails@3.2.2.rbi +0 -451
  181. data/sorbet/rbi/gems/sprockets@4.0.2.rbi +0 -1133
  182. data/sorbet/rbi/gems/tapioca@0.4.19.rbi +0 -603
  183. data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -893
  184. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -566
  185. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -8
  186. data/sorbet/rbi/gems/websocket-driver@0.7.3.rbi +0 -438
  187. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -177
@@ -1,566 +0,0 @@
1
- # DO NOT EDIT MANUALLY
2
- # This is an autogenerated file for types exported from the `tzinfo` gem.
3
- # Please instead update this file by running `bin/tapioca sync`.
4
-
5
- # typed: true
6
-
7
- module TZInfo
8
- end
9
-
10
- class TZInfo::AbsoluteDayOfYearTransitionRule
11
- def initialize(day, transition_at = T.unsafe(nil)); end
12
-
13
- def ==(r); end
14
- def eql?(r); end
15
- def is_always_first_day_of_year?; end
16
- def is_always_last_day_of_year?; end
17
-
18
- protected
19
-
20
- def get_day(offset, year); end
21
- def hash_args; end
22
- end
23
-
24
- class TZInfo::AmbiguousTime < ::StandardError
25
- end
26
-
27
- class TZInfo::Country
28
- include(::Comparable)
29
-
30
- def initialize(info); end
31
-
32
- def <=>(c); end
33
- def =~(regexp); end
34
- def _dump(limit); end
35
- def code; end
36
- def eql?(c); end
37
- def hash; end
38
- def inspect; end
39
- def name; end
40
- def to_s; end
41
- def zone_identifiers; end
42
- def zone_info; end
43
- def zone_names; end
44
- def zones; end
45
-
46
- class << self
47
- def _load(data); end
48
- def all; end
49
- def all_codes; end
50
- def get(code); end
51
-
52
- private
53
-
54
- def data_source; end
55
- end
56
- end
57
-
58
- class TZInfo::CountryTimezone
59
- def initialize(identifier, latitude, longitude, description = T.unsafe(nil)); end
60
-
61
- def ==(ct); end
62
- def description; end
63
- def description_or_friendly_identifier; end
64
- def eql?(ct); end
65
- def hash; end
66
- def identifier; end
67
- def latitude; end
68
- def longitude; end
69
- def timezone; end
70
- end
71
-
72
- class TZInfo::DataSource
73
- def initialize; end
74
-
75
- def country_codes; end
76
- def data_timezone_identifiers; end
77
- def get_country_info(code); end
78
- def get_timezone_info(identifier); end
79
- def inspect; end
80
- def linked_timezone_identifiers; end
81
- def timezone_identifiers; end
82
- def to_s; end
83
-
84
- protected
85
-
86
- def load_country_info(code); end
87
- def load_timezone_info(identifier); end
88
- def lookup_country_info(hash, code, encoding = T.unsafe(nil)); end
89
- def timezone_identifier_encoding; end
90
- def validate_timezone_identifier(identifier); end
91
-
92
- private
93
-
94
- def build_timezone_identifiers; end
95
- def find_timezone_identifier(identifier); end
96
- def raise_invalid_data_source(method_name); end
97
- def try_with_encoding(string, encoding); end
98
-
99
- class << self
100
- def get; end
101
- def set(data_source_or_type, *args); end
102
-
103
- private
104
-
105
- def create_default_data_source; end
106
- end
107
- end
108
-
109
- class TZInfo::DataSourceNotFound < ::StandardError
110
- end
111
-
112
- module TZInfo::DataSources
113
- end
114
-
115
- class TZInfo::DataSources::ConstantOffsetDataTimezoneInfo < ::TZInfo::DataSources::DataTimezoneInfo
116
- def initialize(identifier, constant_offset); end
117
-
118
- def constant_offset; end
119
- def period_for(timestamp); end
120
- def periods_for_local(local_timestamp); end
121
- def transitions_up_to(to_timestamp, from_timestamp = T.unsafe(nil)); end
122
-
123
- private
124
-
125
- def constant_period; end
126
- end
127
-
128
- class TZInfo::DataSources::CountryInfo
129
- def initialize(code, name, zones); end
130
-
131
- def code; end
132
- def inspect; end
133
- def name; end
134
- def zones; end
135
- end
136
-
137
- class TZInfo::DataSources::DataTimezoneInfo < ::TZInfo::DataSources::TimezoneInfo
138
- def create_timezone; end
139
- def period_for(timestamp); end
140
- def periods_for_local(local_timestamp); end
141
- def transitions_up_to(to_timestamp, from_timestamp = T.unsafe(nil)); end
142
-
143
- private
144
-
145
- def raise_not_implemented(method_name); end
146
- end
147
-
148
- class TZInfo::DataSources::InvalidZoneinfoDirectory < ::StandardError
149
- end
150
-
151
- class TZInfo::DataSources::InvalidZoneinfoFile < ::StandardError
152
- end
153
-
154
- class TZInfo::DataSources::LinkedTimezoneInfo < ::TZInfo::DataSources::TimezoneInfo
155
- def initialize(identifier, link_to_identifier); end
156
-
157
- def create_timezone; end
158
- def link_to_identifier; end
159
- end
160
-
161
- class TZInfo::DataSources::RubyDataSource < ::TZInfo::DataSource
162
- def initialize; end
163
-
164
- def country_codes; end
165
- def data_timezone_identifiers; end
166
- def inspect; end
167
- def linked_timezone_identifiers; end
168
- def to_s; end
169
-
170
- protected
171
-
172
- def load_country_info(code); end
173
- def load_timezone_info(identifier); end
174
-
175
- private
176
-
177
- def require_data(*file); end
178
- def require_definition(identifier); end
179
- def require_index(name); end
180
- def version_info; end
181
- end
182
-
183
- class TZInfo::DataSources::TZInfoDataNotFound < ::StandardError
184
- end
185
-
186
- class TZInfo::DataSources::TimezoneInfo
187
- def initialize(identifier); end
188
-
189
- def create_timezone; end
190
- def identifier; end
191
- def inspect; end
192
-
193
- private
194
-
195
- def raise_not_implemented(method_name); end
196
- end
197
-
198
- class TZInfo::DataSources::TransitionsDataTimezoneInfo < ::TZInfo::DataSources::DataTimezoneInfo
199
- def initialize(identifier, transitions); end
200
-
201
- def period_for(timestamp); end
202
- def periods_for_local(local_timestamp); end
203
- def transitions; end
204
- def transitions_up_to(to_timestamp, from_timestamp = T.unsafe(nil)); end
205
-
206
- private
207
-
208
- def find_minimum_transition(&block); end
209
- def transition_on_or_after_timestamp?(transition, timestamp); end
210
- end
211
-
212
- class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
213
- def initialize(zoneinfo_dir = T.unsafe(nil), alternate_iso3166_tab_path = T.unsafe(nil)); end
214
-
215
- def country_codes; end
216
- def data_timezone_identifiers; end
217
- def inspect; end
218
- def linked_timezone_identifiers; end
219
- def to_s; end
220
- def zoneinfo_dir; end
221
-
222
- protected
223
-
224
- def load_country_info(code); end
225
- def load_timezone_info(identifier); end
226
-
227
- private
228
-
229
- def dms_to_rational(sign, degrees, minutes, seconds = T.unsafe(nil)); end
230
- def enum_timezones(dir, exclude = T.unsafe(nil), &block); end
231
- def find_zoneinfo_dir; end
232
- def load_countries(iso3166_tab_path, zone_tab_path); end
233
- def load_timezone_identifiers; end
234
- def resolve_tab_path(zoneinfo_path, standard_names, tab_name); end
235
- def validate_zoneinfo_dir(path, iso3166_tab_path = T.unsafe(nil)); end
236
-
237
- class << self
238
- def alternate_iso3166_tab_search_path; end
239
- def alternate_iso3166_tab_search_path=(alternate_iso3166_tab_search_path); end
240
- def search_path; end
241
- def search_path=(search_path); end
242
-
243
- private
244
-
245
- def process_search_path(path, default); end
246
- end
247
- end
248
-
249
- class TZInfo::DataSources::ZoneinfoDirectoryNotFound < ::StandardError
250
- end
251
-
252
- class TZInfo::DataTimezone < ::TZInfo::InfoTimezone
253
- def canonical_zone; end
254
- def period_for(time); end
255
- def periods_for_local(local_time); end
256
- def transitions_up_to(to, from = T.unsafe(nil)); end
257
- end
258
-
259
- class TZInfo::DateTimeWithOffset < ::DateTime
260
- include(::TZInfo::WithOffset)
261
-
262
- def downto(min); end
263
- def england; end
264
- def gregorian; end
265
- def italy; end
266
- def julian; end
267
- def new_start(start = T.unsafe(nil)); end
268
- def set_timezone_offset(timezone_offset); end
269
- def step(limit, step = T.unsafe(nil)); end
270
- def timezone_offset; end
271
- def to_time; end
272
- def upto(max); end
273
-
274
- protected
275
-
276
- def clear_timezone_offset; end
277
- end
278
-
279
- class TZInfo::InfoTimezone < ::TZInfo::Timezone
280
- def initialize(info); end
281
-
282
- def identifier; end
283
-
284
- protected
285
-
286
- def info; end
287
- end
288
-
289
- class TZInfo::InvalidCountryCode < ::StandardError
290
- end
291
-
292
- class TZInfo::InvalidDataSource < ::StandardError
293
- end
294
-
295
- class TZInfo::InvalidTimezoneIdentifier < ::StandardError
296
- end
297
-
298
- class TZInfo::LinkedTimezone < ::TZInfo::InfoTimezone
299
- def initialize(info); end
300
-
301
- def canonical_zone; end
302
- def period_for(time); end
303
- def periods_for_local(local_time); end
304
- def transitions_up_to(to, from = T.unsafe(nil)); end
305
- end
306
-
307
- class TZInfo::OffsetTimezonePeriod < ::TZInfo::TimezonePeriod
308
- def initialize(offset); end
309
-
310
- def ==(p); end
311
- def end_transition; end
312
- def eql?(p); end
313
- def hash; end
314
- def start_transition; end
315
- end
316
-
317
- class TZInfo::PeriodNotFound < ::StandardError
318
- end
319
-
320
- class TZInfo::TimeWithOffset < ::Time
321
- include(::TZInfo::WithOffset)
322
-
323
- def dst?; end
324
- def getlocal(*args); end
325
- def gmtime; end
326
- def isdst; end
327
- def localtime(*args); end
328
- def round(ndigits = T.unsafe(nil)); end
329
- def set_timezone_offset(timezone_offset); end
330
- def timezone_offset; end
331
- def to_a; end
332
- def to_datetime; end
333
- def utc; end
334
- def zone; end
335
-
336
- protected
337
-
338
- def clear_timezone_offset; end
339
- end
340
-
341
- class TZInfo::Timestamp
342
- include(::Comparable)
343
-
344
- def initialize(value, sub_second = T.unsafe(nil), utc_offset = T.unsafe(nil)); end
345
-
346
- def <=>(t); end
347
- def add_and_set_utc_offset(seconds, utc_offset); end
348
- def eql?(_arg0); end
349
- def hash; end
350
- def inspect; end
351
- def strftime(format); end
352
- def sub_second; end
353
- def to_datetime; end
354
- def to_i; end
355
- def to_s; end
356
- def to_time; end
357
- def utc; end
358
- def utc?; end
359
- def utc_offset; end
360
- def value; end
361
-
362
- protected
363
-
364
- def new_datetime(klass = T.unsafe(nil)); end
365
- def new_time(klass = T.unsafe(nil)); end
366
-
367
- private
368
-
369
- def initialize!(value, sub_second = T.unsafe(nil), utc_offset = T.unsafe(nil)); end
370
- def sub_second_to_s; end
371
- def value_and_sub_second_to_s(offset = T.unsafe(nil)); end
372
-
373
- class << self
374
- def create(year, month = T.unsafe(nil), day = T.unsafe(nil), hour = T.unsafe(nil), minute = T.unsafe(nil), second = T.unsafe(nil), sub_second = T.unsafe(nil), utc_offset = T.unsafe(nil)); end
375
- def for(value, offset = T.unsafe(nil)); end
376
- def utc(value, sub_second = T.unsafe(nil)); end
377
-
378
- private
379
-
380
- def for_datetime(datetime, ignore_offset, target_utc_offset); end
381
- def for_time(time, ignore_offset, target_utc_offset); end
382
- def for_time_like(time_like, ignore_offset, target_utc_offset); end
383
- def for_timestamp(timestamp, ignore_offset, target_utc_offset); end
384
- def is_time_like?(value); end
385
- def new!(value, sub_second = T.unsafe(nil), utc_offset = T.unsafe(nil)); end
386
- end
387
- end
388
-
389
- class TZInfo::TimestampWithOffset < ::TZInfo::Timestamp
390
- include(::TZInfo::WithOffset)
391
-
392
- def set_timezone_offset(timezone_offset); end
393
- def timezone_offset; end
394
- def to_datetime; end
395
- def to_time; end
396
-
397
- class << self
398
- def set_timezone_offset(timestamp, timezone_offset); end
399
- end
400
- end
401
-
402
- class TZInfo::Timezone
403
- include(::Comparable)
404
-
405
- def <=>(tz); end
406
- def =~(regexp); end
407
- def _dump(limit); end
408
- def abbr(time = T.unsafe(nil)); end
409
- def abbreviation(time = T.unsafe(nil)); end
410
- def base_utc_offset(time = T.unsafe(nil)); end
411
- def canonical_identifier; end
412
- def canonical_zone; end
413
- def current_period; end
414
- def current_period_and_time; end
415
- def current_time_and_period; end
416
- def dst?(time = T.unsafe(nil)); end
417
- def eql?(tz); end
418
- def friendly_identifier(skip_first_part = T.unsafe(nil)); end
419
- def hash; end
420
- def identifier; end
421
- def inspect; end
422
- def local_datetime(year, month = T.unsafe(nil), day = T.unsafe(nil), hour = T.unsafe(nil), minute = T.unsafe(nil), second = T.unsafe(nil), sub_second = T.unsafe(nil), dst = T.unsafe(nil), &block); end
423
- def local_time(year, month = T.unsafe(nil), day = T.unsafe(nil), hour = T.unsafe(nil), minute = T.unsafe(nil), second = T.unsafe(nil), sub_second = T.unsafe(nil), dst = T.unsafe(nil), &block); end
424
- def local_timestamp(year, month = T.unsafe(nil), day = T.unsafe(nil), hour = T.unsafe(nil), minute = T.unsafe(nil), second = T.unsafe(nil), sub_second = T.unsafe(nil), dst = T.unsafe(nil), &block); end
425
- def local_to_utc(local_time, dst = T.unsafe(nil)); end
426
- def name; end
427
- def now; end
428
- def observed_utc_offset(time = T.unsafe(nil)); end
429
- def offsets_up_to(to, from = T.unsafe(nil)); end
430
- def period_for(time); end
431
- def period_for_local(local_time, dst = T.unsafe(nil)); end
432
- def period_for_utc(utc_time); end
433
- def periods_for_local(local_time); end
434
- def strftime(format, time = T.unsafe(nil)); end
435
- def to_local(time); end
436
- def to_s; end
437
- def transitions_up_to(to, from = T.unsafe(nil)); end
438
- def utc_offset(time = T.unsafe(nil)); end
439
- def utc_to_local(utc_time); end
440
-
441
- private
442
-
443
- def raise_unknown_timezone; end
444
-
445
- class << self
446
- def _load(data); end
447
- def all; end
448
- def all_country_zone_identifiers; end
449
- def all_country_zones; end
450
- def all_data_zone_identifiers; end
451
- def all_data_zones; end
452
- def all_identifiers; end
453
- def all_linked_zone_identifiers; end
454
- def all_linked_zones; end
455
- def default_dst; end
456
- def default_dst=(value); end
457
- def get(identifier); end
458
- def get_proxy(identifier); end
459
-
460
- private
461
-
462
- def data_source; end
463
- def get_proxies(identifiers); end
464
- end
465
- end
466
-
467
- class TZInfo::TimezoneOffset
468
- def initialize(base_utc_offset, std_offset, abbreviation); end
469
-
470
- def ==(toi); end
471
- def abbr; end
472
- def abbreviation; end
473
- def base_utc_offset; end
474
- def dst?; end
475
- def eql?(toi); end
476
- def hash; end
477
- def inspect; end
478
- def observed_utc_offset; end
479
- def std_offset; end
480
- def utc_offset; end
481
- def utc_total_offset; end
482
- end
483
-
484
- class TZInfo::TimezonePeriod
485
- def initialize(offset); end
486
-
487
- def abbr; end
488
- def abbreviation; end
489
- def base_utc_offset; end
490
- def dst?; end
491
- def end_transition; end
492
- def ends_at; end
493
- def local_ends_at; end
494
- def local_starts_at; end
495
- def observed_utc_offset; end
496
- def offset; end
497
- def start_transition; end
498
- def starts_at; end
499
- def std_offset; end
500
- def utc_offset; end
501
- def utc_total_offset; end
502
- def zone_identifier; end
503
-
504
- private
505
-
506
- def raise_not_implemented(method_name); end
507
- def timestamp(transition); end
508
- def timestamp_with_offset(transition); end
509
- end
510
-
511
- class TZInfo::TimezoneProxy < ::TZInfo::Timezone
512
- def initialize(identifier); end
513
-
514
- def _dump(limit); end
515
- def canonical_zone; end
516
- def identifier; end
517
- def period_for(time); end
518
- def periods_for_local(local_time); end
519
- def transitions_up_to(to, from = T.unsafe(nil)); end
520
-
521
- private
522
-
523
- def real_timezone; end
524
-
525
- class << self
526
- def _load(data); end
527
- end
528
- end
529
-
530
- class TZInfo::TimezoneTransition
531
- def initialize(offset, previous_offset, timestamp_value); end
532
-
533
- def ==(tti); end
534
- def at; end
535
- def eql?(tti); end
536
- def hash; end
537
- def local_end_at; end
538
- def local_start_at; end
539
- def offset; end
540
- def previous_offset; end
541
- def timestamp_value; end
542
- end
543
-
544
- class TZInfo::TransitionsTimezonePeriod < ::TZInfo::TimezonePeriod
545
- def initialize(start_transition, end_transition); end
546
-
547
- def ==(p); end
548
- def end_transition; end
549
- def eql?(p); end
550
- def hash; end
551
- def inspect; end
552
- def start_transition; end
553
- end
554
-
555
- class TZInfo::UnknownTimezone < ::StandardError
556
- end
557
-
558
- TZInfo::VERSION = T.let(T.unsafe(nil), String)
559
-
560
- module TZInfo::WithOffset
561
- def strftime(format); end
562
-
563
- protected
564
-
565
- def if_timezone_offset(result = T.unsafe(nil)); end
566
- end
@@ -1,8 +0,0 @@
1
- # DO NOT EDIT MANUALLY
2
- # This is an autogenerated file for types exported from the `unicode-display_width` gem.
3
- # Please instead update this file by running `bin/tapioca sync`.
4
-
5
- # typed: true
6
-
7
- # THIS IS AN EMPTY RBI FILE.
8
- # see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires