Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CoffeeScript 0.1.6 -- bugfixes

  • Loading branch information...
commit 8fe6fa1cd7d0bbd4a746974d16036df3e52fa3b4 1 parent 835db4b
Jeremy Ashkenas jashkenas authored
4 coffee-script.gemspec
View
@@ -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"
7 documentation/index.html.erb
View
@@ -471,6 +471,13 @@ coffee --print app/scripts/*.coffee > concatenation.js</pre>
<h2 id="change_log">Change Log</h2>
<p>
+ <b class="header" style="margin-top: 20px;">0.1.6</b>
+ Bugfix for running <tt>coffee --interactive</tt> and <tt>--run</tt>
+ from outside of the CoffeeScript directory. Bugfix for nested
+ function/if-statements.
+ </p>
+
+ <p>
<b class="header" style="margin-top: 20px;">0.1.5</b>
Array slice literals and array comprehensions can now both take Ruby-style
ranges to specify the start and end. JavaScript variable declaration is
3  documentation/js/scope.js
View
@@ -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();
})();
6 documentation/js/super.js
View
@@ -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();
25 index.html
View
@@ -373,8 +373,7 @@ <h2 id="installation">Installation and Usage</h2>
<span class="FunctionName">change_numbers</span> = <span class="Storage">function</span>() {
<span class="Storage">var</span> new_num;
num <span class="Keyword">=</span> <span class="Number">2</span>;
- new_num <span class="Keyword">=</span> <span class="Number">3</span>;
- <span class="Keyword">return</span> new_num;
+ <span class="Keyword">return</span> (new_num <span class="Keyword">=</span> <span class="Number">3</span>);
};
new_num <span class="Keyword">=</span> change_numbers();
</pre><button onclick='javascript: var change_numbers, new_num, num;
@@ -382,8 +381,7 @@ <h2 id="installation">Installation and Usage</h2>
change_numbers = function() {
var new_num;
num = 2;
- new_num = 3;
- return new_num;
+ return (new_num = 3);
};
new_num = change_numbers();
;alert(new_num);'>run: new_num</button><br class='clear' /></div>
@@ -680,8 +678,7 @@ <h2 id="installation">Installation and Usage</h2>
<span class="Keyword">return</span> <span class="LibraryFunction">alert</span>(<span class="Variable">this</span>.<span class="LibraryConstant">name</span> <span class="Keyword">+</span> <span class="String"><span class="String">&quot;</span> moved <span class="String">&quot;</span></span> <span class="Keyword">+</span> meters <span class="Keyword">+</span> <span class="String"><span class="String">&quot;</span>m.<span class="String">&quot;</span></span>);
};
<span class="FunctionName">Snake</span> = <span class="Storage">function</span>(<span class="FunctionArgument">name</span>) {
- <span class="Variable">this</span>.<span class="LibraryConstant">name</span> <span class="Keyword">=</span> name;
- <span class="Keyword">return</span> <span class="Variable">this</span>.<span class="LibraryConstant">name</span>;
+ <span class="Keyword">return</span> (<span class="Variable">this</span>.<span class="LibraryConstant">name</span> <span class="Keyword">=</span> name);
};
Snake.__superClass__ <span class="Keyword">=</span> Animal.<span class="LibraryConstant">prototype</span>;
<span class="LibraryClassType">Snake</span>.<span class="LibraryConstant">prototype</span> = <span class="Keyword">new</span> <span class="TypeName">Animal</span>();
@@ -691,8 +688,7 @@ <h2 id="installation">Installation and Usage</h2>
<span class="Keyword">return</span> Snake.__superClass__.move.<span class="LibraryFunction">call</span>(<span class="Variable">this</span>, <span class="Number">5</span>);
};
<span class="FunctionName">Horse</span> = <span class="Storage">function</span>(<span class="FunctionArgument">name</span>) {
- <span class="Variable">this</span>.<span class="LibraryConstant">name</span> <span class="Keyword">=</span> name;
- <span class="Keyword">return</span> <span class="Variable">this</span>.<span class="LibraryConstant">name</span>;
+ <span class="Keyword">return</span> (<span class="Variable">this</span>.<span class="LibraryConstant">name</span> <span class="Keyword">=</span> name);
};
Horse.__superClass__ <span class="Keyword">=</span> Animal.<span class="LibraryConstant">prototype</span>;
<span class="LibraryClassType">Horse</span>.<span class="LibraryConstant">prototype</span> = <span class="Keyword">new</span> <span class="TypeName">Animal</span>();
@@ -712,8 +708,7 @@ <h2 id="installation">Installation and Usage</h2>
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 @@ <h2 id="installation">Installation and Usage</h2>
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();
@@ -890,6 +884,13 @@ <h2 id="contributing">Contributing</h2>
<h2 id="change_log">Change Log</h2>
<p>
+ <b class="header" style="margin-top: 20px;">0.1.6</b>
+ Bugfix for running <tt>coffee --interactive</tt> and <tt>--run</tt>
+ from outside of the CoffeeScript directory. Bugfix for nested
+ function/if-statements.
+ </p>
+
+ <p>
<b class="header" style="margin-top: 20px;">0.1.5</b>
Array slice literals and array comprehensions can now both take Ruby-style
ranges to specify the start and end. JavaScript variable declaration is
2  lib/coffee-script.rb
View
@@ -9,7 +9,7 @@
# 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={})
2  package.json
View
@@ -5,5 +5,5 @@
"description": "Unfancy JavaScript",
"keywords": ["javascript", "language"],
"author": "Jeremy Ashkenas",
- "version": "0.1.5"
+ "version": "0.1.6"
}
Please sign in to comment.
Something went wrong with that request. Please try again.