Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

v0.1.12

* Fixed issue in node v0.6 where path.sep is not found.
  • Loading branch information...
commit a8adc127220e7a1848901353186359ef0a685e20 1 parent 0e7a0f3
Doug Martin doug-martin authored
4 docs/History.html
View
@@ -178,6 +178,10 @@
+<h1>0.1.12</h1>
+<ul>
+<li>Fixed issue in node v0.6 where path.sep is not found.</li>
+</ul>
<h1>0.1.11</h1>
<ul>
<li>Fixed issue <a href="https://github.com/C2FO/nools/issues/73">#73</a> where requires in dsl would treat a file with a <code>.</code> character as a path instead of a module.</li>
10 docs/nools.js
View
5 additions, 5 deletions not shown
3  history.md
View
@@ -1,3 +1,6 @@
+# 0.1.12
+* Fixed issue in node v0.6 where path.sep is not found.
+
# 0.1.11
* Fixed issue [#73](https://github.com/C2FO/nools/issues/73) where requires in dsl would treat a file with a `.` character as a path instead of a module.
5 lib/parser/nools/util.js
View
@@ -1,7 +1,8 @@
"use strict";
var path = require("path");
-var WHITE_SPACE_REG = /[\s|\n|\r|\t]/;
+var WHITE_SPACE_REG = /[\s|\n|\r|\t]/,
+ pathSep = path.sep || ( process.platform === 'win32' ? '\\' : '/' );
var TOKEN_INVERTS = {
"{": "}",
@@ -61,7 +62,7 @@ exports.resolve = function (from, to) {
if (path.extname(from) !== '') {
from = path.dirname(from);
}
- if (to.split(path.sep).length === 1) {
+ if (to.split(pathSep).length === 1) {
return to;
}
return path.resolve(from, to);
9 nools.js
View
@@ -3895,10 +3895,11 @@ module.exports = topLevelTokens;
},{"../../extended":10,"./util.js":31,"__browserify_process":48,"fs":45}],31:[function(require,module,exports){
-"use strict";
+var process=require("__browserify_process");"use strict";
var path = require("path");
-var WHITE_SPACE_REG = /[\s|\n|\r|\t]/;
+var WHITE_SPACE_REG = /[\s|\n|\r|\t]/,
+ pathSep = path.sep || ( process.platform === 'win32' ? '\\' : '/' );
var TOKEN_INVERTS = {
"{": "}",
@@ -3958,7 +3959,7 @@ exports.resolve = function (from, to) {
if (path.extname(from) !== '') {
from = path.dirname(from);
}
- if (to.split(path.sep).length === 1) {
+ if (to.split(pathSep).length === 1) {
return to;
}
return path.resolve(from, to);
@@ -3985,7 +3986,7 @@ var findNextTokenIndex = exports.findNextTokenIndex = function (str, startIndex,
exports.findNextToken = function (str, startIndex, endIndex) {
return str.charAt(findNextTokenIndex(str, startIndex, endIndex));
};
-},{"path":46}],32:[function(require,module,exports){
+},{"__browserify_process":48,"path":46}],32:[function(require,module,exports){
(function () {
"use strict";
var extd = require("./extended"),
10 nools.min.js
View
5 additions, 5 deletions not shown
2  package.json
View
@@ -1,7 +1,7 @@
{
"name": "nools",
"description": "A rules engine for node",
- "version": "0.1.11",
+ "version": "0.1.12",
"bin": {
"nools": "./bin/nools"
},
Please sign in to comment.
Something went wrong with that request. Please try again.