Skip to content

Commit 067b5dd

Browse files
committed
merge master into branch
2 parents b70fcf2 + be702d6 commit 067b5dd

File tree

142 files changed

+3476
-2701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+3476
-2701
lines changed

Cakefile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ unless process.env.NODE_DISABLE_COLORS
1919
header = """
2020
/**
2121
* CoffeeScript Compiler v#{CoffeeScript.VERSION}
22-
* http://coffeescript.org
22+
* https://coffeescript.org
2323
*
2424
* Copyright 2011, Jeremy Ashkenas
2525
* Released under the MIT License
@@ -188,11 +188,9 @@ buildDocs = (watch = no) ->
188188
# Helpers
189189
releaseHeader = (date, version, prevVersion) ->
190190
"""
191-
<div class="anchor" id="#{version}"></div>
192-
<h2 class="header">
193-
#{prevVersion and "<a href=\"https://github.com/jashkenas/coffeescript/compare/#{prevVersion}...#{version}\">#{version}</a>" or version}
194-
<span class="timestamp"> &mdash; <time datetime="#{date}">#{formatDate date}</time></span>
195-
</h2>
191+
<h3>#{prevVersion and "<a href=\"https://github.com/jashkenas/coffeescript/compare/#{prevVersion}...#{version}\">#{version}</a>" or version}
192+
<span class="timestamp"> &mdash; <time datetime="#{date}">#{date}</time></span>
193+
</h3>
196194
"""
197195

198196
monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
@@ -290,8 +288,8 @@ buildDocs = (watch = no) ->
290288
else
291289
"<blockquote class=\"uneditable-code-block\">#{defaultFence.apply @, arguments}</blockquote>"
292290

293-
(file, searchData) ->
294-
md = fs.readFileSync "#{sectionsSourceFolder}/#{file}.md", 'utf-8'
291+
(file, bookmark) ->
292+
md = fs.readFileSync "#{sectionsSourceFolder}/#{file.replace /\//g, path.sep}.md", 'utf-8'
295293
md = md.replace /<%= releaseHeader %>/g, releaseHeader
296294
md = md.replace /<%= majorVersion %>/g, majorVersion
297295
md = md.replace /<%= fullVersion %>/g, CoffeeScript.VERSION

ISSUE_TEMPLATE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Our issues history stretches back to 2009, so the odds are good that your topic
77
If you have a support request or question please use Stack Overflow:
88
https://stackoverflow.com/questions/tagged/coffeescript
99
10-
Issues on GitHub are only related to problems of the CoffeeScript compiler itself and we cannot answer
10+
Issues on GitHub are only related to problems of the CoffeeScript compiler itself and we cannot answer
1111
support questions here.
1212
-->
1313

@@ -21,18 +21,18 @@ with “Proposal:”. Once your issue is reviewed, a maintainer will edit the ti
2121
of the codebase most relevant to the issue (if applicable).
2222
2323
If your request is that CoffeeScript support a new feature recently arrived to JavaScript, please note
24-
that we generally only add features that have reached Stage 4 in the specification (in other words,
24+
that we generally only add features that have reached Stage 4 in the specification (in other words,
2525
the syntax is finalized and the feature is approved to be part of the next ES release). You can still
2626
open an issue, but it will likely be tagged with “[Awaiting Stage 4]” until the relevant ES feature is
27-
approved for release. See http://coffeescript.org/#contributing
27+
approved for release. See https://coffeescript.org/#contributing
2828
2929
There are also a handful of JavaScript features that CoffeeScript intentionally does not support.
30-
Please do not open issues regarding these. They’re listed in http://coffeescript.org/#unsupported
30+
Please do not open issues regarding these. They’re listed in https://coffeescript.org/#unsupported
3131
-->
3232

3333
### Input Code
3434
<!--- If you're describing a bug, please let us know which sample code reproduces your problem. -->
35-
<!--- If you have link from http://coffeescript.org/#try or a standalone repo please include that! -->
35+
<!--- If you have link from https://coffeescript.org/#try or a standalone repo please include that! -->
3636

3737
```coffee
3838
your (code) => here

PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<!--
22
Before making a PR please make sure to read our contributing guidelines:
3-
http://coffeescript.org/#contributing
3+
https://coffeescript.org/#contributing
44
5-
For issue references: Add a comma-separated list of a
6-
[closing word](https://help.github.com/articles/closing-issues-via-commit-messages/) followed by
5+
For issue references: Add a comma-separated list of a
6+
[closing word](https://help.github.com/articles/closing-issues-via-commit-messages/) followed by
77
the ticket number fixed by the PR. It should be underlined in the preview if done correctly.
88
99
All new features require tests. All but the most trivial bug fixes should also have new or updated tests.
1010
11-
Ensure that all new code you add to the compiler can be run in the minimum version of Node listed in
11+
Ensure that all new code you add to the compiler can be run in the minimum version of Node listed in
1212
`package.json`. New tests can require newer Node runtimes, but you may need to ensure that such tests
13-
only run in supported runtimes; see `Cakefile` for examples of how to filter out certain tests in
13+
only run in supported runtimes; see `Cakefile` for examples of how to filter out certain tests in
1414
runtimes that don’t support them.
1515
1616
Please follow the code style of the rest of the CoffeeScript codebase. Write comments in complete
17-
sentences using Markdown, as the comments become the [annotated source](http://coffeescript.org/#annotated-source).
17+
sentences using Markdown, as the comments become the [annotated source](https://coffeescript.org/#annotated-source).
1818
For tests proving a bug is fixed, please mention the issue number in the test description (see examples
1919
in the codebase).
2020

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ Compile a script:
5353
coffee -c /path/to/script.coffee
5454
```
5555

56-
For documentation, usage, and examples, see: http://coffeescript.org/
56+
For documentation, usage, and examples, see: https://coffeescript.org/
5757

5858
To suggest a feature or report a bug: https://github.com/jashkenas/coffeescript/issues
5959

6060
If you’d like to chat, drop by #coffeescript on Freenode IRC.
6161

6262
The source repository: https://github.com/jashkenas/coffeescript.git
6363

64-
Changelog: http://coffeescript.org/#changelog
64+
Changelog: https://coffeescript.org/#changelog
6565

6666
Our lovely and talented contributors are listed here: https://github.com/jashkenas/coffeescript/contributors

docs/CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
coffeescript.org
1+
coffeescript.org

docs/v2/annotated-source/browser.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h1>browser.coffee</h1>
124124

125125
<div class="content"><div class='highlight'><pre>
126126
CoffeeScript = <span class="hljs-built_in">require</span> <span class="hljs-string">'./coffeescript'</span>
127-
compile = CoffeeScript.compile</pre></div></div>
127+
{ compile } = CoffeeScript</pre></div></div>
128128

129129
</li>
130130

@@ -135,13 +135,17 @@ <h1>browser.coffee</h1>
135135
<div class="pilwrap ">
136136
<a class="pilcrow" href="#section-2">&#182;</a>
137137
</div>
138-
<p>Use standard JavaScript <code>eval</code> to eval code.</p>
138+
<p>Use <code>window.eval</code> to evaluate code, rather than just <code>eval</code>, to run the
139+
script in a clean global scope rather than inheriting the scope of the
140+
CoffeeScript compiler. (So that <code>cake test:browser</code> also works in Node,
141+
use either <code>window.eval</code> or <code>global.eval</code> as appropriate).</p>
139142

140143
</div>
141144

142145
<div class="content"><div class='highlight'><pre>CoffeeScript.eval = <span class="hljs-function"><span class="hljs-params">(code, options = {})</span> -&gt;</span>
143146
options.bare ?= <span class="hljs-literal">on</span>
144-
eval compile code, options</pre></div></div>
147+
globalRoot = <span class="hljs-keyword">if</span> <span class="hljs-built_in">window</span>? <span class="hljs-keyword">then</span> <span class="hljs-built_in">window</span> <span class="hljs-keyword">else</span> <span class="hljs-built_in">global</span>
148+
globalRoot[<span class="hljs-string">'eval'</span>] compile code, options</pre></div></div>
145149

146150
</li>
147151

docs/v2/annotated-source/coffeescript.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ <h1>coffeescript.coffee</h1>
604604
</div>
605605
<p>The real Lexer produces a generic stream of tokens. This object provides a
606606
thin wrapper around it, compatible with the Jison API. We can then pass it
607-
directly as a “Jison lexer”.</p>
607+
directly as a “Jison lexer.”</p>
608608

609609
</div>
610610

docs/v2/annotated-source/command.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,14 +897,14 @@ <h1>command.coffee</h1>
897897
To use --transpile, you must have babel-core installed:
898898
npm install --save-dev babel-core
899899
And you must save options to configure Babel in one of the places it looks to find its options.
900-
See http://coffeescript.org/#transpilation
900+
See https://coffeescript.org/#transpilation
901901
'''</span>
902902
<span class="hljs-keyword">else</span>
903903
<span class="hljs-built_in">console</span>.error <span class="hljs-string">'''
904904
To use --transpile with globally-installed CoffeeScript, you must have babel-core installed globally:
905905
npm install --global babel-core
906906
And you must save options to configure Babel in one of the places it looks to find its options, relative to the file being compiled or to the current folder.
907-
See http://coffeescript.org/#transpilation
907+
See https://coffeescript.org/#transpilation
908908
'''</span>
909909
process.exit <span class="hljs-number">1</span>
910910

docs/v2/annotated-source/grammar.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ <h2 id="grammatical-rules">Grammatical Rules</h2>
915915
o <span class="hljs-string">':: Property'</span>, <span class="hljs-function">-&gt;</span> [LOC(<span class="hljs-number">1</span>)(<span class="hljs-keyword">new</span> Access <span class="hljs-keyword">new</span> PropertyName(<span class="hljs-string">'prototype'</span>)), LOC(<span class="hljs-number">2</span>)(<span class="hljs-keyword">new</span> Access $<span class="hljs-number">2</span>)]
916916
o <span class="hljs-string">'?:: Property'</span>, <span class="hljs-function">-&gt;</span> [LOC(<span class="hljs-number">1</span>)(<span class="hljs-keyword">new</span> Access <span class="hljs-keyword">new</span> PropertyName(<span class="hljs-string">'prototype'</span>), <span class="hljs-string">'soak'</span>), LOC(<span class="hljs-number">2</span>)(<span class="hljs-keyword">new</span> Access $<span class="hljs-number">2</span>)]
917917
o <span class="hljs-string">'::'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> Access <span class="hljs-keyword">new</span> PropertyName <span class="hljs-string">'prototype'</span>
918+
o <span class="hljs-string">'?::'</span>, <span class="hljs-function">-&gt;</span> <span class="hljs-keyword">new</span> Access <span class="hljs-keyword">new</span> PropertyName(<span class="hljs-string">'prototype'</span>), <span class="hljs-string">'soak'</span>
918919
o <span class="hljs-string">'Index'</span>
919920
]</pre></div></div>
920921

@@ -1748,7 +1749,7 @@ <h2 id="grammatical-rules">Grammatical Rules</h2>
17481749
<div class="pilwrap ">
17491750
<a class="pilcrow" href="#section-69">&#182;</a>
17501751
</div>
1751-
<p><a href="http://coffeescript.org/#existential-operator">The existential operator</a>.</p>
1752+
<p><a href="https://coffeescript.org/#existential-operator">The existential operator</a>.</p>
17521753

17531754
</div>
17541755

0 commit comments

Comments
 (0)