Compare commits

...

2 Commits
0.3.0 ... 0.3.1

Author SHA1 Message Date
Jeremy Ashkenas
5b2ab36246 CoffeeScript 0.3.1, quick patch for 'instanceof' 2010-01-27 08:01:18 -05:00
Jeremy Ashkenas
2f3a94678f fixing instanceof, with a quick test 2010-01-27 07:55:40 -05:00
7 changed files with 8 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = 'coffee-script'
s.version = '0.3.0' # Keep version in sync with coffee-script.rb
s.date = '2010-1-26'
s.version = '0.3.1' # Keep version in sync with coffee-script.rb
s.date = '2010-1-27'
s.homepage = "http://jashkenas.github.com/coffee-script/"
s.summary = "The CoffeeScript Compiler"

View File

@@ -51,7 +51,7 @@
<p>
<b>Latest Version:</b>
<a href="http://gemcutter.org/gems/coffee-script">0.3.0</a>
<a href="http://gemcutter.org/gems/coffee-script">0.3.1</a>
</p>
<h2>Table of Contents</h2>

View File

@@ -37,7 +37,7 @@
<p>
<b>Latest Version:</b>
<a href="http://gemcutter.org/gems/coffee-script">0.3.0</a>
<a href="http://gemcutter.org/gems/coffee-script">0.3.1</a>
</p>
<h2>Table of Contents</h2>

View File

@@ -10,7 +10,7 @@ require "coffee_script/parse_error"
# Namespace for all CoffeeScript internal classes.
module CoffeeScript
VERSION = '0.3.0' # Keep in sync with the gemspec.
VERSION = '0.3.1' # Keep in sync with the gemspec.
# Compile a script (String or IO) to JavaScript.
def self.compile(script, options={})

View File

@@ -22,7 +22,7 @@ module CoffeeScript
IMPLICIT_FUNC = [:IDENTIFIER, :SUPER, ')', :CALL_END, ']', :INDEX_END]
IMPLICIT_END = [:IF, :UNLESS, :FOR, :WHILE, "\n", :OUTDENT]
IMPLICIT_CALL = [:IDENTIFIER, :NUMBER, :STRING, :JS, :REGEX, :NEW, :PARAM_START,
:TRY, :DELETE, :INSTANCEOF, :TYPEOF, :SWITCH, :ARGUMENTS,
:TRY, :DELETE, :TYPEOF, :SWITCH, :ARGUMENTS,
:TRUE, :FALSE, :YES, :NO, :ON, :OFF, '!', '!!', :NOT,
'->', '=>', '[', '(', '{']

View File

@@ -5,5 +5,5 @@
"description": "Unfancy JavaScript",
"keywords": ["javascript", "language"],
"author": "Jeremy Ashkenas",
"version": "0.3.0"
"version": "0.3.1"
}

View File

@@ -4,6 +4,7 @@ y.x: -> 3
print x is 1
print typeof(y.x) is 'function'
print y.x instanceof Function
print y.x() is 3
print y.x.name is 'x'