grunt-yaml
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "grunt-yaml", | ||
"description": "Compiles YAML to JSON.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/shiwano/grunt-yaml", | ||
@@ -32,5 +32,5 @@ "author": { | ||
"devDependencies": { | ||
"grunt-contrib-jshint": "~0.1.0", | ||
"grunt-contrib-clean": "~0.4.0a", | ||
"grunt-contrib-nodeunit": "~0.1.0", | ||
"grunt-contrib-jshint": "~0.1.1rc6", | ||
"grunt-contrib-clean": "~0.4.0rc6", | ||
"grunt-contrib-nodeunit": "~0.1.2rc6", | ||
"grunt": "~0.4.0a" | ||
@@ -43,5 +43,4 @@ }, | ||
"js-yaml": "~1.0.3", | ||
"async": "~0.1.22", | ||
"underscore": "~1.4.3" | ||
"async": "~0.1.22" | ||
} | ||
} |
@@ -7,3 +7,3 @@ # grunt-yaml | ||
_If you haven't used [grunt][] before, be sure to check out the [Getting Started][] guide. | ||
And, This task would work on grunt version `~0.4.0a` only._ | ||
And, This task would work on grunt version `~0.4.0rc7` only._ | ||
@@ -69,4 +69,4 @@ From the same directory as your project's [Gruntfile][Getting Started] and [package.json][], install this plugin with the following command: | ||
#### options.constructors | ||
Type: `Number` | ||
Default value: `2` | ||
Type: `Object` | ||
Default value: `{}` | ||
@@ -83,2 +83,3 @@ A Object for add custom constructor to [js-yaml](https://github.com/nodeca/js-yaml). | ||
## Release History | ||
* 2012-02-09 v0.1.1 Support for grunt 0.4.0rc7. | ||
* 2012-12-22 v0.1.0 First release. | ||
@@ -85,0 +86,0 @@ |
@@ -14,3 +14,2 @@ /* | ||
var async = require('async'); | ||
var _ = require('underscore'); | ||
@@ -25,6 +24,8 @@ module.exports = function (grunt) { | ||
var dest = this.data.dest; | ||
var filepaths = grunt.file.expandFiles(this.data.src); | ||
var filepaths = grunt.file.expand(this.data.src); | ||
var taskDone = this.async(); | ||
_.each(options.constructors, function (constructor, tag) { | ||
Object.keys(options.constructors).forEach(function (tag) { | ||
var constructor = options.constructors[tag]; | ||
yaml.addConstructor(tag, function (node) { | ||
@@ -31,0 +32,0 @@ return constructor.call(this, node, yaml); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11898
2
87
- Removedunderscore@~1.4.3
- Removedunderscore@1.4.4(transitive)