rubysky 0.1.0

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 (70) hide show
  1. checksums.yaml +7 -0
  2. data/.gem_rbs_collection/activesupport/7.0/.rbs_meta.yaml +9 -0
  3. data/.gem_rbs_collection/activesupport/7.0/activesupport-7.0.rbs +140 -0
  4. data/.gem_rbs_collection/activesupport/7.0/activesupport-generated.rbs +11950 -0
  5. data/.gem_rbs_collection/activesupport/7.0/activesupport.rbs +583 -0
  6. data/.gem_rbs_collection/activesupport/7.0/manifest.yaml +16 -0
  7. data/.gem_rbs_collection/activesupport/7.0/patch.rbs +55 -0
  8. data/.gem_rbs_collection/ast/2.4/.rbs_meta.yaml +9 -0
  9. data/.gem_rbs_collection/ast/2.4/ast.rbs +73 -0
  10. data/.gem_rbs_collection/concurrent-ruby/1.1/.rbs_meta.yaml +9 -0
  11. data/.gem_rbs_collection/concurrent-ruby/1.1/array.rbs +4 -0
  12. data/.gem_rbs_collection/concurrent-ruby/1.1/executor.rbs +26 -0
  13. data/.gem_rbs_collection/concurrent-ruby/1.1/hash.rbs +4 -0
  14. data/.gem_rbs_collection/concurrent-ruby/1.1/map.rbs +58 -0
  15. data/.gem_rbs_collection/concurrent-ruby/1.1/promises.rbs +249 -0
  16. data/.gem_rbs_collection/concurrent-ruby/1.1/utility/processor_counter.rbs +5 -0
  17. data/.gem_rbs_collection/connection_pool/2.4/.rbs_meta.yaml +9 -0
  18. data/.gem_rbs_collection/connection_pool/2.4/connection_pool.rbs +34 -0
  19. data/.gem_rbs_collection/connection_pool/2.4/manifest.yaml +2 -0
  20. data/.gem_rbs_collection/diff-lcs/1.5/.rbs_meta.yaml +9 -0
  21. data/.gem_rbs_collection/diff-lcs/1.5/diff-lcs.rbs +11 -0
  22. data/.gem_rbs_collection/i18n/1.10/.rbs_meta.yaml +9 -0
  23. data/.gem_rbs_collection/i18n/1.10/backend.rbs +269 -0
  24. data/.gem_rbs_collection/i18n/1.10/i18n.rbs +117 -0
  25. data/.gem_rbs_collection/listen/3.9/.rbs_meta.yaml +9 -0
  26. data/.gem_rbs_collection/listen/3.9/listen.rbs +25 -0
  27. data/.gem_rbs_collection/listen/3.9/listener.rbs +24 -0
  28. data/.gem_rbs_collection/parallel/1.20/.rbs_meta.yaml +9 -0
  29. data/.gem_rbs_collection/parallel/1.20/parallel.rbs +86 -0
  30. data/.gem_rbs_collection/parser/3.2/.rbs_meta.yaml +9 -0
  31. data/.gem_rbs_collection/parser/3.2/manifest.yaml +7 -0
  32. data/.gem_rbs_collection/parser/3.2/parser.rbs +104 -0
  33. data/.gem_rbs_collection/parser/3.2/polyfill.rbs +4 -0
  34. data/.gem_rbs_collection/rainbow/3.0/.rbs_meta.yaml +9 -0
  35. data/.gem_rbs_collection/rainbow/3.0/global.rbs +7 -0
  36. data/.gem_rbs_collection/rainbow/3.0/presenter.rbs +209 -0
  37. data/.gem_rbs_collection/rainbow/3.0/rainbow.rbs +5 -0
  38. data/.gem_rbs_collection/rake/13.0/.rbs_meta.yaml +9 -0
  39. data/.gem_rbs_collection/rake/13.0/manifest.yaml +2 -0
  40. data/.gem_rbs_collection/rake/13.0/rake.rbs +28 -0
  41. data/.gem_rbs_collection/regexp_parser/2.8/.rbs_meta.yaml +9 -0
  42. data/.gem_rbs_collection/regexp_parser/2.8/regexp_parser.rbs +17 -0
  43. data/.gem_rbs_collection/rubocop/1.57/.rbs_meta.yaml +9 -0
  44. data/.gem_rbs_collection/rubocop/1.57/rubocop.rbs +34 -0
  45. data/.gem_rbs_collection/rubocop-ast/1.30/.rbs_meta.yaml +9 -0
  46. data/.gem_rbs_collection/rubocop-ast/1.30/rubocop-ast.rbs +15 -0
  47. data/.gem_rbs_collection/tzinfo/2.0/.rbs_meta.yaml +9 -0
  48. data/.gem_rbs_collection/tzinfo/2.0/manifest.yaml +7 -0
  49. data/.gem_rbs_collection/tzinfo/2.0/tzinfo.rbs +601 -0
  50. data/.rspec +3 -0
  51. data/.rubocop.yml +18 -0
  52. data/CHANGELOG.md +5 -0
  53. data/CODE_OF_CONDUCT.md +132 -0
  54. data/LICENSE.txt +21 -0
  55. data/README.md +39 -0
  56. data/Rakefile +12 -0
  57. data/Steepfile +32 -0
  58. data/lib/rubysky/client.rb +40 -0
  59. data/lib/rubysky/post.rb +15 -0
  60. data/lib/rubysky/raw/client.rb +133 -0
  61. data/lib/rubysky/raw/did_doc.rb +15 -0
  62. data/lib/rubysky/raw/embed.rb +18 -0
  63. data/lib/rubysky/raw/post.rb +29 -0
  64. data/lib/rubysky/raw/session.rb +41 -0
  65. data/lib/rubysky/version.rb +5 -0
  66. data/lib/rubysky.rb +17 -0
  67. data/rbs_collection.lock.yaml +232 -0
  68. data/rbs_collection.yaml +18 -0
  69. data/sig/rubysky.rbs +101 -0
  70. metadata +129 -0
@@ -0,0 +1,601 @@
1
+ module TZInfo
2
+ VERSION: ::String
3
+
4
+ def self.eager_load!: () -> void
5
+
6
+ class Country
7
+ include ::Comparable
8
+
9
+ def self.all: () -> ::Array[Country]
10
+
11
+ def self.all_codes: () -> ::Array[::String]
12
+
13
+ def self.get: (::String code) -> Country
14
+
15
+ def self._load: (::String data) -> Country
16
+
17
+ def initialize: (untyped info) -> void
18
+
19
+ def <=>: (Country c) -> (-1 | 0 | 1)
20
+ | (untyped c) -> nil
21
+
22
+ def =~: (::Regexp regexp) -> ::Integer?
23
+
24
+ def _dump: (::Integer limit) -> ::String
25
+
26
+ def code: () -> ::String
27
+
28
+ def eql?: (untyped c) -> bool
29
+
30
+ def hash: () -> ::Integer
31
+
32
+ def inspect: () -> ::String
33
+
34
+ def name: () -> ::String
35
+
36
+ def to_s: () -> ::String
37
+
38
+ def zone_identifiers: () -> ::Array[::String]
39
+
40
+ def zone_info: () -> ::Array[CountryTimezone]
41
+
42
+ def zones: () -> ::Array[Timezone]
43
+
44
+ alias zone_names zone_identifiers
45
+ end
46
+
47
+ class CountryTimezone
48
+ attr_reader description: ::String?
49
+
50
+ attr_reader identifier: ::String
51
+
52
+ attr_reader latitude: ::Rational
53
+
54
+ attr_reader longitude: ::Rational
55
+
56
+ def initialize: (::String identifier, ::Rational latitude, ::Rational longitude, ?::String? description) -> void
57
+
58
+ def ==: (untyped ct) -> bool
59
+
60
+ def description_or_friendly_identifier: () -> ::String
61
+
62
+ def eql?: (untyped ct) -> bool
63
+
64
+ def hash: () -> ::Integer
65
+
66
+ def timezone: () -> Timezone
67
+ end
68
+
69
+ class DataSource
70
+ def self.get: () -> DataSource
71
+
72
+ def self.set: (:ruby data_source_or_type) -> void
73
+ | (:zoneinfo data_source_or_type, ?::String? zoneinfo_dir, ?::String? iso3166_tab_file) -> void
74
+ | (DataSource data_source_or_type) -> void
75
+
76
+ def country_codes: () -> ::Array[::String]
77
+
78
+ def timezone_identifier_encoding: () -> ::Array[::String]
79
+
80
+ def eager_load!: () -> void
81
+
82
+ def get_country_info: (::String code) -> DataSources::CountryInfo
83
+
84
+ def get_timezone_info: (::String identifier) -> DataSources::TimezoneInfo
85
+
86
+ def inspect: () -> ::String
87
+
88
+ def linked_timezone_identifiers: () -> ::Array[::String]
89
+
90
+ def timezone_identifiers: () -> ::Array[::String]
91
+
92
+ def to_s: () -> ::String
93
+ end
94
+
95
+ class DataTimezone < InfoTimezone
96
+ def canonical_zone: () -> self
97
+
98
+ def period_for: ((::Time | ::DateTime | Timestamp) time) -> TimezonePeriod
99
+
100
+ def periods_for_local: ((::Time | ::DateTime | Timestamp) local_time) -> ::Array[TimezonePeriod]
101
+
102
+ def transitions_up_to: ((::Time | ::DateTime | Timestamp) to, ?(::Time | ::DateTime | Timestamp)? from) -> ::Array[TimezoneTransition]
103
+ end
104
+
105
+ class DateTimeWithOffset < ::DateTime
106
+ include WithOffset
107
+
108
+ attr_reader timezone_offset: TimezoneOffset
109
+
110
+ def england: () -> DateTimeWithOffset
111
+
112
+ def gregorian: () -> DateTimeWithOffset
113
+
114
+ def italy: () -> DateTimeWithOffset
115
+
116
+ def julian: () -> DateTimeWithOffset
117
+
118
+ def new_start: (?Integer start) -> DateTimeWithOffset
119
+
120
+ def set_timezone_offset: (TimezoneOffset timezone_offset) -> self
121
+
122
+ def to_time: () -> ::Time
123
+ end
124
+
125
+ class InfoTimezone < Timezone
126
+ def identifier: () -> ::String
127
+ end
128
+
129
+ class LinkedTimezone < InfoTimezone
130
+ def canonical_zone: () -> Timezone
131
+
132
+ def period_for: ((::Time | ::DateTime | Timestamp) time) -> TimezonePeriod
133
+
134
+ def periods_for_local: ((::Time | ::DateTime | Timestamp) local_time) -> ::Array[TimezonePeriod]
135
+
136
+ def transitions_up_to: ((::Time | ::DateTime | Timestamp) to, ?(::Time | ::DateTime | Timestamp)? from) -> ::Array[TimezoneTransition]
137
+ end
138
+
139
+ class OffsetTimezonePeriod < TimezonePeriod
140
+ def initialize: (TimezoneOffset offset) -> void
141
+
142
+ def ==: (untyped p) -> bool
143
+
144
+ def end_transition: () -> nil
145
+
146
+ def hash: () -> ::Integer
147
+
148
+ def start_transition: () -> nil
149
+
150
+ alias eql? ==
151
+ end
152
+
153
+ class TimeWithOffset < ::Time
154
+ include WithOffset
155
+
156
+ attr_reader timezone_offset: TimezoneOffset
157
+
158
+ def dst?: () -> bool
159
+
160
+ def getlocal: (*untyped args) -> ::Time
161
+
162
+ def gmtime: () -> self
163
+
164
+ def localtime: (*untyped args) -> self
165
+
166
+ def round: (?::Integer ndigits) -> ::Time
167
+
168
+ def set_timezone_offset: (untyped timezone_offset) -> self
169
+
170
+ def to_a: () -> [ Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, bool, String? ]
171
+
172
+ def to_datetime: () -> ::DateTime
173
+
174
+ def utc: () -> self
175
+
176
+ def zone: () -> ::String
177
+
178
+ alias isdst dst?
179
+ end
180
+
181
+ class Timestamp
182
+ include ::Comparable
183
+
184
+ attr_reader sub_second: (::Rational | 0)
185
+
186
+ attr_reader utc_offset: ::Integer?
187
+
188
+ attr_reader value: ::Integer
189
+
190
+ def self.create: (::Integer year, ?::Integer month, ?::Integer day, ?::Integer hour, ?::Integer minute, ?::Integer second, ?(::Rational | 0) sub_second, ?(::Integer | :utc)? utc_offset) -> Timestamp
191
+
192
+ def self.for: ((::Time | ::DateTime | Timestamp) value, ?(:preserve | :ignore | :treat_as_utc) offset) -> Timestamp
193
+ | (::Time value, ?(:preserve | :ignore | :treat_as_utc) offset) { (Timestamp) -> Timestamp } -> ::Time
194
+ | (::DateTime value, ?(:preserve | :ignore | :treat_as_utc) offset) { (Timestamp) -> Timestamp } -> ::DateTime
195
+ | (Timestamp value, ?(:preserve | :ignore | :treat_as_utc) offset) { (Timestamp) -> Timestamp } -> Timestamp
196
+
197
+ def self.utc: (::Integer value, ?(::Rational | 0) sub_second) -> untyped
198
+
199
+ def <=>: (Timestamp t) -> (-1 | 0 | 1)?
200
+ | (untyped t) -> nil
201
+
202
+ def add_and_set_utc_offset: (::Integer seconds, (::Integer | :utc)? utc_offset) -> Timestamp
203
+
204
+ def hash: () -> ::Integer
205
+
206
+ def inspect: () -> ::String
207
+
208
+ def strftime: (::String format) -> ::String
209
+
210
+ def to_datetime: () -> ::DateTime
211
+
212
+ def to_i: () -> ::Integer
213
+
214
+ def to_s: () -> ::String
215
+
216
+ def to_time: () -> ::Time
217
+
218
+ def utc: () -> Timestamp
219
+
220
+ def utc?: () -> bool?
221
+ end
222
+
223
+ class TimestampWithOffset < Timestamp
224
+ include WithOffset
225
+
226
+ attr_reader timezone_offset: TimezoneOffset
227
+
228
+ def self.set_timezone_offset: (Timestamp timestamp, TimezoneOffset timezone_offset) -> TimestampWithOffset
229
+
230
+ def set_timezone_offset: (TimezoneOffset timezone_offset) -> self
231
+
232
+ def to_datetime: () -> ::DateTime
233
+
234
+ def to_time: () -> ::Time
235
+ end
236
+
237
+ class Timezone
238
+ include ::Comparable
239
+
240
+ def self._load: (::String data) -> Timezone
241
+
242
+ def self.all: () -> ::Array[Timezone]
243
+
244
+ def self.all_country_zone_identifiers: () -> ::Array[::String]
245
+
246
+ def self.all_country_zones: () -> ::Array[Timezone]
247
+
248
+ def self.all_data_zone_identifiers: () -> ::Array[::String]
249
+
250
+ def self.all_data_zones: () -> ::Array[Timezone]
251
+
252
+ def self.all_identifiers: () -> ::Array[::String]
253
+
254
+ def self.all_linked_zone_identifiers: () -> ::Array[::String]
255
+
256
+ def self.all_linked_zones: () -> ::Array[Timezone]
257
+
258
+ def self.default_dst: () -> bool?
259
+
260
+ def self.default_dst=: (bool? value) -> void
261
+
262
+ def self.get: (::String identifier) -> Timezone
263
+
264
+ def self.get_proxy: (::String identifier) -> TimezoneProxy
265
+
266
+ def <=>: (Timezone tz) -> (1 | 0 | -1)
267
+ | (untyped) -> nil
268
+
269
+ def =~: (::Regexp regexp) -> ::Integer?
270
+
271
+
272
+ def _dump: (::Integer limit) -> ::String
273
+
274
+ def abbreviation: (?(::Time | ::DateTime | Timestamp) time) -> ::String
275
+
276
+ def base_utc_offset: (?(::Time | ::DateTime | Timestamp) time) -> ::Integer
277
+
278
+ def canonical_identifier: () -> ::String
279
+
280
+ def canonical_zone: () -> Timezone
281
+
282
+ def current_period: () -> TimezonePeriod
283
+
284
+ def current_time_and_period: () -> [ TimeWithOffset, TimezonePeriod ]
285
+
286
+ def dst?: (?(::Time | ::DateTime | Timestamp) time) -> bool
287
+
288
+ def eql?: (untyped tz) -> bool
289
+
290
+ def friendly_identifier: (?bool skip_first_part) -> ::String
291
+
292
+ def hash: () -> ::Integer
293
+
294
+ def identifier: () -> ::String
295
+
296
+ def inspect: () -> ::String
297
+
298
+ def local_datetime: (::Integer year, ?::Integer month, ?::Integer day, ?::Integer hour, ?::Integer minute, ?::Integer second, ?(::Rational | 0) sub_second, ?bool? dst) ?{ (::Array[TimezonePeriod]) -> (TimezonePeriod | ::Array[TimezonePeriod])? } -> DateTimeWithOffset
299
+
300
+ def local_time: (::Integer year, ?::Integer month, ?::Integer day, ?::Integer hour, ?::Integer minute, ?::Integer second, ?(::Rational | 0) sub_second, ?bool? dst) ?{ (::Array[TimezonePeriod]) -> (TimezonePeriod | ::Array[TimezonePeriod])? } -> TimeWithOffset
301
+
302
+ def local_timestamp: (::Integer year, ?::Integer month, ?::Integer day, ?::Integer hour, ?::Integer minute, ?::Integer second, ?(::Rational | 0) sub_second, ?bool? dst) ?{ (::Array[TimezonePeriod]) -> (TimezonePeriod | ::Array[TimezonePeriod])? } -> TimestampWithOffset
303
+
304
+ def local_to_utc: (::Time local_time, ?bool? dst) ?{ (::Array[TimezonePeriod]) -> (TimezonePeriod | ::Array[TimezonePeriod])? } -> ::Time
305
+ | (::DateTime local_time, ?bool? dst) ?{ (::Array[TimezonePeriod]) -> (TimezonePeriod | ::Array[TimezonePeriod])? } -> ::DateTime
306
+ | (Timestamp local_time, ?bool? dst) ?{ (::Array[TimezonePeriod]) -> (TimezonePeriod | ::Array[TimezonePeriod])? } -> Timestamp
307
+
308
+ def name: () -> ::String
309
+
310
+ def now: () -> TimeWithOffset
311
+
312
+ def observed_utc_offset: (?(::Time | ::DateTime | Timestamp) time) -> ::Integer
313
+
314
+ def offsets_up_to: ((::Time | ::DateTime | Timestamp) to, ?(::Time | ::DateTime | Timestamp)? from) -> ::Array[TimezoneOffset]
315
+
316
+ def period_for: ((::Time | ::DateTime | Timestamp) time) -> TimezonePeriod
317
+
318
+ def period_for_local: ((::Time | ::DateTime | Timestamp) local_time, ?bool? dst) ?{ (::Array[TimezonePeriod]) -> (TimezonePeriod | ::Array[TimezonePeriod])? } -> TimezonePeriod
319
+
320
+ def period_for_utc: ((::Time | ::DateTime | Timestamp) utc_time) -> TimezonePeriod
321
+
322
+ def periods_for_local: ((::Time | ::DateTime | Timestamp) local_time) -> ::Array[TimezonePeriod]
323
+
324
+ def strftime: (::String format, ?(::Time | ::DateTime | Timestamp) time) -> ::String
325
+
326
+ def to_local: (::Time time) -> TimeWithOffset
327
+ | (::DateTime time) -> DateTimeWithOffset
328
+ | (Timestamp time) -> TimestampWithOffset
329
+
330
+ def to_s: () -> ::String
331
+
332
+ def transitions_up_to: ((::Time | ::DateTime | Timestamp) to, ?(::Time | ::DateTime | Timestamp)? from) -> ::Array[TimezoneTransition]
333
+
334
+ def utc_to_local: (::Time time) -> TimeWithOffset
335
+ | (::DateTime time) -> DateTimeWithOffset
336
+ | (Timestamp time) -> TimestampWithOffset
337
+
338
+ alias abbr abbreviation
339
+
340
+ alias current_period_and_time current_time_and_period
341
+
342
+ alias utc_offset observed_utc_offset
343
+ end
344
+
345
+ class TimezoneOffset
346
+ attr_reader abbreviation: untyped
347
+
348
+ attr_reader base_utc_offset: untyped
349
+
350
+ attr_reader observed_utc_offset: untyped
351
+
352
+ attr_reader std_offset: untyped
353
+
354
+ def initialize: (::Integer base_utc_offset, ::Integer std_offset, ::String abbreviation) -> void
355
+
356
+ def ==: (untyped toi) -> bool
357
+
358
+ def dst?: () -> bool
359
+
360
+ def eql?: (untyped toi) -> bool
361
+
362
+ def hash: () -> ::Integer
363
+
364
+ def inspect: () -> ::String
365
+
366
+ alias abbr abbreviation
367
+
368
+ alias utc_offset base_utc_offset
369
+
370
+ alias utc_total_offset observed_utc_offset
371
+ end
372
+
373
+ class TimezonePeriod
374
+ attr_reader offset: TimezoneOffset
375
+
376
+ def abbreviation: () -> ::String
377
+
378
+ def base_utc_offset: () -> ::Integer
379
+
380
+ def dst?: () -> bool
381
+
382
+ def end_transition: () -> TimezoneTransition?
383
+
384
+ def ends_at: () -> Timestamp?
385
+
386
+ def local_ends_at: () -> TimestampWithOffset?
387
+
388
+ def local_starts_at: () -> TimestampWithOffset?
389
+
390
+ def observed_utc_offset: () -> ::Integer
391
+
392
+ def start_transition: () -> TimezoneTransition?
393
+
394
+ def starts_at: () -> Timestamp?
395
+
396
+ def std_offset: () -> ::Integer
397
+
398
+ alias abbr abbreviation
399
+
400
+ alias zone_identifier abbreviation
401
+
402
+ alias utc_offset base_utc_offset
403
+
404
+ alias utc_total_offset observed_utc_offset
405
+ end
406
+
407
+ class TimezoneProxy < Timezone
408
+ def initialize: (::String identifier) -> void
409
+
410
+ def self._load: (::String data) -> TimezoneProxy
411
+
412
+ def _dump: (::Integer limit) -> ::String
413
+
414
+ def canonical_zone: () -> Timezone
415
+
416
+ def identifier: () -> ::String
417
+
418
+ def period_for: ((::Time | ::DateTime | Timestamp) time) -> TimezonePeriod
419
+
420
+ def periods_for_local: ((::Time | ::DateTime | Timestamp) local_time) -> ::Array[TimezonePeriod]
421
+
422
+ def transitions_up_to: ((::Time | ::DateTime | Timestamp) to, ?(::Time | ::DateTime | Timestamp)? from) -> ::Array[TimezoneTransition]
423
+ end
424
+
425
+ class TimezoneTransition
426
+ attr_reader offset: TimezoneOffset
427
+
428
+ attr_reader previous_offset: TimezoneOffset
429
+
430
+ attr_reader timestamp_value: ::Integer
431
+
432
+ def initialize: (TimezoneOffset offset, TimezoneOffset previous_offset, ::Integer timestamp_value) -> void
433
+
434
+ def ==: (untyped tti) -> bool
435
+
436
+ def at: () -> Timestamp
437
+
438
+ def hash: () -> ::Integer
439
+
440
+ def local_end_at: () -> TimestampWithOffset
441
+
442
+ def local_start_at: () -> TimestampWithOffset
443
+
444
+ alias eql? ==
445
+ end
446
+
447
+ class TransitionsTimezonePeriod < TimezonePeriod
448
+ attr_reader end_transition: TimezoneTransition
449
+
450
+ attr_reader start_transition: TimezoneTransition
451
+
452
+ def initialize: (TimezoneTransition start_transition, TimezoneTransition end_transition) -> void
453
+
454
+ def ==: (untyped p) -> bool
455
+
456
+ def hash: () -> ::Integer
457
+
458
+ def inspect: () -> ::String
459
+
460
+ alias eql? ==
461
+ end
462
+
463
+ module WithOffset
464
+ def strftime: (::String format) -> ::String
465
+ end
466
+
467
+ module DataSources
468
+ class ConstantOffsetDataTimezoneInfo < DataTimezoneInfo
469
+ attr_reader constant_offset: TimezoneOffset
470
+
471
+ def initialize: (untyped identifier, untyped constant_offset) -> void
472
+
473
+ def period_for: (untyped timestamp) -> TimezonePeriod
474
+
475
+ def periods_for_local: (untyped local_timestamp) -> ::Array[TimezonePeriod]
476
+
477
+ def transitions_up_to: (untyped to_timestamp, ?untyped? from_timestamp) -> [ ]
478
+ end
479
+
480
+ class CountryInfo
481
+ attr_reader code: ::String
482
+
483
+ attr_reader name: ::String
484
+
485
+ attr_reader zones: ::Array[CountryTimezone]
486
+
487
+ def initialize: (::String code, ::String name, ::Array[CountryTimezone] zones) -> void
488
+
489
+ def inspect: () -> ::String
490
+ end
491
+
492
+ class DataTimezoneInfo < TimezoneInfo
493
+ def create_timezone: () -> DataTimezone
494
+
495
+ def period_for: (Timestamp timestamp) -> TimezonePeriod
496
+
497
+ def periods_for_local: (Timestamp local_timestamp) -> ::Array[TimezonePeriod]
498
+
499
+ def transitions_up_to: (Timestamp to_timestamp, ?Timestamp? from_timestamp) -> ::Array[TimezoneTransition]
500
+ end
501
+
502
+ class LinkedTimezoneInfo < TimezoneInfo
503
+ attr_reader link_to_identifier: ::String
504
+
505
+ def initialize: (::String identifier, ::String link_to_identifier) -> void
506
+
507
+ def create_timezone: () -> LinkedTimezone
508
+ end
509
+
510
+ class RubyDataSource < DataSource
511
+ attr_reader data_timezone_identifiers: ::Array[::String]
512
+
513
+ attr_reader linked_timezone_identifiers: ::Array[::String]
514
+
515
+ attr_reader country_codes: ::Array[::String]
516
+
517
+ def initialize: () -> void
518
+
519
+ def inspect: () -> ::String
520
+
521
+ def to_s: () -> ::String
522
+ end
523
+
524
+ class TimezoneInfo
525
+ attr_reader identifier: ::String
526
+
527
+ def inspect: () -> ::String
528
+
529
+ def create_timezone: () -> Timezone
530
+ end
531
+
532
+ class TransitionsDataTimezoneInfo < DataTimezoneInfo
533
+ attr_reader transitions: ::Array[TimezoneTransition]
534
+
535
+ def initialize: (::String identifier, ::Array[TimezoneTransition] transitions) -> void
536
+
537
+ def period_for: (Timestamp timestamp) -> TimezonePeriod
538
+
539
+ def periods_for_local: (Timestamp local_timestamp) -> TimezonePeriod
540
+
541
+ def transitions_up_to: (Timestamp to_timestamp, ?Timestamp? from_timestamp) -> ::Array[TimezoneTransition]
542
+ end
543
+
544
+ class ZoneinfoDataSource < DataSource
545
+ attr_reader country_codes: ::Array[::String]
546
+
547
+ attr_reader zoneinfo_dir: ::String
548
+
549
+ def self.alternate_iso3166_tab_search_path: () -> ::Array[::String]
550
+
551
+ def self.alternate_iso3166_tab_search_path=: ((::Array[::String] | ::String)? alternate_iso3166_tab_search_path) -> void
552
+
553
+ def self.search_path: () -> ::Array[::String]
554
+
555
+ def self.search_path=: ((::Array[::String] | ::String)? search_path) -> void
556
+
557
+ def initialize: (?::String? zoneinfo_dir, ?::String? alternate_iso3166_tab_path) -> void
558
+
559
+ def data_timezone_identifiers: () -> ::Array[::String]
560
+
561
+ def inspect: () -> ::String
562
+
563
+ def linked_timezone_identifiers: () -> [ ]
564
+
565
+ def to_s: () -> ::String
566
+ end
567
+
568
+ class InvalidZoneinfoDirectory < StandardError
569
+ end
570
+
571
+ class InvalidZoneinfoFile < StandardError
572
+ end
573
+
574
+ class TZInfoDataNotFound < StandardError
575
+ end
576
+
577
+ class ZoneinfoDirectoryNotFound < StandardError
578
+ end
579
+ end
580
+
581
+ class AmbiguousTime < StandardError
582
+ end
583
+
584
+ class DataSourceNotFound < StandardError
585
+ end
586
+
587
+ class InvalidCountryCode < StandardError
588
+ end
589
+
590
+ class InvalidDataSource < StandardError
591
+ end
592
+
593
+ class InvalidTimezoneIdentifier < StandardError
594
+ end
595
+
596
+ class PeriodNotFound < StandardError
597
+ end
598
+
599
+ class UnknownTimezone < StandardError
600
+ end
601
+ end
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,18 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.1
3
+ NewCops: enable
4
+
5
+ Style/StringLiterals:
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ EnforcedStyle: double_quotes
10
+
11
+ Metrics/MethodLength:
12
+ Max: 30
13
+
14
+ Metrics/AbcSize:
15
+ Max: 30
16
+
17
+ Metrics/ParameterLists:
18
+ Max: 10
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-11-28
4
+
5
+ - Initial release