sprout 1.0.35.pre → 1.1.2.pre
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/Gemfile +1 -1
- data/Gemfile.lock +0 -2
- data/README.textile +1 -1
- data/VERSION +1 -1
- data/lib/sprout/concern.rb +5 -7
- data/lib/sprout/daemon.rb +183 -143
- data/lib/sprout/executable/base.rb +564 -0
- data/lib/sprout/executable.rb +1 -550
- data/lib/sprout/generator/base.rb +2 -3
- data/lib/sprout/generator.rb +2 -1
- data/lib/sprout/generators/ruby/templates/ruby_base.rb +1 -2
- data/lib/sprout/library.rb +3 -3
- data/lib/sprout/output_buffer.rb +35 -0
- data/lib/sprout/process_runner.rb +68 -17
- data/lib/sprout/progress_bar.rb +5 -5
- data/lib/sprout/remote_file_target.rb +1 -1
- data/lib/sprout/system/base_system.rb +3 -3
- data/lib/sprout/system/unix_system.rb +1 -1
- data/lib/sprout/{test/sprout_test_case.rb → test_helper.rb} +214 -14
- data/lib/sprout/version.rb +1 -1
- data/lib/sprout.rb +133 -2
- data/rakefile.rb +2 -0
- data/test/fixtures/examples/echo_inputs.rb +1 -2
- data/test/fixtures/executable/fdb.rb +7 -9
- data/test/fixtures/executable/flex3sdk_gem/fdb +49 -18
- data/test/fixtures/executable/mxmlc.rb +1 -2
- data/test/fixtures/executable/subclass/executable_subclass.rb +0 -1
- data/test/fixtures/executable/subclass/executable_superclass.rb +1 -2
- data/test/fixtures/specification/flex4sdk.rb +35 -24
- data/test/unit/archive_unpacker_test.rb +1 -1
- data/test/unit/boolean_param_test.rb +1 -1
- data/test/unit/daemon_test.rb +35 -3
- data/test/unit/executable_option_parser_test.rb +2 -3
- data/test/unit/executable_param_test.rb +1 -1
- data/test/unit/executable_test.rb +8 -15
- data/test/unit/fake_other_executable.rb +1 -2
- data/test/unit/file_param_test.rb +1 -1
- data/test/unit/file_target_test.rb +1 -1
- data/test/unit/files_param_test.rb +1 -1
- data/test/unit/generator_generator_test.rb +1 -1
- data/test/unit/generator_test.rb +1 -1
- data/test/unit/library_generator_test.rb +1 -1
- data/test/unit/library_test.rb +1 -1
- data/test/unit/osx_system_test.rb +1 -1
- data/test/unit/path_param_test.rb +1 -1
- data/test/unit/paths_param_test.rb +1 -1
- data/test/unit/platform_test.rb +1 -1
- data/test/unit/process_runner_test.rb +1 -1
- data/test/unit/rdoc_parser_test.rb +1 -1
- data/test/unit/remote_file_loader_test.rb +1 -1
- data/test/unit/remote_file_target_test.rb +1 -1
- data/test/unit/ruby_feature_test.rb +1 -1
- data/test/unit/ruby_generator_test.rb +1 -1
- data/test/unit/specification_test.rb +8 -1
- data/test/unit/sprout_test.rb +2 -2
- data/test/unit/string_param_test.rb +1 -1
- data/test/unit/string_test.rb +1 -1
- data/test/unit/strings_param_test.rb +1 -1
- data/test/unit/test_helper.rb +33 -1
- data/test/unit/tool_generator_test.rb +1 -1
- data/test/unit/unix_system_test.rb +1 -1
- data/test/unit/user_test.rb +1 -1
- data/test/unit/vista_system_test.rb +1 -1
- data/test/unit/win_nix_system_test.rb +1 -1
- data/test/unit/win_system_test.rb +1 -1
- data/test-stderr.log +1 -0
- data/test-stdout.log +237 -0
- metadata +15 -190
- data/doc/Dir.html +0 -288
- data/doc/Rake/Task.html +0 -184
- data/doc/Sprout/ArchiveUnpacker.html +0 -1246
- data/doc/Sprout/Base/ClassMethods.html +0 -434
- data/doc/Sprout/Base.html +0 -126
- data/doc/Sprout/Concern.html +0 -353
- data/doc/Sprout/Daemon/ClassMethods.html +0 -244
- data/doc/Sprout/Daemon/InstanceMethods.html +0 -601
- data/doc/Sprout/Daemon.html +0 -166
- data/doc/Sprout/Errors/ArchiveUnpackerError.html +0 -125
- data/doc/Sprout/Errors/DestinationExistsError.html +0 -133
- data/doc/Sprout/Errors/DuplicateMemberError.html +0 -132
- data/doc/Sprout/Errors/ExecutableError.html +0 -125
- data/doc/Sprout/Errors/ExecutableRegistrationError.html +0 -132
- data/doc/Sprout/Errors/ExecutionError.html +0 -121
- data/doc/Sprout/Errors/GeneratorError.html +0 -125
- data/doc/Sprout/Errors/InvalidArgumentError.html +0 -132
- data/doc/Sprout/Errors/LoadError.html +0 -121
- data/doc/Sprout/Errors/MissingArgumentError.html +0 -132
- data/doc/Sprout/Errors/MissingExecutableError.html +0 -132
- data/doc/Sprout/Errors/MissingGeneratorError.html +0 -132
- data/doc/Sprout/Errors/MissingTemplateError.html +0 -132
- data/doc/Sprout/Errors/ProcessRunnerError.html +0 -121
- data/doc/Sprout/Errors/RemoteFileLoaderError.html +0 -110
- data/doc/Sprout/Errors/SproutError.html +0 -114
- data/doc/Sprout/Errors/UnknownArchiveType.html +0 -122
- data/doc/Sprout/Errors/UsageError.html +0 -121
- data/doc/Sprout/Errors/ValidationError.html +0 -121
- data/doc/Sprout/Errors/VersionRequirementNotMetError.html +0 -121
- data/doc/Sprout/Errors.html +0 -101
- data/doc/Sprout/Executable/Boolean.html +0 -483
- data/doc/Sprout/Executable/ClassMethods.html +0 -417
- data/doc/Sprout/Executable/CollectionParam.html +0 -483
- data/doc/Sprout/Executable/FileParam.html +0 -484
- data/doc/Sprout/Executable/Files.html +0 -292
- data/doc/Sprout/Executable/InstanceMethods.html +0 -2006
- data/doc/Sprout/Executable/Number.html +0 -141
- data/doc/Sprout/Executable/Param.html +0 -2818
- data/doc/Sprout/Executable/ParameterFactory.html +0 -232
- data/doc/Sprout/Executable/Path.html +0 -223
- data/doc/Sprout/Executable/Paths.html +0 -253
- data/doc/Sprout/Executable/StringParam.html +0 -213
- data/doc/Sprout/Executable/Strings.html +0 -167
- data/doc/Sprout/Executable/Url.html +0 -160
- data/doc/Sprout/Executable/Urls.html +0 -170
- data/doc/Sprout/Executable.html +0 -173
- data/doc/Sprout/FileTarget.html +0 -1109
- data/doc/Sprout/Generator/Base.html +0 -1626
- data/doc/Sprout/Generator/Command.html +0 -690
- data/doc/Sprout/Generator/DirectoryManifest.html +0 -476
- data/doc/Sprout/Generator/FileManifest.html +0 -572
- data/doc/Sprout/Generator/Manifest.html +0 -377
- data/doc/Sprout/Generator/TemplateManifest.html +0 -196
- data/doc/Sprout/Generator.html +0 -689
- data/doc/Sprout/GeneratorGenerator.html +0 -1018
- data/doc/Sprout/Library.html +0 -1141
- data/doc/Sprout/LibraryGenerator.html +0 -309
- data/doc/Sprout/Log.html +0 -496
- data/doc/Sprout/MXMLC.html +0 -6373
- data/doc/Sprout/Platform.html +0 -714
- data/doc/Sprout/ProcessRunner.html +0 -1352
- data/doc/Sprout/ProgressBar.html +0 -376
- data/doc/Sprout/ProgressBarImpl.html +0 -2119
- data/doc/Sprout/ProgressBarManager.html +0 -434
- data/doc/Sprout/ProgressBarOutputStream.html +0 -416
- data/doc/Sprout/RDocParser.html +0 -211
- data/doc/Sprout/RemoteFileLoader.html +0 -172
- data/doc/Sprout/RemoteFileTarget.html +0 -679
- data/doc/Sprout/ReversedProgressBar.html +0 -194
- data/doc/Sprout/RubyFeature/ClassMethods.html +0 -1065
- data/doc/Sprout/RubyFeature.html +0 -155
- data/doc/Sprout/RubyGenerator.html +0 -764
- data/doc/Sprout/Specification.html +0 -767
- data/doc/Sprout/System/BaseSystem.html +0 -1455
- data/doc/Sprout/System/JavaSystem.html +0 -122
- data/doc/Sprout/System/OSXSystem.html +0 -335
- data/doc/Sprout/System/ThreadMock.html +0 -193
- data/doc/Sprout/System/UnixSystem.html +0 -584
- data/doc/Sprout/System/VistaSystem.html +0 -251
- data/doc/Sprout/System/WinNixSystem.html +0 -325
- data/doc/Sprout/System/WinSystem.html +0 -571
- data/doc/Sprout/System.html +0 -191
- data/doc/Sprout/ToolGenerator.html +0 -931
- data/doc/Sprout/VERSION.html +0 -128
- data/doc/Sprout.html +0 -144
- data/doc/SproutTestCase.html +0 -1412
- data/doc/String.html +0 -286
- data/doc/_index.html +0 -1035
- data/doc/class_list.html +0 -36
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -53
- data/doc/css/style.css +0 -310
- data/doc/file.README.html +0 -96
- data/doc/file.archive_unpacker.html +0 -288
- data/doc/file.base.html +0 -208
- data/doc/file.base_system.html +0 -278
- data/doc/file.boolean.html +0 -135
- data/doc/file.collection_param.html +0 -139
- data/doc/file.command.html +0 -126
- data/doc/file.concern.html +0 -136
- data/doc/file.daemon.html +0 -309
- data/doc/file.dir.html +0 -76
- data/doc/file.directory_manifest.html +0 -122
- data/doc/file.errors.html +0 -147
- data/doc/file.executable.html +0 -638
- data/doc/file.file_manifest.html +0 -109
- data/doc/file.file_param.html +0 -120
- data/doc/file.file_target.html +0 -140
- data/doc/file.files.html +0 -85
- data/doc/file.generator.html +0 -296
- data/doc/file.generator_class.html +0 -72
- data/doc/file.generator_generator.html +0 -137
- data/doc/file.generator_test.html +0 -92
- data/doc/file.generator_test_helper.html +0 -67
- data/doc/file.java_system.html +0 -62
- data/doc/file.library.html +0 -291
- data/doc/file.library_generator.html +0 -74
- data/doc/file.log.html +0 -100
- data/doc/file.manifest.html +0 -67
- data/doc/file.mxmlc.html +0 -740
- data/doc/file.number.html +0 -67
- data/doc/file.osx_system.html +0 -79
- data/doc/file.param.html +0 -491
- data/doc/file.parameter_factory.html +0 -119
- data/doc/file.path.html +0 -81
- data/doc/file.paths.html +0 -80
- data/doc/file.platform.html +0 -124
- data/doc/file.process_runner.html +0 -224
- data/doc/file.progress_bar.html +0 -390
- data/doc/file.rdoc_parser.html +0 -145
- data/doc/file.remote_file_loader.html +0 -117
- data/doc/file.remote_file_target.html +0 -176
- data/doc/file.ruby_base.html +0 -64
- data/doc/file.ruby_feature.html +0 -244
- data/doc/file.ruby_generator.html +0 -118
- data/doc/file.ruby_input.html +0 -62
- data/doc/file.ruby_test_case.html +0 -78
- data/doc/file.ruby_test_helper.html +0 -61
- data/doc/file.specification.html +0 -248
- data/doc/file.sprout.html +0 -64
- data/doc/file.sprout_test_case.html +0 -280
- data/doc/file.string.html +0 -72
- data/doc/file.string_param.html +0 -76
- data/doc/file.strings.html +0 -71
- data/doc/file.system.html +0 -86
- data/doc/file.template_manifest.html +0 -67
- data/doc/file.tool.html +0 -92
- data/doc/file.tool_generator.html +0 -90
- data/doc/file.unix_system.html +0 -128
- data/doc/file.url.html +0 -71
- data/doc/file.urls.html +0 -70
- data/doc/file.version.html +0 -71
- data/doc/file.vista_system.html +0 -69
- data/doc/file.win_nix_system.html +0 -88
- data/doc/file.win_system.html +0 -129
- data/doc/file_list.html +0 -230
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -96
- data/doc/js/app.js +0 -202
- data/doc/js/full_list.js +0 -149
- data/doc/js/jquery.js +0 -154
- data/doc/method_list.html +0 -3355
- data/doc/top-level-namespace.html +0 -192
- data/lib/sprout/base.rb +0 -121
- data/lib/sprout/log.rb +0 -46
- data/test/unit/sprout_test_helper.rb +0 -33
data/doc/Sprout/Platform.html
DELETED
@@ -1,714 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>Class: Sprout::Platform</title>
|
7
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
-
|
10
|
-
<script type="text/javascript" charset="utf-8">
|
11
|
-
relpath = '..';
|
12
|
-
if (relpath != '') relpath += '/';
|
13
|
-
</script>
|
14
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
16
|
-
|
17
|
-
</head>
|
18
|
-
<body>
|
19
|
-
<script type="text/javascript" charset="utf-8">
|
20
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
-
</script>
|
22
|
-
|
23
|
-
<div id="header">
|
24
|
-
<div id="menu">
|
25
|
-
|
26
|
-
<a href="../_index.html">Index (P)</a> »
|
27
|
-
<span class='title'><span class='object_link'><a href="../Sprout.html" title="Sprout (module)">Sprout</a></span></span>
|
28
|
-
»
|
29
|
-
<span class="title">Platform</span>
|
30
|
-
|
31
|
-
|
32
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="search">
|
36
|
-
<a id="class_list_link" href="#">Class List</a>
|
37
|
-
<a id="method_list_link" href="#">Method List</a>
|
38
|
-
<a id ="file_list_link" href="#">File List</a>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="clear"></div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<iframe id="search_frame"></iframe>
|
45
|
-
|
46
|
-
<div id="content"><h1>Class: Sprout::Platform
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
</h1>
|
51
|
-
|
52
|
-
<dl class="box">
|
53
|
-
|
54
|
-
<dt class="r1">Inherits:</dt>
|
55
|
-
<dd class="r1">
|
56
|
-
<span class="inheritName">Object</span>
|
57
|
-
|
58
|
-
<ul class="fullTree">
|
59
|
-
<li>Object</li>
|
60
|
-
|
61
|
-
<li class="next">Sprout::Platform</li>
|
62
|
-
|
63
|
-
</ul>
|
64
|
-
<a href="#" class="inheritanceTree">show all</a>
|
65
|
-
|
66
|
-
</dd>
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
<dt class="r2 last">Defined in:</dt>
|
77
|
-
<dd class="r2 last">lib/sprout/platform.rb</dd>
|
78
|
-
|
79
|
-
</dl>
|
80
|
-
<div class="clear"></div>
|
81
|
-
|
82
|
-
<h2>Overview</h2><div class="docstring">
|
83
|
-
<div class="discussion">
|
84
|
-
|
85
|
-
<p>Determine what environment we're in so that we can play nice with
|
86
|
-
libraries, processes, executables, etc.</p>
|
87
|
-
|
88
|
-
|
89
|
-
</div>
|
90
|
-
</div>
|
91
|
-
<div class="tags">
|
92
|
-
|
93
|
-
</div>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<h2>
|
98
|
-
Instance Method Summary
|
99
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
100
|
-
</h2>
|
101
|
-
|
102
|
-
<ul class="summary">
|
103
|
-
|
104
|
-
<li class="public ">
|
105
|
-
<span class="summary_signature">
|
106
|
-
|
107
|
-
<a href="#java%3F-instance_method" title="#java? (instance method)">- (Boolean) <strong>java?</strong> </a>
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
</span>
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
<span class="summary_desc"><div class='inline'>
|
121
|
-
<p>Returns <tt>true</tt> if the current platform is running in the JVM
|
122
|
-
(JRuby).</p>
|
123
|
-
</div></span>
|
124
|
-
|
125
|
-
</li>
|
126
|
-
|
127
|
-
|
128
|
-
<li class="public ">
|
129
|
-
<span class="summary_signature">
|
130
|
-
|
131
|
-
<a href="#linux%3F-instance_method" title="#linux? (instance method)">- (Boolean) <strong>linux?</strong> </a>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
</span>
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
<span class="summary_desc"><div class='inline'>
|
145
|
-
<p>Returns <tt>true</tt> if the current platform is <tt>unix?</tt> and not
|
146
|
-
<tt>mac?</tt>.</p>
|
147
|
-
</div></span>
|
148
|
-
|
149
|
-
</li>
|
150
|
-
|
151
|
-
|
152
|
-
<li class="public ">
|
153
|
-
<span class="summary_signature">
|
154
|
-
|
155
|
-
<a href="#mac%3F-instance_method" title="#mac? (instance method)">- (Boolean) <strong>mac?</strong> </a>
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
</span>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
<span class="summary_desc"><div class='inline'>
|
169
|
-
<p>Returns <tt>true</tt> if the current platform is some flash of OS X.</p>
|
170
|
-
</div></span>
|
171
|
-
|
172
|
-
</li>
|
173
|
-
|
174
|
-
|
175
|
-
<li class="public ">
|
176
|
-
<span class="summary_signature">
|
177
|
-
|
178
|
-
<a href="#ruby_platform-instance_method" title="#ruby_platform (instance method)">- (Object) <strong>ruby_platform</strong> </a>
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
</span>
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
<span class="summary_desc"><div class='inline'>
|
192
|
-
<p>Instance wrapper for the global Ruby Constant, <tt>RUBY_PLATFORM</tt>.</p>
|
193
|
-
</div></span>
|
194
|
-
|
195
|
-
</li>
|
196
|
-
|
197
|
-
|
198
|
-
<li class="public ">
|
199
|
-
<span class="summary_signature">
|
200
|
-
|
201
|
-
<a href="#unix%3F-instance_method" title="#unix? (instance method)">- (Boolean) <strong>unix?</strong> </a>
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
</span>
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
<span class="summary_desc"><div class='inline'>
|
215
|
-
<p>Returns <tt>true</tt> if the current platform is not <tt>windows?</tt> or
|
216
|
-
<tt>java?</tt>.</p>
|
217
|
-
</div></span>
|
218
|
-
|
219
|
-
</li>
|
220
|
-
|
221
|
-
|
222
|
-
<li class="public ">
|
223
|
-
<span class="summary_signature">
|
224
|
-
|
225
|
-
<a href="#vista%3F-instance_method" title="#vista? (instance method)">- (Boolean) <strong>vista?</strong> </a>
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
</span>
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
<span class="summary_desc"><div class='inline'>
|
239
|
-
<p>Returns <tt>true</tt> if the current platform is Vista.</p>
|
240
|
-
</div></span>
|
241
|
-
|
242
|
-
</li>
|
243
|
-
|
244
|
-
|
245
|
-
<li class="public ">
|
246
|
-
<span class="summary_signature">
|
247
|
-
|
248
|
-
<a href="#windows%3F-instance_method" title="#windows? (instance method)">- (Boolean) <strong>windows?</strong> </a>
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
</span>
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
<span class="summary_desc"><div class='inline'>
|
262
|
-
<p>Returns <tt>true</tt> if the current platform is some flavor of Windows.</p>
|
263
|
-
</div></span>
|
264
|
-
|
265
|
-
</li>
|
266
|
-
|
267
|
-
|
268
|
-
<li class="public ">
|
269
|
-
<span class="summary_signature">
|
270
|
-
|
271
|
-
<a href="#windows_nix%3F-instance_method" title="#windows_nix? (instance method)">- (Boolean) <strong>windows_nix?</strong> </a>
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
</span>
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
<span class="summary_desc"><div class='inline'>
|
285
|
-
<p>Returns <tt>true</tt> if the current platform is some flavor of Unix on
|
286
|
-
Windows.</p>
|
287
|
-
</div></span>
|
288
|
-
|
289
|
-
</li>
|
290
|
-
|
291
|
-
|
292
|
-
</ul>
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
<div id="instance_method_details" class="method_details_list">
|
298
|
-
<h2>Instance Method Details</h2>
|
299
|
-
|
300
|
-
|
301
|
-
<div class="method_details first">
|
302
|
-
<p class="signature first" id="java?-instance_method">
|
303
|
-
|
304
|
-
- (<tt>Boolean</tt>) <strong>java?</strong>
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
</p><div class="docstring">
|
309
|
-
<div class="discussion">
|
310
|
-
|
311
|
-
<p>Returns <tt>true</tt> if the current platform is running in the JVM
|
312
|
-
(JRuby).</p>
|
313
|
-
|
314
|
-
|
315
|
-
</div>
|
316
|
-
</div>
|
317
|
-
<div class="tags">
|
318
|
-
<h3>Returns:</h3>
|
319
|
-
<ul class="return">
|
320
|
-
|
321
|
-
<li>
|
322
|
-
|
323
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
</li>
|
329
|
-
|
330
|
-
</ul>
|
331
|
-
|
332
|
-
</div><table class="source_code">
|
333
|
-
<tr>
|
334
|
-
<td>
|
335
|
-
<pre class="lines">
|
336
|
-
|
337
|
-
|
338
|
-
56
|
339
|
-
57
|
340
|
-
58</pre>
|
341
|
-
</td>
|
342
|
-
<td>
|
343
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 56</span>
|
344
|
-
|
345
|
-
<span class='kw'>def</span> <span class='id java?'>java?</span>
|
346
|
-
<span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>java</span><span class='regexp_end'>/</span></span> <span class='op'>=~</span> <span class='id ruby_platform'>ruby_platform</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
347
|
-
<span class='kw'>end</span></pre>
|
348
|
-
</td>
|
349
|
-
</tr>
|
350
|
-
</table>
|
351
|
-
</div>
|
352
|
-
|
353
|
-
<div class="method_details ">
|
354
|
-
<p class="signature " id="linux?-instance_method">
|
355
|
-
|
356
|
-
- (<tt>Boolean</tt>) <strong>linux?</strong>
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
</p><div class="docstring">
|
361
|
-
<div class="discussion">
|
362
|
-
|
363
|
-
<p>Returns <tt>true</tt> if the current platform is <tt>unix?</tt> and not
|
364
|
-
<tt>mac?</tt>.</p>
|
365
|
-
|
366
|
-
|
367
|
-
</div>
|
368
|
-
</div>
|
369
|
-
<div class="tags">
|
370
|
-
<h3>Returns:</h3>
|
371
|
-
<ul class="return">
|
372
|
-
|
373
|
-
<li>
|
374
|
-
|
375
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
</li>
|
381
|
-
|
382
|
-
</ul>
|
383
|
-
|
384
|
-
</div><table class="source_code">
|
385
|
-
<tr>
|
386
|
-
<td>
|
387
|
-
<pre class="lines">
|
388
|
-
|
389
|
-
|
390
|
-
49
|
391
|
-
50
|
392
|
-
51</pre>
|
393
|
-
</td>
|
394
|
-
<td>
|
395
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 49</span>
|
396
|
-
|
397
|
-
<span class='kw'>def</span> <span class='id linux?'>linux?</span>
|
398
|
-
<span class='id unix?'>unix?</span> <span class='kw'>and</span> <span class='kw'>not</span> <span class='id mac?'>mac?</span>
|
399
|
-
<span class='kw'>end</span></pre>
|
400
|
-
</td>
|
401
|
-
</tr>
|
402
|
-
</table>
|
403
|
-
</div>
|
404
|
-
|
405
|
-
<div class="method_details ">
|
406
|
-
<p class="signature " id="mac?-instance_method">
|
407
|
-
|
408
|
-
- (<tt>Boolean</tt>) <strong>mac?</strong>
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
</p><div class="docstring">
|
413
|
-
<div class="discussion">
|
414
|
-
|
415
|
-
<p>Returns <tt>true</tt> if the current platform is some flash of OS X.</p>
|
416
|
-
|
417
|
-
|
418
|
-
</div>
|
419
|
-
</div>
|
420
|
-
<div class="tags">
|
421
|
-
<h3>Returns:</h3>
|
422
|
-
<ul class="return">
|
423
|
-
|
424
|
-
<li>
|
425
|
-
|
426
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
</li>
|
432
|
-
|
433
|
-
</ul>
|
434
|
-
|
435
|
-
</div><table class="source_code">
|
436
|
-
<tr>
|
437
|
-
<td>
|
438
|
-
<pre class="lines">
|
439
|
-
|
440
|
-
|
441
|
-
35
|
442
|
-
36
|
443
|
-
37</pre>
|
444
|
-
</td>
|
445
|
-
<td>
|
446
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 35</span>
|
447
|
-
|
448
|
-
<span class='kw'>def</span> <span class='id mac?'>mac?</span>
|
449
|
-
<span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>darwin</span><span class='regexp_end'>/</span></span> <span class='op'>=~</span> <span class='id ruby_platform'>ruby_platform</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
450
|
-
<span class='kw'>end</span></pre>
|
451
|
-
</td>
|
452
|
-
</tr>
|
453
|
-
</table>
|
454
|
-
</div>
|
455
|
-
|
456
|
-
<div class="method_details ">
|
457
|
-
<p class="signature " id="ruby_platform-instance_method">
|
458
|
-
|
459
|
-
- (<tt>Object</tt>) <strong>ruby_platform</strong>
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
</p><div class="docstring">
|
464
|
-
<div class="discussion">
|
465
|
-
|
466
|
-
<p>Instance wrapper for the global Ruby Constant, <tt>RUBY_PLATFORM</tt>.</p>
|
467
|
-
|
468
|
-
<p>wrapping this global allows for much easier testing and environment
|
469
|
-
simulation.</p>
|
470
|
-
|
471
|
-
|
472
|
-
</div>
|
473
|
-
</div>
|
474
|
-
<div class="tags">
|
475
|
-
|
476
|
-
</div><table class="source_code">
|
477
|
-
<tr>
|
478
|
-
<td>
|
479
|
-
<pre class="lines">
|
480
|
-
|
481
|
-
|
482
|
-
65
|
483
|
-
66
|
484
|
-
67</pre>
|
485
|
-
</td>
|
486
|
-
<td>
|
487
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 65</span>
|
488
|
-
|
489
|
-
<span class='kw'>def</span> <span class='id ruby_platform'>ruby_platform</span>
|
490
|
-
<span class='const'>RUBY_PLATFORM</span>
|
491
|
-
<span class='kw'>end</span></pre>
|
492
|
-
</td>
|
493
|
-
</tr>
|
494
|
-
</table>
|
495
|
-
</div>
|
496
|
-
|
497
|
-
<div class="method_details ">
|
498
|
-
<p class="signature " id="unix?-instance_method">
|
499
|
-
|
500
|
-
- (<tt>Boolean</tt>) <strong>unix?</strong>
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
</p><div class="docstring">
|
505
|
-
<div class="discussion">
|
506
|
-
|
507
|
-
<p>Returns <tt>true</tt> if the current platform is not <tt>windows?</tt> or
|
508
|
-
<tt>java?</tt>.</p>
|
509
|
-
|
510
|
-
|
511
|
-
</div>
|
512
|
-
</div>
|
513
|
-
<div class="tags">
|
514
|
-
<h3>Returns:</h3>
|
515
|
-
<ul class="return">
|
516
|
-
|
517
|
-
<li>
|
518
|
-
|
519
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
</li>
|
525
|
-
|
526
|
-
</ul>
|
527
|
-
|
528
|
-
</div><table class="source_code">
|
529
|
-
<tr>
|
530
|
-
<td>
|
531
|
-
<pre class="lines">
|
532
|
-
|
533
|
-
|
534
|
-
42
|
535
|
-
43
|
536
|
-
44</pre>
|
537
|
-
</td>
|
538
|
-
<td>
|
539
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 42</span>
|
540
|
-
|
541
|
-
<span class='kw'>def</span> <span class='id unix?'>unix?</span>
|
542
|
-
<span class='kw'>not</span> <span class='id windows?'>windows?</span> <span class='kw'>and</span> <span class='kw'>not</span> <span class='id java?'>java?</span>
|
543
|
-
<span class='kw'>end</span></pre>
|
544
|
-
</td>
|
545
|
-
</tr>
|
546
|
-
</table>
|
547
|
-
</div>
|
548
|
-
|
549
|
-
<div class="method_details ">
|
550
|
-
<p class="signature " id="vista?-instance_method">
|
551
|
-
|
552
|
-
- (<tt>Boolean</tt>) <strong>vista?</strong>
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
</p><div class="docstring">
|
557
|
-
<div class="discussion">
|
558
|
-
|
559
|
-
<p>Returns <tt>true</tt> if the current platform is Vista.</p>
|
560
|
-
|
561
|
-
|
562
|
-
</div>
|
563
|
-
</div>
|
564
|
-
<div class="tags">
|
565
|
-
<h3>Returns:</h3>
|
566
|
-
<ul class="return">
|
567
|
-
|
568
|
-
<li>
|
569
|
-
|
570
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
</li>
|
576
|
-
|
577
|
-
</ul>
|
578
|
-
|
579
|
-
</div><table class="source_code">
|
580
|
-
<tr>
|
581
|
-
<td>
|
582
|
-
<pre class="lines">
|
583
|
-
|
584
|
-
|
585
|
-
20
|
586
|
-
21
|
587
|
-
22</pre>
|
588
|
-
</td>
|
589
|
-
<td>
|
590
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 20</span>
|
591
|
-
|
592
|
-
<span class='kw'>def</span> <span class='id vista?'>vista?</span>
|
593
|
-
<span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>vista</span><span class='regexp_end'>/</span></span> <span class='op'>=~</span> <span class='id ruby_platform'>ruby_platform</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
594
|
-
<span class='kw'>end</span></pre>
|
595
|
-
</td>
|
596
|
-
</tr>
|
597
|
-
</table>
|
598
|
-
</div>
|
599
|
-
|
600
|
-
<div class="method_details ">
|
601
|
-
<p class="signature " id="windows?-instance_method">
|
602
|
-
|
603
|
-
- (<tt>Boolean</tt>) <strong>windows?</strong>
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
</p><div class="docstring">
|
608
|
-
<div class="discussion">
|
609
|
-
|
610
|
-
<p>Returns <tt>true</tt> if the current platform is some flavor of Windows.</p>
|
611
|
-
|
612
|
-
|
613
|
-
</div>
|
614
|
-
</div>
|
615
|
-
<div class="tags">
|
616
|
-
<h3>Returns:</h3>
|
617
|
-
<ul class="return">
|
618
|
-
|
619
|
-
<li>
|
620
|
-
|
621
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
</li>
|
627
|
-
|
628
|
-
</ul>
|
629
|
-
|
630
|
-
</div><table class="source_code">
|
631
|
-
<tr>
|
632
|
-
<td>
|
633
|
-
<pre class="lines">
|
634
|
-
|
635
|
-
|
636
|
-
13
|
637
|
-
14
|
638
|
-
15</pre>
|
639
|
-
</td>
|
640
|
-
<td>
|
641
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 13</span>
|
642
|
-
|
643
|
-
<span class='kw'>def</span> <span class='id windows?'>windows?</span>
|
644
|
-
<span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>cygwin|mswin|mingw|bccwin|wince|emx|vista</span><span class='regexp_end'>/</span></span> <span class='op'>=~</span> <span class='id ruby_platform'>ruby_platform</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
645
|
-
<span class='kw'>end</span></pre>
|
646
|
-
</td>
|
647
|
-
</tr>
|
648
|
-
</table>
|
649
|
-
</div>
|
650
|
-
|
651
|
-
<div class="method_details ">
|
652
|
-
<p class="signature " id="windows_nix?-instance_method">
|
653
|
-
|
654
|
-
- (<tt>Boolean</tt>) <strong>windows_nix?</strong>
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
</p><div class="docstring">
|
659
|
-
<div class="discussion">
|
660
|
-
|
661
|
-
<p>Returns <tt>true</tt> if the current platform is some flavor of Unix on
|
662
|
-
Windows. Recognized nix-ish systems are: Cygwin, Mingw and BCCWin.</p>
|
663
|
-
|
664
|
-
|
665
|
-
</div>
|
666
|
-
</div>
|
667
|
-
<div class="tags">
|
668
|
-
<h3>Returns:</h3>
|
669
|
-
<ul class="return">
|
670
|
-
|
671
|
-
<li>
|
672
|
-
|
673
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
</li>
|
679
|
-
|
680
|
-
</ul>
|
681
|
-
|
682
|
-
</div><table class="source_code">
|
683
|
-
<tr>
|
684
|
-
<td>
|
685
|
-
<pre class="lines">
|
686
|
-
|
687
|
-
|
688
|
-
28
|
689
|
-
29
|
690
|
-
30</pre>
|
691
|
-
</td>
|
692
|
-
<td>
|
693
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 28</span>
|
694
|
-
|
695
|
-
<span class='kw'>def</span> <span class='id windows_nix?'>windows_nix?</span>
|
696
|
-
<span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>cygwin|mingw|bccwin</span><span class='regexp_end'>/</span></span> <span class='op'>=~</span> <span class='id ruby_platform'>ruby_platform</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
697
|
-
<span class='kw'>end</span></pre>
|
698
|
-
</td>
|
699
|
-
</tr>
|
700
|
-
</table>
|
701
|
-
</div>
|
702
|
-
|
703
|
-
</div>
|
704
|
-
|
705
|
-
</div>
|
706
|
-
|
707
|
-
<div id="footer">
|
708
|
-
Generated on Wed Dec 22 11:58:33 2010 by
|
709
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
710
|
-
0.6.3 (ruby-1.9.2).
|
711
|
-
</div>
|
712
|
-
|
713
|
-
</body>
|
714
|
-
</html>
|