sprout 1.0.32.pre → 1.0.35.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 +2 -1
- data/Gemfile.lock +4 -2
- data/README.textile +12 -13
- data/VERSION +1 -0
- data/doc/Dir.html +288 -0
- data/doc/Rake/Task.html +184 -0
- data/doc/Sprout.html +144 -0
- data/doc/Sprout/ArchiveUnpacker.html +1246 -0
- data/doc/Sprout/Base.html +126 -0
- data/doc/Sprout/Base/ClassMethods.html +434 -0
- data/doc/Sprout/Concern.html +353 -0
- data/doc/Sprout/Daemon.html +166 -0
- data/doc/Sprout/Daemon/ClassMethods.html +244 -0
- data/doc/Sprout/Daemon/InstanceMethods.html +601 -0
- data/doc/Sprout/Errors.html +101 -0
- data/doc/Sprout/Errors/ArchiveUnpackerError.html +125 -0
- data/doc/Sprout/Errors/DestinationExistsError.html +133 -0
- data/doc/Sprout/Errors/DuplicateMemberError.html +132 -0
- data/doc/Sprout/Errors/ExecutableError.html +125 -0
- data/doc/Sprout/Errors/ExecutableRegistrationError.html +132 -0
- data/doc/Sprout/Errors/ExecutionError.html +121 -0
- data/doc/Sprout/Errors/GeneratorError.html +125 -0
- data/doc/Sprout/Errors/InvalidArgumentError.html +132 -0
- data/doc/Sprout/Errors/LoadError.html +121 -0
- data/doc/Sprout/Errors/MissingArgumentError.html +132 -0
- data/doc/Sprout/Errors/MissingExecutableError.html +132 -0
- data/doc/Sprout/Errors/MissingGeneratorError.html +132 -0
- data/doc/Sprout/Errors/MissingTemplateError.html +132 -0
- data/doc/Sprout/Errors/ProcessRunnerError.html +121 -0
- data/doc/Sprout/Errors/RemoteFileLoaderError.html +110 -0
- data/doc/Sprout/Errors/SproutError.html +114 -0
- data/doc/Sprout/Errors/UnknownArchiveType.html +122 -0
- data/doc/Sprout/Errors/UsageError.html +121 -0
- data/doc/Sprout/Errors/ValidationError.html +121 -0
- data/doc/Sprout/Errors/VersionRequirementNotMetError.html +121 -0
- data/doc/Sprout/Executable.html +173 -0
- data/doc/Sprout/Executable/Boolean.html +483 -0
- data/doc/Sprout/Executable/ClassMethods.html +417 -0
- data/doc/Sprout/Executable/CollectionParam.html +483 -0
- data/doc/Sprout/Executable/FileParam.html +484 -0
- data/doc/Sprout/Executable/Files.html +292 -0
- data/doc/Sprout/Executable/InstanceMethods.html +2006 -0
- data/doc/Sprout/Executable/Number.html +141 -0
- data/doc/Sprout/Executable/Param.html +2818 -0
- data/doc/Sprout/Executable/ParameterFactory.html +232 -0
- data/doc/Sprout/Executable/Path.html +223 -0
- data/doc/Sprout/Executable/Paths.html +253 -0
- data/doc/Sprout/Executable/StringParam.html +213 -0
- data/doc/Sprout/Executable/Strings.html +167 -0
- data/doc/Sprout/Executable/Url.html +160 -0
- data/doc/Sprout/Executable/Urls.html +170 -0
- data/doc/Sprout/FileTarget.html +1109 -0
- data/doc/Sprout/Generator.html +689 -0
- data/doc/Sprout/Generator/Base.html +1626 -0
- data/doc/Sprout/Generator/Command.html +690 -0
- data/doc/Sprout/Generator/DirectoryManifest.html +476 -0
- data/doc/Sprout/Generator/FileManifest.html +572 -0
- data/doc/Sprout/Generator/Manifest.html +377 -0
- data/doc/Sprout/Generator/TemplateManifest.html +196 -0
- data/doc/Sprout/GeneratorGenerator.html +1018 -0
- data/doc/Sprout/Library.html +1141 -0
- data/doc/Sprout/LibraryGenerator.html +309 -0
- data/doc/Sprout/Log.html +496 -0
- data/doc/Sprout/MXMLC.html +6373 -0
- data/doc/Sprout/Platform.html +714 -0
- data/doc/Sprout/ProcessRunner.html +1352 -0
- data/doc/Sprout/ProgressBar.html +376 -0
- data/doc/Sprout/ProgressBarImpl.html +2119 -0
- data/doc/Sprout/ProgressBarManager.html +434 -0
- data/doc/Sprout/ProgressBarOutputStream.html +416 -0
- data/doc/Sprout/RDocParser.html +211 -0
- data/doc/Sprout/RemoteFileLoader.html +172 -0
- data/doc/Sprout/RemoteFileTarget.html +679 -0
- data/doc/Sprout/ReversedProgressBar.html +194 -0
- data/doc/Sprout/RubyFeature.html +155 -0
- data/doc/Sprout/RubyFeature/ClassMethods.html +1065 -0
- data/doc/Sprout/RubyGenerator.html +764 -0
- data/doc/Sprout/Specification.html +767 -0
- data/doc/Sprout/System.html +191 -0
- data/doc/Sprout/System/BaseSystem.html +1455 -0
- data/doc/Sprout/System/JavaSystem.html +122 -0
- data/doc/Sprout/System/OSXSystem.html +335 -0
- data/doc/Sprout/System/ThreadMock.html +193 -0
- data/doc/Sprout/System/UnixSystem.html +584 -0
- data/doc/Sprout/System/VistaSystem.html +251 -0
- data/doc/Sprout/System/WinNixSystem.html +325 -0
- data/doc/Sprout/System/WinSystem.html +571 -0
- data/doc/Sprout/ToolGenerator.html +931 -0
- data/doc/Sprout/VERSION.html +128 -0
- data/doc/SproutTestCase.html +1412 -0
- data/doc/String.html +286 -0
- data/doc/_index.html +1035 -0
- data/doc/class_list.html +36 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +53 -0
- data/doc/css/style.css +310 -0
- data/doc/file.README.html +96 -0
- data/doc/file.archive_unpacker.html +288 -0
- data/doc/file.base.html +208 -0
- data/doc/file.base_system.html +278 -0
- data/doc/file.boolean.html +135 -0
- data/doc/file.collection_param.html +139 -0
- data/doc/file.command.html +126 -0
- data/doc/file.concern.html +136 -0
- data/doc/file.daemon.html +309 -0
- data/doc/file.dir.html +76 -0
- data/doc/file.directory_manifest.html +122 -0
- data/doc/file.errors.html +147 -0
- data/doc/file.executable.html +638 -0
- data/doc/file.file_manifest.html +109 -0
- data/doc/file.file_param.html +120 -0
- data/doc/file.file_target.html +140 -0
- data/doc/file.files.html +85 -0
- data/doc/file.generator.html +296 -0
- data/doc/file.generator_class.html +72 -0
- data/doc/file.generator_generator.html +137 -0
- data/doc/file.generator_test.html +92 -0
- data/doc/file.generator_test_helper.html +67 -0
- data/doc/file.java_system.html +62 -0
- data/doc/file.library.html +291 -0
- data/doc/file.library_generator.html +74 -0
- data/doc/file.log.html +100 -0
- data/doc/file.manifest.html +67 -0
- data/doc/file.mxmlc.html +740 -0
- data/doc/file.number.html +67 -0
- data/doc/file.osx_system.html +79 -0
- data/doc/file.param.html +491 -0
- data/doc/file.parameter_factory.html +119 -0
- data/doc/file.path.html +81 -0
- data/doc/file.paths.html +80 -0
- data/doc/file.platform.html +124 -0
- data/doc/file.process_runner.html +224 -0
- data/doc/file.progress_bar.html +390 -0
- data/doc/file.rdoc_parser.html +145 -0
- data/doc/file.remote_file_loader.html +117 -0
- data/doc/file.remote_file_target.html +176 -0
- data/doc/file.ruby_base.html +64 -0
- data/doc/file.ruby_feature.html +244 -0
- data/doc/file.ruby_generator.html +118 -0
- data/doc/file.ruby_input.html +62 -0
- data/doc/file.ruby_test_case.html +78 -0
- data/doc/file.ruby_test_helper.html +61 -0
- data/doc/file.specification.html +248 -0
- data/doc/file.sprout.html +64 -0
- data/doc/file.sprout_test_case.html +280 -0
- data/doc/file.string.html +72 -0
- data/doc/file.string_param.html +76 -0
- data/doc/file.strings.html +71 -0
- data/doc/file.system.html +86 -0
- data/doc/file.template_manifest.html +67 -0
- data/doc/file.tool.html +92 -0
- data/doc/file.tool_generator.html +90 -0
- data/doc/file.unix_system.html +128 -0
- data/doc/file.url.html +71 -0
- data/doc/file.urls.html +70 -0
- data/doc/file.version.html +71 -0
- data/doc/file.vista_system.html +69 -0
- data/doc/file.win_nix_system.html +88 -0
- data/doc/file.win_system.html +129 -0
- data/doc/file_list.html +230 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +96 -0
- data/doc/js/app.js +202 -0
- data/doc/js/full_list.js +149 -0
- data/doc/js/jquery.js +154 -0
- data/doc/method_list.html +3355 -0
- data/doc/top-level-namespace.html +192 -0
- data/lib/sprout/archive_unpacker.rb +203 -137
- data/lib/sprout/base.rb +38 -11
- data/lib/sprout/concern.rb +51 -0
- data/lib/sprout/daemon.rb +256 -0
- data/lib/sprout/executable.rb +40 -11
- data/lib/sprout/executable/boolean.rb +47 -1
- data/lib/sprout/executable/collection_param.rb +33 -1
- data/lib/sprout/executable/file_param.rb +16 -3
- data/lib/sprout/executable/files.rb +5 -0
- data/lib/sprout/executable/number.rb +5 -1
- data/lib/sprout/executable/param.rb +232 -16
- data/lib/sprout/executable/parameter_factory.rb +39 -1
- data/lib/sprout/executable/path.rb +7 -1
- data/lib/sprout/executable/paths.rb +6 -1
- data/lib/sprout/executable/string_param.rb +8 -1
- data/lib/sprout/executable/strings.rb +7 -1
- data/lib/sprout/executable/url.rb +8 -1
- data/lib/sprout/executable/urls.rb +7 -1
- data/lib/sprout/file_target.rb +11 -11
- data/lib/sprout/generator.rb +244 -0
- data/lib/sprout/generator/base.rb +0 -94
- data/lib/sprout/generators/generator/generator_generator.rb +35 -1
- data/lib/sprout/generators/generator/templates/generator_class.rb +3 -3
- data/lib/sprout/library.rb +75 -0
- data/lib/sprout/log.rb +11 -12
- data/lib/sprout/process_runner.rb +29 -9
- data/lib/sprout/remote_file_target.rb +20 -9
- data/lib/sprout/system/base_system.rb +11 -3
- data/lib/sprout/test/sprout_test_case.rb +1 -0
- data/lib/sprout/version.rb +7 -11
- data/rakefile.rb +7 -12
- data/script/add_param_handler.rb +43 -0
- data/sprout.gemspec +2 -3
- data/test/fixtures/executable/fdb.rb +764 -0
- data/test/fixtures/executable/flex3sdk_gem/fdb +60 -0
- data/test/fixtures/executable/mxmlc.rb +9 -11
- data/test/unit/daemon_test.rb +61 -0
- data/test/unit/process_runner_test.rb +21 -0
- data/test/unit/remote_file_target_test.rb +45 -11
- data/test/unit/sprout_test_helper.rb +1 -1
- metadata +210 -29
data/Gemfile
CHANGED
@@ -2,7 +2,6 @@ source "http://rubygems.org"
|
|
2
2
|
|
3
3
|
gem "bundler", ">= 0.9.19"
|
4
4
|
gem "rake", ">= 0.8.7"
|
5
|
-
gem "rdoc", ">= 2.5.8"
|
6
5
|
gem "rubyzip", "0.9.4"
|
7
6
|
gem "archive-tar-minitar", "0.5.2"
|
8
7
|
|
@@ -13,6 +12,8 @@ else
|
|
13
12
|
end
|
14
13
|
|
15
14
|
group :development do
|
15
|
+
gem "yard"
|
16
|
+
gem "RedCloth"
|
16
17
|
gem "shoulda"
|
17
18
|
gem "mocha"
|
18
19
|
gem "flay"
|
data/Gemfile.lock
CHANGED
@@ -4,6 +4,7 @@ GEM
|
|
4
4
|
ParseTree (3.0.6)
|
5
5
|
RubyInline (>= 3.7.0)
|
6
6
|
sexp_processor (>= 3.0.0)
|
7
|
+
RedCloth (4.2.3)
|
7
8
|
RubyInline (3.8.6)
|
8
9
|
ZenTest (~> 4.3)
|
9
10
|
ZenTest (4.4.0)
|
@@ -23,7 +24,6 @@ GEM
|
|
23
24
|
open4 (1.0.1)
|
24
25
|
rake (0.8.7)
|
25
26
|
rcov (0.9.9)
|
26
|
-
rdoc (2.5.11)
|
27
27
|
ruby2ruby (1.2.5)
|
28
28
|
ruby_parser (~> 2.0)
|
29
29
|
sexp_processor (~> 3.0)
|
@@ -32,11 +32,13 @@ GEM
|
|
32
32
|
rubyzip (0.9.4)
|
33
33
|
sexp_processor (3.0.5)
|
34
34
|
shoulda (2.11.3)
|
35
|
+
yard (0.6.3)
|
35
36
|
|
36
37
|
PLATFORMS
|
37
38
|
ruby
|
38
39
|
|
39
40
|
DEPENDENCIES
|
41
|
+
RedCloth
|
40
42
|
archive-tar-minitar (= 0.5.2)
|
41
43
|
bundler (>= 0.9.19)
|
42
44
|
flay
|
@@ -46,6 +48,6 @@ DEPENDENCIES
|
|
46
48
|
open4 (>= 0.9.6)
|
47
49
|
rake (>= 0.8.7)
|
48
50
|
rcov
|
49
|
-
rdoc (>= 2.5.8)
|
50
51
|
rubyzip (= 0.9.4)
|
51
52
|
shoulda
|
53
|
+
yard
|
data/README.textile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
h1. IMPORTANT NOTE
|
2
2
|
|
3
|
-
|
3
|
+
The mainline of this repository represents the next major release of Sprouts which involves a nearly complete rewrite.
|
4
4
|
|
5
|
-
To see, or edit the source code for the currently-released
|
5
|
+
To see, or edit the source code for the currently-released version (0.7.x), please check out the "release branch":http://github.com/lukebayes/project-sprouts/tree/release.
|
6
6
|
|
7
7
|
h1. Project Sprouts
|
8
8
|
|
@@ -12,27 +12,26 @@ Sprouts includes support for project and code templates, automated build scripts
|
|
12
12
|
|
13
13
|
Sprouts works on OS X, Windows XP, Windows Vista and many flavors of *nix (including Solaris thanks to lots of patience from Armaghan Chaudhary).
|
14
14
|
|
15
|
-
|
15
|
+
h2. Installation
|
16
16
|
|
17
|
-
# "Install Ruby":http://www.ruby-lang.org/en/downloads/ _(>= v 1.
|
18
|
-
# "Install RubyGems":http://rubyforge.org/frs/?group_id=126 _(>= v 1.3.
|
19
|
-
# Install the Sprout gem:
|
17
|
+
# "Install Ruby":http://www.ruby-lang.org/en/downloads/ _(>= v 1.9.2)_
|
18
|
+
# "Install RubyGems":http://rubyforge.org/frs/?group_id=126 _(>= v 1.3.7)_
|
19
|
+
# Install the Sprout gem:
|
20
20
|
|
21
|
-
|
22
|
-
_(If prompted, select the appropriate gem for your platform.)_
|
21
|
+
gem install sprout
|
23
22
|
|
24
|
-
To get started with Sprouts in Flash
|
23
|
+
To get started with Sprouts in *Flash*, follow the directions provided by the "Flash SDK":http://github.com/lukebayes/sprout-flashsdk.
|
25
24
|
|
26
|
-
|
25
|
+
h2. Some Links
|
27
26
|
|
28
27
|
* "Web Site":http://projectsprouts.org
|
29
|
-
* "See the Documentation":http://projectsprouts.org/
|
28
|
+
* "See the Documentation":http://projectsprouts.org/doc/1.0/frames.html ("No Frames":http://projectsprouts.org/doc/1.0)
|
30
29
|
* "Meet the Community":http://groups.google.com/group/projectsprouts
|
31
30
|
|
32
|
-
|
31
|
+
h1. MIT License
|
33
32
|
|
34
33
|
<pre>
|
35
|
-
Copyright (c) 2007-
|
34
|
+
Copyright (c) 2007-2011 Pattern Park
|
36
35
|
|
37
36
|
Permission is hereby granted, free of charge, to any person obtaining
|
38
37
|
a copy of this software and associated documentation files (the
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.35.pre
|
data/doc/Dir.html
ADDED
@@ -0,0 +1,288 @@
|
|
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: Dir</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 (D)</a> »
|
27
|
+
|
28
|
+
|
29
|
+
<span class="title">Dir</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: Dir
|
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">Dir</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/dir.rb</dd>
|
78
|
+
|
79
|
+
</dl>
|
80
|
+
<div class="clear"></div>
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
<h2>
|
87
|
+
Class Method Summary
|
88
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
89
|
+
</h2>
|
90
|
+
|
91
|
+
<ul class="summary">
|
92
|
+
|
93
|
+
<li class="public ">
|
94
|
+
<span class="summary_signature">
|
95
|
+
|
96
|
+
<a href="#empty%3F-class_method" title="empty? (class method)">+ (Boolean) <strong>empty?</strong>(path) </a>
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
</span>
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<span class="summary_desc"><div class='inline'>
|
110
|
+
<p>Return true if the provided path has no children.</p>
|
111
|
+
</div></span>
|
112
|
+
|
113
|
+
</li>
|
114
|
+
|
115
|
+
|
116
|
+
</ul>
|
117
|
+
|
118
|
+
<h2>
|
119
|
+
Instance Method Summary
|
120
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
121
|
+
</h2>
|
122
|
+
|
123
|
+
<ul class="summary">
|
124
|
+
|
125
|
+
<li class="public ">
|
126
|
+
<span class="summary_signature">
|
127
|
+
|
128
|
+
<a href="#empty%3F-instance_method" title="#empty? (instance method)">- (Boolean) <strong>empty?</strong> </a>
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
</span>
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<span class="summary_desc"><div class='inline'>
|
142
|
+
<p>Return true if the directory has no children.</p>
|
143
|
+
</div></span>
|
144
|
+
|
145
|
+
</li>
|
146
|
+
|
147
|
+
|
148
|
+
</ul>
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<div id="class_method_details" class="method_details_list">
|
154
|
+
<h2>Class Method Details</h2>
|
155
|
+
|
156
|
+
|
157
|
+
<div class="method_details first">
|
158
|
+
<p class="signature first" id="empty?-class_method">
|
159
|
+
|
160
|
+
+ (<tt>Boolean</tt>) <strong>empty?</strong>(path)
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
</p><div class="docstring">
|
165
|
+
<div class="discussion">
|
166
|
+
|
167
|
+
<p>Return true if the provided path has no children.</p>
|
168
|
+
|
169
|
+
<p>Code found here: <a
|
170
|
+
href="http://www.ruby-forum.com/topic/84762">www.ruby-forum.com/topic/84762</a></p>
|
171
|
+
|
172
|
+
|
173
|
+
</div>
|
174
|
+
</div>
|
175
|
+
<div class="tags">
|
176
|
+
<h3>Returns:</h3>
|
177
|
+
<ul class="return">
|
178
|
+
|
179
|
+
<li>
|
180
|
+
|
181
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
</li>
|
187
|
+
|
188
|
+
</ul>
|
189
|
+
|
190
|
+
</div><table class="source_code">
|
191
|
+
<tr>
|
192
|
+
<td>
|
193
|
+
<pre class="lines">
|
194
|
+
|
195
|
+
|
196
|
+
19
|
197
|
+
20
|
198
|
+
21</pre>
|
199
|
+
</td>
|
200
|
+
<td>
|
201
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/dir.rb', line 19</span>
|
202
|
+
|
203
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id empty?'>empty?</span> <span class='id path'>path</span>
|
204
|
+
<span class='id new'>new</span><span class='lparen'>(</span><span class='id path'>path</span><span class='rparen'>)</span><span class='period'>.</span><span class='id empty?'>empty?</span>
|
205
|
+
<span class='kw'>end</span></pre>
|
206
|
+
</td>
|
207
|
+
</tr>
|
208
|
+
</table>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
</div>
|
212
|
+
|
213
|
+
<div id="instance_method_details" class="method_details_list">
|
214
|
+
<h2>Instance Method Details</h2>
|
215
|
+
|
216
|
+
|
217
|
+
<div class="method_details first">
|
218
|
+
<p class="signature first" id="empty?-instance_method">
|
219
|
+
|
220
|
+
- (<tt>Boolean</tt>) <strong>empty?</strong>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
</p><div class="docstring">
|
225
|
+
<div class="discussion">
|
226
|
+
|
227
|
+
<p>Return true if the directory has no children.</p>
|
228
|
+
|
229
|
+
<p>Code found here: <a
|
230
|
+
href="http://www.ruby-forum.com/topic/84762">www.ruby-forum.com/topic/84762</a></p>
|
231
|
+
|
232
|
+
|
233
|
+
</div>
|
234
|
+
</div>
|
235
|
+
<div class="tags">
|
236
|
+
<h3>Returns:</h3>
|
237
|
+
<ul class="return">
|
238
|
+
|
239
|
+
<li>
|
240
|
+
|
241
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
</li>
|
247
|
+
|
248
|
+
</ul>
|
249
|
+
|
250
|
+
</div><table class="source_code">
|
251
|
+
<tr>
|
252
|
+
<td>
|
253
|
+
<pre class="lines">
|
254
|
+
|
255
|
+
|
256
|
+
8
|
257
|
+
9
|
258
|
+
10
|
259
|
+
11
|
260
|
+
12
|
261
|
+
13</pre>
|
262
|
+
</td>
|
263
|
+
<td>
|
264
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/dir.rb', line 8</span>
|
265
|
+
|
266
|
+
<span class='kw'>def</span> <span class='id empty?'>empty?</span>
|
267
|
+
<span class='const'>Dir</span><span class='period'>.</span><span class='id glob'>glob</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span> <span class='id path'>path</span> <span class='rbrace'>}</span><span class='tstring_content'>/*</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='const'>File</span><span class='op'>::</span><span class='const'>FNM_DOTMATCH</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id e'>e</span><span class='op'>|</span>
|
268
|
+
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='qwords_beg'>%w( </span><span class='tstring_content'>.</span><span class='words_sep'> </span><span class='tstring_content'>..</span><span class='words_sep'> )</span><span class='period'>.</span><span class='id include?'>include?</span><span class='lparen'>(</span><span class='const'>File</span><span class='op'>::</span><span class='id basename'>basename</span><span class='lparen'>(</span><span class='id e'>e</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
269
|
+
<span class='kw'>end</span>
|
270
|
+
<span class='kw'>return</span> <span class='kw'>true</span>
|
271
|
+
<span class='kw'>end</span></pre>
|
272
|
+
</td>
|
273
|
+
</tr>
|
274
|
+
</table>
|
275
|
+
</div>
|
276
|
+
|
277
|
+
</div>
|
278
|
+
|
279
|
+
</div>
|
280
|
+
|
281
|
+
<div id="footer">
|
282
|
+
Generated on Wed Dec 22 11:58:32 2010 by
|
283
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
284
|
+
0.6.3 (ruby-1.9.2).
|
285
|
+
</div>
|
286
|
+
|
287
|
+
</body>
|
288
|
+
</html>
|
data/doc/Rake/Task.html
ADDED
@@ -0,0 +1,184 @@
|
|
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: Rake::Task</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 (T)</a> »
|
27
|
+
<span class='title'>Rake</span>
|
28
|
+
»
|
29
|
+
<span class="title">Task</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: Rake::Task
|
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">Rake::Task</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/ruby_feature.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>Mixin on the Rake::Task so that our concrete entities can interoperate with
|
86
|
+
some knowledge of each other.</p>
|
87
|
+
|
88
|
+
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
<div class="tags">
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
96
|
+
<ul class="summary">
|
97
|
+
|
98
|
+
<li class="public ">
|
99
|
+
<span class="summary_signature">
|
100
|
+
|
101
|
+
<a href="#sprout_entity-instance_method" title="#sprout_entity (instance method)">- (Object) <strong>sprout_entity</strong> </a>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
</span>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<span class="summary_desc"><div class='inline'>
|
118
|
+
<p>Returns the value of attribute sprout_entity.</p>
|
119
|
+
</div></span>
|
120
|
+
|
121
|
+
</li>
|
122
|
+
|
123
|
+
|
124
|
+
</ul>
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
<div id="instance_attr_details" class="attr_details">
|
129
|
+
<h2>Instance Attribute Details</h2>
|
130
|
+
|
131
|
+
|
132
|
+
<span id="sprout_entity=-instance_method"></span>
|
133
|
+
<span id="sprout_entity-instance_method"></span>
|
134
|
+
<div class="method_details first">
|
135
|
+
<p class="signature first" id="sprout_entity-instance_method">
|
136
|
+
|
137
|
+
- (<tt>Object</tt>) <strong>sprout_entity</strong>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
</p><div class="docstring">
|
142
|
+
<div class="discussion">
|
143
|
+
|
144
|
+
<p>Returns the value of attribute sprout_entity</p>
|
145
|
+
|
146
|
+
|
147
|
+
</div>
|
148
|
+
</div>
|
149
|
+
<div class="tags">
|
150
|
+
|
151
|
+
</div><table class="source_code">
|
152
|
+
<tr>
|
153
|
+
<td>
|
154
|
+
<pre class="lines">
|
155
|
+
|
156
|
+
|
157
|
+
191
|
158
|
+
192
|
159
|
+
193</pre>
|
160
|
+
</td>
|
161
|
+
<td>
|
162
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/ruby_feature.rb', line 191</span>
|
163
|
+
|
164
|
+
<span class='kw'>def</span> <span class='id sprout_entity'>sprout_entity</span>
|
165
|
+
<span class='ivar'>@sprout_entity</span>
|
166
|
+
<span class='kw'>end</span></pre>
|
167
|
+
</td>
|
168
|
+
</tr>
|
169
|
+
</table>
|
170
|
+
</div>
|
171
|
+
|
172
|
+
</div>
|
173
|
+
|
174
|
+
|
175
|
+
</div>
|
176
|
+
|
177
|
+
<div id="footer">
|
178
|
+
Generated on Wed Dec 22 11:58:34 2010 by
|
179
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
180
|
+
0.6.3 (ruby-1.9.2).
|
181
|
+
</div>
|
182
|
+
|
183
|
+
</body>
|
184
|
+
</html>
|