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

hlef / juliet / 60 / 1
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 08 Jul 2018 02:58PM UTC
Files 13
Run time 1s
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

08 Jul 2018 02:51PM UTC coverage: 78.689% (-5.6%) from 84.268%
60.1

push

travis-ci

hlef
Refactor juliet new feature

In the alpha1 the juliet new command was taking two parameters: --date
and --title. This is absolutely not what we want because it restricts
the usage of juliet new to a very specific subset of article headers.

Instead we switch to a much more modular system:

1. juliet new

   Creates an article with default values.

   By default the article name formatting is $date-$title.md (title
   in slugified form). Default values for title and date are taken
   from the theme. It is highly recommended to the theme to let date
   being set by juliet (this can be done by _not_ specifying a default
   value for this variable). It is then set to the current date
   YYYY-MM-DD.

2. juliet new FILENAME

   Creates an article with default values in posts/FILENAME. For
   default, values, same as 1.

3. juliet new (FILENAME) -- key= value key2 = value2 key3 =value3

   Header values can always be passed as key value list after the --
   (stop argument processing. These values are then used for article
   name generation if filename is not specified + article header.
   Missing key values are defaulted using the theme default values.

   If the theme doesn't define default values, execution of juliet
   new is aborted with appropriate error message. That's why the
   theme should always specify proper default values if these are not
   going to be auto generated by juliet (like date_).

   In the future we will provide a hook-system which will allow themes
   to define Python hooks to generate values during juliet new
   execution.

The article name formatting (default: $date-$slug_title.md) can be
specified by the user using the filenaming_pattern config variable.
The pattern is in Python Template form (PEP 292). Accessible variables
are:

 - all command-line passed key: values
 - all theme side default values (overwritten by command-line passed
   key: values if key is identical)
 - all generated entries:
   o date_
     Either current ... (continued)

480 of 610 relevant lines covered (78.69%)

0.79 hits per line

Source Files on job 60.1
  • Tree
  • List 0
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3
  • Travis Job 60.1
  • 64982702 on github
  • Prev Job for on master (#59.4)
  • Next Job for on master (#61.5)
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