@@ -9,2 +9,2 @@ gulp = require 'gulp' | ||
| gulp.task 'default', ['cson'] | ||
| gulp.task 'default', ['cson'] |
+3
-3
| { | ||
| "name": "gulp-cson", | ||
| "description": "Parse cson with gulp", | ||
| "version": "0.2.1", | ||
| "version": "0.3.0", | ||
| "homepage": "http://github.com/stevelacy/gulp-cson", | ||
@@ -13,4 +13,4 @@ "repository": { | ||
| "dependencies": { | ||
| "coffee-script": "^1.9.0", | ||
| "cson": "^2.0.0", | ||
| "coffee-script": "^1.9.1", | ||
| "cson": "^3.0.1", | ||
| "map-stream": "^0.1.0", | ||
@@ -17,0 +17,0 @@ "replace-ext": "0.0.1" |
+1
-1
@@ -8,3 +8,3 @@ #gulp-cson | ||
| <table> | ||
| <tr> | ||
| <tr> | ||
| <td>Package</td><td>gulp-cson</td> | ||
@@ -11,0 +11,0 @@ </tr> |
+22
-22
@@ -1,23 +0,23 @@ | ||
| fs = require "fs" | ||
| path = require "path" | ||
| should = require "should" | ||
| gutil = require "gulp-util" | ||
| gcson = require "../" | ||
| fs = require 'fs' | ||
| path = require 'path' | ||
| should = require 'should' | ||
| gutil = require 'gulp-util' | ||
| gcson = require '../' | ||
| require "mocha" | ||
| require 'mocha' | ||
| describe "gulp-cson", -> | ||
| it "should parse cson to json", (done) -> | ||
| describe 'gulp-cson', -> | ||
| it 'should parse cson to json', (done) -> | ||
| myFunction = gcson() | ||
| fakeFile = new gutil.File | ||
| base: "test/fixtures" | ||
| cwd: "test/" | ||
| path: "test/fixtures/normal.cson" | ||
| contents: fs.readFileSync path.join __dirname, "/fixtures/normal.cson" | ||
| base: 'test/fixtures' | ||
| cwd: 'test/' | ||
| path: 'test/fixtures/normal.cson' | ||
| contents: fs.readFileSync path.join __dirname, '/fixtures/normal.cson' | ||
| myFunction.once "data", (newFile) -> | ||
| myFunction.once 'data', (newFile) -> | ||
| should.exist newFile | ||
| should.exist newFile.contents | ||
| should.equal newFile.path, 'test/fixtures/normal.json' | ||
| String(newFile.contents).should.equal String fs.readFileSync path.join __dirname, "/expected/normal.json" | ||
| String(newFile.contents).should.equal String fs.readFileSync path.join __dirname, '/expected/normal.json' | ||
| done() | ||
@@ -27,16 +27,16 @@ | ||
| it "should return error on error", (done) -> | ||
| it 'should return error on error', (done) -> | ||
| myFunction = gcson() | ||
| fakeFile = new gutil.File | ||
| base: "test/fixtures" | ||
| cwd: "test/" | ||
| path: "test/fixtures/normal.cson" | ||
| contents: fs.readFileSync path.join __dirname, "/fixtures/error.cson" | ||
| base: 'test/fixtures' | ||
| cwd: 'test/' | ||
| path: 'test/fixtures/normal.cson' | ||
| contents: fs.readFileSync path.join __dirname, '/fixtures/error.cson' | ||
| myFunction.once "error", (err) -> | ||
| myFunction.once 'error', (err) -> | ||
| should.exist err | ||
| should.equal String(err.message), "[stdin]:12:1: error: unmatched }\n\u001b[1;31m}\u001b[0m\n\u001b[1;31m^\u001b[0m" | ||
| should.equal err.name, 'SyntaxError' | ||
| should.equal err.message, 'unmatched }' | ||
| done() | ||
| myFunction.write fakeFile |
6445
-0.54%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
Updated
Updated