Skip to content

Commit

Permalink
upgrade to coffeescript 2.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lucagrulla committed Mar 31, 2018
1 parent 698e33a commit 8ef439e
Show file tree
Hide file tree
Showing 5 changed files with 332 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ prodCoffeeOpts = " --bare --output lib --compile src/tail.coffee"

task 'build', 'generate lib package', (options) ->
fs.unlink "lib",->
exec "./node_modules/coffee-script/bin/coffee #{prodCoffeeOpts}",(err, stdout, stderr) ->
exec "./node_modules/coffeescript/bin/coffee #{prodCoffeeOpts}",(err, stdout, stderr) ->
throw err if err
console.log("done.")
326 changes: 326 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {},
"devDependencies": {
"chai": "^3.2.0",
"coffee-script": "1.10.0",
"coffeescript": "2.2.4",
"mocha": "^3.0.2"
}
}
4 changes: 3 additions & 1 deletion src/tail.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class Tail extends events.EventEmitter
@buffer = parts.pop()
@emit("line", chunk) for chunk in parts

constructor:(@filename, options = {}) ->
constructor:(filename, options = {}) ->
super filename, options
@filename = filename
{@separator = /[\r]{0,1}\n/, @fsWatchOptions = {}, @fromBeginning = false, @follow = true, @logger, @useWatchFile = false, @encoding = "utf-8"} = options

if @logger
Expand Down
2 changes: 1 addition & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--compilers mocha --compilers coffee:coffee-script/register --timeout 3000
--compilers mocha --compilers coffee:coffeescript/register --timeout 3000

0 comments on commit 8ef439e

Please sign in to comment.