diff --git a/coffee-script.gemspec b/coffee-script.gemspec index a62e479f..ef684aa0 100644 --- a/coffee-script.gemspec +++ b/coffee-script.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'coffee-script' - s.version = '0.1.5' # Keep version in sync with coffee-script.rb - s.date = '2009-12-26' + s.version = '0.1.6' # Keep version in sync with coffee-script.rb + s.date = '2009-12-27' s.homepage = "http://jashkenas.github.com/coffee-script/" s.summary = "The CoffeeScript Compiler" diff --git a/documentation/index.html.erb b/documentation/index.html.erb index 8eeb4512..8d756774 100644 --- a/documentation/index.html.erb +++ b/documentation/index.html.erb @@ -470,6 +470,13 @@ coffee --print app/scripts/*.coffee > concatenation.js
+ 0.1.6 + Bugfix for running coffee --interactive and --run + from outside of the CoffeeScript directory. Bugfix for nested + function/if-statements. +
+
0.1.5
Array slice literals and array comprehensions can now both take Ruby-style
diff --git a/documentation/js/scope.js b/documentation/js/scope.js
index c5735c04..f4f1b4d2 100644
--- a/documentation/js/scope.js
+++ b/documentation/js/scope.js
@@ -4,8 +4,7 @@
change_numbers = function() {
var new_num;
num = 2;
- new_num = 3;
- return new_num;
+ return (new_num = 3);
};
new_num = change_numbers();
})();
\ No newline at end of file
diff --git a/documentation/js/super.js b/documentation/js/super.js
index 5f857d2f..252d0612 100644
--- a/documentation/js/super.js
+++ b/documentation/js/super.js
@@ -6,8 +6,7 @@
return alert(this.name + " moved " + meters + "m.");
};
Snake = function(name) {
- this.name = name;
- return this.name;
+ return (this.name = name);
};
Snake.__superClass__ = Animal.prototype;
Snake.prototype = new Animal();
@@ -17,8 +16,7 @@
return Snake.__superClass__.move.call(this, 5);
};
Horse = function(name) {
- this.name = name;
- return this.name;
+ return (this.name = name);
};
Horse.__superClass__ = Animal.prototype;
Horse.prototype = new Animal();
diff --git a/index.html b/index.html
index aaca41a7..ce203fdf 100644
--- a/index.html
+++ b/index.html
@@ -373,8 +373,7 @@ num = 1;
change_numbers = function() {
var new_num;
num = 2;
- new_num = 3;
- return new_num;
+ return (new_num = 3);
};
new_num = change_numbers();
@@ -680,8 +678,7 @@ tom.move()
return alert(this.name + " moved " + meters + "m.");
};
Snake = function(name) {
- this.name = name;
- return this.name;
+ return (this.name = name);
};
Snake.__superClass__ = Animal.prototype;
Snake.prototype = new Animal();
@@ -691,8 +688,7 @@ Snake.__superClass__ = Animal.return Snake.__superClass__.move.call(this, 5);
};
Horse = function(name) {
- this.name = name;
- return this.name;
+ return (this.name = name);
};
Horse.__superClass__ = Animal.prototype;
Horse.prototype = new Animal();
@@ -712,8 +708,7 @@ Animal.prototype.move = function(meters) {
return alert(this.name + " moved " + meters + "m.");
};
Snake = function(name) {
- this.name = name;
- return this.name;
+ return (this.name = name);
};
Snake.__superClass__ = Animal.prototype;
Snake.prototype = new Animal();
@@ -723,8 +718,7 @@ Snake.prototype.move = function() {
return Snake.__superClass__.move.call(this, 5);
};
Horse = function(name) {
- this.name = name;
- return this.name;
+ return (this.name = name);
};
Horse.__superClass__ = Animal.prototype;
Horse.prototype = new Animal();
@@ -889,6 +883,13 @@ world...";
+ 0.1.6 + Bugfix for running coffee --interactive and --run + from outside of the CoffeeScript directory. Bugfix for nested + function/if-statements. +
+0.1.5 Array slice literals and array comprehensions can now both take Ruby-style diff --git a/lib/coffee-script.rb b/lib/coffee-script.rb index 6dffc582..afae2b50 100644 --- a/lib/coffee-script.rb +++ b/lib/coffee-script.rb @@ -9,7 +9,7 @@ require "coffee_script/parse_error" # Namespace for all CoffeeScript internal classes. module CoffeeScript - VERSION = '0.1.5' # Keep in sync with the gemspec. + VERSION = '0.1.6' # Keep in sync with the gemspec. # Compile a script (String or IO) to JavaScript. def self.compile(script, options={}) diff --git a/package.json b/package.json index 8b271c05..7d83b675 100644 --- a/package.json +++ b/package.json @@ -5,5 +5,5 @@ "description": "Unfancy JavaScript", "keywords": ["javascript", "language"], "author": "Jeremy Ashkenas", - "version": "0.1.5" + "version": "0.1.6" }