Comparing version 0.0.11 to 0.0.13
@@ -24,17 +24,15 @@ var _ = require("underscore-keypath"); | ||
_(this.descriptions).each(function (each) { | ||
var lines = _(each.split(/[\r\n]+/g)).map(function (it){ | ||
return it.trim(); | ||
var lines = _(each.trim().split(/[\r\n]+/g)).map(function (it){ | ||
return indent + it.trim(); | ||
}); | ||
contents = contents.concat(lines); | ||
if(lines.length == 1){ | ||
contents = contents.concat("/**" + lines[0] + " */"); | ||
} | ||
else{ | ||
contents = contents.concat(["/**"], lines, ["*/"]); | ||
} | ||
}); | ||
if(contents.length == 1){ | ||
return "/// " + contents[0]; | ||
} | ||
else{ | ||
var indented = _(contents).map(function (it){ | ||
return indent + it; | ||
}); | ||
return ["/**"].concat(indented).concat(["*/"]).join("\n"); | ||
} | ||
return contents.join("\n"); | ||
}); | ||
@@ -53,2 +51,4 @@ | ||
this.ok(JSON.stringify(this.options, null, " ")); | ||
model.prefix = this.options.fieldPrefix; | ||
@@ -55,0 +55,0 @@ model.fieldStyle = this.options.fieldStyle; |
@@ -25,4 +25,4 @@ #!/usr/bin/env node | ||
var xcodeIO = require("./lib/xcode-io")(); | ||
this.options.inputs = xcodeIO.inputs; | ||
this.options.output = xcodeIO.outputs[0]; | ||
options.inputs = xcodeIO.inputs; | ||
options.output = xcodeIO.outputs[0]; | ||
@@ -29,0 +29,0 @@ var generator; |
@@ -41,5 +41,8 @@ "use strict"; | ||
var xcodeInputs = resolve(createList(env, "SCRIPT_INPUT_FILE")); | ||
var xcodeOutputs = createList(env, "SCRIPT_OUTPUT_FILE"); | ||
return { | ||
"inputs" : pInputs.length > 0 ? pInputs : resolve(createList(env, "SCRIPT_INPUT_FILE")), | ||
"outputs" : pOutputs || createList(env, "SCRIPT_OUTPUT_FILE") | ||
"inputs" : xcodeInputs.length > 0 ? xcodeInputs : pInputs, | ||
"outputs" : xcodeOutputs.length > 0 ? xcodeOutputs : pOutputs | ||
}; | ||
@@ -46,0 +49,0 @@ }; |
@@ -7,3 +7,3 @@ { | ||
"main" : "generator.js", | ||
"version": "0.0.11", | ||
"version": "0.0.13", | ||
@@ -22,3 +22,3 @@ "scripts" : { | ||
"glob" : "*", | ||
"xpath" : "*", | ||
"xpath" : "*", | ||
"xmldom" : "*" | ||
@@ -25,0 +25,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
80767