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

harttle / liquidjs / 5279127375
100%

Build:
DEFAULT BRANCH: master
Ran 15 Jun 2023 01:03PM UTC
Jobs 1
Files 109
Run time 7s
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

pending completion
5279127375

push

github

harttle
fix: strftime getSuffix works for all dates

As written, the strftime module's `getSuffix` method (responsible for
returning a date's ordinal string) works correctly for all dates in a
month _except_ 11, 12, and 13.

The existing code would return a string based on the last digit of the
date. In American English, these three dates use the `th` suffix rather
than `st`, `nd`, or `rd`.

This refactor/bug fix draws inspiration from Rails' ActiveSupport
ordinal inflector:

https://github.com/rails/rails/blob/main/activesupport/lib/active_support/locale/en.rb

The Ruby code above is designed to work with any number, so the bug fix
to this library is simpler.

The test suite is also updated with additional examples to verify the
correctness of these changes.

739 of 739 branches covered (100.0%)

Branch coverage included in aggregate %.

2213 of 2213 relevant lines covered (100.0%)

833.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5279127375.1 15 Jun 2023 01:03PM UTC 109
100.0
GitHub Action Run
Source Files on build 5279127375
  • Tree
  • List 109
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 0b4e2a99 on github
  • Prev Build on master (#5179029067)
  • Next Build on master (#5436927869)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc