muina 0.2.7 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +25 -0
- data/README.md +0 -35
- data/lib/muina/maybe/none.rb +57 -0
- data/lib/muina/maybe/some.rb +61 -0
- data/lib/muina/maybe.rb +13 -0
- data/lib/muina/version.rb +1 -2
- data/lib/muina.rb +0 -32
- metadata +24 -226
- data/.github/workflows/main.yml +0 -16
- data/.gitignore +0 -5
- data/.mutant.yml +0 -38
- data/.rspec +0 -4
- data/.rubocop.yml +0 -172
- data/.ruby-version +0 -1
- data/.simplecov +0 -14
- data/CHANGELOG.md +0 -38
- data/Gemfile +0 -34
- data/Gemfile.lock +0 -265
- data/Guardfile +0 -24
- data/Rakefile +0 -13
- data/SECURITY.md +0 -14
- data/bin/bundle +0 -114
- data/bin/console +0 -15
- data/bin/flay +0 -29
- data/bin/flog +0 -29
- data/bin/guard +0 -29
- data/bin/irb +0 -29
- data/bin/lefthook +0 -29
- data/bin/mutant +0 -29
- data/bin/parlour +0 -29
- data/bin/rake +0 -29
- data/bin/rspec +0 -29
- data/bin/rubocop +0 -29
- data/bin/setup +0 -8
- data/bin/srb +0 -29
- data/bin/srb-rbi +0 -29
- data/bin/tapioca +0 -29
- data/exe/muina +0 -11
- data/lefthook.yml +0 -39
- data/lib/muina/action/params_factory.rb +0 -17
- data/lib/muina/action/step/command.rb +0 -31
- data/lib/muina/action/step/failure.rb +0 -18
- data/lib/muina/action/step/query.rb +0 -31
- data/lib/muina/action/step/result.rb +0 -51
- data/lib/muina/action/step.rb +0 -13
- data/lib/muina/action.rb +0 -73
- data/lib/muina/any.rb +0 -7
- data/lib/muina/classes.rb +0 -7
- data/lib/muina/module.rb +0 -6
- data/lib/muina/parameters.rb +0 -7
- data/lib/muina/params.rb +0 -19
- data/lib/muina/private_creation.rb +0 -12
- data/lib/muina/result/factory.rb +0 -37
- data/lib/muina/result/failure.rb +0 -31
- data/lib/muina/result/null.rb +0 -25
- data/lib/muina/result/success.rb +0 -31
- data/lib/muina/result.rb +0 -17
- data/lib/muina/service.rb +0 -37
- data/lib/muina/symbol_hash.rb +0 -7
- data/lib/muina/unit.rb +0 -10
- data/lib/muina/untyped_array.rb +0 -7
- data/lib/muina/untyped_hash.rb +0 -7
- data/lib/muina/value.rb +0 -16
- data/muina.gemspec +0 -35
- data/rbi/muina.rbi +0 -268
- data/sorbet/config +0 -2
- data/sorbet/rbi/gems/actionpack@6.1.4.rbi +0 -5045
- data/sorbet/rbi/gems/actionview@6.1.4.rbi +0 -2416
- data/sorbet/rbi/gems/activesupport@6.1.4.rbi +0 -3778
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -54
- data/sorbet/rbi/gems/awesome_print@1.9.2.rbi +0 -322
- data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -8
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -18
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -39
- data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -8
- data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +0 -2403
- data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -123
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -185
- data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -54
- data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -36
- data/sorbet/rbi/gems/erubis@2.7.0.rbi +0 -8
- data/sorbet/rbi/gems/faker@2.18.0.rbi +0 -2469
- data/sorbet/rbi/gems/ffi@1.15.3.rbi +0 -8
- data/sorbet/rbi/gems/flay@2.12.1.rbi +0 -178
- data/sorbet/rbi/gems/flog@4.6.4.rbi +0 -70
- data/sorbet/rbi/gems/formatador@0.3.0.rbi +0 -8
- data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +0 -49
- data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +0 -233
- data/sorbet/rbi/gems/guard-rubocop@1.4.0.rbi +0 -66
- data/sorbet/rbi/gems/guard-shell@0.7.2.rbi +0 -69
- data/sorbet/rbi/gems/guard@2.18.0.rbi +0 -617
- data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
- data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -616
- data/sorbet/rbi/gems/io-console@0.5.9.rbi +0 -8
- data/sorbet/rbi/gems/irb@1.3.6.rbi +0 -452
- data/sorbet/rbi/gems/lefthook@0.7.6.rbi +0 -8
- data/sorbet/rbi/gems/listen@3.6.0.rbi +0 -476
- data/sorbet/rbi/gems/loofah@2.10.0.rbi +0 -223
- data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +0 -431
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
- data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -344
- data/sorbet/rbi/gems/mutant-license@0.1.1.1.4043027289354708743625974235631451632228.0.rbi +0 -8
- data/sorbet/rbi/gems/mutant-rspec@0.10.32.rbi +0 -8
- data/sorbet/rbi/gems/mutant@0.10.32.rbi +0 -4154
- data/sorbet/rbi/gems/nenv@0.3.0.rbi +0 -88
- data/sorbet/rbi/gems/nokogiri@1.11.7.rbi +0 -1422
- data/sorbet/rbi/gems/notiffany@0.1.3.rbi +0 -331
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -113
- data/sorbet/rbi/gems/parlour@6.0.1.rbi +0 -1726
- data/sorbet/rbi/gems/parser@3.0.2.0.rbi +0 -1683
- data/sorbet/rbi/gems/path_expander@1.1.0.rbi +0 -24
- data/sorbet/rbi/gems/polyfill@1.9.0.rbi +0 -393
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
- data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -47
- data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -272
- data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1618
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -92
- data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -183
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
- data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -808
- data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +0 -8
- data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +0 -8
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -1120
- data/sorbet/rbi/gems/reline@0.2.6.rbi +0 -662
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -672
- data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +0 -2509
- data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +0 -1574
- data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +0 -1462
- data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +0 -509
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -38
- data/sorbet/rbi/gems/rubocop-ast@1.8.0.rbi +0 -2194
- data/sorbet/rbi/gems/rubocop-performance@1.11.4.rbi +0 -899
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -118
- data/sorbet/rbi/gems/rubocop-rspec@2.4.0.rbi +0 -1805
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +0 -288
- data/sorbet/rbi/gems/rubocop@1.18.4.rbi +0 -13197
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -405
- data/sorbet/rbi/gems/ruby_parser@3.16.0.rbi +0 -4528
- data/sorbet/rbi/gems/safe_type@1.1.1.rbi +0 -157
- data/sorbet/rbi/gems/sexp_processor@4.15.3.rbi +0 -359
- data/sorbet/rbi/gems/shellany@0.0.1.rbi +0 -28
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -89
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +0 -8
- data/sorbet/rbi/gems/sorbet-coerce@0.5.0.rbi +0 -42
- data/sorbet/rbi/gems/sorbet-rails@0.7.4.rbi +0 -8
- data/sorbet/rbi/gems/sorbet-struct-comparable@1.1.0.rbi +0 -17
- data/sorbet/rbi/gems/spoom@1.1.1.rbi +0 -1193
- data/sorbet/rbi/gems/tapioca@0.4.23.rbi +0 -1826
- data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -838
- data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -856
- data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -26
- data/sorbet/rbi/gems/unparser@0.6.0.rbi +0 -2037
- data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -173
- data/sorbet/rbi/todo.rbi +0 -8
- data/sorbet/rbi/typed_params.rbi +0 -7
- data/sorbet/tapioca/require.rb +0 -16
@@ -1,856 +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; end
|
8
|
-
|
9
|
-
class TZInfo::AbsoluteDayOfYearTransitionRule < ::TZInfo::DayOfYearTransitionRule
|
10
|
-
def initialize(day, transition_at = T.unsafe(nil)); end
|
11
|
-
|
12
|
-
def ==(r); end
|
13
|
-
def eql?(r); end
|
14
|
-
def is_always_first_day_of_year?; end
|
15
|
-
def is_always_last_day_of_year?; end
|
16
|
-
|
17
|
-
protected
|
18
|
-
|
19
|
-
def get_day(offset, year); end
|
20
|
-
def hash_args; end
|
21
|
-
end
|
22
|
-
|
23
|
-
class TZInfo::AmbiguousTime < ::StandardError; end
|
24
|
-
|
25
|
-
class TZInfo::AnnualRules
|
26
|
-
def initialize(std_offset, dst_offset, dst_start_rule, dst_end_rule); end
|
27
|
-
|
28
|
-
def dst_end_rule; end
|
29
|
-
def dst_offset; end
|
30
|
-
def dst_start_rule; end
|
31
|
-
def std_offset; end
|
32
|
-
def transitions(year); end
|
33
|
-
|
34
|
-
private
|
35
|
-
|
36
|
-
def apply_rule(rule, from_offset, to_offset, year); end
|
37
|
-
end
|
38
|
-
|
39
|
-
class TZInfo::ConcurrentStringDeduper < ::TZInfo::StringDeduper
|
40
|
-
protected
|
41
|
-
|
42
|
-
def create_hash(&block); end
|
43
|
-
end
|
44
|
-
|
45
|
-
class TZInfo::Country
|
46
|
-
include ::Comparable
|
47
|
-
|
48
|
-
def initialize(info); end
|
49
|
-
|
50
|
-
def <=>(c); end
|
51
|
-
def =~(regexp); end
|
52
|
-
def _dump(limit); end
|
53
|
-
def code; end
|
54
|
-
def eql?(c); end
|
55
|
-
def hash; end
|
56
|
-
def inspect; end
|
57
|
-
def name; end
|
58
|
-
def to_s; end
|
59
|
-
def zone_identifiers; end
|
60
|
-
def zone_info; end
|
61
|
-
def zone_names; end
|
62
|
-
def zones; end
|
63
|
-
|
64
|
-
class << self
|
65
|
-
def _load(data); end
|
66
|
-
def all; end
|
67
|
-
def all_codes; end
|
68
|
-
def get(code); end
|
69
|
-
|
70
|
-
private
|
71
|
-
|
72
|
-
def data_source; end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
TZInfo::CountryIndexDefinition = TZInfo::Format1::CountryIndexDefinition
|
77
|
-
|
78
|
-
class TZInfo::CountryTimezone
|
79
|
-
def initialize(identifier, latitude, longitude, description = T.unsafe(nil)); end
|
80
|
-
|
81
|
-
def ==(ct); end
|
82
|
-
def description; end
|
83
|
-
def description_or_friendly_identifier; end
|
84
|
-
def eql?(ct); end
|
85
|
-
def hash; end
|
86
|
-
def identifier; end
|
87
|
-
def latitude; end
|
88
|
-
def longitude; end
|
89
|
-
def timezone; end
|
90
|
-
end
|
91
|
-
|
92
|
-
class TZInfo::DataSource
|
93
|
-
def initialize; end
|
94
|
-
|
95
|
-
def country_codes; end
|
96
|
-
def data_timezone_identifiers; end
|
97
|
-
def get_country_info(code); end
|
98
|
-
def get_timezone_info(identifier); end
|
99
|
-
def inspect; end
|
100
|
-
def linked_timezone_identifiers; end
|
101
|
-
def timezone_identifiers; end
|
102
|
-
def to_s; end
|
103
|
-
|
104
|
-
protected
|
105
|
-
|
106
|
-
def load_country_info(code); end
|
107
|
-
def load_timezone_info(identifier); end
|
108
|
-
def lookup_country_info(hash, code, encoding = T.unsafe(nil)); end
|
109
|
-
def timezone_identifier_encoding; end
|
110
|
-
def validate_timezone_identifier(identifier); end
|
111
|
-
|
112
|
-
private
|
113
|
-
|
114
|
-
def build_timezone_identifiers; end
|
115
|
-
def find_timezone_identifier(identifier); end
|
116
|
-
def raise_invalid_data_source(method_name); end
|
117
|
-
def try_with_encoding(string, encoding); end
|
118
|
-
|
119
|
-
class << self
|
120
|
-
def get; end
|
121
|
-
def set(data_source_or_type, *args); end
|
122
|
-
|
123
|
-
private
|
124
|
-
|
125
|
-
def create_default_data_source; end
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
class TZInfo::DataSourceNotFound < ::StandardError; end
|
130
|
-
module TZInfo::DataSources; end
|
131
|
-
|
132
|
-
class TZInfo::DataSources::ConstantOffsetDataTimezoneInfo < ::TZInfo::DataSources::DataTimezoneInfo
|
133
|
-
def initialize(identifier, constant_offset); end
|
134
|
-
|
135
|
-
def constant_offset; end
|
136
|
-
def period_for(timestamp); end
|
137
|
-
def periods_for_local(local_timestamp); end
|
138
|
-
def transitions_up_to(to_timestamp, from_timestamp = T.unsafe(nil)); end
|
139
|
-
|
140
|
-
private
|
141
|
-
|
142
|
-
def constant_period; end
|
143
|
-
end
|
144
|
-
|
145
|
-
class TZInfo::DataSources::CountryInfo
|
146
|
-
def initialize(code, name, zones); end
|
147
|
-
|
148
|
-
def code; end
|
149
|
-
def inspect; end
|
150
|
-
def name; end
|
151
|
-
def zones; end
|
152
|
-
end
|
153
|
-
|
154
|
-
class TZInfo::DataSources::DataTimezoneInfo < ::TZInfo::DataSources::TimezoneInfo
|
155
|
-
def create_timezone; end
|
156
|
-
def period_for(timestamp); end
|
157
|
-
def periods_for_local(local_timestamp); end
|
158
|
-
def transitions_up_to(to_timestamp, from_timestamp = T.unsafe(nil)); end
|
159
|
-
|
160
|
-
private
|
161
|
-
|
162
|
-
def raise_not_implemented(method_name); end
|
163
|
-
end
|
164
|
-
|
165
|
-
class TZInfo::DataSources::InvalidPosixTimeZone < ::StandardError; end
|
166
|
-
class TZInfo::DataSources::InvalidZoneinfoDirectory < ::StandardError; end
|
167
|
-
class TZInfo::DataSources::InvalidZoneinfoFile < ::StandardError; end
|
168
|
-
|
169
|
-
class TZInfo::DataSources::LinkedTimezoneInfo < ::TZInfo::DataSources::TimezoneInfo
|
170
|
-
def initialize(identifier, link_to_identifier); end
|
171
|
-
|
172
|
-
def create_timezone; end
|
173
|
-
def link_to_identifier; end
|
174
|
-
end
|
175
|
-
|
176
|
-
class TZInfo::DataSources::PosixTimeZoneParser
|
177
|
-
def initialize(string_deduper); end
|
178
|
-
|
179
|
-
def parse(tz_string); end
|
180
|
-
|
181
|
-
private
|
182
|
-
|
183
|
-
def check_scan(s, pattern); end
|
184
|
-
def get_offset_from_hms(h, m, s); end
|
185
|
-
def get_seconds_after_midnight_from_hms(h, m, s); end
|
186
|
-
def parse_rule(s, type); end
|
187
|
-
end
|
188
|
-
|
189
|
-
class TZInfo::DataSources::RubyDataSource < ::TZInfo::DataSource
|
190
|
-
def initialize; end
|
191
|
-
|
192
|
-
def country_codes; end
|
193
|
-
def data_timezone_identifiers; end
|
194
|
-
def inspect; end
|
195
|
-
def linked_timezone_identifiers; end
|
196
|
-
def to_s; end
|
197
|
-
|
198
|
-
protected
|
199
|
-
|
200
|
-
def load_country_info(code); end
|
201
|
-
def load_timezone_info(identifier); end
|
202
|
-
|
203
|
-
private
|
204
|
-
|
205
|
-
def require_data(*file); end
|
206
|
-
def require_definition(identifier); end
|
207
|
-
def require_index(name); end
|
208
|
-
def version_info; end
|
209
|
-
end
|
210
|
-
|
211
|
-
class TZInfo::DataSources::TZInfoDataNotFound < ::StandardError; end
|
212
|
-
|
213
|
-
class TZInfo::DataSources::TimezoneInfo
|
214
|
-
def initialize(identifier); end
|
215
|
-
|
216
|
-
def create_timezone; end
|
217
|
-
def identifier; end
|
218
|
-
def inspect; end
|
219
|
-
|
220
|
-
private
|
221
|
-
|
222
|
-
def raise_not_implemented(method_name); end
|
223
|
-
end
|
224
|
-
|
225
|
-
class TZInfo::DataSources::TransitionsDataTimezoneInfo < ::TZInfo::DataSources::DataTimezoneInfo
|
226
|
-
def initialize(identifier, transitions); end
|
227
|
-
|
228
|
-
def period_for(timestamp); end
|
229
|
-
def periods_for_local(local_timestamp); end
|
230
|
-
def transitions; end
|
231
|
-
def transitions_up_to(to_timestamp, from_timestamp = T.unsafe(nil)); end
|
232
|
-
|
233
|
-
private
|
234
|
-
|
235
|
-
def find_minimum_transition(&block); end
|
236
|
-
def transition_on_or_after_timestamp?(transition, timestamp); end
|
237
|
-
end
|
238
|
-
|
239
|
-
class TZInfo::DataSources::ZoneinfoDataSource < ::TZInfo::DataSource
|
240
|
-
def initialize(zoneinfo_dir = T.unsafe(nil), alternate_iso3166_tab_path = T.unsafe(nil)); end
|
241
|
-
|
242
|
-
def country_codes; end
|
243
|
-
def data_timezone_identifiers; end
|
244
|
-
def inspect; end
|
245
|
-
def linked_timezone_identifiers; end
|
246
|
-
def to_s; end
|
247
|
-
def zoneinfo_dir; end
|
248
|
-
|
249
|
-
protected
|
250
|
-
|
251
|
-
def load_country_info(code); end
|
252
|
-
def load_timezone_info(identifier); end
|
253
|
-
|
254
|
-
private
|
255
|
-
|
256
|
-
def dms_to_rational(sign, degrees, minutes, seconds = T.unsafe(nil)); end
|
257
|
-
def enum_timezones(dir, exclude = T.unsafe(nil), &block); end
|
258
|
-
def find_zoneinfo_dir; end
|
259
|
-
def load_countries(iso3166_tab_path, zone_tab_path); end
|
260
|
-
def load_timezone_identifiers; end
|
261
|
-
def resolve_tab_path(zoneinfo_path, standard_names, tab_name); end
|
262
|
-
def validate_zoneinfo_dir(path, iso3166_tab_path = T.unsafe(nil)); end
|
263
|
-
|
264
|
-
class << self
|
265
|
-
def alternate_iso3166_tab_search_path; end
|
266
|
-
def alternate_iso3166_tab_search_path=(alternate_iso3166_tab_search_path); end
|
267
|
-
def search_path; end
|
268
|
-
def search_path=(search_path); end
|
269
|
-
|
270
|
-
private
|
271
|
-
|
272
|
-
def process_search_path(path, default); end
|
273
|
-
end
|
274
|
-
end
|
275
|
-
|
276
|
-
TZInfo::DataSources::ZoneinfoDataSource::DEFAULT_ALTERNATE_ISO3166_TAB_SEARCH_PATH = T.let(T.unsafe(nil), Array)
|
277
|
-
TZInfo::DataSources::ZoneinfoDataSource::DEFAULT_SEARCH_PATH = T.let(T.unsafe(nil), Array)
|
278
|
-
class TZInfo::DataSources::ZoneinfoDirectoryNotFound < ::StandardError; end
|
279
|
-
|
280
|
-
class TZInfo::DataSources::ZoneinfoReader
|
281
|
-
def initialize(posix_tz_parser, string_deduper); end
|
282
|
-
|
283
|
-
def read(file_path); end
|
284
|
-
|
285
|
-
private
|
286
|
-
|
287
|
-
def apply_rules_with_transitions(file, transitions, offsets, rules); end
|
288
|
-
def apply_rules_without_transitions(file, first_offset, rules); end
|
289
|
-
def check_read(file, bytes); end
|
290
|
-
def derive_offsets(transitions, offsets); end
|
291
|
-
def find_existing_offset(offsets, offset); end
|
292
|
-
def make_signed_int32(long); end
|
293
|
-
def make_signed_int64(high, low); end
|
294
|
-
def offset_matches_rule?(offset, rule_offset); end
|
295
|
-
def parse(file); end
|
296
|
-
def replace_with_existing_offsets(offsets, annual_rules); end
|
297
|
-
def validate_and_fix_last_defined_transition_offset(file, last_defined, first_rule_offset); end
|
298
|
-
end
|
299
|
-
|
300
|
-
TZInfo::DataSources::ZoneinfoReader::GENERATE_UP_TO = T.let(T.unsafe(nil), Integer)
|
301
|
-
|
302
|
-
class TZInfo::DataTimezone < ::TZInfo::InfoTimezone
|
303
|
-
def canonical_zone; end
|
304
|
-
def period_for(time); end
|
305
|
-
def periods_for_local(local_time); end
|
306
|
-
def transitions_up_to(to, from = T.unsafe(nil)); end
|
307
|
-
end
|
308
|
-
|
309
|
-
class TZInfo::DateTimeWithOffset < ::DateTime
|
310
|
-
include ::TZInfo::WithOffset
|
311
|
-
|
312
|
-
def downto(min); end
|
313
|
-
def england; end
|
314
|
-
def gregorian; end
|
315
|
-
def italy; end
|
316
|
-
def julian; end
|
317
|
-
def new_start(start = T.unsafe(nil)); end
|
318
|
-
def set_timezone_offset(timezone_offset); end
|
319
|
-
def step(limit, step = T.unsafe(nil)); end
|
320
|
-
def timezone_offset; end
|
321
|
-
def to_time; end
|
322
|
-
def upto(max); end
|
323
|
-
|
324
|
-
protected
|
325
|
-
|
326
|
-
def clear_timezone_offset; end
|
327
|
-
end
|
328
|
-
|
329
|
-
class TZInfo::DayOfMonthTransitionRule < ::TZInfo::DayOfWeekTransitionRule
|
330
|
-
def initialize(month, week, day_of_week, transition_at = T.unsafe(nil)); end
|
331
|
-
|
332
|
-
def ==(r); end
|
333
|
-
def eql?(r); end
|
334
|
-
|
335
|
-
protected
|
336
|
-
|
337
|
-
def get_day(offset, year); end
|
338
|
-
def hash_args; end
|
339
|
-
def offset_start; end
|
340
|
-
end
|
341
|
-
|
342
|
-
class TZInfo::DayOfWeekTransitionRule < ::TZInfo::TransitionRule
|
343
|
-
def initialize(month, day_of_week, transition_at); end
|
344
|
-
|
345
|
-
def ==(r); end
|
346
|
-
def eql?(r); end
|
347
|
-
def is_always_first_day_of_year?; end
|
348
|
-
def is_always_last_day_of_year?; end
|
349
|
-
|
350
|
-
protected
|
351
|
-
|
352
|
-
def day_of_week; end
|
353
|
-
def hash_args; end
|
354
|
-
def month; end
|
355
|
-
end
|
356
|
-
|
357
|
-
class TZInfo::DayOfYearTransitionRule < ::TZInfo::TransitionRule
|
358
|
-
def initialize(day, transition_at); end
|
359
|
-
|
360
|
-
def ==(r); end
|
361
|
-
def eql?(r); end
|
362
|
-
|
363
|
-
protected
|
364
|
-
|
365
|
-
def hash_args; end
|
366
|
-
def seconds; end
|
367
|
-
end
|
368
|
-
|
369
|
-
module TZInfo::Format1; end
|
370
|
-
|
371
|
-
class TZInfo::Format1::CountryDefiner < ::TZInfo::Format2::CountryDefiner
|
372
|
-
def initialize(identifier_deduper, description_deduper); end
|
373
|
-
end
|
374
|
-
|
375
|
-
module TZInfo::Format1::CountryIndexDefinition
|
376
|
-
mixes_in_class_methods ::TZInfo::Format1::CountryIndexDefinition::ClassMethods
|
377
|
-
|
378
|
-
class << self
|
379
|
-
def append_features(base); end
|
380
|
-
end
|
381
|
-
end
|
382
|
-
|
383
|
-
module TZInfo::Format1::CountryIndexDefinition::ClassMethods
|
384
|
-
def countries; end
|
385
|
-
|
386
|
-
private
|
387
|
-
|
388
|
-
def country(code, name); end
|
389
|
-
end
|
390
|
-
|
391
|
-
class TZInfo::Format1::TimezoneDefiner < ::TZInfo::Format2::TimezoneDefiner
|
392
|
-
def offset(id, utc_offset, std_offset, abbreviation); end
|
393
|
-
def transition(year, month, offset_id, timestamp_value, datetime_numerator = T.unsafe(nil), datetime_denominator = T.unsafe(nil)); end
|
394
|
-
end
|
395
|
-
|
396
|
-
module TZInfo::Format1::TimezoneDefinition
|
397
|
-
mixes_in_class_methods ::TZInfo::Format1::TimezoneDefinition::ClassMethods
|
398
|
-
|
399
|
-
class << self
|
400
|
-
def append_features(base); end
|
401
|
-
end
|
402
|
-
end
|
403
|
-
|
404
|
-
module TZInfo::Format1::TimezoneDefinition::ClassMethods
|
405
|
-
private
|
406
|
-
|
407
|
-
def timezone_definer_class; end
|
408
|
-
end
|
409
|
-
|
410
|
-
module TZInfo::Format1::TimezoneIndexDefinition
|
411
|
-
mixes_in_class_methods ::TZInfo::Format1::TimezoneIndexDefinition::ClassMethods
|
412
|
-
|
413
|
-
class << self
|
414
|
-
def append_features(base); end
|
415
|
-
end
|
416
|
-
end
|
417
|
-
|
418
|
-
module TZInfo::Format1::TimezoneIndexDefinition::ClassMethods
|
419
|
-
def data_timezones; end
|
420
|
-
def linked_timezones; end
|
421
|
-
|
422
|
-
private
|
423
|
-
|
424
|
-
def linked_timezone(identifier); end
|
425
|
-
def timezone(identifier); end
|
426
|
-
end
|
427
|
-
|
428
|
-
module TZInfo::Format2; end
|
429
|
-
|
430
|
-
class TZInfo::Format2::CountryDefiner
|
431
|
-
def initialize(shared_timezones, identifier_deduper, description_deduper); end
|
432
|
-
|
433
|
-
def timezone(identifier_or_reference, latitude_numerator = T.unsafe(nil), latitude_denominator = T.unsafe(nil), longitude_numerator = T.unsafe(nil), longitude_denominator = T.unsafe(nil), description = T.unsafe(nil)); end
|
434
|
-
def timezones; end
|
435
|
-
end
|
436
|
-
|
437
|
-
class TZInfo::Format2::CountryIndexDefiner
|
438
|
-
def initialize(identifier_deduper, description_deduper); end
|
439
|
-
|
440
|
-
def countries; end
|
441
|
-
def country(code, name); end
|
442
|
-
def timezone(reference, identifier, latitude_numerator, latitude_denominator, longitude_numerator, longitude_denominator, description = T.unsafe(nil)); end
|
443
|
-
end
|
444
|
-
|
445
|
-
module TZInfo::Format2::CountryIndexDefinition
|
446
|
-
mixes_in_class_methods ::TZInfo::Format2::CountryIndexDefinition::ClassMethods
|
447
|
-
|
448
|
-
class << self
|
449
|
-
def append_features(base); end
|
450
|
-
end
|
451
|
-
end
|
452
|
-
|
453
|
-
module TZInfo::Format2::CountryIndexDefinition::ClassMethods
|
454
|
-
def countries; end
|
455
|
-
|
456
|
-
private
|
457
|
-
|
458
|
-
def country_index; end
|
459
|
-
end
|
460
|
-
|
461
|
-
class TZInfo::Format2::TimezoneDefiner
|
462
|
-
def initialize(string_deduper); end
|
463
|
-
|
464
|
-
def first_offset; end
|
465
|
-
def offset(id, base_utc_offset, std_offset, abbreviation); end
|
466
|
-
def subsequent_rules(*args); end
|
467
|
-
def transition(offset_id, timestamp_value); end
|
468
|
-
def transitions; end
|
469
|
-
end
|
470
|
-
|
471
|
-
module TZInfo::Format2::TimezoneDefinition
|
472
|
-
mixes_in_class_methods ::TZInfo::Format2::TimezoneDefinition::ClassMethods
|
473
|
-
|
474
|
-
class << self
|
475
|
-
def append_features(base); end
|
476
|
-
end
|
477
|
-
end
|
478
|
-
|
479
|
-
module TZInfo::Format2::TimezoneDefinition::ClassMethods
|
480
|
-
def get; end
|
481
|
-
|
482
|
-
private
|
483
|
-
|
484
|
-
def linked_timezone(identifier, link_to_identifier); end
|
485
|
-
def timezone(identifier); end
|
486
|
-
def timezone_definer_class; end
|
487
|
-
end
|
488
|
-
|
489
|
-
class TZInfo::Format2::TimezoneIndexDefiner
|
490
|
-
def initialize(string_deduper); end
|
491
|
-
|
492
|
-
def data_timezone(identifier); end
|
493
|
-
def data_timezones; end
|
494
|
-
def linked_timezone(identifier); end
|
495
|
-
def linked_timezones; end
|
496
|
-
end
|
497
|
-
|
498
|
-
module TZInfo::Format2::TimezoneIndexDefinition
|
499
|
-
mixes_in_class_methods ::TZInfo::Format2::TimezoneIndexDefinition::ClassMethods
|
500
|
-
|
501
|
-
class << self
|
502
|
-
def append_features(base); end
|
503
|
-
end
|
504
|
-
end
|
505
|
-
|
506
|
-
module TZInfo::Format2::TimezoneIndexDefinition::ClassMethods
|
507
|
-
def data_timezones; end
|
508
|
-
def linked_timezones; end
|
509
|
-
def timezone_index; end
|
510
|
-
end
|
511
|
-
|
512
|
-
class TZInfo::InfoTimezone < ::TZInfo::Timezone
|
513
|
-
def initialize(info); end
|
514
|
-
|
515
|
-
def identifier; end
|
516
|
-
|
517
|
-
protected
|
518
|
-
|
519
|
-
def info; end
|
520
|
-
end
|
521
|
-
|
522
|
-
class TZInfo::InvalidCountryCode < ::StandardError; end
|
523
|
-
class TZInfo::InvalidDataSource < ::StandardError; end
|
524
|
-
class TZInfo::InvalidTimezoneIdentifier < ::StandardError; end
|
525
|
-
|
526
|
-
class TZInfo::JulianDayOfYearTransitionRule < ::TZInfo::DayOfYearTransitionRule
|
527
|
-
def initialize(day, transition_at = T.unsafe(nil)); end
|
528
|
-
|
529
|
-
def ==(r); end
|
530
|
-
def eql?(r); end
|
531
|
-
def is_always_first_day_of_year?; end
|
532
|
-
def is_always_last_day_of_year?; end
|
533
|
-
|
534
|
-
protected
|
535
|
-
|
536
|
-
def get_day(offset, year); end
|
537
|
-
def hash_args; end
|
538
|
-
end
|
539
|
-
|
540
|
-
TZInfo::JulianDayOfYearTransitionRule::LEAP = T.let(T.unsafe(nil), Integer)
|
541
|
-
TZInfo::JulianDayOfYearTransitionRule::YEAR = T.let(T.unsafe(nil), Integer)
|
542
|
-
|
543
|
-
class TZInfo::LastDayOfMonthTransitionRule < ::TZInfo::DayOfWeekTransitionRule
|
544
|
-
def initialize(month, day_of_week, transition_at = T.unsafe(nil)); end
|
545
|
-
|
546
|
-
def ==(r); end
|
547
|
-
def eql?(r); end
|
548
|
-
|
549
|
-
protected
|
550
|
-
|
551
|
-
def get_day(offset, year); end
|
552
|
-
end
|
553
|
-
|
554
|
-
class TZInfo::LinkedTimezone < ::TZInfo::InfoTimezone
|
555
|
-
def initialize(info); end
|
556
|
-
|
557
|
-
def canonical_zone; end
|
558
|
-
def period_for(time); end
|
559
|
-
def periods_for_local(local_time); end
|
560
|
-
def transitions_up_to(to, from = T.unsafe(nil)); end
|
561
|
-
end
|
562
|
-
|
563
|
-
class TZInfo::OffsetTimezonePeriod < ::TZInfo::TimezonePeriod
|
564
|
-
def initialize(offset); end
|
565
|
-
|
566
|
-
def ==(p); end
|
567
|
-
def end_transition; end
|
568
|
-
def eql?(p); end
|
569
|
-
def hash; end
|
570
|
-
def start_transition; end
|
571
|
-
end
|
572
|
-
|
573
|
-
class TZInfo::PeriodNotFound < ::StandardError; end
|
574
|
-
|
575
|
-
class TZInfo::StringDeduper
|
576
|
-
def initialize; end
|
577
|
-
|
578
|
-
def dedupe(string); end
|
579
|
-
|
580
|
-
protected
|
581
|
-
|
582
|
-
def create_hash(&block); end
|
583
|
-
|
584
|
-
class << self
|
585
|
-
def global; end
|
586
|
-
end
|
587
|
-
end
|
588
|
-
|
589
|
-
class TZInfo::TimeWithOffset < ::Time
|
590
|
-
include ::TZInfo::WithOffset
|
591
|
-
|
592
|
-
def dst?; end
|
593
|
-
def getlocal(*args); end
|
594
|
-
def gmtime; end
|
595
|
-
def isdst; end
|
596
|
-
def localtime(*args); end
|
597
|
-
def round(ndigits = T.unsafe(nil)); end
|
598
|
-
def set_timezone_offset(timezone_offset); end
|
599
|
-
def timezone_offset; end
|
600
|
-
def to_a; end
|
601
|
-
def to_datetime; end
|
602
|
-
def utc; end
|
603
|
-
def zone; end
|
604
|
-
|
605
|
-
protected
|
606
|
-
|
607
|
-
def clear_timezone_offset; end
|
608
|
-
end
|
609
|
-
|
610
|
-
class TZInfo::Timestamp
|
611
|
-
include ::Comparable
|
612
|
-
|
613
|
-
def initialize(value, sub_second = T.unsafe(nil), utc_offset = T.unsafe(nil)); end
|
614
|
-
|
615
|
-
def <=>(t); end
|
616
|
-
def add_and_set_utc_offset(seconds, utc_offset); end
|
617
|
-
def eql?(_arg0); end
|
618
|
-
def hash; end
|
619
|
-
def inspect; end
|
620
|
-
def strftime(format); end
|
621
|
-
def sub_second; end
|
622
|
-
def to_datetime; end
|
623
|
-
def to_i; end
|
624
|
-
def to_s; end
|
625
|
-
def to_time; end
|
626
|
-
def utc; end
|
627
|
-
def utc?; end
|
628
|
-
def utc_offset; end
|
629
|
-
def value; end
|
630
|
-
|
631
|
-
protected
|
632
|
-
|
633
|
-
def new_datetime(klass = T.unsafe(nil)); end
|
634
|
-
def new_time(klass = T.unsafe(nil)); end
|
635
|
-
|
636
|
-
private
|
637
|
-
|
638
|
-
def initialize!(value, sub_second = T.unsafe(nil), utc_offset = T.unsafe(nil)); end
|
639
|
-
def sub_second_to_s; end
|
640
|
-
def value_and_sub_second_to_s(offset = T.unsafe(nil)); end
|
641
|
-
|
642
|
-
class << self
|
643
|
-
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
|
644
|
-
def for(value, offset = T.unsafe(nil)); end
|
645
|
-
def utc(value, sub_second = T.unsafe(nil)); end
|
646
|
-
|
647
|
-
private
|
648
|
-
|
649
|
-
def for_datetime(datetime, ignore_offset, target_utc_offset); end
|
650
|
-
def for_time(time, ignore_offset, target_utc_offset); end
|
651
|
-
def for_time_like(time_like, ignore_offset, target_utc_offset); end
|
652
|
-
def for_timestamp(timestamp, ignore_offset, target_utc_offset); end
|
653
|
-
def is_time_like?(value); end
|
654
|
-
def new!(value, sub_second = T.unsafe(nil), utc_offset = T.unsafe(nil)); end
|
655
|
-
end
|
656
|
-
end
|
657
|
-
|
658
|
-
TZInfo::Timestamp::JD_EPOCH = T.let(T.unsafe(nil), Integer)
|
659
|
-
|
660
|
-
class TZInfo::TimestampWithOffset < ::TZInfo::Timestamp
|
661
|
-
include ::TZInfo::WithOffset
|
662
|
-
|
663
|
-
def set_timezone_offset(timezone_offset); end
|
664
|
-
def timezone_offset; end
|
665
|
-
def to_datetime; end
|
666
|
-
def to_time; end
|
667
|
-
|
668
|
-
class << self
|
669
|
-
def set_timezone_offset(timestamp, timezone_offset); end
|
670
|
-
end
|
671
|
-
end
|
672
|
-
|
673
|
-
class TZInfo::Timezone
|
674
|
-
include ::Comparable
|
675
|
-
|
676
|
-
def <=>(tz); end
|
677
|
-
def =~(regexp); end
|
678
|
-
def _dump(limit); end
|
679
|
-
def abbr(time = T.unsafe(nil)); end
|
680
|
-
def abbreviation(time = T.unsafe(nil)); end
|
681
|
-
def base_utc_offset(time = T.unsafe(nil)); end
|
682
|
-
def canonical_identifier; end
|
683
|
-
def canonical_zone; end
|
684
|
-
def current_period; end
|
685
|
-
def current_period_and_time; end
|
686
|
-
def current_time_and_period; end
|
687
|
-
def dst?(time = T.unsafe(nil)); end
|
688
|
-
def eql?(tz); end
|
689
|
-
def friendly_identifier(skip_first_part = T.unsafe(nil)); end
|
690
|
-
def hash; end
|
691
|
-
def identifier; end
|
692
|
-
def inspect; end
|
693
|
-
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
|
694
|
-
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
|
695
|
-
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
|
696
|
-
def local_to_utc(local_time, dst = T.unsafe(nil)); end
|
697
|
-
def name; end
|
698
|
-
def now; end
|
699
|
-
def observed_utc_offset(time = T.unsafe(nil)); end
|
700
|
-
def offsets_up_to(to, from = T.unsafe(nil)); end
|
701
|
-
def period_for(time); end
|
702
|
-
def period_for_local(local_time, dst = T.unsafe(nil)); end
|
703
|
-
def period_for_utc(utc_time); end
|
704
|
-
def periods_for_local(local_time); end
|
705
|
-
def strftime(format, time = T.unsafe(nil)); end
|
706
|
-
def to_local(time); end
|
707
|
-
def to_s; end
|
708
|
-
def transitions_up_to(to, from = T.unsafe(nil)); end
|
709
|
-
def utc_offset(time = T.unsafe(nil)); end
|
710
|
-
def utc_to_local(utc_time); end
|
711
|
-
|
712
|
-
private
|
713
|
-
|
714
|
-
def raise_unknown_timezone; end
|
715
|
-
|
716
|
-
class << self
|
717
|
-
def _load(data); end
|
718
|
-
def all; end
|
719
|
-
def all_country_zone_identifiers; end
|
720
|
-
def all_country_zones; end
|
721
|
-
def all_data_zone_identifiers; end
|
722
|
-
def all_data_zones; end
|
723
|
-
def all_identifiers; end
|
724
|
-
def all_linked_zone_identifiers; end
|
725
|
-
def all_linked_zones; end
|
726
|
-
def default_dst; end
|
727
|
-
def default_dst=(value); end
|
728
|
-
def get(identifier); end
|
729
|
-
def get_proxy(identifier); end
|
730
|
-
|
731
|
-
private
|
732
|
-
|
733
|
-
def data_source; end
|
734
|
-
def get_proxies(identifiers); end
|
735
|
-
end
|
736
|
-
end
|
737
|
-
|
738
|
-
TZInfo::TimezoneDefinition = TZInfo::Format1::TimezoneDefinition
|
739
|
-
TZInfo::TimezoneIndexDefinition = TZInfo::Format1::TimezoneIndexDefinition
|
740
|
-
|
741
|
-
class TZInfo::TimezoneOffset
|
742
|
-
def initialize(base_utc_offset, std_offset, abbreviation); end
|
743
|
-
|
744
|
-
def ==(toi); end
|
745
|
-
def abbr; end
|
746
|
-
def abbreviation; end
|
747
|
-
def base_utc_offset; end
|
748
|
-
def dst?; end
|
749
|
-
def eql?(toi); end
|
750
|
-
def hash; end
|
751
|
-
def inspect; end
|
752
|
-
def observed_utc_offset; end
|
753
|
-
def std_offset; end
|
754
|
-
def utc_offset; end
|
755
|
-
def utc_total_offset; end
|
756
|
-
end
|
757
|
-
|
758
|
-
class TZInfo::TimezonePeriod
|
759
|
-
def initialize(offset); end
|
760
|
-
|
761
|
-
def abbr; end
|
762
|
-
def abbreviation; end
|
763
|
-
def base_utc_offset; end
|
764
|
-
def dst?; end
|
765
|
-
def end_transition; end
|
766
|
-
def ends_at; end
|
767
|
-
def local_ends_at; end
|
768
|
-
def local_starts_at; end
|
769
|
-
def observed_utc_offset; end
|
770
|
-
def offset; end
|
771
|
-
def start_transition; end
|
772
|
-
def starts_at; end
|
773
|
-
def std_offset; end
|
774
|
-
def utc_offset; end
|
775
|
-
def utc_total_offset; end
|
776
|
-
def zone_identifier; end
|
777
|
-
|
778
|
-
private
|
779
|
-
|
780
|
-
def raise_not_implemented(method_name); end
|
781
|
-
def timestamp(transition); end
|
782
|
-
def timestamp_with_offset(transition); end
|
783
|
-
end
|
784
|
-
|
785
|
-
class TZInfo::TimezoneProxy < ::TZInfo::Timezone
|
786
|
-
def initialize(identifier); end
|
787
|
-
|
788
|
-
def _dump(limit); end
|
789
|
-
def canonical_zone; end
|
790
|
-
def identifier; end
|
791
|
-
def period_for(time); end
|
792
|
-
def periods_for_local(local_time); end
|
793
|
-
def transitions_up_to(to, from = T.unsafe(nil)); end
|
794
|
-
|
795
|
-
private
|
796
|
-
|
797
|
-
def real_timezone; end
|
798
|
-
|
799
|
-
class << self
|
800
|
-
def _load(data); end
|
801
|
-
end
|
802
|
-
end
|
803
|
-
|
804
|
-
class TZInfo::TimezoneTransition
|
805
|
-
def initialize(offset, previous_offset, timestamp_value); end
|
806
|
-
|
807
|
-
def ==(tti); end
|
808
|
-
def at; end
|
809
|
-
def eql?(tti); end
|
810
|
-
def hash; end
|
811
|
-
def local_end_at; end
|
812
|
-
def local_start_at; end
|
813
|
-
def offset; end
|
814
|
-
def previous_offset; end
|
815
|
-
def timestamp_value; end
|
816
|
-
end
|
817
|
-
|
818
|
-
class TZInfo::TransitionRule
|
819
|
-
def initialize(transition_at); end
|
820
|
-
|
821
|
-
def ==(r); end
|
822
|
-
def at(offset, year); end
|
823
|
-
def eql?(r); end
|
824
|
-
def hash; end
|
825
|
-
def transition_at; end
|
826
|
-
|
827
|
-
protected
|
828
|
-
|
829
|
-
def hash_args; end
|
830
|
-
end
|
831
|
-
|
832
|
-
class TZInfo::TransitionsTimezonePeriod < ::TZInfo::TimezonePeriod
|
833
|
-
def initialize(start_transition, end_transition); end
|
834
|
-
|
835
|
-
def ==(p); end
|
836
|
-
def end_transition; end
|
837
|
-
def eql?(p); end
|
838
|
-
def hash; end
|
839
|
-
def inspect; end
|
840
|
-
def start_transition; end
|
841
|
-
end
|
842
|
-
|
843
|
-
class TZInfo::UnaryMinusGlobalStringDeduper
|
844
|
-
def dedupe(string); end
|
845
|
-
end
|
846
|
-
|
847
|
-
class TZInfo::UnknownTimezone < ::StandardError; end
|
848
|
-
TZInfo::VERSION = T.let(T.unsafe(nil), String)
|
849
|
-
|
850
|
-
module TZInfo::WithOffset
|
851
|
-
def strftime(format); end
|
852
|
-
|
853
|
-
protected
|
854
|
-
|
855
|
-
def if_timezone_offset(result = T.unsafe(nil)); end
|
856
|
-
end
|