Skip to content

Fix depercation messages #375

Closed
wants to merge 1 commit into from
View
3 bin/hubot
@@ -73,7 +73,6 @@ unless process.platform is "win32"
if Options.create
creator = new Creator(Options.path)
creator.run()
-
else
adapterPath = Path.resolve __dirname, "..", "src", "adapters"
@@ -94,7 +93,7 @@ else
robot.load scriptsPath
scriptsFile = Path.resolve "hubot-scripts.json"
- Path.exists scriptsFile, (exists) =>
+ Fs.exists scriptsFile, (exists) =>
if exists
Fs.readFile scriptsFile, (err, data) ->
scripts = JSON.parse data
View
5 package.json
@@ -23,6 +23,11 @@
"connect_router": "1.8.6"
},
+ "engines": {
+ "node": "0.8.x",
+ "npm": "1.1.x"
+ },
+
"main": "./index",
"bin": {
View
4 src/creator.coffee
@@ -15,9 +15,9 @@ class Creator
#
# Returns nothing.
mkdirDashP: (path) ->
- Path.exists path, (exists) ->
+ Fs.exists path, (exists) ->
unless exists
- Fs.mkdir path, 0o0755, (err) ->
+ Fs.mkdir path, 0755, (err) ->
throw err if err
# Copy the contents of a file from one place to another.
View
2 src/robot.coffee
@@ -138,7 +138,7 @@ class Robot
load: (path) ->
@logger.debug "Loading scripts from #{path}"
- Path.exists path, (exists) =>
+ Fs.exists path, (exists) =>
if exists
@loadPaths.push path
for file in Fs.readdirSync(path)
Something went wrong with that request. Please try again.