rubyrun 0.9.0-mswin32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +13 -0
- data/README +77 -0
- data/Rakefile +241 -0
- data/bin/confgure +2 -0
- data/docs/rubyrun-0.9.0.htm +6344 -0
- data/docs/rubyrun-0.9.0.pdf +0 -0
- data/docs/rubyrun-0.9.0_files/colorschememapping.xml +2 -0
- data/docs/rubyrun-0.9.0_files/filelist.xml +29 -0
- data/docs/rubyrun-0.9.0_files/header.htm +141 -0
- data/docs/rubyrun-0.9.0_files/image001.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image002.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image003.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image004.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image005.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image006.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image007.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image008.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image009.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image010.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image011.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image012.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image013.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image014.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image015.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image016.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image017.png +0 -0
- data/docs/rubyrun-0.9.0_files/image018.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image019.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image020.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image021.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image022.png +0 -0
- data/docs/rubyrun-0.9.0_files/themedata.thmx +0 -0
- data/etc/rubyrun_opts.yml +132 -0
- data/ext/extconf.rb +4 -0
- data/ext/rubyrunnative__.bundle +0 -0
- data/ext/rubyrunnative__.c +154 -0
- data/ext/rubyrunnative__.def +2 -0
- data/ext/rubyrunnative__.h +36 -0
- data/ext/rubyrunnative__.so +0 -0
- data/ext/rubyrunnative__linux.so +0 -0
- data/html/classes/Module.html +174 -0
- data/html/classes/Object.html +151 -0
- data/html/classes/RubyRunBufferMgr__.html +182 -0
- data/html/classes/RubyRunCommander__.html +578 -0
- data/html/classes/RubyRunDad__.html +144 -0
- data/html/classes/RubyRunGlobals.html +248 -0
- data/html/classes/RubyRunHTMLWriter/RubyRunHTMLDevice.html +157 -0
- data/html/classes/RubyRunHTMLWriter.html +186 -0
- data/html/classes/RubyRunHTML__.html +198 -0
- data/html/classes/RubyRunInitializer__.html +821 -0
- data/html/classes/RubyRunInstrumentor__.html +576 -0
- data/html/classes/RubyRunMonitor__.html +298 -0
- data/html/classes/RubyRunRSS.html +302 -0
- data/html/classes/RubyRunReport__.html +294 -0
- data/html/classes/RubyRunTracer__.html +253 -0
- data/html/classes/RubyRunUtils__.html +376 -0
- data/html/created.rid +1 -0
- data/html/files/LICENSE.html +119 -0
- data/html/files/README.html +197 -0
- data/html/files/lib/rubyrun/rubyrun_buffer_mgr___rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_commander___rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_dad___rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_globals_rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_html___rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_html_writer___rb.html +108 -0
- data/html/files/lib/rubyrun/rubyrun_initializer___rb.html +112 -0
- data/html/files/lib/rubyrun/rubyrun_instrumentor___rb.html +116 -0
- data/html/files/lib/rubyrun/rubyrun_monitor___rb.html +116 -0
- data/html/files/lib/rubyrun/rubyrun_rb.html +121 -0
- data/html/files/lib/rubyrun/rubyrun_report___rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_rss___rb.html +108 -0
- data/html/files/lib/rubyrun/rubyrun_tracer___rb.html +110 -0
- data/html/files/lib/rubyrun/rubyrun_utils___rb.html +108 -0
- data/html/files/lib/rubyrunm_rb.html +116 -0
- data/html/fr_class_index.html +42 -0
- data/html/fr_file_index.html +43 -0
- data/html/fr_method_index.html +96 -0
- data/html/index.html +24 -0
- data/html/rdoc-style.css +208 -0
- data/lib/rubyrun/rubyrun.rb +78 -0
- data/lib/rubyrun/rubyrun_buffer_mgr__.rb +49 -0
- data/lib/rubyrun/rubyrun_commander__.rb +196 -0
- data/lib/rubyrun/rubyrun_dad__.rb +35 -0
- data/lib/rubyrun/rubyrun_globals.rb +51 -0
- data/lib/rubyrun/rubyrun_html__.rb +136 -0
- data/lib/rubyrun/rubyrun_html_writer__.rb +64 -0
- data/lib/rubyrun/rubyrun_initializer__.rb +286 -0
- data/lib/rubyrun/rubyrun_instrumentor__.rb +226 -0
- data/lib/rubyrun/rubyrun_monitor__.rb +237 -0
- data/lib/rubyrun/rubyrun_report__.rb +109 -0
- data/lib/rubyrun/rubyrun_rss__.rb +97 -0
- data/lib/rubyrun/rubyrun_tracer__.rb +79 -0
- data/lib/rubyrun/rubyrun_utils__.rb +98 -0
- data/lib/rubyrun/rubyrunnative__.so +0 -0
- data/lib/rubyrunm.rb +10 -0
- metadata +149 -0
@@ -0,0 +1,376 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Module: RubyRunUtils__</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">RubyRunUtils__</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/rubyrun/rubyrun_utils___rb.html">
|
59
|
+
lib/rubyrun/rubyrun_utils__.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
</table>
|
66
|
+
</div>
|
67
|
+
<!-- banner header -->
|
68
|
+
|
69
|
+
<div id="bodyContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<div id="contextContent">
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="method-list">
|
80
|
+
<h3 class="section-bar">Methods</h3>
|
81
|
+
|
82
|
+
<div class="name-list">
|
83
|
+
<a href="#M000029">env_var_exists?</a>
|
84
|
+
<a href="#M000030">fatal_exit</a>
|
85
|
+
<a href="#M000028">get_caller_detail</a>
|
86
|
+
<a href="#M000027">get_thread_id</a>
|
87
|
+
<a href="#M000032">is_application_controller</a>
|
88
|
+
<a href="#M000033">is_in?</a>
|
89
|
+
<a href="#M000031">is_rails_controller?</a>
|
90
|
+
<a href="#M000034">return_method_name</a>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if includes -->
|
98
|
+
<div id="includes">
|
99
|
+
<h3 class="section-bar">Included Modules</h3>
|
100
|
+
|
101
|
+
<div id="includes-list">
|
102
|
+
<span class="include-name"><a href="RubyRunGlobals.html">RubyRunGlobals</a></span>
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
|
106
|
+
<div id="section">
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
<!-- if method_list -->
|
116
|
+
<div id="methods">
|
117
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
118
|
+
|
119
|
+
<div id="method-M000029" class="method-detail">
|
120
|
+
<a name="M000029"></a>
|
121
|
+
|
122
|
+
<div class="method-heading">
|
123
|
+
<a href="#M000029" class="method-signature">
|
124
|
+
<span class="method-name">env_var_exists?</span><span class="method-args">(var)</span>
|
125
|
+
</a>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
<div class="method-description">
|
129
|
+
<p>
|
130
|
+
Environment variable not defined or defined with nil value is deemed to be
|
131
|
+
non-existent
|
132
|
+
</p>
|
133
|
+
<p><a class="source-toggle" href="#"
|
134
|
+
onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
|
135
|
+
<div class="method-source-code" id="M000029-source">
|
136
|
+
<pre>
|
137
|
+
<span class="ruby-comment cmt"># File lib/rubyrun/rubyrun_utils__.rb, line 33</span>
|
138
|
+
33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">env_var_exists?</span>(<span class="ruby-identifier">var</span>)
|
139
|
+
34: <span class="ruby-constant">ENV</span>[<span class="ruby-identifier">var</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-constant">ENV</span>[<span class="ruby-identifier">var</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">''</span> <span class="ruby-operator">?</span> <span class="ruby-keyword kw">false</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">true</span>
|
140
|
+
35: <span class="ruby-keyword kw">end</span>
|
141
|
+
</pre>
|
142
|
+
</div>
|
143
|
+
</div>
|
144
|
+
</div>
|
145
|
+
|
146
|
+
<div id="method-M000030" class="method-detail">
|
147
|
+
<a name="M000030"></a>
|
148
|
+
|
149
|
+
<div class="method-heading">
|
150
|
+
<a href="#M000030" class="method-signature">
|
151
|
+
<span class="method-name">fatal_exit</span><span class="method-args">(e)</span>
|
152
|
+
</a>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
<div class="method-description">
|
156
|
+
<p>
|
157
|
+
Error exit
|
158
|
+
</p>
|
159
|
+
<p><a class="source-toggle" href="#"
|
160
|
+
onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
|
161
|
+
<div class="method-source-code" id="M000030-source">
|
162
|
+
<pre>
|
163
|
+
<span class="ruby-comment cmt"># File lib/rubyrun/rubyrun_utils__.rb, line 38</span>
|
164
|
+
38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fatal_exit</span>(<span class="ruby-identifier">e</span>)
|
165
|
+
39: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"\n"</span>)
|
166
|
+
40: <span class="ruby-identifier">exit</span>(<span class="ruby-value">-1</span>)
|
167
|
+
41: <span class="ruby-keyword kw">end</span>
|
168
|
+
</pre>
|
169
|
+
</div>
|
170
|
+
</div>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
<div id="method-M000028" class="method-detail">
|
174
|
+
<a name="M000028"></a>
|
175
|
+
|
176
|
+
<div class="method-heading">
|
177
|
+
<a href="#M000028" class="method-signature">
|
178
|
+
<span class="method-name">get_caller_detail</span><span class="method-args">(n=3)</span>
|
179
|
+
</a>
|
180
|
+
</div>
|
181
|
+
|
182
|
+
<div class="method-description">
|
183
|
+
<p>
|
184
|
+
Retrieve caller details (filename, line number, method name)
|
185
|
+
</p>
|
186
|
+
<p><a class="source-toggle" href="#"
|
187
|
+
onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
|
188
|
+
<div class="method-source-code" id="M000028-source">
|
189
|
+
<pre>
|
190
|
+
<span class="ruby-comment cmt"># File lib/rubyrun/rubyrun_utils__.rb, line 27</span>
|
191
|
+
27: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_caller_detail</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">3</span>)
|
192
|
+
28: <span class="ruby-identifier">caller</span>(<span class="ruby-value">0</span>)[<span class="ruby-identifier">n</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-node">"#{RUBYRUN_PREFIX}_"</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'//'</span>, <span class="ruby-value str">'/'</span>)
|
193
|
+
29: <span class="ruby-keyword kw">end</span>
|
194
|
+
</pre>
|
195
|
+
</div>
|
196
|
+
</div>
|
197
|
+
</div>
|
198
|
+
|
199
|
+
<div id="method-M000027" class="method-detail">
|
200
|
+
<a name="M000027"></a>
|
201
|
+
|
202
|
+
<div class="method-heading">
|
203
|
+
<a href="#M000027" class="method-signature">
|
204
|
+
<span class="method-name">get_thread_id</span><span class="method-args">(th=Thread.current)</span>
|
205
|
+
</a>
|
206
|
+
</div>
|
207
|
+
|
208
|
+
<div class="method-description">
|
209
|
+
<p>
|
210
|
+
Return a readable thread ID for the current thread of execution
|
211
|
+
</p>
|
212
|
+
<p><a class="source-toggle" href="#"
|
213
|
+
onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
|
214
|
+
<div class="method-source-code" id="M000027-source">
|
215
|
+
<pre>
|
216
|
+
<span class="ruby-comment cmt"># File lib/rubyrun/rubyrun_utils__.rb, line 22</span>
|
217
|
+
22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_thread_id</span>(<span class="ruby-identifier">th</span>=<span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>)
|
218
|
+
23: <span class="ruby-identifier">th</span>.<span class="ruby-identifier">inspect</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/Thread:0x/</span>)[<span class="ruby-value">1</span>].<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/ .*?>/</span>)[<span class="ruby-value">0</span>]
|
219
|
+
24: <span class="ruby-keyword kw">end</span>
|
220
|
+
</pre>
|
221
|
+
</div>
|
222
|
+
</div>
|
223
|
+
</div>
|
224
|
+
|
225
|
+
<div id="method-M000032" class="method-detail">
|
226
|
+
<a name="M000032"></a>
|
227
|
+
|
228
|
+
<div class="method-heading">
|
229
|
+
<a href="#M000032" class="method-signature">
|
230
|
+
<span class="method-name">is_application_controller</span><span class="method-args">(klass)</span>
|
231
|
+
</a>
|
232
|
+
</div>
|
233
|
+
|
234
|
+
<div class="method-description">
|
235
|
+
<p>
|
236
|
+
Given a class, it‘s deemed to be a Rails Action Controller if one of
|
237
|
+
its ancestors is ApplicationController
|
238
|
+
</p>
|
239
|
+
<p><a class="source-toggle" href="#"
|
240
|
+
onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
|
241
|
+
<div class="method-source-code" id="M000032-source">
|
242
|
+
<pre>
|
243
|
+
<span class="ruby-comment cmt"># File lib/rubyrun/rubyrun_utils__.rb, line 60</span>
|
244
|
+
60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_application_controller</span>(<span class="ruby-identifier">klass</span>)
|
245
|
+
61: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">superclass</span>
|
246
|
+
62: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">superclass</span> <span class="ruby-operator">==</span> <span class="ruby-constant">ApplicationController</span>
|
247
|
+
63: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
248
|
+
64: <span class="ruby-keyword kw">else</span>
|
249
|
+
65: <span class="ruby-identifier">is_application_controller</span>(<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">superclass</span>)
|
250
|
+
66: <span class="ruby-keyword kw">end</span>
|
251
|
+
67: <span class="ruby-keyword kw">end</span>
|
252
|
+
</pre>
|
253
|
+
</div>
|
254
|
+
</div>
|
255
|
+
</div>
|
256
|
+
|
257
|
+
<div id="method-M000033" class="method-detail">
|
258
|
+
<a name="M000033"></a>
|
259
|
+
|
260
|
+
<div class="method-heading">
|
261
|
+
<a href="#M000033" class="method-signature">
|
262
|
+
<span class="method-name">is_in?</span><span class="method-args">(hash, klass, mid, mode='loose')</span>
|
263
|
+
</a>
|
264
|
+
</div>
|
265
|
+
|
266
|
+
<div class="method-description">
|
267
|
+
<p>
|
268
|
+
Return false if the passed in hash is empty Return false if the hash doenst
|
269
|
+
even have the class name as a key Return true if the hash has the key but
|
270
|
+
the method array is empty Return true if the method array has a
|
271
|
+
case-insensitive matching name, matching can be exact or
|
272
|
+
‘include’. Otherwise return false
|
273
|
+
</p>
|
274
|
+
<p><a class="source-toggle" href="#"
|
275
|
+
onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
|
276
|
+
<div class="method-source-code" id="M000033-source">
|
277
|
+
<pre>
|
278
|
+
<span class="ruby-comment cmt"># File lib/rubyrun/rubyrun_utils__.rb, line 75</span>
|
279
|
+
75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_in?</span>(<span class="ruby-identifier">hash</span>, <span class="ruby-identifier">klass</span>, <span class="ruby-identifier">mid</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-value str">'loose'</span>)
|
280
|
+
76: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">empty?</span>
|
281
|
+
77: [<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-value str">'*'</span>].<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
|
282
|
+
78: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">name</span>)
|
283
|
+
79: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">name</span>].<span class="ruby-identifier">empty?</span>
|
284
|
+
80: <span class="ruby-identifier">method_name</span> = <span class="ruby-identifier">return_method_name</span>(<span class="ruby-identifier">mid</span>)
|
285
|
+
81: <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">name</span>].<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">meth_name</span><span class="ruby-operator">|</span>
|
286
|
+
82: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">mode</span>
|
287
|
+
83: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'strict'</span>
|
288
|
+
84: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">method_name</span>.<span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">meth_name</span>.<span class="ruby-identifier">downcase</span>
|
289
|
+
85: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'loose'</span>
|
290
|
+
86: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">method_name</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">meth_name</span>.<span class="ruby-identifier">downcase</span>)
|
291
|
+
87: <span class="ruby-keyword kw">end</span>
|
292
|
+
88: }
|
293
|
+
89: <span class="ruby-keyword kw">end</span>
|
294
|
+
90: }
|
295
|
+
91: <span class="ruby-keyword kw">false</span>
|
296
|
+
92: <span class="ruby-keyword kw">end</span>
|
297
|
+
</pre>
|
298
|
+
</div>
|
299
|
+
</div>
|
300
|
+
</div>
|
301
|
+
|
302
|
+
<div id="method-M000031" class="method-detail">
|
303
|
+
<a name="M000031"></a>
|
304
|
+
|
305
|
+
<div class="method-heading">
|
306
|
+
<a href="#M000031" class="method-signature">
|
307
|
+
<span class="method-name">is_rails_controller?</span><span class="method-args">(klass, mid)</span>
|
308
|
+
</a>
|
309
|
+
</div>
|
310
|
+
|
311
|
+
<div class="method-description">
|
312
|
+
<p>
|
313
|
+
Return true if a Rails Action Controller class A module or object has no
|
314
|
+
superclass hence the rescue clause
|
315
|
+
</p>
|
316
|
+
<p><a class="source-toggle" href="#"
|
317
|
+
onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
|
318
|
+
<div class="method-source-code" id="M000031-source">
|
319
|
+
<pre>
|
320
|
+
<span class="ruby-comment cmt"># File lib/rubyrun/rubyrun_utils__.rb, line 45</span>
|
321
|
+
45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_rails_controller?</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">mid</span>)
|
322
|
+
46: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$rubyrun_controller_classes</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">klass</span>)
|
323
|
+
47: <span class="ruby-identifier">$rubyrun_rails_env</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'RAILS_ENV'</span>]
|
324
|
+
48: <span class="ruby-keyword kw">begin</span>
|
325
|
+
49: (<span class="ruby-identifier">$rubyrun_controller_classes</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">klass</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$rubyrun_rails_env</span> <span class="ruby-operator">&&</span>
|
326
|
+
50: <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">to_s</span>[<span class="ruby-value">-10</span>, <span class="ruby-value">10</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'Controller'</span> <span class="ruby-operator">&&</span>
|
327
|
+
51: <span class="ruby-identifier">is_application_controller</span>(<span class="ruby-identifier">klass</span>) <span class="ruby-operator">&&</span>
|
328
|
+
52: <span class="ruby-operator">!</span><span class="ruby-identifier">klass</span>.<span class="ruby-identifier">private_instance_methods</span>(<span class="ruby-keyword kw">false</span>).<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">return_method_name</span>(<span class="ruby-identifier">mid</span>))
|
329
|
+
53: <span class="ruby-keyword kw">rescue</span>
|
330
|
+
54: <span class="ruby-keyword kw">end</span>
|
331
|
+
55: <span class="ruby-keyword kw">false</span>
|
332
|
+
56: <span class="ruby-keyword kw">end</span>
|
333
|
+
</pre>
|
334
|
+
</div>
|
335
|
+
</div>
|
336
|
+
</div>
|
337
|
+
|
338
|
+
<div id="method-M000034" class="method-detail">
|
339
|
+
<a name="M000034"></a>
|
340
|
+
|
341
|
+
<div class="method-heading">
|
342
|
+
<a href="#M000034" class="method-signature">
|
343
|
+
<span class="method-name">return_method_name</span><span class="method-args">(mid)</span>
|
344
|
+
</a>
|
345
|
+
</div>
|
346
|
+
|
347
|
+
<div class="method-description">
|
348
|
+
<p>
|
349
|
+
Return method name since mid can be an method object ID or a string
|
350
|
+
</p>
|
351
|
+
<p><a class="source-toggle" href="#"
|
352
|
+
onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
|
353
|
+
<div class="method-source-code" id="M000034-source">
|
354
|
+
<pre>
|
355
|
+
<span class="ruby-comment cmt"># File lib/rubyrun/rubyrun_utils__.rb, line 95</span>
|
356
|
+
95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">return_method_name</span>(<span class="ruby-identifier">mid</span>)
|
357
|
+
96: <span class="ruby-identifier">mid</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">String</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">mid</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">mid</span>.<span class="ruby-identifier">id2name</span>
|
358
|
+
97: <span class="ruby-keyword kw">end</span>
|
359
|
+
</pre>
|
360
|
+
</div>
|
361
|
+
</div>
|
362
|
+
</div>
|
363
|
+
|
364
|
+
|
365
|
+
</div>
|
366
|
+
|
367
|
+
|
368
|
+
</div>
|
369
|
+
|
370
|
+
|
371
|
+
<div id="validator-badges">
|
372
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
373
|
+
</div>
|
374
|
+
|
375
|
+
</body>
|
376
|
+
</html>
|
data/html/created.rid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Sun, 27 Jul 2008 01:17:04 -0700
|
@@ -0,0 +1,119 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: LICENSE</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>LICENSE</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>LICENSE
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Thu Jul 10 02:27:43 -0700 2008</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<p>
|
73
|
+
WARRANTY
|
74
|
+
</p>
|
75
|
+
<h6>===</h6>
|
76
|
+
<p>
|
77
|
+
THIS SOFTWARE IS PROVIDED BY RUBYSOPHIC INC "AS IS" WITHOUT ANY
|
78
|
+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
79
|
+
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE IS
|
80
|
+
DISCLAIMED. THE SOFTWARE PROVIDERS IN NO EVENT ARE LIABLE FOR ANY DIRECT,
|
81
|
+
INDIRECT OR ANY OTHER TYPE OF DAMAGES (INCLUDING BUT NOT LIMITED TO,
|
82
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF PROFITS, USE OR DATA;
|
83
|
+
INTERRUPTION TO THE BUSINESS) HOWEVER CAUSED AND ON ANY THEORY OF
|
84
|
+
LIABILITY, WHETHER IN CONTRACT OR STRICT LIABILITY ARISING OUT OF USE OF
|
85
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF THE DAMAGE
|
86
|
+
</p>
|
87
|
+
|
88
|
+
</div>
|
89
|
+
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if includes -->
|
98
|
+
|
99
|
+
<div id="section">
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
<!-- if method_list -->
|
109
|
+
|
110
|
+
|
111
|
+
</div>
|
112
|
+
|
113
|
+
|
114
|
+
<div id="validator-badges">
|
115
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
116
|
+
</div>
|
117
|
+
|
118
|
+
</body>
|
119
|
+
</html>
|