diff --git a/coffee-script.gemspec b/coffee-script.gemspec index 902be5bd..8a4aecc4 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.2.3' # Keep version in sync with coffee-script.rb - s.date = '2010-1-10' + s.version = '0.2.4' # Keep version in sync with coffee-script.rb + s.date = '2010-1-12' 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 b95d6d18..f2ae3513 100644 --- a/documentation/index.html.erb +++ b/documentation/index.html.erb @@ -51,7 +51,7 @@

Latest Version: - 0.2.3 + 0.2.4

Table of Contents

@@ -508,8 +508,8 @@ coffee --print app/scripts/*.coffee > concatenation.js

Pattern Matching (Destructuring Assignment) - To make working with complex arrays and objects more convenient, - CoffeeScript provides ECMAScript Harmony's proposed + To make extracting values from complex arrays and objects more convenient, + CoffeeScript implements ECMAScript Harmony's proposed destructuring assignment syntax. When you assign an array or object literal to a value, CoffeeScript breaks up and matches both sides against each other, assigning the values @@ -524,7 +524,7 @@ coffee --print app/scripts/*.coffee > concatenation.js <%= code_for('multiple_return_values', 'forecast') %>

Pattern matching can be used with any depth of array and object nesting, - to help cleanly extract deeply nested properties. + to help pull out deeply nested properties.

<%= code_for('object_extraction', 'poet + " — " + street') %> @@ -624,6 +624,13 @@ coffee --print app/scripts/*.coffee > concatenation.js

Change Log

+ +

+ 0.2.4 + Added ECMAScript Harmony style destructuring assignment, for dealing with + extracting values from nested arrays and objects. Added indentation-sensitive + heredocs for nicely formatted strings or chunks of code. +

0.2.3 diff --git a/index.html b/index.html index 94c971d3..dd74befc 100644 --- a/index.html +++ b/index.html @@ -37,7 +37,7 @@

Latest Version: - 0.2.3 + 0.2.4

Table of Contents

@@ -1128,8 +1128,8 @@ tom.move();

Pattern Matching (Destructuring Assignment) - To make working with complex arrays and objects more convenient, - CoffeeScript provides ECMAScript Harmony's proposed + To make extracting values from complex arrays and objects more convenient, + CoffeeScript implements ECMAScript Harmony's proposed destructuring assignment syntax. When you assign an array or object literal to a value, CoffeeScript breaks up and matches both sides against each other, assigning the values @@ -1183,7 +1183,7 @@ forecast = __a[2]; ;alert(forecast);'>run: forecast

Pattern matching can be used with any depth of array and object nesting, - to help cleanly extract deeply nested properties. + to help pull out deeply nested properties.

futurists: {
   sculptor: "Umberto Boccioni"
@@ -1406,6 +1406,13 @@ html = &q
     
 
     

Change Log

+ +

+ 0.2.4 + Added ECMAScript Harmony style destructuring assignment, for dealing with + extracting values from nested arrays and objects. Added indentation-sensitive + heredocs for nicely formatted strings or chunks of code. +

0.2.3 diff --git a/lib/coffee-script.rb b/lib/coffee-script.rb index e6944231..3fc2d6ad 100644 --- a/lib/coffee-script.rb +++ b/lib/coffee-script.rb @@ -10,7 +10,7 @@ require "coffee_script/parse_error" # Namespace for all CoffeeScript internal classes. module CoffeeScript - VERSION = '0.2.3' # Keep in sync with the gemspec. + VERSION = '0.2.4' # 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 59d5d3a3..0d1478fa 100644 --- a/package.json +++ b/package.json @@ -5,5 +5,5 @@ "description": "Unfancy JavaScript", "keywords": ["javascript", "language"], "author": "Jeremy Ashkenas", - "version": "0.2.3" + "version": "0.2.4" }