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

dblock / distance_of_time_in_words
100%
master: 99%

Build:
Build:
LAST BUILD BRANCH: restore-same-clock-coverage
DEFAULT BRANCH: master
Repo Added 27 Aug 2026 10:37PM UTC
Token KB1cAuGcvvPpFReOIU6Ai5ELRMwj4PqD7 regen
Build 40 Last
Files 5
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

LAST BUILD ON BRANCH restore-same-clock-coverage
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • add-coveralls-coverage
  • add-dublin-cross-zone-example
  • add-luxon-cross-zone-example
  • add-norfolk-cross-zone-example
  • fix-165-offset-delta
  • fix-timezone-deprecation-warning
  • issue-160
  • issue-162
  • master
  • restore-same-clock-coverage

09 Sep 2026 09:15PM UTC coverage: 100.0%. Remained the same
34405895425

push

github

dblock
Restore full test coverage for same_clock?'s TimeZone-object branch

#165 moved the offset_delta/same_clock? call out of TimeHash#initialize
(where it ran unconditionally for every from/to based call) into
build_years_months_weeks_days (where it only runs for distances that
get split into calendar fields, years/months/weeks/days). The only
existing spec exercising same_clock?'s "zone is a TimeZone object, not
a String" comparison (#162) uses a 1 hour distance, too small to reach
build_years_months_weeks_days at all, so that branch silently stopped
being covered by any spec (100% -> 99.65% overall).

Adds a second #162-shaped example, spanning over a year so it's split
into calendar fields, confirming Tokyo/LA (unrelated zones, not the
same clock) are still correctly treated as different clocks at that
distance too.

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

283 of 283 relevant lines covered (100.0%)

630.12 hits per line

Relevant lines Covered
Build:
Build:
283 RELEVANT LINES 283 COVERED LINES
630.12 HITS PER LINE
Source Files on master
  • Tree
  • List 5
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
34405895425 restore-same-clock-coverage Restore full test coverage for same_clock?'s TimeZone-object branch #165 moved the offset_delta/same_clock? call out of TimeHash#initialize (where it ran unconditionally for every from/to based call) into build_years_months_weeks_days (where it o... push 09 Sep 2026 09:15PM UTC dblock github
100.0
34405822823 restore-same-clock-coverage Restore full test coverage for same_clock?'s TimeZone-object branch #165 moved the offset_delta/same_clock? call out of TimeHash#initialize (where it ran unconditionally for every from/to based call) into build_years_months_weeks_days (where it o... push 09 Sep 2026 09:15PM UTC dblock github
100.0
34405701651 restore-same-clock-coverage Restore full test coverage for same_clock?'s TimeZone-object branch #165 moved the offset_delta/same_clock? call out of TimeHash#initialize (where it ran unconditionally for every from/to based call) into build_years_months_weeks_days (where it o... push 09 Sep 2026 09:13PM UTC dblock github
100.0
34404801208 add-norfolk-cross-zone-example Add Pacific/Norfolk historical offset regression example, fix #170 Adds a regression example (from https://github.com/dblock/tz_test) demonstrating that Pacific/Norfolk's 2015 historical UTC offset change (#153) folds correctly into the calendar ... push 09 Sep 2026 09:04PM UTC dblock github
99.65
34403991571 add-norfolk-cross-zone-example Add Pacific/Norfolk historical offset regression example Add a regression example ported from the tz_test Ruby harness (https://github.com/dblock/tz_test/blob/master/ruby/test.rb), covering the Pacific/Norfolk 2015 historical UTC offset change. ... push 09 Sep 2026 08:56PM UTC dblock github
99.64
34403773821 master Fix #165: only fold UTC offset changes into the sub-day leftover, not the top-level distance offset_delta previously applied its correction to the top-level distance used to pick which build_* branch to use, which could overcorrect past zero when... push 09 Sep 2026 08:54PM UTC dblock github
99.29
34403430329 fix-165-offset-delta Fix #165: only fold UTC offset changes into the sub-day leftover, not the top-level distance offset_delta previously applied its correction to the top-level distance used to pick which build_* branch to use, which could overcorrect past zero when... push 09 Sep 2026 08:50PM UTC dblock github
99.29
34403408760 fix-165-offset-delta Fix #165: only fold UTC offset changes into the sub-day leftover, not the top-level distance offset_delta previously applied its correction to the top-level distance used to pick which build_* branch to use, which could overcorrect past zero when... push 09 Sep 2026 08:50PM UTC dblock github
99.29
34360732533 fix-165-offset-delta Fix #165: only fold UTC offset changes into the sub-day leftover, not the top-level distance offset_delta previously applied its correction to the top-level distance used to pick which build_* branch to use, which could overcorrect past zero when... push 09 Sep 2026 02:00PM UTC dblock github
99.29
34358747948 add-dublin-cross-zone-example Add Europe/Dublin DST fall-back regression example, pending #165 Add a regression example ported from Timex's humanized-duration tests (https://github.com/bitwalker/timex/blob/3.7.11/test/format_duration_humanized_test.exs), covering the Europe/D... push 09 Sep 2026 01:42PM UTC dblock github
100.0
See All Builds (35)

Badge your Repo: distance_of_time_in_words

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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