@blazetrails/tzinfo
Time zone lookups for Trails, standing in for the tzinfo gem
| Measure | Value |
|---|---|
| Rails counterpart | tzinfo v2.0.6 |
| API methods matched | 66% (246 of 372) |
| Rails tests matched | 41% (478 of 1161) (7 permanent) |
| Ruby files ported | 35 |
| Ruby files unported | 10 |
| Measured at | fe89b44726 |
Gaps by file
Ported files with Rails methods or tests still missing, largest gap first.
| Ruby file | TypeScript file | Methods missing | Tests matched |
|---|---|---|---|
timezone.rb | timezone.ts | 24 | 0 / 126 |
country.rb | country.ts | 0 | 21 / 37 |
data_source.rb | data-source.ts | 0 | 28 / 41 |
timezone_period.rb | timezone-period.ts | 3 | 11 / 21 |
timezone_offset.rb | timezone-offset.ts | 0 | 4 / 14 |
data_sources/ruby_data_source.rb | data-sources/ruby-data-source.ts | 0 | 29 / 37 (1 permanent) |
timezone_proxy.rb | timezone-proxy.ts | 0 | 5 / 13 |
format2/timezone_definer.rb | format2/timezone-definer.ts | 0 | 11 / 17 |
timezone_transition.rb | timezone-transition.ts | 2 | 6 / 8 |
offset_timezone_period.rb | offset-timezone-period.ts | 0 | 5 / 7 |
transitions_timezone_period.rb | transitions-timezone-period.ts | 0 | 6 / 8 |
data_sources/country_info.rb | data-sources/country-info.ts | 0 | 7 / 8 (2 permanent) |
data_sources/linked_timezone_info.rb | data-sources/linked-timezone-info.ts | 0 | 5 / 6 (2 permanent) |
tzinfo.rb | tzinfo.ts | 0 | 0 / 1 |
Missing methods
The Rails methods parity:api finds no TypeScript counterpart for, by Ruby file.
timezone.rb: 24 missing
to_local, local_time, local_datetime, local_timestamp, offsets_up_to, now, current_time_and_period, current_period_and_time, strftime, abbreviation, base_utc_offset, utc_offset, hash, _dump, default_dst=, default_dst, all_data_zones, all_data_zone_identifiers, all_linked_zones, all_linked_zone_identifiers, all_country_zones, all_country_zone_identifiers, data_source, _load
timezone_period.rb: 3 missing
local_starts_at, local_ends_at, timestamp_with_offset
timezone_transition.rb: 2 missing
local_end_at, local_start_at
Unported Ruby files
annual_rules.rb(7 methods)data_sources/posix_time_zone_parser.rb(6 methods)data_sources/zoneinfo_data_source.rb(20 methods)data_sources/zoneinfo_reader.rb(13 methods)datetime_with_offset.rb(14 methods)ruby_core_support.rb(1 methods)time_with_offset.rb(14 methods)timestamp_with_offset.rb(7 methods)transition_rule.rb(13 methods)with_offset.rb(2 methods)
Deviation receipts
JSDoc receipt tags in the package's source, by the receipt each carries.
| Tag | PERMANENT | CONVERGEABLE | none |
|---|---|---|---|
@noRailsEquivalent | 2 | 2 | 0 |
@missingRailsCall | 0 | 1 | 0 |
@inventedArm | 0 | 1 | 0 |
@perf | 0 | 2 | 0 |
@internal | 0 | 0 | 95 |
Permanently skipped tests
Ruby Strings are JS string primitives (no mutable String carrier) (7)
Ratified deviations
Each rule below is ratified in the repository's CLAUDE.md files. The first paragraph is quoted; the link opens the full section at this build's commit.
Ruby Strings are JS string primitives (no mutable String carrier)
A Ruby String is a mutable object with identity. str << "x" and str.replace("y") change the receiver in place, str.dup is a second object with the same content, and frozen? is a per-object fact. ActiveModel leans on all three: