+3
-1
| sudo: false | ||
| language: node_js | ||
| node_js: | ||
| - 0.11 | ||
| - "iojs" | ||
| - "0.10" | ||
| - "0.12" |
+5
-5
@@ -10,9 +10,9 @@ map = require 'map-stream' | ||
| gcson = (file, cb) -> | ||
| cson.parse file.contents.toString(), options, (err, data) -> | ||
| return cb err if err? | ||
| file.contents = new Buffer JSON.stringify data | ||
| file.path = rext file.path, '.json' | ||
| json = cson.parse file.contents.toString(), options | ||
| return cb err if json instanceof Error | ||
| file.contents = new Buffer JSON.stringify json | ||
| file.path = rext file.path, '.json' | ||
| cb null, file | ||
| cb null, file | ||
| return map gcson |
+2
-2
| { | ||
| "name": "gulp-cson", | ||
| "description": "Parse cson with gulp", | ||
| "version": "0.1.0", | ||
| "version": "0.2.0", | ||
| "homepage": "http://github.com/stevelacy/gulp-cson", | ||
@@ -14,3 +14,3 @@ "repository": { | ||
| "coffee-script": "^1.9.0", | ||
| "cson": "^1.6.2", | ||
| "cson": "^2.0.0", | ||
| "map-stream": "^0.1.0", | ||
@@ -17,0 +17,0 @@ "replace-ext": "0.0.1" |
+1
-0
@@ -21,2 +21,3 @@ fs = require "fs" | ||
| 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" | ||
@@ -23,0 +24,0 @@ done() |
5887
1.47%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated