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

npm / etcetera / 191 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 24 Apr 2016 05:43PM UTC
Files 3
Run time 0s
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

24 Apr 2016 05:41PM UTC coverage: 100.0%. Remained the same
191.1

push

travis-ci

ceejbot
A major change to transform() with tests (#39)

* A major change to transform() with tests

The new behavior is documented at the top of lib/transform.js.

`config` might look like this:

```js
{
     'var.app.group': 'foo',
     'var.app.group2': 'bar',
     'var.other': 'baz',
     var: 'qux',
     var2: 'yo'
}
```

We want the following output:

```js
transform(config, 'app', 'group2') => { var: bar, var2: yo }
transform(config, 'app', 'group') => { var: foo, var2: yo }
transform(config, 'other', 'some-other-group') => { var: baz, var2: yo }
transform(config, 'some-other-app') => { var: qux, var2: yo }
```

Keys not relevant to the app & group specified should be trimmed. Keys that ARE
relevant remain, but only in their top-level forms. (This is the only form used
by the configuration templates, after all!) In other words, only not-dots key
forms remain in the output.

WHY?

In production, some config keys are set only in fully-qualified versions,
without any top level versions. Those keys weren't being looked up. Also, keys
that were set without group vars being present were being looked up in an unexpected
manner. E.g., `mail_secret.npm-website` was being resolved to `mail_secret` and NOT
to the set key `mail_secret.npm-website` which existed in etcd!

* Lint doesn't like my C-isms.

52 of 52 relevant lines covered (100.0%)

7.25 hits per line

Source Files on job 191.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 191
  • Travis Job 191.1
  • de5a0872 on github
  • Prev Job for on master (#189.1)
  • Next Job for on master (#192.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