Skip to content

Commit

Permalink
Merge pull request #11 from cybertk/deps
Browse files Browse the repository at this point in the history
Update deps
  • Loading branch information
cybertk committed Oct 13, 2014
2 parents 54faac9 + 6b42faf commit f377767
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bin/ramlev
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ process.on( 'SIGINT', function() {
});
});

ramlev.run(function(error, stats){
ramlev.run(function(error, failures){
if (error) {
if (error.message) {
console.error(error.message);
Expand All @@ -58,7 +58,7 @@ ramlev.run(function(error, stats){
}
process.exit(1);
}
if (stats.failures > 0) {
if (failures > 0) {
process.exit(1);
} else {
process.exit(0);
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
},
"homepage": "https://github.com/cybertk/ramlev",
"dependencies": {
"chai": "^1.9.1",
"chai": "^1.9.2",
"chai-json-schema": "^1.1.0",
"coffee-script": "^1.8.0",
"jsonlint": "^1.6.2",
"mocha": "git://github.com/cybertk/mocha.git#e256565cd",
"mocha": "^1.21.5",
"optimist": "^0.6.1",
"raml-parser": "^0.8.7",
"refaker": "^0.1.5",
Expand All @@ -40,9 +40,9 @@
"devDependencies": {
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-coffee": "^0.11.1",
"grunt-contrib-coffee": "^0.12.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-mocha-test": "^0.11.0",
"grunt-mocha-test": "^0.12.1",
"jit-grunt": "^0.8.0",
"time-grunt": "^1.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions src/ramlev.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class Ramlev
runTests = ->
mocha = new Mocha _.omit(config.options, refaker_keys)
generateTests raml, mocha
mocha.run ->
callback(null, mocha.reporter.stats)
mocha.run (failures)->
callback(null, failures)

try
refaker _.extend({ schemas: extractSchemas(raml) }, refaker_opts), (err, refs) ->
Expand Down

0 comments on commit f377767

Please sign in to comment.