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

jekyll / jekyll-admin / 1709
73%

Build:
DEFAULT BRANCH: master
Ran 04 Nov 2019 09:03AM UTC
Jobs 3
Files 118
Run time 5min
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
1709

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.

1040 of 1392 branches covered (74.71%)

Branch coverage included in aggregate %.

2278 of 2772 relevant lines covered (82.18%)

23.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1709.1 (2.4, TEST_SUITE=node) 04 Nov 2019 09:07AM UTC 0
79.68
Travis Job 1709.1
2 1709.2 (2.4, TEST_SUITE=ruby JEKYLL_VERSION="~> 3.8") 04 Nov 2019 09:03AM UTC 0
79.68
Travis Job 1709.2
3 1709.3 (2.4, TEST_SUITE=ruby JEKYLL_VERSION="~> 4.0") 04 Nov 2019 09:08AM UTC 0
79.68
Travis Job 1709.3
Source Files on build 1709
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1709
  • b0d6cd78 on github
  • Prev Build on master (#1706)
  • Next Build on master (#1710)
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