closure 1.4.3 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +12 -12
  3. data/closure-compiler/README.md +503 -0
  4. data/closure-compiler/compiler.jar +0 -0
  5. data/closure-templates/SoyToJsSrcCompiler.jar +0 -0
  6. data/closure-templates/soyutils.js +1593 -469
  7. data/closure-templates/soyutils_usegoog.js +1105 -223
  8. data/docs/SCRIPT.md +5 -5
  9. data/docs/closure/Closure/BeanShell.html +63 -54
  10. data/docs/closure/Closure/Compiler/Compilation.html +124 -107
  11. data/docs/closure/Closure/Compiler/Error.html +28 -21
  12. data/docs/closure/Closure/Compiler.html +81 -76
  13. data/docs/closure/Closure/FileResponse.html +113 -98
  14. data/docs/closure/Closure/Goog.html +264 -253
  15. data/docs/closure/Closure/Middleware.html +66 -55
  16. data/docs/closure/Closure/Script/NotFound.html +28 -21
  17. data/docs/closure/Closure/Script/RenderStackOverflow.html +28 -21
  18. data/docs/closure/Closure/Script.html +212 -203
  19. data/docs/closure/Closure/Server.html +100 -90
  20. data/docs/closure/Closure/ShowExceptions.html +63 -52
  21. data/docs/closure/Closure/Sources.html +254 -246
  22. data/docs/closure/Closure/Templates/Error.html +28 -21
  23. data/docs/closure/Closure/Templates.html +88 -80
  24. data/docs/closure/Closure.html +181 -163
  25. data/docs/closure/_index.html +42 -38
  26. data/docs/closure/class_list.html +19 -8
  27. data/docs/closure/css/full_list.css +4 -2
  28. data/docs/closure/css/style.css +68 -51
  29. data/docs/closure/file.LICENSE.html +24 -217
  30. data/docs/closure/file.README.html +54 -47
  31. data/docs/closure/file_list.html +20 -9
  32. data/docs/closure/frames.html +18 -5
  33. data/docs/closure/index.html +54 -47
  34. data/docs/closure/js/app.js +60 -46
  35. data/docs/closure/js/full_list.js +24 -10
  36. data/docs/closure/js/jquery.js +4 -16
  37. data/docs/closure/method_list.html +74 -175
  38. data/docs/closure/top-level-namespace.html +29 -20
  39. data/lib/closure/compiler.rb +32 -42
  40. data/lib/closure/goog.rb +12 -12
  41. data/lib/closure/server.rb +6 -6
  42. data/lib/closure/show_exceptions.rb +15 -12
  43. data/lib/closure/version.rb +1 -1
  44. data/scripts/git.erb +183 -0
  45. data/scripts/hello/compiler.js.erb +2 -2
  46. data/scripts/hello/hello.js +1 -1
  47. data/scripts/hello/index.erb +6 -0
  48. data/scripts/hello/legume.js +12 -7
  49. data/scripts/index.erb +15 -13
  50. data/scripts/modules/compiler.js.erb +3 -3
  51. data/scripts/modules/compiler_build.js +3 -3
  52. data/scripts/modules/compiler_build.map +13 -12159
  53. data/scripts/modules/compiler_build_api.js +1 -1
  54. data/scripts/modules/compiler_build_app.js +74 -71
  55. data/scripts/modules/compiler_build_settings.js +2 -2
  56. data/scripts/modules/index.erb +5 -3
  57. data/scripts/modules/settings.js +1 -1
  58. data/scripts/svn.erb +11 -11
  59. data/scripts/welcome.erb +7 -6
  60. metadata +65 -81
  61. data/closure-compiler/README +0 -292
  62. data/scripts/hello/compiler_build.js +0 -5
  63. data/scripts/hello/compiler_build.map +0 -748
  64. data/scripts/hello/compiler_debug.js +0 -119
  65. data/scripts/modules/compiler_debug.js +0 -6
  66. data/scripts/modules/compiler_debug_api.js +0 -11
  67. data/scripts/modules/compiler_debug_app.js +0 -2414
  68. data/scripts/modules/compiler_debug_settings.js +0 -39
  69. data/scripts/rails/index.erb +0 -46
  70. data/scripts/rails/rails_ujs.js +0 -96
@@ -6,19 +6,21 @@
6
6
  <title>
7
7
  File: LICENSE
8
8
 
9
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; Documentation by YARD 0.8.7.6
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
14
 
15
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
18
19
  relpath = '';
19
- if (relpath != '') relpath += '/';
20
+ framesUrl = "frames.html#!file.LICENSE.html";
20
21
  </script>
21
22
 
23
+
22
24
  <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
25
 
24
26
  <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
@@ -26,240 +28,45 @@
26
28
 
27
29
  </head>
28
30
  <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
31
  <div id="header">
34
32
  <div id="menu">
35
33
 
