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
  Class: Closure::ShowExceptions
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
- relpath = '..';
19
- if (relpath != '') relpath += '/';
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!Closure/ShowExceptions.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,36 +28,41 @@
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">Index (S)</a> &raquo;
34
+ <a href="../_index.html">Index (S)</a> &raquo;
37
35
  <span class='title'><span class='object_link'><a href="../Closure.html" title="Closure (class)">Closure</a></span></span>
38
36
  &raquo;
39
37
  <span class="title">ShowExceptions</span>
40
38
 
41
-
39
+
42
40
  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
41
  </div>
44
42
 
45
43
  <div id="search">
46
44
 
47
- <a id="class_list_link" href="#">Class List</a>
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../class_list.html">
47
+ Class List
48
+ </a>
48
49
 
49
- <a id="method_list_link" href="#">Method List</a>
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../method_list.html">
52
+ Method List
53
+ </a>
50
54
 
51
- <a id="file_list_link" href="#">File List</a>
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../file_list.html">
57
+ File List
58
+ </a>
52
59
 
53
60
  </div>
54
61
  <div class="clear"></div>
55
62
  </div>
56
-
63
+
57
64
  <iframe id="search_frame"></iframe>
58
-
65
+
59
66
  <div id="content"><h1>Class: Closure::ShowExceptions
60
67
 
61
68
 
@@ -94,18 +101,16 @@
94
101
 
95
102
  <h2>Overview</h2><div class="docstring">
96
103
  <div class="discussion">
97
- <p>
98
- This is Rack middleware to show Ruby exceptions. It is automatically
104
+
105
+ <p>This is Rack middleware to show Ruby exceptions. It is automatically
99
106
  loaded when using Closure::Middleware. It works very much like
100
107
  Rack::ShowExceptions but will use the Javascript console when it can detect
