Skip to content

Commit

Permalink
Fixes #135 - Changes required node.js required version from 0.6+ to 0…
Browse files Browse the repository at this point in the history
….8+.
  • Loading branch information
GoalSmashers committed Aug 29, 2013
1 parent 13b73ca commit 1436b58
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: node_js
node_js:
- '0.6'
- '0.8'
- '0.10'
1 change: 1 addition & 0 deletions History.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

* Fixed issue [#126](https://github.com/GoalSmashers/clean-css/issues/126) - proper CSS expressions handling.
* Fixed issue [#130](https://github.com/GoalSmashers/clean-css/issues/130) - better code modularity.
* Fixed issue [#135](https://github.com/GoalSmashers/clean-css/issues/135) - require node.js 0.8+.
* Fixed issue [#65](https://github.com/GoalSmashers/clean-css/issues/65) - full color name / hex shortening.

1.0.12 / 2013-07-19
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ to many speed optimizations and node.js' V8 engine.
### What are the requirements?

```
node.js 0.6.0+ on UN*X (fully tested on OS X 10.6+ and CentOS)
node.js 0.8.0+ on Windows
node.js 0.8.0+ (tested on CentOS, Ubuntu, OS X 10.6+, and Windows 7+)
```

### How to install clean-css?
Expand Down
3 changes: 1 addition & 2 deletions lib/imports/inliner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
var fs = require('fs');
var path = require('path');
var existsSync = fs.existsSync || path.existsSync;

module.exports = function Inliner() {
var process = function(data, options) {
Expand Down Expand Up @@ -48,7 +47,7 @@ module.exports = function Inliner() {

var fullPath = path.resolve(path.join(relativeTo, importedFile));

if (existsSync(fullPath) && fs.statSync(fullPath).isFile() && options.visited.indexOf(fullPath) == -1) {
if (fs.existsSync(fullPath) && fs.statSync(fullPath).isFile() && options.visited.indexOf(fullPath) == -1) {
options.visited.push(fullPath);

var importedData = fs.readFileSync(fullPath, 'utf8');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"unused": true
},
"engines": {
"node": ">=0.6.0"
"node": ">=0.8.0"
},
"license": "MIT"
}

0 comments on commit 1436b58

Please sign in to comment.