Permalink
Browse files

v0.1.12

* Fixed issue in node v0.6 where path.sep is not found.
  • Loading branch information...
1 parent 0e7a0f3 commit a8adc127220e7a1848901353186359ef0a685e20 @doug-martin doug-martin committed Sep 5, 2013
Showing with 26 additions and 17 deletions.
  1. +4 −0 docs/History.html
  2. +5 −5 docs/nools.js
  3. +3 −0 history.md
  4. +3 −2 lib/parser/nools/util.js
  5. +5 −4 nools.js
  6. +5 −5 nools.min.js
  7. +1 −1 package.json
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>
View
Oops, something went wrong.
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.
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);
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"),
View
Oops, something went wrong.
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"
},

0 comments on commit a8adc12

Please sign in to comment.