Skip to content

Commit

Permalink
Bump 0.0.4, run docs generation
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 13, 2014
1 parent 9bb5da3 commit 51a15fe
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
26 changes: 13 additions & 13 deletions README.md
Expand Up @@ -6,9 +6,9 @@ Named for the NBA's all-time leading scorer Kareem Abdul-Jabbar, known for his m

<img src="http://upload.wikimedia.org/wikipedia/commons/0/00/Kareem-Abdul-Jabbar_Lipofsky.jpg" width="220">

### pre hooks
## pre hooks

##### It runs without any hooks specified
#### It runs without any hooks specified

```javascript

Expand All @@ -18,7 +18,7 @@ Named for the NBA's all-time leading scorer Kareem Abdul-Jabbar, known for his m

```

##### It runs basic serial pre hooks
#### It runs basic serial pre hooks

```javascript

Expand All @@ -36,7 +36,7 @@ Named for the NBA's all-time leading scorer Kareem Abdul-Jabbar, known for his m

```

##### It can run multipe pres
#### It can run multipe pres

```javascript

Expand All @@ -61,7 +61,7 @@ Named for the NBA's all-time leading scorer Kareem Abdul-Jabbar, known for his m

```

##### It can run fully synchronous pres
#### It can run fully synchronous pres

```javascript

Expand All @@ -84,7 +84,7 @@ Named for the NBA's all-time leading scorer Kareem Abdul-Jabbar, known for his m

```

##### It properly attaches context to pre hooks
#### It properly attaches context to pre hooks

```javascript

Expand All @@ -108,7 +108,7 @@ Named for the NBA's all-time leading scorer Kareem Abdul-Jabbar, known for his m

```

##### It can execute parallel (async) pre hooks
#### It can execute parallel (async) pre hooks

```javascript

Expand Down Expand Up @@ -145,9 +145,9 @@ Named for the NBA's all-time leading scorer Kareem Abdul-Jabbar, known for his m

```

### post hooks
## post hooks

##### It runs without any hooks specified
#### It runs without any hooks specified

```javascript

Expand All @@ -159,7 +159,7 @@ Named for the NBA's all-time leading scorer Kareem Abdul-Jabbar, known for his m

```

##### It executes with parameters passed in
#### It executes with parameters passed in

```javascript

Expand All @@ -178,9 +178,9 @@ Named for the NBA's all-time leading scorer Kareem Abdul-Jabbar, known for his m

```

### wrap()
## wrap()

##### It wraps pre and post calls into one call
#### It wraps pre and post calls into one call

```javascript

Expand Down Expand Up @@ -231,7 +231,7 @@ Named for the NBA's all-time leading scorer Kareem Abdul-Jabbar, known for his m
assert.equal(4, obj.eggs);
assert.equal(false, obj.waffles);
assert.equal(undefined, obj.tofu);
callback();
callback(null, o);
},
obj,
args);
Expand Down
6 changes: 3 additions & 3 deletions docs.js
Expand Up @@ -11,18 +11,18 @@ var mdOutput =
'Named for the NBA\'s all-time leading scorer Kareem Abdul-Jabbar, known ' +
'for his mastery of the [hook shot](http://en.wikipedia.org/wiki/Kareem_Abdul-Jabbar#Skyhook)\n\n' +
'<img src="http://upload.wikimedia.org/wikipedia/commons/0/00/Kareem-Abdul-Jabbar_Lipofsky.jpg" width="220">\n\n'
'## API\n\n';
'# API\n\n';

for (var i = 0; i < blocks.length; ++i) {
var describe = blocks[i];
mdOutput += '### ' + describe.contents + '\n\n';
mdOutput += '## ' + describe.contents + '\n\n';
mdOutput += describe.comments[0] ?
trimEachLine(describe.comments[0]) + '\n\n' :
'';

for (var j = 0; j < describe.blocks.length; ++j) {
var it = describe.blocks[j];
mdOutput += '##### It ' + it.contents + '\n\n';
mdOutput += '#### It ' + it.contents + '\n\n';
mdOutput += it.comments[0] ? trimEachLine(it.comments[0]) + '\n\n' : '';
mdOutput += '```javascript\n';
mdOutput += ' ' + it.code + '\n';
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "kareem",
"version": "0.0.3",
"version": "0.0.4",
"description": "Next-generation take on pre/post function hooks",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 51a15fe

Please sign in to comment.