closure 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +12 -12
- data/closure-compiler/README.md +503 -0
- data/closure-compiler/compiler.jar +0 -0
- data/closure-templates/SoyToJsSrcCompiler.jar +0 -0
- data/closure-templates/soyutils.js +1593 -469
- data/closure-templates/soyutils_usegoog.js +1105 -223
- data/docs/SCRIPT.md +5 -5
- data/docs/closure/Closure/BeanShell.html +63 -54
- data/docs/closure/Closure/Compiler/Compilation.html +124 -107
- data/docs/closure/Closure/Compiler/Error.html +28 -21
- data/docs/closure/Closure/Compiler.html +81 -76
- data/docs/closure/Closure/FileResponse.html +113 -98
- data/docs/closure/Closure/Goog.html +264 -253
- data/docs/closure/Closure/Middleware.html +66 -55
- data/docs/closure/Closure/Script/NotFound.html +28 -21
- data/docs/closure/Closure/Script/RenderStackOverflow.html +28 -21
- data/docs/closure/Closure/Script.html +212 -203
- data/docs/closure/Closure/Server.html +100 -90
- data/docs/closure/Closure/ShowExceptions.html +63 -52
- data/docs/closure/Closure/Sources.html +254 -246
- data/docs/closure/Closure/Templates/Error.html +28 -21
- data/docs/closure/Closure/Templates.html +88 -80
- data/docs/closure/Closure.html +181 -163
- data/docs/closure/_index.html +42 -38
- data/docs/closure/class_list.html +19 -8
- data/docs/closure/css/full_list.css +4 -2
- data/docs/closure/css/style.css +68 -51
- data/docs/closure/file.LICENSE.html +24 -217
- data/docs/closure/file.README.html +54 -47
- data/docs/closure/file_list.html +20 -9
- data/docs/closure/frames.html +18 -5
- data/docs/closure/index.html +54 -47
- data/docs/closure/js/app.js +60 -46
- data/docs/closure/js/full_list.js +24 -10
- data/docs/closure/js/jquery.js +4 -16
- data/docs/closure/method_list.html +74 -175
- data/docs/closure/top-level-namespace.html +29 -20
- data/lib/closure/compiler.rb +32 -42
- data/lib/closure/goog.rb +12 -12
- data/lib/closure/server.rb +6 -6
- data/lib/closure/show_exceptions.rb +15 -12
- data/lib/closure/version.rb +1 -1
- data/scripts/git.erb +183 -0
- data/scripts/hello/compiler.js.erb +2 -2
- data/scripts/hello/hello.js +1 -1
- data/scripts/hello/index.erb +6 -0
- data/scripts/hello/legume.js +12 -7
- data/scripts/index.erb +15 -13
- data/scripts/modules/compiler.js.erb +3 -3
- data/scripts/modules/compiler_build.js +3 -3
- data/scripts/modules/compiler_build.map +13 -12159
- data/scripts/modules/compiler_build_api.js +1 -1
- data/scripts/modules/compiler_build_app.js +74 -71
- data/scripts/modules/compiler_build_settings.js +2 -2
- data/scripts/modules/index.erb +5 -3
- data/scripts/modules/settings.js +1 -1
- data/scripts/svn.erb +11 -11
- data/scripts/welcome.erb +7 -6
- metadata +65 -81
- data/closure-compiler/README +0 -292
- data/scripts/hello/compiler_build.js +0 -5
- data/scripts/hello/compiler_build.map +0 -748
- data/scripts/hello/compiler_debug.js +0 -119
- data/scripts/modules/compiler_debug.js +0 -6
- data/scripts/modules/compiler_debug_api.js +0 -11
- data/scripts/modules/compiler_debug_app.js +0 -2414
- data/scripts/modules/compiler_debug_settings.js +0 -39
- data/scripts/rails/index.erb +0 -46
- data/scripts/rails/rails_ujs.js +0 -96
@@ -6,19 +6,21 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Closure::ShowExceptions
|
8
8
|
|
9
|
-
— Documentation by YARD 0.7.
|
9
|
+
— 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"
|
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"
|
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
|
-
|
19
|
-
|
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> »
|
34
|
+
<a href="../_index.html">Index (S)</a> »
|
37
35
|
<span class='title'><span class='object_link'><a href="../Closure.html" title="Closure (class)">Closure</a></span></span>
|
38
36
|
»
|
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
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
48
49
|
|
49
|
-
<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
|
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
|
-
|
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
|
-
|
103
|
-
<p>
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
<pre class="code">
|
108
|
-
<% @response.headers['Content-Type'] = 'application/javascript' %></pre>
|
108
|
+
the request was for javascript.</p>
|
109
|
+
|
110
|
+
<p>If Javascript detection isn't working because you'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"><% @response.headers['Content-Type'] = 'application/javascript' %></code></pre>
|
109
114
|
|
110
115
|
|
111
116
|
</div>
|
@@ -118,6 +123,8 @@ If Javascript detection isn’t working because you’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’t working because you’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’t working because you’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’t working because you’re not using
|
|
165
174
|
|
166
175
|
|
167
176
|
|
168
|
-
<span class="summary_desc"><div class='inline'
|
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
|
-
<
|
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
|
-
|
197
|
+
|
198
|
+
|
199
|
+
</h3><div class="docstring">
|
190
200
|
<div class="discussion">
|
191
|
-
|
192
|
-
|
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
|
-
|
208
|
-
|
209
|
-
|
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
|
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
|
215
|
-
<span class='ivar'>@app</span> <span class='op'>=</span> <span class='const'>Html</span><span class='period'>.</span><span class='id
|
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
|
-
<
|
239
|
+
<h3 class="signature first" id="call-instance_method">
|
231
240
|
|
232
241
|
- <strong>call</strong>(env)
|
233
242
|
|
234
243
|
|
235
244
|
|
236
|
-
|
245
|
+
|
246
|
+
|
247
|
+
</h3><table class="source_code">
|
237
248
|
<tr>
|
238
249
|
<td>
|
239
250
|
<pre class="lines">
|
240
251
|
|
241
252
|
|
242
|
-
|
243
|
-
|
244
|
-
|
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
|
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
|
250
|
-
<span class='ivar'>@app</span><span class='period'>.</span><span class='id
|
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
|
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.
|
275
|
+
0.8.7.6 (ruby-2.2.1).
|
265
276
|
</div>
|
266
277
|
|
267
278
|
</body>
|