36
- <a href="_index.html" title="Index">Index</a> &raquo;
34
+ <a href="_index.html">Index</a> &raquo;
37
35
  <span class="title">File: LICENSE</span>
38
36
 
39
-
37
+
40
38
  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
39
  </div>
42
40
 
43
41
  <div id="search">
44
42
 
45
- <a id="class_list_link" href="#">Class List</a>
43
+ <a class="full_list_link" id="class_list_link"
44
+ href="class_list.html">
45
+ Class List
46
+ </a>
46
47
 
47
- <a id="method_list_link" href="#">Method List</a>
48
+ <a class="full_list_link" id="method_list_link"
49
+ href="method_list.html">
50
+ Method List
51
+ </a>
48
52
 
49
- <a id="file_list_link" href="#">File List</a>
53
+ <a class="full_list_link" id="file_list_link"
54
+ href="file_list.html">
55
+ File List
56
+ </a>
50
57
 
51
58
  </div>
52
59
  <div class="clear"></div>
53
60
  </div>
54
-
55
- <iframe id="search_frame"></iframe>
56
-
57
- <div id="content"><div id='filecontents'><pre class="code"> Apache License
58
- Version 2.0, January 2004
59
- http://www.apache.org/licenses/
60
-
61
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
62
-
63
- 1. Definitions.
64
-
65
- &quot;License&quot; shall mean the terms and conditions for use, reproduction,
66
- and distribution as defined by Sections 1 through 9 of this document.
67
-
68
- &quot;Licensor&quot; shall mean the copyright owner or entity authorized by
69
- the copyright owner that is granting the License.
70
-
71
- &quot;Legal Entity&quot; shall mean the union of the acting entity and all
72
- other entities that control, are controlled by, or are under common
73
- control with that entity. For the purposes of this definition,
74
- &quot;control&quot; means (i) the power, direct or indirect, to cause the
75
- direction or management of such entity, whether by contract or
76
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
77
- outstanding shares, or (iii) beneficial ownership of such entity.
78
-
79
- &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity
80
- exercising permissions granted by this License.
81
-
82
- &quot;Source&quot; form shall mean the preferred form for making modifications,
83
- including but not limited to software source code, documentation
84
- source, and configuration files.
85
-
86
- &quot;Object&quot; form shall mean any form resulting from mechanical
87
- transformation or translation of a Source form, including but
88
- not limited to compiled object code, generated documentation,
89
- and conversions to other media types.
90
-
91
- &quot;Work&quot; shall mean the work of authorship, whether in Source or
92
- Object form, made available under the License, as indicated by a
93
- copyright notice that is included in or attached to the work
94
- (an example is provided in the Appendix below).
95
-
96
- &quot;Derivative Works&quot; shall mean any work, whether in Source or Object
97
- form, that is based on (or derived from) the Work and for which the
98
- editorial revisions, annotations, elaborations, or other modifications
99
- represent, as a whole, an original work of authorship. For the purposes
100
- of this License, Derivative Works shall not include works that remain
101
- separable from, or merely link (or bind by name) to the interfaces of,
102
- the Work and Derivative Works thereof.
103
-
104
- &quot;Contribution&quot; shall mean any work of authorship, including
105
- the original version of the Work and any modifications or additions
106
- to that Work or Derivative Works thereof, that is intentionally
107
- submitted to Licensor for inclusion in the Work by the copyright owner
108
- or by an individual or Legal Entity authorized to submit on behalf of
109
- the copyright owner. For the purposes of this definition, &quot;submitted&quot;
110
- means any form of electronic, verbal, or written communication sent
111
- to the Licensor or its representatives, including but not limited to
112
- communication on electronic mailing lists, source code control systems,
113
- and issue tracking systems that are managed by, or on behalf of, the
114
- Licensor for the purpose of discussing and improving the Work, but
115
- excluding communication that is conspicuously marked or otherwise
116
- designated in writing by the copyright owner as &quot;Not a Contribution.&quot;
117
-
118
- &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity
119
- on behalf of whom a Contribution has been received by Licensor and
120
- subsequently incorporated within the Work.
121
-
122
- 2. Grant of Copyright License. Subject to the terms and conditions of
123
- this License, each Contributor hereby grants to You a perpetual,
124
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
125
- copyright license to reproduce, prepare Derivative Works of,
126
- publicly display, publicly perform, sublicense, and distribute the
127
- Work and such Derivative Works in Source or Object form.
128
61
 
129
- 3. Grant of Patent License. Subject to the terms and conditions of
130
- this License, each Contributor hereby grants to You a perpetual,
131
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
132
- (except as stated in this section) patent license to make, have made,
133
- use, offer to sell, sell, import, and otherwise transfer the Work,
134
- where such license applies only to those patent claims licensable
135
- by such Contributor that are necessarily infringed by their
136
- Contribution(s) alone or by combination of their Contribution(s)
137
- with the Work to which such Contribution(s) was submitted. If You
138
- institute patent litigation against any entity (including a
139
- cross-claim or counterclaim in a lawsuit) alleging that the Work
140
- or a Contribution incorporated within the Work constitutes direct
141
- or contributory patent infringement, then any patent licenses
142
- granted to You under this License for that Work shall terminate
143
- as of the date such litigation is filed.
144
-
145
- 4. Redistribution. You may reproduce and distribute copies of the
146
- Work or Derivative Works thereof in any medium, with or without
147
- modifications, and in Source or Object form, provided that You
148
- meet the following conditions:
149
-
150
- (a) You must give any other recipients of the Work or
151
- Derivative Works a copy of this License; and
152
-
153
- (b) You must cause any modified files to carry prominent notices
154
- stating that You changed the files; and
155
-
156
- (c) You must retain, in the Source form of any Derivative Works
157
- that You distribute, all copyright, patent, trademark, and
158
- attribution notices from the Source form of the Work,
159
- excluding those notices that do not pertain to any part of
160
- the Derivative Works; and
161
-
162
- (d) If the Work includes a &quot;NOTICE&quot; text file as part of its
163
- distribution, then any Derivative Works that You distribute must
164
- include a readable copy of the attribution notices contained
165
- within such NOTICE file, excluding those notices that do not
166
- pertain to any part of the Derivative Works, in at least one
167
- of the following places: within a NOTICE text file distributed
168
- as part of the Derivative Works; within the Source form or
169
- documentation, if provided along with the Derivative Works; or,
170
- within a display generated by the Derivative Works, if and
171
- wherever such third-party notices normally appear. The contents
172
- of the NOTICE file are for informational purposes only and
173
- do not modify the License. You may add Your own attribution
174
- notices within Derivative Works that You distribute, alongside
175
- or as an addendum to the NOTICE text from the Work, provided
176
- that such additional attribution notices cannot be construed
177
- as modifying the License.
178
-
179
- You may add Your own copyright statement to Your modifications and
180
- may provide additional or different license terms and conditions
181
- for use, reproduction, or distribution of Your modifications, or
182
- for any such Derivative Works as a whole, provided Your use,
183
- reproduction, and distribution of the Work otherwise complies with
184
- the conditions stated in this License.
185
-
186
- 5. Submission of Contributions. Unless You explicitly state otherwise,
187
- any Contribution intentionally submitted for inclusion in the Work
188
- by You to the Licensor shall be under the terms and conditions of
189
- this License, without any additional terms or conditions.
190
- Notwithstanding the above, nothing herein shall supersede or modify
191
- the terms of any separate license agreement you may have executed
192
- with Licensor regarding such Contributions.
193
-
194
- 6. Trademarks. This License does not grant permission to use the trade
195
- names, trademarks, service marks, or product names of the Licensor,
196
- except as required for reasonable and customary use in describing the
197
- origin of the Work and reproducing the content of the NOTICE file.
198
-
199
- 7. Disclaimer of Warranty. Unless required by applicable law or
200
- agreed to in writing, Licensor provides the Work (and each
201
- Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,
202
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
203
- implied, including, without limitation, any warranties or conditions
204
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
205
- PARTICULAR PURPOSE. You are solely responsible for determining the
206
- appropriateness of using or redistributing the Work and assume any
207
- risks associated with Your exercise of permissions under this License.
208
-
209
- 8. Limitation of Liability. In no event and under no legal theory,
210
- whether in tort (including negligence), contract, or otherwise,
211
- unless required by applicable law (such as deliberate and grossly
212
- negligent acts) or agreed to in writing, shall any Contributor be
213
- liable to You for damages, including any direct, indirect, special,
214
- incidental, or consequential damages of any character arising as a
215
- result of this License or out of the use or inability to use the
216
- Work (including but not limited to damages for loss of goodwill,
217
- work stoppage, computer failure or malfunction, or any and all
218
- other commercial damages or losses), even if such Contributor
219
- has been advised of the possibility of such damages.
220
-
221
- 9. Accepting Warranty or Additional Liability. While redistributing
222
- the Work or Derivative Works thereof, You may choose to offer,
223
- and charge a fee for, acceptance of support, warranty, indemnity,
224
- or other liability obligations and/or rights consistent with this
225
- License. However, in accepting such obligations, You may act only
226
- on Your own behalf and on Your sole responsibility, not on behalf
227
- of any other Contributor, and only if You agree to indemnify,
228
- defend, and hold each Contributor harmless for any liability
229
- incurred by, or claims asserted against, such Contributor by reason
230
- of your accepting any such warranty or additional liability.
231
-
232
- END OF TERMS AND CONDITIONS
233
-
234
- APPENDIX: How to apply the Apache License to your work.
235
-
236
- To apply the Apache License to your work, attach the following
237
- boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;
238
- replaced with your own identifying information. (Don't include
239
- the brackets!) The text should be enclosed in the appropriate
240
- comment syntax for the file format. We also recommend that a
241
- file or class name and description of purpose be included on the
242
- same &quot;printed page&quot; as the copyright notice for easier
243
- identification within third-party archives.
244
-
245
- Copyright [yyyy] [name of copyright owner]
246
-
247
- Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
248
- you may not use this file except in compliance with the License.
249
- You may obtain a copy of the License at
62
+ <iframe id="search_frame"></iframe>
250
63
 
251
- http://www.apache.org/licenses/LICENSE-2.0
64
+ <div id="content"><div id='filecontents'> Apache License<br/> Version 2.0, January 2004<br/> http://www.apache.org/licenses/<br/><br/> TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION<br/><br/> 1. Definitions.<br/><br/> &quot;License&quot; shall mean the terms and conditions for use, reproduction,<br/> and distribution as defined by Sections 1 through 9 of this document.<br/><br/> &quot;Licensor&quot; shall mean the copyright owner or entity authorized by<br/> the copyright owner that is granting the License.<br/><br/> &quot;Legal Entity&quot; shall mean the union of the acting entity and all<br/> other entities that control, are controlled by, or are under common<br/> control with that entity. For the purposes of this definition,<br/> &quot;control&quot; means (i) the power, direct or indirect, to cause the<br/> direction or management of such entity, whether by contract or<br/> otherwise, or (ii) ownership of fifty percent (50%) or more of the<br/> outstanding shares, or (iii) beneficial ownership of such entity.<br/><br/> &quot;You&quot; (or &quot;Your&quot;) shall mean an individual or Legal Entity<br/> exercising permissions granted by this License.<br/><br/> &quot;Source&quot; form shall mean the preferred form for making modifications,<br/> including but not limited to software source code, documentation<br/> source, and configuration files.<br/><br/> &quot;Object&quot; form shall mean any form resulting from mechanical<br/> transformation or translation of a Source form, including but<br/> not limited to compiled object code, generated documentation,<br/> and conversions to other media types.<br/><br/> &quot;Work&quot; shall mean the work of authorship, whether in Source or<br/> Object form, made available under the License, as indicated by a<br/> copyright notice that is included in or attached to the work<br/> (an example is provided in the Appendix below).<br/><br/> &quot;Derivative Works&quot; shall mean any work, whether in Source or Object<br/> form, that is based on (or derived from) the Work and for which the<br/> editorial revisions, annotations, elaborations, or other modifications<br/> represent, as a whole, an original work of authorship. For the purposes<br/> of this License, Derivative Works shall not include works that remain<br/> separable from, or merely link (or bind by name) to the interfaces of,<br/> the Work and Derivative Works thereof.<br/><br/> &quot;Contribution&quot; shall mean any work of authorship, including<br/> the original version of the Work and any modifications or additions<br/> to that Work or Derivative Works thereof, that is intentionally<br/> submitted to Licensor for inclusion in the Work by the copyright owner<br/> or by an individual or Legal Entity authorized to submit on behalf of<br/> the copyright owner. For the purposes of this definition, &quot;submitted&quot;<br/> means any form of electronic, verbal, or written communication sent<br/> to the Licensor or its representatives, including but not limited to<br/> communication on electronic mailing lists, source code control systems,<br/> and issue tracking systems that are managed by, or on behalf of, the<br/> Licensor for the purpose of discussing and improving the Work, but<br/> excluding communication that is conspicuously marked or otherwise<br/> designated in writing by the copyright owner as &quot;Not a Contribution.&quot;<br/><br/> &quot;Contributor&quot; shall mean Licensor and any individual or Legal Entity<br/> on behalf of whom a Contribution has been received by Licensor and<br/> subsequently incorporated within the Work.<br/><br/> 2. Grant of Copyright License. Subject to the terms and conditions of<br/> this License, each Contributor hereby grants to You a perpetual,<br/> worldwide, non-exclusive, no-charge, royalty-free, irrevocable<br/> copyright license to reproduce, prepare Derivative Works of,<br/> publicly display, publicly perform, sublicense, and distribute the<br/> Work and such Derivative Works in Source or Object form.<br/><br/> 3. Grant of Patent License. Subject to the terms and conditions of<br/> this License, each Contributor hereby grants to You a perpetual,<br/> worldwide, non-exclusive, no-charge, royalty-free, irrevocable<br/> (except as stated in this section) patent license to make, have made,<br/> use, offer to sell, sell, import, and otherwise transfer the Work,<br/> where such license applies only to those patent claims licensable<br/> by such Contributor that are necessarily infringed by their<br/> Contribution(s) alone or by combination of their Contribution(s)<br/> with the Work to which such Contribution(s) was submitted. If You<br/> institute patent litigation against any entity (including a<br/> cross-claim or counterclaim in a lawsuit) alleging that the Work<br/> or a Contribution incorporated within the Work constitutes direct<br/> or contributory patent infringement, then any patent licenses<br/> granted to You under this License for that Work shall terminate<br/> as of the date such litigation is filed.<br/><br/> 4. Redistribution. You may reproduce and distribute copies of the<br/> Work or Derivative Works thereof in any medium, with or without<br/> modifications, and in Source or Object form, provided that You<br/> meet the following conditions:<br/><br/> (a) You must give any other recipients of the Work or<br/> Derivative Works a copy of this License; and<br/><br/> (b) You must cause any modified files to carry prominent notices<br/> stating that You changed the files; and<br/><br/> (c) You must retain, in the Source form of any Derivative Works<br/> that You distribute, all copyright, patent, trademark, and<br/> attribution notices from the Source form of the Work,<br/> excluding those notices that do not pertain to any part of<br/> the Derivative Works; and<br/><br/> (d) If the Work includes a &quot;NOTICE&quot; text file as part of its<br/> distribution, then any Derivative Works that You distribute must<br/> include a readable copy of the attribution notices contained<br/> within such NOTICE file, excluding those notices that do not<br/> pertain to any part of the Derivative Works, in at least one<br/> of the following places: within a NOTICE text file distributed<br/> as part of the Derivative Works; within the Source form or<br/> documentation, if provided along with the Derivative Works; or,<br/> within a display generated by the Derivative Works, if and<br/> wherever such third-party notices normally appear. The contents<br/> of the NOTICE file are for informational purposes only and<br/> do not modify the License. You may add Your own attribution<br/> notices within Derivative Works that You distribute, alongside<br/> or as an addendum to the NOTICE text from the Work, provided<br/> that such additional attribution notices cannot be construed<br/> as modifying the License.<br/><br/> You may add Your own copyright statement to Your modifications and<br/> may provide additional or different license terms and conditions<br/> for use, reproduction, or distribution of Your modifications, or<br/> for any such Derivative Works as a whole, provided Your use,<br/> reproduction, and distribution of the Work otherwise complies with<br/> the conditions stated in this License.<br/><br/> 5. Submission of Contributions. Unless You explicitly state otherwise,<br/> any Contribution intentionally submitted for inclusion in the Work<br/> by You to the Licensor shall be under the terms and conditions of<br/> this License, without any additional terms or conditions.<br/> Notwithstanding the above, nothing herein shall supersede or modify<br/> the terms of any separate license agreement you may have executed<br/> with Licensor regarding such Contributions.<br/><br/> 6. Trademarks. This License does not grant permission to use the trade<br/> names, trademarks, service marks, or product names of the Licensor,<br/> except as required for reasonable and customary use in describing the<br/> origin of the Work and reproducing the content of the NOTICE file.<br/><br/> 7. Disclaimer of Warranty. Unless required by applicable law or<br/> agreed to in writing, Licensor provides the Work (and each<br/> Contributor provides its Contributions) on an &quot;AS IS&quot; BASIS,<br/> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or<br/> implied, including, without limitation, any warranties or conditions<br/> of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A<br/> PARTICULAR PURPOSE. You are solely responsible for determining the<br/> appropriateness of using or redistributing the Work and assume any<br/> risks associated with Your exercise of permissions under this License.<br/><br/> 8. Limitation of Liability. In no event and under no legal theory,<br/> whether in tort (including negligence), contract, or otherwise,<br/> unless required by applicable law (such as deliberate and grossly<br/> negligent acts) or agreed to in writing, shall any Contributor be<br/> liable to You for damages, including any direct, indirect, special,<br/> incidental, or consequential damages of any character arising as a<br/> result of this License or out of the use or inability to use the<br/> Work (including but not limited to damages for loss of goodwill,<br/> work stoppage, computer failure or malfunction, or any and all<br/> other commercial damages or losses), even if such Contributor<br/> has been advised of the possibility of such damages.<br/><br/> 9. Accepting Warranty or Additional Liability. While redistributing<br/> the Work or Derivative Works thereof, You may choose to offer,<br/> and charge a fee for, acceptance of support, warranty, indemnity,<br/> or other liability obligations and/or rights consistent with this<br/> License. However, in accepting such obligations, You may act only<br/> on Your own behalf and on Your sole responsibility, not on behalf<br/> of any other Contributor, and only if You agree to indemnify,<br/> defend, and hold each Contributor harmless for any liability<br/> incurred by, or claims asserted against, such Contributor by reason<br/> of your accepting any such warranty or additional liability.<br/><br/> END OF TERMS AND CONDITIONS<br/><br/> APPENDIX: How to apply the Apache License to your work.<br/><br/> To apply the Apache License to your work, attach the following<br/> boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;<br/> replaced with your own identifying information. (Don&#39;t include<br/> the brackets!) The text should be enclosed in the appropriate<br/> comment syntax for the file format. We also recommend that a<br/> file or class name and description of purpose be included on the<br/> same &quot;printed page&quot; as the copyright notice for easier<br/> identification within third-party archives.<br/><br/> Copyright [yyyy] [name of copyright owner]<br/><br/> Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);<br/> you may not use this file except in compliance with the License.<br/> You may obtain a copy of the License at<br/><br/> http://www.apache.org/licenses/LICENSE-2.0<br/><br/> Unless required by applicable law or agreed to in writing, software<br/> distributed under the License is distributed on an &quot;AS IS&quot; BASIS,<br/> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br/> See the License for the specific language governing permissions and<br/> limitations under the License.</div></div>
252
65
 
253
- Unless required by applicable law or agreed to in writing, software
254
- distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
255
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
256
- See the License for the specific language governing permissions and
257
- limitations under the License.</pre></div></div>
258
-
259
66
  <div id="footer">
260
- Generated on Sun Oct 23 22:43:16 2011 by
67
+ Generated on Sun Mar 20 12:44:16 2016 by
261
68
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
262
- 0.7.3 (ruby-1.9.2).
69
+ 0.8.7.6 (ruby-2.2.1).
263
70
  </div>
264
71
 
265
72
  </body>
@@ -6,19 +6,21 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; Documentation by YARD 0.8.7.6
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
14
 
15
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
18
19
  relpath = '';
19
- if (relpath != '') relpath += '/';
20
+ framesUrl = "frames.html#!file.README.html";
20
21
  </script>
21
22
 
23
+
22
24
  <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
25
 
24
26
  <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
@@ -26,39 +28,44 @@
26
28
 
27
29
  </head>
28
30
  <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
31
  <div id="header">
34
32
  <div id="menu">
35
33
 
36
- <a href="_index.html" title="Index">Index</a> &raquo;
34
+ <a href="_index.html">Index</a> &raquo;
37
35
  <span class="title">File: README</span>
38
36
 
39
-
37
+
40
38
  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
39
  </div>
42
40
 
43
41
  <div id="search">
44
42
 
45
- <a id="class_list_link" href="#">Class List</a>
43
+ <a class="full_list_link" id="class_list_link"
44
+ href="class_list.html">
45
+ Class List
46
+ </a>
46
47
 
47
- <a id="method_list_link" href="#">Method List</a>
48
+ <a class="full_list_link" id="method_list_link"
49
+ href="method_list.html">
50
+ Method List
51
+ </a>
48
52
 
49
- <a id="file_list_link" href="#">File List</a>
53
+ <a class="full_list_link" id="file_list_link"
54
+ href="file_list.html">
55
+ File List
56
+ </a>
50
57
 
51
58
  </div>
52
59
  <div class="clear"></div>
53
60
  </div>
54
-
61
+
55
62
  <iframe id="search_frame"></iframe>
56
-
63
+
57
64
  <div id="content"><div id='filecontents'><h1 id="closure-script">Closure Script</h1>
58
65
 
59
66
  <p>A development environment for Google Closure Tools.</p>
60
67
 
61
- <p>Licensed under the Apache License, Version 2.0 (the “License”);
68
+ <p>Licensed under the Apache License, Version 2.0 (the “License”);
62
69
  <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a></p>
63
70
 
64
71
  <h1 id="installing">Installing</h1>
@@ -74,47 +81,47 @@ under Windows. Mac OSX and most Linux will have a compatible Ruby by default.</
74
81
 
75
82
  <h3 id="step-1-download-to-a-new-folder">Step 1: Download to a new folder</h3>
76
83
 
77
- <pre class="code">cd ~/empty-dir
78
- curl -LO https://github.com/downloads/dturnbull/closure-script/closure-1.4.0.jar
79
- </pre>
84
+ <pre class="code ruby"><code class="ruby">cd ~/empty-dir
85
+ curl -LO https://github.com/downloads/AE9RB/closure-script/closure-1.4.2.jar
86
+ </code></pre>
80
87
 
81
88
  <h3 id="step-2-start-server-from-the-new-folder">Step 2: Start server from the new folder</h3>
82
89
 
83
- <pre class="code">java -jar closure-1.4.0.jar
84
- </pre>
90
+ <pre class="code ruby"><code class="ruby">java -jar closure-1.4.2.jar
91
+ </code></pre>
85
92
 
86
93
  <h3 id="step-3-open-a-web-browser">Step 3: Open a web browser</h3>
87
94
 
88
- <pre class="code">http://localhost:8080/
89
- </pre>
95
+ <pre class="code ruby"><code class="ruby">http://localhost:8080/
96
+ </code></pre>
90
97
 
91
98
  <h2 id="ruby-gem">Ruby (.gem)</h2>
92
99
 
93
100
  <h3 id="step-1-install-the-gem">Step 1: Install the gem</h3>
94
101
 
95
- <pre class="code"><span class='id gem'>gem</span> <span class='id install'>install</span> <span class='id closure'>closure</span>
96
- </pre>
102
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='id identifier rubyid_install'>install</span> <span class='id identifier rubyid_closure'>closure</span>
103
+ </code></pre>
97
104
 
98
105
  <h3 id="step-2-start-server-from-a-new-folder">Step 2: Start server from a new folder</h3>
99
106
 
100
- <pre class="code"><span class='id cd'>cd</span> <span class='op'>~</span><span class='tstring'><span class='regexp_beg'>/</span><span class='regexp_end'>empty-dir
101
- </span></span></pre>
107
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_cd'>cd</span> <span class='op'>~</span><span class='tstring'><span class='regexp_beg'>/</span><span class='regexp_end'>empty-dir
108
+ </span></span></code></pre>
102
109
 
103
110
  <h3 id="step-3-open-a-web-browser-1">Step 3: Open a web browser</h3>
104
111
 
105
- <pre class="code">http://localhost:8080/
106
- </pre>
112
+ <pre class="code ruby"><code class="ruby">http://localhost:8080/
113
+ </code></pre>
107
114
 
108
115
  <h1 id="the-closure-script-method">The Closure Script Method</h1>
109
116
 
110
117
  <p>When you start the server for the first time in an empty folder, the home page
111
- will prompt you to install scaffolding. This includes three example projects to
118
+ will prompt you to install scaffolding. This includes three example projects to
112
119
  demonstrate soy, modules, and unobtrusive markup. Dissecting and working with
113
120
  these examples is the fast track to understanding The Closure Script Method.</p>
114
121
 
115
122
  <h2 id="the-server">The Server</h2>
116
123
 
117
- <p>Closure Script is a high-performance, multi-threaded web application engineered
124
+ <p>Closure Script is a high-performance, multi-threaded web application engineered
118
125
  exclusively for the needs of Google Closure Javascript development.</p>
119
126
 
120
127
  <p>You will be freed from the command line. All error output from the compiler
@@ -131,11 +138,11 @@ Ruby developers will recognize that Closure Script is Rack middleware. This mak
131
138
  to include the Closure Script build tool in a Rails application. If you’re not developing a
132
139
  Ruby application, your <code>config.ru</code> will probably never be more complex than the following:</p>
133
140
 
134
- <pre class="code"><span class='id require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>closure</span><span class='tstring_end'>'</span></span>
135
- <span class='const'>Closure</span><span class='period'>.</span><span class='id add_source'>add_source</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/</span><span class='tstring_end'>'</span></span>
136
- <span class='id use'>use</span> <span class='const'>Closure</span><span class='op'>::</span><span class='const'>Middleware</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>index</span><span class='tstring_end'>'</span></span>
137
- <span class='id run'>run</span> <span class='const'>Rack</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id new'>new</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.</span><span class='tstring_end'>'</span></span>
138
- </pre>
141
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>closure</span><span class='tstring_end'>&#39;</span></span>
142
+ <span class='const'>Closure</span><span class='period'>.</span><span class='id identifier rubyid_add_source'>add_source</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/</span><span class='tstring_end'>&#39;</span></span>
143
+ <span class='id identifier rubyid_use'>use</span> <span class='const'>Closure</span><span class='op'>::</span><span class='const'>Middleware</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>index</span><span class='tstring_end'>&#39;</span></span>
144
+ <span class='id identifier rubyid_run'>run</span> <span class='const'>Rack</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.</span><span class='tstring_end'>&#39;</span></span>
145
+ </code></pre>
139
146
 
140
147
  <p>The add_source command may be duplicated for each source Javascript folder you want to
141
148
  serve. The first argument is the local filesystem path, the second is the mount point
@@ -159,11 +166,11 @@ as they are served. Scripts may also render other Scripts and pass variables if
159
166
  need that complexity. Scripts default to a MIME type of text/html so <code>demo.erb</code> is
160
167
  the same as <code>demo.html.erb</code>.</p>
161
168
 
162
- <pre class="code">&lt;html&gt;
169
+ <pre class="code ruby"><code class="ruby">&lt;html&gt;
163
170
  &lt;head&gt;
164
- &lt;script src='compiler.js?&lt;%= query_string %&gt;'&gt;&lt;/script&gt;
171
+ &lt;script src=&#39;compiler.js?&lt;%= query_string %&gt;&#39;&gt;&lt;/script&gt;
165
172
  &lt;/head&gt;
166
- </pre>
173
+ </code></pre>
167
174
 
168
175
  <h3 id="compiler-scripts">Compiler Scripts</h3>
169
176
 
@@ -182,7 +189,7 @@ even when working with modules.</p>
182
189
  <p>A very simple compiler.js.erb is as follows. Check the scaffold for practical examples
183
190
  that use the query string.</p>
184
191
 
185
- <pre class="code">&lt;%
192
+ <pre class="code ruby"><code class="ruby">&lt;%
186
193
  args = %w{
187
194
  --compilation_level ADVANCED_OPTIMIZATIONS
188
195
  --js_output_file compiler_build.js
@@ -190,7 +197,7 @@ args = %w{
190
197
  }
191
198
  @response = goog.compile(args).to_response
192
199
  %&gt;
193
- </pre>
200
+ </code></pre>
194
201
 
195
202
  <h3 id="testing">Testing</h3>
196
203
 
@@ -199,21 +206,21 @@ browsers are not allowed to. The <code>alltests.js</code> file in Closure Librar
199
206
  generated by a program that scans the filesystem. Here’s a replacement in
200
207
  Closure Script so that a manual build step never has to be executed again:</p>
201
208
 
202
- <pre class="code">&lt;% all_test_files = Dir.glob expand_path '**/*_test.html'
209
+ <pre class="code ruby"><code class="ruby">&lt;% all_test_files = Dir.glob expand_path &#39;**/*_test.html&#39;
203
210
  json_strings = all_test_files.map { |x| relative_src(x).dump }
204
- -%&gt;var _allTests = [&lt;%= json_strings.join(',') %&gt;];
205
- </pre>
211
+ -%&gt;var _allTests = [&lt;%= json_strings.join(&#39;,&#39;) %&gt;];
212
+ </code></pre>
206
213
 
207
214
  <p>Since all of Ruby is at your disposal, you could even pull fixture data from SQL
208
215
  or a web service. Perhaps a fixture refresh happens when the developer pushes a
209
216
  form button. The svn.erb tool is a complex example that uses threads and a
210
217
  background process. You’re only limited by your imagination.</p>
211
218
  </div></div>
212
-
219
+
213
220
  <div id="footer">
214
- Generated on Sun Oct 23 22:43:16 2011 by
221
+ Generated on Sun Mar 20 12:44:16 2016 by
215
222
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
216
- 0.7.3 (ruby-1.9.2).
223
+ 0.8.7.6 (ruby-2.2.1).
217
224
  </div>
218
225
 
219
226
  </body>
@@ -8,18 +8,23 @@
8
8
 
9
9
  <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
10
10
 
11
-
11
+
12
12
 
13
13
  <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
14
14
 
15
15
  <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
16
 
17
-
17
+
18
+ <title>File List</title>
18
19
  <base id="base_target" target="_parent" />
19
20
  </head>
20
21
  <body>
21
22
  <script type="text/javascript" charset="utf-8">
22
- if (window.top.frames.main) {
23
+ var hasFrames = false;
24
+ try {
25
+ hasFrames = window.top.frames.main ? true : false;
26
+ } catch (e) { }
27
+ if (hasFrames) {
23
28
  document.getElementById('base_target').target = 'main';
24
29
  document.body.className = 'frames';
25
30
  }
@@ -28,22 +33,28 @@
28
33
  <h1 id="full_list_header">File List</h1>
29
34
  <div id="nav">
30
35
 
31
- <a target="_self" href="class_list.html">Classes</a>
36
+ <span><a target="_self" href="class_list.html">
37
+ Classes
38
+ </a></span>
32
39
 
33
- <a target="_self" href="method_list.html">Methods</a>
40
+ <span><a target="_self" href="method_list.html">
41
+ Methods
42
+ </a></span>
34
43
 
35
- <a target="_self" href="file_list.html">Files</a>
44
+ <span><a target="_self" href="file_list.html">
45
+ Files
46
+ </a></span>
36
47
 
37
48
  </div>
38
49
  <div id="search">Search: <input type="text" /></div>
39
50
 
40
- <ul id="full_list" class="files">
51
+ <ul id="full_list" class="file">
41
52
 
42
53
 
43
- <li class="r1"><a href="index.html" title="README">README</a></li>
54
+ <li class="r1"><span class="object_link"><a href="index.html" title="README">README</a></a></li>
44
55
 
45
56
 
46
- <li class="r2"><a href="file.LICENSE.html" title="LICENSE">LICENSE</a></li>
57
+ <li class="r2"><span class="object_link"><a href="file.LICENSE.html" title="LICENSE">LICENSE</a></a></li>
47
58
 
48
59
 
49
60
  </ul>
@@ -4,10 +4,23 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
  <head>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
- <title>Documentation by YARD 0.7.3</title>
7
+ <title>Documentation by YARD 0.8.7.6</title>
8
8
  </head>
9
- <frameset cols="20%,*">
10
- <frame name="list" src="class_list.html" />
11
- <frame name="main" src="index.html" />
12
- </frameset>
9
+ <script type="text/javascript" charset="utf-8">
10
+ window.onload = function() {
11
+ var match = unescape(window.location.hash).match(/^#!(.+)/);
12
+ var name = match ? match[1] : 'index.html';
13
+ name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
14
+ document.writeln('<frameset cols="20%,*">' +
15
+ '<frame name="list" src="class_list.html" />' +
16
+ '<frame name="main" src="' + escape(name) + '" />' +
17
+ '</frameset>');
18
+ }
19
+ </script>
20
+ <noscript>
21
+ <frameset cols="20%,*">
22
+ <frame name="list" src="class_list.html" />
23
+ <frame name="main" src="index.html" />
24
+ </frameset>
25
+ </noscript>
13
26
  </html>