Skip to content

Commit

Permalink
switch to coffeescript 1.7, which is NOT BACKWARDS COMPATIBLE with 1.…
Browse files Browse the repository at this point in the history
…6 despite the semver.
  • Loading branch information
russellmcc committed Feb 6, 2014
1 parent 424d540 commit 79a69b7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ child = require 'child_process'

task 'test', 'run tests (requires development install)', (options) ->
process.env['NODE_PATH'] = './lib/:$NODE_PATH'
test = child.spawn 'mocha', ['--compilers', 'coffee:coffee-script', '-u', 'tdd', 'test']
test = child.spawn 'mocha', ['--compilers', 'coffee:coffee-script/register', '-u', 'tdd', 'test']
test.stdout.pipe process.stdout
test.stderr.pipe process.stderr
test.on 'exit', (num) ->
return process.exit num

spawnMochaCov = (reporter) ->
return child.spawn 'mocha', ['--compilers', 'coffee:coffee-script', '-r', 'blanket', '-R', reporter, '-u', 'tdd', 'test']
return child.spawn 'mocha', ['--compilers', 'coffee:coffee-script/register', '-r', 'blanket', '-R', reporter, '-u', 'tdd', 'test']

task 'coverage', 'run tests with coverage check (requires development install)', (options) ->
process.env['NODE_PATH'] = './lib/:$NODE_PATH'
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
// [spec]: http://opensoundcontrol.org/spec-1_0

var utils, coffee;
coffee = require("coffee-script");
require("coffee-script/register");
utils = require("./osc-utilities");
// ~api~
//## Exported functions
Expand Down
2 changes: 1 addition & 1 deletion lib/osc-utilities.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# My guess is client code won't need this. If you do need this, you must
# require coffee first, then write:
#
# require("coffee-script");
# require("coffee-script/register");
# osc-utils = require("osc/lib/osc-utilities");
#
# See the comments in osc.coffee for more information about the structure of
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "osc-min",
"version": "0.0.13",
"version": "0.0.14",
"main": "lib/index",
"author": {
"name": "Russell McClellan",
Expand All @@ -20,7 +20,7 @@
},
"dependencies": {
"binpack": "*",
"coffee-script": ">=1.3.0"
"coffee-script": "^1.7"
},
"devDependencies": {
"mocha": "*",
Expand Down

0 comments on commit 79a69b7

Please sign in to comment.