Skip to content

Commit

Permalink
Add coverall
Browse files Browse the repository at this point in the history
  • Loading branch information
yanickrochon committed Aug 26, 2014
1 parent 57cdaf9 commit 1a1ed36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -3,4 +3,5 @@ node_js:
- "0.11"
matrix:
fast_finish: true
script: "npm run-script test-travis"
script: "npm run-script test-travis"
after_script: "npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls"
9 changes: 5 additions & 4 deletions README.md
@@ -1,6 +1,7 @@
# co-efficient

[![Build Status](https://travis-ci.org/yanickrochon/co-efficient.svg)](https://travis-ci.org/yanickrochon/co-efficient)
[![Coverage Status](https://coveralls.io/repos/yanickrochon/co-efficient/badge.png)](https://coveralls.io/r/yanickrochon/co-efficient)

[![NPM](https://nodei.co/npm/co-efficient.png?compact=true)](https://nodei.co/npm/co-efficient/)

Expand Down Expand Up @@ -765,7 +766,7 @@ the `toLocaleLowerCase()` function.
* **Encode XML entities** *(`x`)* - encode all XML entities
* **Decode XML entities** *(`X`)* - decode all XML entities
* **Mask output** _(`*`)_ - replace every character with a star (`*`)
* **Iterator Count modifier** *(`@`)* - returns the size of the context if it was iterated. **NOTE**:
* **Iterator Count modifier** *(`@`)* - returns the size of the context if it was iterated. **NOTE**:
`{{foo.length}}` will rather return the property `length` of every array elements instead of
the length of the array, thus this modifier. (ex: `{{foo}@}`) See [iterators](#iterators).

Expand Down Expand Up @@ -880,7 +881,7 @@ the current segment's argument. The returned value, a string, represents the fun
that will return the parameter's object value at run time. That function will expect the current context
to be passed, or the function's behaviour will be undefined!
* **processRenderer** *(compiledData, segValue, segKey, segments, contextSwitchable)*:*{String}* -like for
`processParams`, an helper function that returns a string to be used at run-time to invoke a function that
`processParams`, an helper function that returns a string to be used at run-time to invoke a function that
will generate the body-ies render for the given segment. See [helper's `chunk` argument](#helper-function-arguments).

**Note**: even if the template's rendering is async, the generated function returned by either `processParams`
Expand Down Expand Up @@ -950,7 +951,7 @@ function * bookRenderer(cData, sValue, sKey, segments) {
// str = this.OBJ_STREAM + '.write(yield(' + this.OBJ_ENGINE + '.b)(' +
// this.quote(segValue.params['isbn']) + '));';
//} else if (segValue.params['isbn'] && segValue.params['isbn'].context) {
// str = this.OBJ_STREAM + '.write(yield(' + this.OBJ_ENGINE + '.b)(' +
// str = this.OBJ_STREAM + '.write(yield(' + this.OBJ_ENGINE + '.b)(' +
// // segValue.params['isbn'].context should still be a string, but a context
// // path. this.context(ctxPath) should return the proper JS string value
// this.context(segValue.params['isbn'].context) + '.data));';
Expand Down Expand Up @@ -1112,4 +1113,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "co-efficient",
"version": "0.3.4",
"version": "0.3.5",
"description": "An Efficient and lightweight asynchronous template Engine using `co`.",
"author": "Yanick Rochon <yanick.rochon@gmail.com>",
"main": "index.js",
Expand Down

0 comments on commit 1a1ed36

Please sign in to comment.