Skip to content

Commit 1d2c13e

Browse files
committed
Upgrade to CoffeeScript 0.9.0.
1 parent b8615e0 commit 1d2c13e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# JCoffeeScript
22

3-
JCoffeeScript is a java library that compiles CoffeeScript 0.7.2. JCoffeeScript is licensed under the Apache license 2.0. Please see LICENSE for more detail.
3+
JCoffeeScript is a java library that compiles CoffeeScript 0.9.0. JCoffeeScript is licensed under the Apache license 2.0. Please see LICENSE for more detail.
44

55
## Usage
66
from the command prompt:
7-
prompt> echo "a: 1" | java -jar jcoffeescript-0.7.2.jar
7+
prompt> echo "a: 1" | java -jar jcoffeescript-0.9.0.jar
88
(function(){
99
var a;
1010
a = 1;

build.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<target name="build" depends="bootstrap, clean, functional-test"/>
2222

23-
<property name="artifact.name" value="jcoffeescript-0.7.2"/>
23+
<property name="artifact.name" value="jcoffeescript-0.9.0"/>
2424
<import file="${basedir}/conf/build/build-bootstrap.xml"/>
2525
<import file="${basedir}/conf/build/build-clean.xml"/>
2626
<import file="${basedir}/conf/build/build-compile.xml"/>
@@ -49,13 +49,13 @@
4949
</target>
5050

5151
<target name="functional-test" depends="jar">
52-
<java inputstring="a:1" jar="${basedir}/target/dist/${artifact.name}.jar" failonerror="true" fork="true"/>
52+
<java inputstring="a=1" jar="${basedir}/target/dist/${artifact.name}.jar" failonerror="true" fork="true"/>
5353

5454
<java outputproperty="jruby.output" classname="org.jruby.Main" failonerror="true" fork="true">
5555
<classpath refid="runtime.classpath"/>
5656
<classpath path="${basedir}/target/dist/${artifact.name}.jar"/>
5757
<arg value="${basedir}/src/main/ruby/compile.rb"/>
58-
<arg value="a:1"/>
58+
<arg value="a=1"/>
5959
</java>
6060
<echo>val=${jruby.output}</echo>
6161
</target>

src/main/resources/org/jcoffeescript/coffee-script.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/unit-tests/java/org/jcoffeescript/CoffeeScriptCompilerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
public class CoffeeScriptCompilerTest {
2525
@Test
2626
public void shouldCompile() throws JCoffeeScriptCompileException {
27-
assertThat(compiling("a: 1"), Matchers.containsString("a = 1"));
27+
assertThat(compiling("a = 1"), Matchers.containsString("a = 1"));
2828
}
2929

3030
private String compiling(String coffeeScriptSource) throws JCoffeeScriptCompileException {

src/unit-tests/java/org/jcoffeescript/MainTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public class MainTest {
3030
@Test
3131
public void shouldCompileScriptsPipedToInputStreamAndPrintToOutputStream() throws IOException {
32-
assertThat(piping("a:1"), Matchers.containsString("a = 1"));
32+
assertThat(piping("a = 1"), Matchers.containsString("a = 1"));
3333
}
3434

3535
private String piping(String input) throws IOException {

0 commit comments

Comments
 (0)