• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dblock / distance_of_time_in_words / 34356848137
99%

Build:
DEFAULT BRANCH: master
Ran 09 Sep 2026 01:24PM UTC
Jobs 8
Files 5
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Sep 2026 01:23PM UTC coverage: 100.0%. Remained the same
34356848137

push

github

dblock
Fix #162: distinguish different TimeWithZone-derived Time zone objects

same_clock? assumed any plain Time with a non-nil, non-UTC #zone was tied
to the process's system zone, since a plain Time's #zone is normally
either nil (fixed numeric offset) or a String abbreviation (system TZ).
On Rails >= 8.0, however, converting an ActiveSupport::TimeWithZone via
#to_time can return a Time whose #zone is instead the ActiveSupport::
TimeZone object itself. Two such times built from *different* zones were
indistinguishable from two same-system-zone times, so offset_delta still
folded in their unrelated offset difference (#162).

When #zone is not a String, compare the zone objects for equality instead
of just checking presence - two Time values only share a clock if they
carry the very same zone object (by ActiveSupport::TimeZone#== identity),
not merely a non-nil one.

Added a regression spec constructing two Time values from different
named zones via ActiveSupport::TimeZone#local/#to_time (portable across
the whole supported Ruby/Rails matrix, unlike Ruby's Time.new(in:)
keyword which requires Ruby 3.2+).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

2 of 2 new or added lines in 1 file covered. (100.0%)

280 of 280 relevant lines covered (100.0%)

629.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby-3.4- - 34356848137.1 09 Sep 2026 01:24PM UTC 4
99.61
GitHub Action Run
2 ruby-3.4-gemfiles/rails_8.1_i18n.gemfile - 34356848137.2 09 Sep 2026 01:25PM UTC 5
99.29
GitHub Action Run
3 ruby-3.4-gemfiles/rails_7.2.gemfile - 34356848137.3 09 Sep 2026 01:25PM UTC 5
99.29
GitHub Action Run
4 ruby-3.4-gemfiles/rails_8.1.gemfile - 34356848137.4 09 Sep 2026 01:25PM UTC 5
99.29
GitHub Action Run
5 ruby-3.4-gemfiles/rails_7.1.gemfile - 34356848137.5 09 Sep 2026 01:25PM UTC 5
99.29
GitHub Action Run
6 ruby-3.4-gemfiles/rails_8.0.gemfile - 34356848137.6 09 Sep 2026 01:25PM UTC 5
99.29
GitHub Action Run
7 ruby-3.4-gemfiles/rails_6.0.gemfile - 34356848137.7 09 Sep 2026 01:24PM UTC 5
99.29
GitHub Action Run
8 ruby-3.4-gemfiles/rails_7.0.gemfile - 34356848137.8 09 Sep 2026 01:25PM UTC 5
99.29
GitHub Action Run
Source Files on build 34356848137
  • Tree
  • List 5
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34356848137
  • bf60dd38 on github
  • Prev Build on master (#34354810893)
  • Next Build on master (#34358610586)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc