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

jekyll / jekyll-admin / 1709 / 1
73%
master: 73%

Build:
DEFAULT BRANCH: master
Ran 04 Nov 2019 09:07AM UTC
Files 59
Run time 3s
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

04 Nov 2019 09:00AM UTC coverage: 79.683%. Remained the same
2.4, TEST_SUITE=node

push

travis-ci

web-flow
Refactor JekyllAdmin::Directory (#522)

* Use strings as keys for `#to_liquid` hash
  Provides consistency with other datatypes that uses a Hash with string keys. Moreover string 
  literals are automatically frozen now. Therefore, they're as performant as using symbols.

* Use constants to avoid creating objects repeatedly
  Creating the same array on every call / iteration is wasteful. String literals are now frozen
  automatically. So they need not be stashed in a constant

* Improve readability of constructor
  Pathname.new(nil) is an invalid usage. So technically all of the named parameters except
  `:content_type` is a required parameter. But content_type being nil doesn't make sense so that
  should be a required parameter as well.

* Base of a directory is its main container
  For `pages`, it would be site.source
  For `posts`, it would be site.source + collections_dir + '_posts'.  Similarly for other documents, it
  would be the path upto their respective collection's root directory,

* Memoize relative_path method
  To avoid re-evaluation on every request to a given API URL. The `to_liquid` method is not 
  memoized instead so that `modified_time` is picked up properly.

520 of 696 branches covered (74.71%)

Branch coverage included in aggregate %.

1139 of 1386 relevant lines covered (82.18%)

7.91 hits per line

Source Files on job 1709.1 (2.4, TEST_SUITE=node)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1700
  • Travis Job 1709.1
  • b0d6cd78 on github
  • Prev Job for 2.4, TEST_SUITE=node on master (#1706.1)
  • Next Job for 2.4, TEST_SUITE=node on master (#1710.1)
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