101
- the request was for javascript.
102
- </p>
103
- <p>
104
- If Javascript detection isn&#8217;t working because you&#8217;re not using
105
- .js.erb for the extension, add this as the first line of your script:
106
- </p>
107
- <pre class="code">
108
- &lt;% @response.headers['Content-Type'] = 'application/javascript' %&gt;</pre>
108
+ the request was for javascript.</p>
109
+
110
+ <p>If Javascript detection isn&#39;t working because you&#39;re not using
111
+ .js.erb for the extension, add this as the first line of your script:</p>
112
+
113
+ <pre class="code ruby"><code class="ruby">&lt;% @response.headers[&#39;Content-Type&#39;] = &#39;application/javascript&#39; %&gt;</code></pre>
109
114
 
110
115
 
111
116
  </div>
@@ -118,6 +123,8 @@ If Javascript detection isn&#8217;t working because you&#8217;re not using
118
123
 
119
124
 
120
125
 
126
+
127
+
121
128
 
122
129
  <h2>
123
130
  Instance Method Summary
@@ -140,6 +147,7 @@ If Javascript detection isn&#8217;t working because you&#8217;re not using
140
147
 
141
148
 
142
149
 
150
+
143
151
 
144
152
 
145
153
  <span class="summary_desc"><div class='inline'></div></span>
@@ -156,6 +164,7 @@ If Javascript detection isn&#8217;t working because you&#8217;re not using
156
164
 
157
165
  </span>
158
166
 
167
+
159
168
  <span class="note title constructor">constructor</span>
160
169
 
161
170
 
@@ -165,9 +174,8 @@ If Javascript detection isn&#8217;t working because you&#8217;re not using
165
174
 
166
175
 
167
176
 
168
- <span class="summary_desc"><div class='inline'><p>
169
- A new instance of ShowExceptions.
170
- </p>
177
+ <span class="summary_desc"><div class='inline'>
178
+ <p>A new instance of ShowExceptions.</p>
171
179
  </div></span>
172
180
 
173
181
  </li>
@@ -180,17 +188,18 @@ A new instance of ShowExceptions.
180
188
  <h2>Constructor Details</h2>
181
189
 
182
190
  <div class="method_details first">
183
- <p class="signature first" id="initialize-instance_method">
191
+ <h3 class="signature first" id="initialize-instance_method">
184
192
 
185
193
  - (<tt><span class='object_link'><a href="" title="Closure::ShowExceptions (class)">ShowExceptions</a></span></tt>) <strong>initialize</strong>(app)
186
194
 
187
195
 
188
196
 
189
- </p><div class="docstring">
197
+
198
+
199
+ </h3><div class="docstring">
190
200
  <div class="discussion">
191
- <p>
192
- A new instance of ShowExceptions
193
- </p>
201
+
202
+ <p>Returns a new instance of ShowExceptions</p>
194
203
 
195
204
 
196
205
  </div>
@@ -204,15 +213,15 @@ A new instance of ShowExceptions
204
213
  <pre class="lines">
205
214
 
206
215
 
207
- 81
208
- 82
209
- 83</pre>
216
+ 84
217
+ 85
218
+ 86</pre>
210
219
  </td>
211
220
  <td>
212
- <pre class="code"><span class="info file"># File 'lib/closure/show_exceptions.rb', line 81</span>
221
+ <pre class="code"><span class="info file"># File 'lib/closure/show_exceptions.rb', line 84</span>
213
222
 
214
- <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id app'>app</span><span class='rparen'>)</span>
215
- <span class='ivar'>@app</span> <span class='op'>=</span> <span class='const'>Html</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='const'>Javascript</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id app'>app</span><span class='rparen'>)</span><span class='rparen'>)</span>
223
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_app'>app</span><span class='rparen'>)</span>
224
+ <span class='ivar'>@app</span> <span class='op'>=</span> <span class='const'>Html</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>Javascript</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_app'>app</span><span class='rparen'>)</span><span class='rparen'>)</span>
216
225
  <span class='kw'>end</span></pre>
217
226
  </td>
218
227
  </tr>
@@ -224,30 +233,32 @@ A new instance of ShowExceptions
224
233
 
225
234
  <div id="instance_method_details" class="method_details_list">
226
235
  <h2>Instance Method Details</h2>
227
-
236
+
228
237
 
229
238
  <div class="method_details first">
230
- <p class="signature first" id="call-instance_method">
239
+ <h3 class="signature first" id="call-instance_method">
231
240
 
232
241
  - <strong>call</strong>(env)
233
242
 
234
243
 
235
244
 
236
- </p><table class="source_code">
245
+
246
+
247
+ </h3><table class="source_code">
237
248
  <tr>
238
249
  <td>
239
250
  <pre class="lines">
240
251
 
241
252
 
242
- 85
243
- 86
244
- 87</pre>
253
+ 88
254
+ 89
255
+ 90</pre>
245
256
  </td>
246
257
  <td>
247
- <pre class="code"><span class="info file"># File 'lib/closure/show_exceptions.rb', line 85</span>
258
+ <pre class="code"><span class="info file"># File 'lib/closure/show_exceptions.rb', line 88</span>
248
259
 
249
- <span class='kw'>def</span> <span class='id call'>call</span><span class='lparen'>(</span><span class='id env'>env</span><span class='rparen'>)</span>
250
- <span class='ivar'>@app</span><span class='period'>.</span><span class='id call'>call</span><span class='lparen'>(</span><span class='id env'>env</span><span class='rparen'>)</span>
260
+ <span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
261
+ <span class='ivar'>@app</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
251
262
  <span class='kw'>end</span></pre>
252
263
  </td>
253
264
  </tr>
@@ -257,11 +268,11 @@ A new instance of ShowExceptions
257
268
  </div>
258
269
 
259
270
  </div>
260
-
271
+
261
272
  <div id="footer">
262
- Generated on Sun Oct 23 22:43:17 2011 by
273
+ Generated on Sun Mar 20 12:44:17 2016 by
263
274
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
264
- 0.7.3 (ruby-1.9.2).
275
+ 0.8.7.6 (ruby-2.2.1).
265
276
  </div>
266
277
 
267
278
  </body>